react-native-plaid-link-sdk 12.3.1 → 12.4.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/README.md CHANGED
@@ -202,11 +202,22 @@ Major SDK versions are released annually. SDK versions are supported for two yea
202
202
 
203
203
  While these older versions are expected to continue to work without disruption, Plaid will not provide assistance with unsupported SDK versions.
204
204
 
205
+ ## Migration guides
206
+
207
+ 11.x->12.x:
208
+ - Removed the `PlaidLink` component and `openLink` function, which were deprecated in version 11.6.0. If you are using this method of opening Link, replace it with the new process that uses `create` and then `open`. For sample code, see [Version 11.6](https://github.com/plaid/react-native-plaid-link-sdk?tab=readme-ov-file#version--1160) or the [Plaid React Native Link docs](https://plaid.com/docs/link/react-native).
209
+ - Also see [Version compatibility table](#version-compatibility) for required toolchain updates.
210
+ 9.x/10.x-> 11.x: See [React Native SDK 11 Migration Guide](https://github.com/plaid/react-native-plaid-link-sdk/blob/master/v11-migration-guide.md)
211
+
212
+ If migrating from older versions, see the [docs](https://plaid.com/docs/link/react-native/#migration-guides) for more information.
213
+
205
214
  ## Version compatibility
206
215
 
207
216
  | Plaid SDK Version | Min React Native Version | Android SDK | Android Min Version | Android Compile Version| iOS SDK | iOS Min Version | Status |
208
217
  |-------------------|--------------------------|-------------|---------------------|------------------------|---------|-----------------|-------------------------------|
209
- | 12.3.1 | * | [5.2.0+] | 21 | 34 | >=6.3.1 | 14.0 | Active, supports Xcode 16.1.0 |
218
+ | 12.4.0 | * | [5.3.0+] | 21 | 34 | >=6.4.0 | 14.0 | Active, supports Xcode 16.1.0 |
219
+ | 12.3.2 | * | [5.2.0+] | 21 | 34 | >=6.3.2 | 14.0 | Active, supports Xcode 16.1.0 |
220
+ | 12.3.1 | * | [5.2.0+] | 21 | 34 | >=6.3.1 | 14.0 | **Deprecated** |
210
221
  | 12.3.0 | * | [5.2.0+] | 21 | 34 | >=6.3.0 | 14.0 | Active, supports Xcode 16.1.0 |
211
222
  | 12.2.1 | * | [5.1.1+] | 21 | 34 | >=6.2.1 | 14.0 | Active, supports Xcode 16.1.0 |
212
223
  | 12.2.0 | * | [5.1.1+] | 21 | 34 | >=6.2.1 | 14.0 | Active, supports Xcode 16.1.0 |
@@ -106,6 +106,6 @@ repositories {
106
106
 
107
107
  dependencies {
108
108
  implementation "com.facebook.react:react-native:+"
109
- implementation "com.plaid.link:sdk-core:5.2.0"
109
+ implementation "com.plaid.link:sdk-core:5.3.0"
110
110
  implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
111
111
  }
@@ -4,7 +4,7 @@
4
4
  <application>
5
5
  <meta-data
6
6
  android:name="com.plaid.link.react_native"
7
- android:value="12.3.1" />
7
+ android:value="12.4.0" />
8
8
  </application>
9
9
 
10
10
  </manifest>
@@ -83,9 +83,12 @@ class PlaidModule internal constructor(reactContext: ReactApplicationContext) :
83
83
  }
84
84
 
85
85
  @ReactMethod
86
- override fun submit(phoneNumber: String?) {
86
+ override fun submit(phoneNumber: String?, dateOfBirth: String?) {
87
87
  if (plaidHandler != null) {
88
- val submissionData = SubmissionData(phoneNumber = phoneNumber)
88
+ val submissionData = SubmissionData(
89
+ phoneNumber = phoneNumber,
90
+ dateOfBirth = dateOfBirth
91
+ )
89
92
  plaidHandler?.submit(submissionData)
90
93
  }
91
94
  }
@@ -51,7 +51,7 @@ public abstract class NativePlaidLinkModuleAndroidSpec extends ReactContextBaseJ
51
51
 
52
52
  @ReactMethod
53
53
  @DoNotStrip
54
- public abstract void submit(String phoneNumber);
54
+ public abstract void submit(String phoneNumber, String dateOfBirth);
55
55
 
56
56
  @ReactMethod
57
57
  @DoNotStrip
package/dist/PlaidLink.js CHANGED
@@ -95,10 +95,10 @@ export const dismissLink = () => {
95
95
  };
96
96
  export const submit = (data) => {
97
97
  if (Platform.OS === 'android') {
98
- RNLinksdkAndroid === null || RNLinksdkAndroid === void 0 ? void 0 : RNLinksdkAndroid.submit(data.phoneNumber);
98
+ RNLinksdkAndroid === null || RNLinksdkAndroid === void 0 ? void 0 : RNLinksdkAndroid.submit(data.phoneNumber, data.dateOfBirth);
99
99
  }
100
100
  else {
101
- RNLinksdkiOS === null || RNLinksdkiOS === void 0 ? void 0 : RNLinksdkiOS.submit(data.phoneNumber);
101
+ RNLinksdkiOS === null || RNLinksdkiOS === void 0 ? void 0 : RNLinksdkiOS.submit(data.phoneNumber, data.dateOfBirth);
102
102
  }
103
103
  };
104
104
  /**
package/dist/Types.d.ts CHANGED
@@ -381,8 +381,12 @@ export interface LinkEventMetadata {
381
381
  institutionSearchQuery?: string;
382
382
  isUpdateMode?: string;
383
383
  matchReason?: string;
384
+ issueId?: string;
385
+ issueDescription?: string;
386
+ issueDetectedAt?: string;
384
387
  selection?: null | string;
385
388
  timestamp: string;
389
+ metadata_json: string;
386
390
  }
387
391
  export declare enum LinkEventName {
388
392
  AUTO_SELECT_SAVED_INSTITUTION = "AUTO_SELECT_SAVED_INSTITUTION",
@@ -409,6 +413,7 @@ export declare enum LinkEventName {
409
413
  IDENTITY_VERIFICATION_RESUME_UI = "IDENTITY_VERIFICATION_RESUME_UI",
410
414
  IDENTITY_VERIFICATION_START_STEP = "IDENTITY_VERIFICATION_START_STEP",
411
415
  ISSUE_FOLLOWED = "ISSUE_FOLLOWED",
416
+ LAYER_AUTOFILL_NOT_AVAILABLE = "LAYER_AUTOFILL_NOT_AVAILABLE",
412
417
  LAYER_NOT_AVAILABLE = "LAYER_NOT_AVAILABLE",
413
418
  LAYER_READY = "LAYER_READY",
414
419
  MATCHED_CONSENT = "MATCHED_CONSENT",
@@ -542,5 +547,6 @@ interface UnknownError {
542
547
  export type FinanceKitError = InvalidTokenError | PermissionError | LinkApiError | PermissionAccessError | UnknownError;
543
548
  export interface SubmissionData {
544
549
  phoneNumber?: string;
550
+ dateOfBirth?: string;
545
551
  }
546
552
  export {};
package/dist/Types.js CHANGED
@@ -361,6 +361,7 @@ export var LinkEventName;
361
361
  LinkEventName["IDENTITY_VERIFICATION_RESUME_UI"] = "IDENTITY_VERIFICATION_RESUME_UI";
362
362
  LinkEventName["IDENTITY_VERIFICATION_START_STEP"] = "IDENTITY_VERIFICATION_START_STEP";
363
363
  LinkEventName["ISSUE_FOLLOWED"] = "ISSUE_FOLLOWED";
364
+ LinkEventName["LAYER_AUTOFILL_NOT_AVAILABLE"] = "LAYER_AUTOFILL_NOT_AVAILABLE";
364
365
  LinkEventName["LAYER_NOT_AVAILABLE"] = "LAYER_NOT_AVAILABLE";
365
366
  LinkEventName["LAYER_READY"] = "LAYER_READY";
366
367
  LinkEventName["MATCHED_CONSENT"] = "MATCHED_CONSENT";
@@ -7,7 +7,7 @@ export interface Spec extends TurboModule {
7
7
  open(onSuccess: (result: UnsafeObject<LinkSuccess>) => void, onExit: (result: UnsafeObject<LinkExit>) => void): void;
8
8
  destroy(): Promise<void>;
9
9
  startLinkActivityForResult(token: string, noLoadingState: boolean, logLevel: string, onSuccessCallback: (result: UnsafeObject<LinkSuccess>) => void, onExitCallback: (result: UnsafeObject<LinkExit>) => void): void;
10
- submit(phoneNumber: string | undefined): void;
10
+ submit(phoneNumber: string | undefined, dateOfBirth: string | undefined): void;
11
11
  addListener(eventName: string): void;
12
12
  removeListeners(count: Double): void;
13
13
  }
@@ -6,7 +6,7 @@ export interface Spec extends TurboModule {
6
6
  create(token: string, noLoadingState: boolean): void;
7
7
  open(fullScreen: boolean, onSuccess: (result: UnsafeObject<LinkSuccess>) => void, onExit: (error: UnsafeObject<LinkError>, result: UnsafeObject<LinkExit>) => void): void;
8
8
  dismiss(): void;
9
- submit(phoneNumber: string | undefined): void;
9
+ submit(phoneNumber: string | undefined, dateOfBirth: string | undefined): void;
10
10
  addListener(eventName: string): void;
11
11
  removeListeners(count: Int32): void;
12
12
  syncFinanceKit(token: string, requestAuthorizationIfNeeded: boolean, simulatedBehavior: boolean, onSuccess: (success: boolean) => void, onError: (error: UnsafeObject<FinanceKitError>) => void): void;
package/dist/index.js CHANGED
@@ -1,4 +1,3 @@
1
- // qwe clean this up...
2
1
  import { create, open, destroy, dismissLink, usePlaidEmitter, syncFinanceKit, submit, } from './PlaidLink';
3
2
  export * from './Types';
4
3
  export { create, open, destroy, dismissLink, usePlaidEmitter, syncFinanceKit, submit, };
package/ios/RNLinksdk.mm CHANGED
@@ -28,7 +28,7 @@ static NSString* const kRNLinkKitVersionConstant = @"version";
28
28
  RCT_EXPORT_MODULE();
29
29
 
30
30
  + (NSString*)sdkVersion {
31
- return @"12.3.1"; // SDK_VERSION
31
+ return @"12.4.0"; // SDK_VERSION
32
32
  }
33
33
 
34
34
  + (NSString*)objCBridgeVersion {
@@ -205,11 +205,12 @@ RCT_EXPORT_METHOD(syncFinanceKit:(NSString *)token
205
205
  ];
206
206
  }
207
207
 
208
- RCT_EXPORT_METHOD(submit:(NSString * _Nullable)phoneNumber) {
208
+ RCT_EXPORT_METHOD(submit:(NSString * _Nullable)phoneNumber dateOfBirth:(NSString * _Nullable)dateOfBirth) {
209
209
  if (self.linkHandler) {
210
210
  PLKSubmissionData *submissionData = [[PLKSubmissionData alloc] init];
211
211
  submissionData.phoneNumber = phoneNumber;
212
- [self.linkHandler submit: submissionData];
212
+ submissionData.dateOfBirth = dateOfBirth;
213
+ [self.linkHandler submit:submissionData];
213
214
  }
214
215
  }
215
216
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-plaid-link-sdk",
3
- "version": "12.3.1",
3
+ "version": "12.4.0",
4
4
  "description": "React Native Plaid Link SDK",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -35,5 +35,5 @@ Pod::Spec.new do |s|
35
35
  end
36
36
 
37
37
  s.dependency 'React-Core'
38
- s.dependency 'Plaid', '~> 6.3.1'
38
+ s.dependency 'Plaid', '~> 6.4.0'
39
39
  end
package/src/PlaidLink.tsx CHANGED
@@ -115,9 +115,9 @@ export const dismissLink = () => {
115
115
 
116
116
  export const submit = (data: SubmissionData): void => {
117
117
  if (Platform.OS === 'android') {
118
- RNLinksdkAndroid?.submit(data.phoneNumber);
118
+ RNLinksdkAndroid?.submit(data.phoneNumber, data.dateOfBirth);
119
119
  } else {
120
- RNLinksdkiOS?.submit(data.phoneNumber);
120
+ RNLinksdkiOS?.submit(data.phoneNumber, data.dateOfBirth);
121
121
  }
122
122
  };
123
123
 
package/src/Types.ts CHANGED
@@ -432,9 +432,13 @@ export interface LinkEventMetadata {
432
432
  institutionSearchQuery?: string;
433
433
  isUpdateMode?: string;
434
434
  matchReason?: string;
435
+ issueId?: string;
436
+ issueDescription?: string;
437
+ issueDetectedAt?: string;
435
438
  // see possible values for selection at https://plaid.com/docs/link/web/#link-web-onevent-selection
436
439
  selection?: null | string;
437
440
  timestamp: string;
441
+ metadata_json: string;
438
442
  }
439
443
 
440
444
  export enum LinkEventName {
@@ -462,6 +466,7 @@ export enum LinkEventName {
462
466
  IDENTITY_VERIFICATION_RESUME_UI = 'IDENTITY_VERIFICATION_RESUME_UI',
463
467
  IDENTITY_VERIFICATION_START_STEP = 'IDENTITY_VERIFICATION_START_STEP',
464
468
  ISSUE_FOLLOWED = 'ISSUE_FOLLOWED',
469
+ LAYER_AUTOFILL_NOT_AVAILABLE = "LAYER_AUTOFILL_NOT_AVAILABLE",
465
470
  LAYER_NOT_AVAILABLE = 'LAYER_NOT_AVAILABLE',
466
471
  LAYER_READY = 'LAYER_READY',
467
472
  MATCHED_CONSENT = 'MATCHED_CONSENT',
@@ -619,5 +624,6 @@ export type FinanceKitError =
619
624
 
620
625
  export interface SubmissionData {
621
626
  phoneNumber?: string;
627
+ dateOfBirth?: string;
622
628
  };
623
629
 
@@ -19,7 +19,10 @@ export interface Spec extends TurboModule {
19
19
  onSuccessCallback: (result: UnsafeObject<LinkSuccess>) => void,
20
20
  onExitCallback: (result: UnsafeObject<LinkExit>) => void
21
21
  ): void;
22
- submit(phoneNumber: string | undefined): void;
22
+ submit(
23
+ phoneNumber: string | undefined,
24
+ dateOfBirth: string | undefined
25
+ ): void;
23
26
  // those two are here for event emitter methods
24
27
  addListener(eventName: string): void;
25
28
  removeListeners(count: Double): void;
@@ -13,7 +13,10 @@ export interface Spec extends TurboModule {
13
13
  onExit: (error: UnsafeObject<LinkError>, result: UnsafeObject<LinkExit>) => void,
14
14
  ): void;
15
15
  dismiss(): void;
16
- submit(phoneNumber: string | undefined): void;
16
+ submit(
17
+ phoneNumber: string | undefined,
18
+ dateOfBirth: string | undefined
19
+ ): void;
17
20
  // those two are here for event emitter methods
18
21
  addListener(eventName: string): void;
19
22
  removeListeners(count: Int32): void;
package/src/index.ts CHANGED
@@ -1,4 +1,3 @@
1
- // qwe clean this up...
2
1
  import {
3
2
  create,
4
3
  open,