react-native-plaid-link-sdk 9.0.1 → 10.1.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.
Files changed (32) hide show
  1. package/README.md +2 -36
  2. package/android/.gradle/6.9/executionHistory/executionHistory.lock +0 -0
  3. package/android/.gradle/6.9/fileChanges/last-build.bin +0 -0
  4. package/android/.gradle/6.9/fileHashes/fileHashes.lock +0 -0
  5. package/android/.gradle/6.9/gc.properties +0 -0
  6. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  7. package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
  8. package/android/.gradle/checksums/checksums.lock +0 -0
  9. package/android/.gradle/checksums/md5-checksums.bin +0 -0
  10. package/android/.gradle/checksums/sha1-checksums.bin +0 -0
  11. package/android/.gradle/vcs-1/gc.properties +0 -0
  12. package/android/build.gradle +3 -3
  13. package/android/gradle/wrapper/gradle-wrapper.properties +1 -1
  14. package/android/gradle.properties +3 -0
  15. package/android/gradlew +2 -0
  16. package/android/gradlew.bat +24 -19
  17. package/android/src/main/AndroidManifest.xml +1 -1
  18. package/dist/PlaidLink.d.ts +0 -2
  19. package/dist/PlaidLink.js +1 -15
  20. package/dist/Types.d.ts +9 -7
  21. package/dist/Types.js +2 -0
  22. package/dist/index.d.ts +2 -2
  23. package/dist/index.js +2 -2
  24. package/ios/RNLinksdk.m +53 -7
  25. package/ios/RNLinksdk.xcworkspace/contents.xcworkspacedata +3 -0
  26. package/package.json +5 -5
  27. package/react-native-plaid-link-sdk.podspec +1 -1
  28. package/ios/.DS_Store +0 -0
  29. package/ios/RNLinksdk.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -7
  30. package/ios/RNLinksdk.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
  31. package/ios/RNLinksdk.xcodeproj/project.xcworkspace/xcuserdata/wkiefer.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  32. package/ios/RNLinksdk.xcodeproj/xcuserdata/wkiefer.xcuserdatad/xcschemes/xcschememanagement.plist +0 -14
package/README.md CHANGED
@@ -44,41 +44,6 @@ followed by
44
44
 
45
45
  For iOS OAuth to work, specific requirements must be met.
