react-native-plaid-link-sdk 10.13.1 → 10.13.2

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
@@ -145,6 +145,7 @@ You can also use the `usePlaidEmitter` hook in react functional components:
145
145
 
146
146
  | Plaid SDK Version | Min React Native Version | Android SDK | Android Min Version | Android Compile Version| iOS SDK | iOS Min Version | Status |
147
147
  |-------------------|--------------------------|-------------|---------------------|------------------------|---------|-----------------|-------------------------------|
148
+ | 10.13.2 | >= 0.66.0 | [3.14.3+] | 21 | 33 | >=4.7.8 | 11.0 | Active, supports Xcode 14 |
148
149
  | 10.13.1 | >= 0.66.0 | [3.14.3+] | 21 | 33 | >=4.7.2 | 11.0 | Active, supports Xcode 14 |
149
150
  | 10.13.0 | >= 0.66.0 | [3.14.3+] | 21 | 33 | >=4.7.2 | 11.0 | Active, supports Xcode 14 |
150
151
  | 10.12.0 | >= 0.66.0 | [3.14.3+] | 21 | 33 | >=4.7.1 | 11.0 | Active, supports Xcode 14 |
@@ -4,7 +4,7 @@
4
4
  <application>
5
5
  <meta-data
6
6
  android:name="com.plaid.link.react_native"
7
- android:value="10.13.1" />
7
+ android:value="10.13.2" />
8
8
  </application>
9
9
 
10
10
  </manifest>
@@ -0,0 +1,15 @@
1
+ import type { ViewProps } from 'react-native';
2
+ import { DirectEventHandler, UnsafeMixed } from 'react-native/Libraries/Types/CodegenTypes';
3
+ export interface NativeProps extends ViewProps {
4
+ token?: string;
5
+ iOSPresentationStyle?: string;
6
+ onEmbeddedEvent: DirectEventHandler<{
7
+ embeddedEventName: string;
8
+ eventName?: string;
9
+ error?: UnsafeMixed;
10
+ publicToken?: string;
11
+ metadata?: UnsafeMixed;
12
+ }>;
13
+ }
14
+ declare const _default: import("react-native/Libraries/Utilities/codegenNativeComponent").NativeComponentType<NativeProps>;
15
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
2
+ export default codegenNativeComponent('PLKEmbeddedView');
@@ -0,0 +1,13 @@
1
+ import { TurboModule } from 'react-native';
2
+ import { Double } from 'react-native/Libraries/Types/CodegenTypes';
3
+ import { UnsafeObject } from './fabricUtils';
4
+ import { LinkSuccess, LinkExit } from '../Types';
5
+ export interface Spec extends TurboModule {
6
+ create(token: string, noLoadingState: boolean, logLevel: string): void;
7
+ open(onSuccess: (result: UnsafeObject<LinkSuccess>) => void, onExit: (result: UnsafeObject<LinkExit>) => void): void;
8
+ startLinkActivityForResult(token: string, noLoadingState: boolean, logLevel: string, onSuccessCallback: (result: UnsafeObject<LinkSuccess>) => void, onExitCallback: (result: UnsafeObject<LinkExit>) => void): void;
9
+ addListener(eventName: string): void;
10
+ removeListeners(count: Double): void;
11
+ }
12
+ declare const _default: Spec | null;
13
+ export default _default;
@@ -0,0 +1,4 @@
1
+ // we use Object type because methods on the native side use NSDictionary and ReadableMap
2
+ // and we want to stay compatible with those
3
+ import { TurboModuleRegistry } from 'react-native';
4
+ export default TurboModuleRegistry.get('PlaidAndroid');
@@ -0,0 +1,13 @@
1
+ import { TurboModule } from 'react-native';
2
+ import { Int32 } from 'react-native/Libraries/Types/CodegenTypes';
3
+ import { UnsafeObject } from './fabricUtils';
4
+ import { LinkSuccess, LinkExit, LinkError } from '../Types';
5
+ export interface Spec extends TurboModule {
6
+ create(token: string, noLoadingState: boolean): void;
7
+ open(fullScreen: boolean, onSuccess: (result: UnsafeObject<LinkSuccess>) => void, onExit: (error: UnsafeObject<LinkError>, result: UnsafeObject<LinkExit>) => void): void;
8
+ dismiss(): void;
9
+ addListener(eventName: string): void;
10
+ removeListeners(count: Int32): void;
11
+ }
12
+ declare const _default: Spec | null;
13
+ export default _default;
@@ -0,0 +1,4 @@
1
+ // we use Object type because methods on the native side use NSDictionary and ReadableMap
2
+ // and we want to stay compatible with those
3
+ import { TurboModuleRegistry } from 'react-native';
4
+ export default TurboModuleRegistry.get('RNLinksdk');
@@ -0,0 +1 @@
1
+ export type UnsafeObject<T> = T;
@@ -0,0 +1 @@
1
+ export {};
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 @"10.13.1"; // SDK_VERSION
120
+ return @"10.13.2"; // SDK_VERSION
121
121
  }
122
122
 
123
123
  + (NSString*)objCBridgeVersion {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-plaid-link-sdk",
3
- "version": "10.13.1",
3
+ "version": "10.13.2",
4
4
  "description": "React Native Plaid Link SDK",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -16,5 +16,5 @@ Pod::Spec.new do |s|
16
16
  s.source_files = "ios/*.{h,m,swift}"
17
17
 
18
18
  s.dependency 'React-Core'
19
- s.dependency 'Plaid', '~> 4.7.2'
19
+ s.dependency 'Plaid', '~> 4.7.8'
20
20
  end