46
46
  * Redirect URIs must be registered, and set up as universal links ([docs](https://plaid.com/docs/link/ios/#register-your-redirect-uri))
47
- * Deep linking must be set up in the application delegate class (see code sample below)
48
- * The exported `useDeepLinkRedirector` method must be invoked. If you are using the `PlaidLink` component it is invoked automatically, but if you are calling `openLink` programatically you must invoke `useDeepLinkRedirector`.
49
-
50
- ```objective-c
51
- #import "AppDelegate.h"
52
- ...
53
- #import <React/RCTLinkingManager.h>
54
-
55
- ...
56
-
57
- @implementation AppDelegate
58
-
59
- ...
60
-
61
- - (BOOL)application:(UIApplication *)app
62
- openURL:(NSURL *)url
63
- options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options
64
- {
65
- return [RCTLinkingManager application:app openURL:url options:options];
66
- }
67
-
68
- // Needed for universal links, which are required for Plaid iOS OAuth.
69
- - (BOOL)application:(UIApplication *)application
70
- continueUserActivity:(NSUserActivity *)userActivity
71
- restorationHandler:(void (^)(NSArray<id<UIUserActivityRestoring>> * _Nullable))restorationHandler
72
- {
73
- return [RCTLinkingManager application:application
74
- continueUserActivity:userActivity
75
- restorationHandler:restorationHandler];
76
- }
77
-
78
- ...
79
-
80
- @end
81
- ```
82
47
 
83
48
 
84
49
  ## Android setup
@@ -200,7 +165,8 @@ When upgrading from a previous major version of this library, see the following
200
165
  # Version compatibility
201
166
  | React Native SDK | Android SDK | iOS SDK | Status |
202
167
  |---|---|---|---|
203
- | 9.x.x | [3.10.1+] | >=4.1.0 | Active, supports Xcode 14 |
168
+ | 10.x.x | [3.10.1+] | >=4.1.0 | Active, supports Xcode 14 |
169
+ | 9.x.x | [3.10.1+] | >=4.1.0 | Deprecated, supports Xcode 14 |
204
170
  | 8.x.x | [3.10.1+] | >=3.1.0 | Deprecated, supports Xcode 14 |
205
171
  | 7.x.x | [3.2.0+] | >=2.0.11 | Deprecated, supports Xcode <= 13 |
206
172
  | 6.x.x | [3.0.0-3.2.0) | >=2.0.1 | Deprecated |
File without changes
@@ -0,0 +1,2 @@
1
+ #Wed Mar 22 15:18:00 PDT 2023
2
+ gradle.version=6.9
File without changes
@@ -12,7 +12,7 @@ allprojects {
12
12
 
13
13
 
14
14
  buildscript {
15
- ext.kotlin_version = '1.3.61'
15
+ ext.kotlin_version = '1.7.10'
16
16
  repositories {
17
17
  google()
18
18
  mavenCentral()
@@ -21,7 +21,7 @@ buildscript {
21
21
  dependencies {
22
22
  classpath 'com.android.tools.build:gradle:3.6.2'
23
23
  classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
24
- classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.10'
24
+ classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.10'
25
25
  }
26
26
  }
27
27
 
@@ -64,7 +64,7 @@ repositories {
64
64
 
65
65
  dependencies {
66
66
  implementation "com.facebook.react:react-native:+"
67
- implementation "com.plaid.link:sdk-core:3.10.1"
67
+ implementation "com.plaid.link:sdk-core:3.11.0"
68
68
  implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
69
69
  implementation "com.jakewharton.rxrelay2:rxrelay:2.1.1"
70
70
  }
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
3
3
  distributionPath=wrapper/dists
4
4
  zipStoreBase=GRADLE_USER_HOME
5
5
  zipStorePath=wrapper/dists
6
- distributionUrl=https\://services.gradle.org/distributions/gradle-6.1-all.zip
6
+ distributionUrl=https\://services.gradle.org/distributions/gradle-6.9-all.zip
@@ -26,3 +26,6 @@ kotlin.code.style=official
26
26
 
27
27
  org.gradle.parallel=true
28
28
  org.gradle.configureondemand=true
29
+
30
+ # Version of flipper SDK to use with React Native
31
+ FLIPPER_VERSION=0.99.0
package/android/gradlew CHANGED
@@ -66,6 +66,7 @@ esac
66
66
 
67
67
  CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
68
68
 
69
+
69
70
  # Determine the Java command to use to start the JVM.
70
71
  if [ -n "$JAVA_HOME" ] ; then
71
72
  if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
@@ -113,6 +114,7 @@ fi
113
114
  if $cygwin ; then
114
115
  APP_HOME=`cygpath --path --mixed "$APP_HOME"`
115
116
  CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
117
+
116
118
  JAVACMD=`cygpath --unix "$JAVACMD"`
117
119
 
118
120
  # We build the pattern for arguments to be converted via cygpath
@@ -1,3 +1,19 @@
1
+ @rem
2
+ @rem Copyright 2015 the original author or authors.
3
+ @rem
4
+ @rem Licensed under the Apache License, Version 2.0 (the "License");
5
+ @rem you may not use this file except in compliance with the License.
6
+ @rem You may obtain a copy of the License at
7
+ @rem
8
+ @rem https://www.apache.org/licenses/LICENSE-2.0
9
+ @rem
10
+ @rem Unless required by applicable law or agreed to in writing, software
11
+ @rem distributed under the License is distributed on an "AS IS" BASIS,
12
+ @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ @rem See the License for the specific language governing permissions and
14
+ @rem limitations under the License.
15
+ @rem
16
+
1
17
  @if "%DEBUG%" == "" @echo off
2
18
  @rem ##########################################################################
3
19
  @rem
@@ -13,15 +29,18 @@ if "%DIRNAME%" == "" set DIRNAME=.
13
29
  set APP_BASE_NAME=%~n0
14
30
  set APP_HOME=%DIRNAME%
15
31
 
32
+ @rem Resolve any "." and ".." in APP_HOME to make it shorter.
33
+ for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
34
+
16
35
  @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
17
- set DEFAULT_JVM_OPTS=
36
+ set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
18
37
 
19
38
  @rem Find java.exe
20
39
  if defined JAVA_HOME goto findJavaFromJavaHome
21
40
 
22
41
  set JAVA_EXE=java.exe
23
42
  %JAVA_EXE% -version >NUL 2>&1
24
- if "%ERRORLEVEL%" == "0" goto init
43
+ if "%ERRORLEVEL%" == "0" goto execute
25
44
 
26
45
  echo.
27
46
  echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
@@ -35,7 +54,7 @@ goto fail
35
54
  set JAVA_HOME=%JAVA_HOME:"=%
36
55
  set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37
56
 
38
- if exist "%JAVA_EXE%" goto init
57
+ if exist "%JAVA_EXE%" goto execute
39
58
 
40
59
  echo.
41
60
  echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
@@ -45,28 +64,14 @@ echo location of your Java installation.
45
64
 
46
65
  goto fail
47
66
 
48
- :init
49
- @rem Get command-line arguments, handling Windows variants
50
-
51
- if not "%OS%" == "Windows_NT" goto win9xME_args
52
-
53
- :win9xME_args
54
- @rem Slurp the command line arguments.
55
- set CMD_LINE_ARGS=
56
- set _SKIP=2
57
-
58
- :win9xME_args_slurp
59
- if "x%~1" == "x" goto execute
60
-
61
- set CMD_LINE_ARGS=%*
62
-
63
67
  :execute
64
68
  @rem Setup the command line
65
69
 
66
70
  set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
67
71
 
72
+
68
73
  @rem Execute Gradle
69
- "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
74
+ "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
70
75
 
71
76
  :end
72
77
  @rem End local scope for the variables with windows NT shell
@@ -4,7 +4,7 @@
4
4
  <application>
5
5
  <meta-data
6
6
  android:name="com.plaid.link.react_native"
7
- android:value="9.0.1" />
7
+ android:value="10.1.0" />
8
8
  </application>
9
9
 
10
10
  </manifest>
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { LinkEventListener, PlaidLinkComponentProps, PlaidLinkProps } from './Types';
3
2
  /**
4
3
  * A hook that registers a listener on the Plaid emitter for the 'onEvent' type.
@@ -9,5 +8,4 @@ import { LinkEventListener, PlaidLinkComponentProps, PlaidLinkProps } from './Ty
9
8
  export declare const usePlaidEmitter: (LinkEventListener: LinkEventListener) => void;
10
9
  export declare const openLink: (props: PlaidLinkProps) => Promise<void>;
11
10
  export declare const dismissLink: () => void;
12
- export declare const useDeepLinkRedirector: () => void;
13
11
  export declare const PlaidLink: (props: PlaidLinkComponentProps) => JSX.Element;
package/dist/PlaidLink.js CHANGED
@@ -8,7 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  });
9
9
  };
10
10
  import React, { useEffect } from 'react';
11
- import { Linking, NativeEventEmitter, NativeModules, Platform, TouchableOpacity, } from 'react-native';
11
+ import { NativeEventEmitter, NativeModules, Platform, TouchableOpacity, } from 'react-native';
12
12
  /**
13
13
  * A hook that registers a listener on the Plaid emitter for the 'onEvent' type.
14
14
  * The listener is cleaned up when this view is unmounted
@@ -72,25 +72,11 @@ export const dismissLink = () => {
72
72
  NativeModules.RNLinksdk.dismiss();
73
73
  }
74
74
  };
75
- export const useDeepLinkRedirector = () => {
76
- const _handleListenerChange = (event) => {
77
- if (event.url !== null && Platform.OS === 'ios') {
78
- NativeModules.RNLinksdk.continueFromRedirectUriString(event.url);
79
- }
80
- };
81
- useEffect(() => {
82
- Linking.addEventListener('url', _handleListenerChange);
83
- return function cleanup() {
84
- Linking.removeEventListener('url', _handleListenerChange);
85
- };
86
- }, []);
87
- };
88
75
  export const PlaidLink = (props) => {
89
76
  function onPress() {
90
77
  var _a;
91
78
  (_a = props.onPress) === null || _a === void 0 ? void 0 : _a.call(props);
92
79
  openLink(props);
93
80
  }
94
- useDeepLinkRedirector();
95
81
  return <TouchableOpacity onPress={onPress}>{props.children}</TouchableOpacity>;
96
82
  };
package/dist/Types.d.ts CHANGED
@@ -3,11 +3,11 @@ interface CommonPlaidLinkOptions {
3
3
  logLevel?: LinkLogLevel;
4
4
  extras?: Record<string, any>;
5
5
  }
6
- export declare type LinkTokenConfiguration = (CommonPlaidLinkOptions & {
6
+ export type LinkTokenConfiguration = (CommonPlaidLinkOptions & {
7
7
  token: string;
8
8
  noLoadingState: boolean;
9
9
  });
10
- export declare type LinkPublicKeyConfiguration = (CommonPlaidLinkOptions & {
10
+ export type LinkPublicKeyConfiguration = (CommonPlaidLinkOptions & {
11
11
  token?: string;
12
12
  publicKey?: string;
13
13
  clientName: string;
@@ -284,6 +284,7 @@ export declare enum LinkErrorCode {
284
284
  INVALID_PROCESSOR_TOKEN = "INVALID_PROCESSOR_TOKEN",
285
285
  INVALID_AUDIT_COPY_TOKEN = "INVALID_AUDIT_COPY_TOKEN",
286
286
  INVALID_ACCOUNT_ID = "INVALID_ACCOUNT_ID",
287
+ MICRODEPOSITS_ALREADY_VERIFIED = "MICRODEPOSITS_ALREADY_VERIFIED",
287
288
  PLAID_DIRECT_ITEM_IMPORT_RETURNED_INVALID_MFA = "PLAID_DIRECT_ITEM_IMPORT_RETURNED_INVALID_MFA",
288
289
  ACCOUNTS_LIMIT = "ACCOUNTS_LIMIT",
289
290
  ADDITION_LIMIT = "ADDITION_LIMIT",
@@ -313,7 +314,7 @@ export declare enum LinkErrorType {
313
314
  RECAPTCHA_ERROR = "RECAPTCHA_ERROR",
314
315
  OAUTH_ERROR = "OAUTH_ERROR"
315
316
  }
316
- export declare type LinkEventListener = (linkEvent: LinkEvent) => void;
317
+ export type LinkEventListener = (linkEvent: LinkEvent) => void;
317
318
  export interface LinkEvent {
318
319
  eventName: LinkEventName;
319
320
  metadata: LinkEventMetadata;
@@ -334,6 +335,7 @@ export interface LinkEventMetadata {
334
335
  timestamp: string;
335
336
  }
336
337
  export declare enum LinkEventName {
338
+ BANK_INCOME_INSIGHTS_COMPLETED = "BANK_INCOME_INSIGHTS_COMPLETED",
337
339
  CLOSE_OAUTH = "CLOSE_OAUTH",
338
340
  ERROR = "ERROR",
339
341
  EXIT = "EXIT",
@@ -388,9 +390,9 @@ export declare enum LinkEventViewName {
388
390
  SELECT_INSTITUTION = "SELECT_INSTITUTION",
389
391
  VERIFY_SMS = "VERIFY_SMS"
390
392
  }
391
- export declare type LinkSuccessListener = (LinkSuccess: LinkSuccess) => void;
392
- export declare type LinkExitListener = (LinkExit: LinkExit) => void;
393
- export declare type PlaidLinkConfiguration = LinkTokenConfiguration | LinkPublicKeyConfiguration;
393
+ export type LinkSuccessListener = (LinkSuccess: LinkSuccess) => void;
394
+ export type LinkExitListener = (LinkExit: LinkExit) => void;
395
+ export type PlaidLinkConfiguration = LinkTokenConfiguration | LinkPublicKeyConfiguration;
394
396
  export interface PlaidLinkProps {
395
397
  tokenConfig?: LinkTokenConfiguration;
396
398
  publicKeyConfig?: LinkPublicKeyConfiguration;
@@ -398,7 +400,7 @@ export interface PlaidLinkProps {
398
400
  onExit?: LinkExitListener;
399
401
  onPress?(): any;
400
402
  }
401
- export declare type PlaidLinkComponentProps = (PlaidLinkProps & {
403
+ export type PlaidLinkComponentProps = (PlaidLinkProps & {
402
404
  children: React.ReactNode;
403
405
  });
404
406
  export {};
package/dist/Types.js CHANGED
@@ -300,6 +300,7 @@ export var LinkErrorCode;
300
300
  LinkErrorCode["INVALID_PROCESSOR_TOKEN"] = "INVALID_PROCESSOR_TOKEN";
301
301
  LinkErrorCode["INVALID_AUDIT_COPY_TOKEN"] = "INVALID_AUDIT_COPY_TOKEN";
302
302
  LinkErrorCode["INVALID_ACCOUNT_ID"] = "INVALID_ACCOUNT_ID";
303
+ LinkErrorCode["MICRODEPOSITS_ALREADY_VERIFIED"] = "MICRODEPOSITS_ALREADY_VERIFIED";
303
304
  // INVALID_RESULT
304
305
  LinkErrorCode["PLAID_DIRECT_ITEM_IMPORT_RETURNED_INVALID_MFA"] = "PLAID_DIRECT_ITEM_IMPORT_RETURNED_INVALID_MFA";
305
306
  // RATE_LIMIT_EXCEEDED
@@ -336,6 +337,7 @@ export var LinkErrorType;
336
337
  })(LinkErrorType || (LinkErrorType = {}));
337
338
  export var LinkEventName;
338
339
  (function (LinkEventName) {
340
+ LinkEventName["BANK_INCOME_INSIGHTS_COMPLETED"] = "BANK_INCOME_INSIGHTS_COMPLETED";
339
341
  LinkEventName["CLOSE_OAUTH"] = "CLOSE_OAUTH";
340
342
  LinkEventName["ERROR"] = "ERROR";
341
343
  LinkEventName["EXIT"] = "EXIT";
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { openLink, dismissLink, useDeepLinkRedirector, usePlaidEmitter, PlaidLink } from './PlaidLink';
1
+ import { openLink, dismissLink, usePlaidEmitter, PlaidLink } from './PlaidLink';
2
2
  export * from './Types';
3
3
  export default PlaidLink;
4
- export { PlaidLink, openLink, dismissLink, useDeepLinkRedirector, usePlaidEmitter, };
4
+ export { PlaidLink, openLink, dismissLink, usePlaidEmitter, };
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { openLink, dismissLink, useDeepLinkRedirector, usePlaidEmitter, PlaidLink, } from './PlaidLink';
1
+ import { openLink, dismissLink, usePlaidEmitter, PlaidLink, } from './PlaidLink';
2
2
  export * from './Types';
3
3
  export default PlaidLink;
4
- export { PlaidLink, openLink, dismissLink, useDeepLinkRedirector, usePlaidEmitter, };
4
+ export { PlaidLink, openLink, dismissLink, usePlaidEmitter, };
package/ios/RNLinksdk.m CHANGED
@@ -117,7 +117,7 @@ NSString* const kRNLinkKitPublicTokenPrefix = @"public-";
117
117
  RCT_EXPORT_MODULE();
118
118
 
119
119
  + (NSString*)sdkVersion {
120
- return @"9.0.1"; // SDK_VERSION
120
+ return @"10.1.0"; // SDK_VERSION
121
121
  }
122
122
 
123
123
  + (NSString*)objCBridgeVersion {
@@ -160,7 +160,7 @@ RCT_EXPORT_METHOD(continueFromRedirectUriString:(NSString *)redirectUriString) {
160
160
  NSURL *receivedRedirectUri = (id)redirectUriString == [NSNull null] ? nil : [NSURL URLWithString:redirectUriString];
161
161
 
162
162
  if (receivedRedirectUri && self.linkHandler) {
163
- [self.linkHandler continueFromRedirectUri:receivedRedirectUri];
163
+ [self.linkHandler continueWithRedirectUri:receivedRedirectUri];
164
164
  }
165
165
  }
166
166
 
@@ -772,6 +772,28 @@ RCT_EXPORT_METHOD(dismiss) {
772
772
  return @"FAIL_OAUTH";
773
773
  case PLKEventNameValueHandoff:
774
774
  return @"HANDOFF";
775
+ case PLKEventNameValueIdentityVerificationStartStep:
776
+ return @"IDENTITY_VERIFICATION_START_STEP";
777
+ case PLKEventNameValueIdentityVerificationPassStep:
778
+ return @"IDENTITY_VERIFICATION_PASS_STEP";
779
+ case PLKEventNameValueIdentityVerificationFailStep:
780
+ return @"IDENTITY_VERIFICATION_FAIL_STEP";
781
+ case PLKEventNameValueIdentityVerificationPendingReviewStep:
782
+ return @"IDENTITY_VERIFICATION_PENDING_REVIEW_STEP";
783
+ case PLKEventNameValueIdentityVerificationCreateSession:
784
+ return @"IDENTITY_VERIFICATION_CREATE_SESSION";
785
+ case PLKEventNameValueIdentityVerificationResumeSession:
786
+ return @"IDENTITY_VERIFICATION_RESUME_SESSION";
787
+ case PLKEventNameValueIdentityVerificationPassSession:
788
+ return @"IDENTITY_VERIFICATION_PASS_SESSION";
789
+ case PLKEventNameValueIdentityVerificationFailSession:
790
+ return @"IDENTITY_VERIFICATION_FAIL_SESSION";
791
+ case PLKEventNameValueIdentityVerificationOpenUI:
792
+ return @"IDENTITY_VERIFICATION_OPEN_UI";
793
+ case PLKEventNameValueIdentityVerificationResumeUI:
794
+ return @"IDENTITY_VERIFICATION_RESUME_UI";
795
+ case PLKEventNameValueIdentityVerificationCloseUI:
796
+ return @"IDENTITY_VERIFICATION_CLOSE_UI";
775
797
  case PLKEventNameValueMatchedSelectInstitution:
776
798
  return @"MATCHED_SELECT_INSTITUTION";
777
799
  case PLKEventNameValueMatchedSelectVerifyMethod:
@@ -784,6 +806,10 @@ RCT_EXPORT_METHOD(dismiss) {
784
806
  return @"OPEN_OAUTH";
785
807
  case PLKEventNameValueSearchInstitution:
786
808
  return @"SEARCH_INSTITUTION";
809
+ case PLKEventNameValueSelectDegradedInstitution:
810
+ return @"SELECT_DEGRADED_INSTITUTION";
811
+ case PLKEventNameValueSelectDownInstitution:
812
+ return @"SELECT_DOWN_INSTITUTION";
787
813
  case PLKEventNameValueSelectInstitution:
788
814
  return @"SELECT_INSTITUTION";
789
815
  case PLKEventNameValueSubmitCredentials:
@@ -792,11 +818,7 @@ RCT_EXPORT_METHOD(dismiss) {
792
818
  return @"SUBMIT_MFA";
793
819
  case PLKEventNameValueTransitionView:
794
820
  return @"TRANSITION_VIEW";
795
- case PLKEventNameValueSelectDegradedInstitution:
796
- return @"SELECT_DEGRADED_INSTITUTION";
797
- case PLKEventNameValueSelectDownInstitution:
798
- return @"SELECT_DOWN_INSTITUTION";
799
- }
821
+ }
800
822
  return @"unknown";
801
823
  }
802
824
 
@@ -897,6 +919,30 @@ RCT_EXPORT_METHOD(dismiss) {
897
919
  return @"SELECT_ACCOUNT";
898
920
  case PLKViewNameValueSelectInstitution:
899
921
  return @"SELECT_INSTITUTION";
922
+ case PLKViewNameValueUploadDocuments:
923
+ return @"UPLOAD_DOCUMENTS";
924
+ case PLKViewNameValueSubmitDocuments:
925
+ return @"SUBMIT_DOCUMENTS";
926
+ case PLKViewNameValueSubmitDocumentsSuccess:
927
+ return @"SUBMIT_DOCUMENTS_SUCCESS";
928
+ case PLKViewNameValueSubmitDocumentsError:
929
+ return @"SUBMIT_DOCUMENTS_ERROR";
930
+ case PLKViewNameValueOauth:
931
+ return @"OAUTH";
932
+ case PLKViewNameValueAcceptTOS:
933
+ return @"ACCEPT_TOS";
934
+ case PLKViewNameValueDocumentaryVerification:
935
+ return @"DOCUMENTARY_VERIFICATION";
936
+ case PLKViewNameValueKYCCheck:
937
+ return @"KYC_CHECK";
938
+ case PLKViewNameValueSelfieCheck:
939
+ return @"SELFIE_CHECK";
940
+ case PLKViewNameValueRiskCheck:
941
+ return @"RISK_CHECK";
942
+ case PLKViewNameValueScreening:
943
+ return @"SCREENING";
944
+ case PLKViewNameValueVerifySMS:
945
+ return @"VERIFY_SMS";
900
946
  }
901
947
 
902
948
  return @"unknown";
@@ -4,4 +4,7 @@
4
4
  <FileRef
5
5
  location = "group:RNLinksdk.xcodeproj">
6
6
  </FileRef>
7
+ <FileRef
8
+ location = "group:Pods/Pods.xcodeproj">
9
+ </FileRef>
7
10
  </Workspace>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-plaid-link-sdk",
3
- "version": "9.0.1",
3
+ "version": "10.1.0",
4
4
  "description": "React Native Plaid Link SDK",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -41,13 +41,13 @@
41
41
  "license": "MIT",
42
42
  "peerDependencies": {
43
43
  "react": "*",
44
- "react-native": ">=0.61"
44
+ "react-native": ">=0.66.0"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@react-native-community/eslint-plugin": "^1.1.0",
48
48
  "@types/jest": "^26.0.14",
49
49
  "@types/react": "^16.14.20",
50
- "@types/react-native": "^0.63.25",
50
+ "@types/react-native": "^0.66.0",
51
51
  "@types/react-test-renderer": "^16.9.3",
52
52
  "@typescript-eslint/eslint-plugin": "^4.6.1",
53
53
  "@typescript-eslint/parser": "^4.6.1",
@@ -58,8 +58,8 @@
58
58
  "husky": "^3.1.0",
59
59
  "lint-staged": "^9.4.2",
60
60
  "prettier": "^1.18.2",
61
- "react": "~16.13.1",
62
- "react-native": "^0.63.3",
61
+ "react": "17.0.2",
62
+ "react-native": "0.66.0",
63
63
  "typescript": "^4.5.5",
64
64
  "xyz": "0.5.x"
65
65
  }
@@ -16,5 +16,5 @@ Pod::Spec.new do |s|
16
16
  s.source_files = "ios/*.{h,m}"
17
17
 
18
18
  s.dependency 'React-Core'
19
- s.dependency 'Plaid', '~> 4.1.0'
19
+ s.dependency 'Plaid', '~> 4.2.0'
20
20
  end
package/ios/.DS_Store DELETED
Binary file
@@ -1,7 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <Workspace
3
- version = "1.0">
4
- <FileRef
5
- location = "self:">
6
- </FileRef>
7
- </Workspace>
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
- <plist version="1.0">
4
- <dict>
5
- <key>IDEDidComputeMac32BitWarning</key>
6
- <true/>
7
- </dict>
8
- </plist>
@@ -1,14 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
- <plist version="1.0">
4
- <dict>
5
- <key>SchemeUserState</key>
6
- <dict>
7
- <key>RNLinksdk.xcscheme_^#shared#^_</key>
8
- <dict>
9
- <key>orderHint</key>
10
- <integer>0</integer>
11
- </dict>
12
- </dict>
13
- </dict>
14
- </plist>