react-native-plaid-link-sdk 12.8.5 → 12.8.7

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 (79) hide show
  1. package/CHANGELOG.md +3369 -0
  2. package/README.md +4 -0
  3. package/android/build.gradle +1 -1
  4. package/android/src/main/AndroidManifest.xml +1 -1
  5. package/dist/src/Types.d.ts +1 -0
  6. package/dist/src/fabric/EmbeddedLinkViewNativeComponent.d.ts +2 -0
  7. package/ios/Frameworks/LinkKit.xcframework/Info.plist +44 -0
  8. package/ios/Frameworks/LinkKit.xcframework/ios-arm64/LinkKit.framework/Headers/LinkKit-Swift.h +364 -0
  9. package/ios/Frameworks/LinkKit.xcframework/ios-arm64/LinkKit.framework/Headers/LinkKit.h +25 -0
  10. package/ios/Frameworks/LinkKit.xcframework/ios-arm64/LinkKit.framework/Headers/PLKPlaid+PrivateInitializers.h +122 -0
  11. package/ios/Frameworks/LinkKit.xcframework/ios-arm64/LinkKit.framework/Headers/PLKPlaid.h +648 -0
  12. package/ios/Frameworks/LinkKit.xcframework/ios-arm64/LinkKit.framework/Info.plist +0 -0
  13. package/ios/Frameworks/LinkKit.xcframework/ios-arm64/LinkKit.framework/LinkKit +0 -0
  14. package/ios/Frameworks/LinkKit.xcframework/ios-arm64/LinkKit.framework/Modules/LinkKit.swiftmodule/arm64-apple-ios.abi.json +57717 -0
  15. package/ios/Frameworks/LinkKit.xcframework/ios-arm64/LinkKit.framework/Modules/LinkKit.swiftmodule/arm64-apple-ios.private.swiftinterface +724 -0
  16. package/ios/Frameworks/LinkKit.xcframework/ios-arm64/LinkKit.framework/Modules/LinkKit.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  17. package/ios/Frameworks/LinkKit.xcframework/ios-arm64/LinkKit.framework/Modules/LinkKit.swiftmodule/arm64-apple-ios.swiftinterface +724 -0
  18. package/ios/Frameworks/LinkKit.xcframework/ios-arm64/LinkKit.framework/Modules/LinkKit.swiftmodule/arm64-apple-ios.swiftmodule +0 -0
  19. package/ios/Frameworks/LinkKit.xcframework/ios-arm64/LinkKit.framework/Modules/module.modulemap +11 -0
  20. package/ios/Frameworks/LinkKit.xcframework/ios-arm64/LinkKit.framework/PrivacyInfo.xcprivacy +32 -0
  21. package/ios/Frameworks/LinkKit.xcframework/ios-arm64/LinkKit.framework/Threads_Threads.bundle/Assets.car +0 -0
  22. package/ios/Frameworks/LinkKit.xcframework/ios-arm64/LinkKit.framework/Threads_Threads.bundle/Info.plist +0 -0
  23. package/ios/Frameworks/LinkKit.xcframework/ios-arm64/LinkKit.framework/_CodeSignature/CodeResources +245 -0
  24. package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Headers/LinkKit-Swift.h +724 -0
  25. package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Headers/LinkKit.h +25 -0
  26. package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Headers/PLKPlaid+PrivateInitializers.h +122 -0
  27. package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Headers/PLKPlaid.h +648 -0
  28. package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Info.plist +0 -0
  29. package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/LinkKit +0 -0
  30. package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Modules/LinkKit.swiftmodule/arm64-apple-ios-simulator.abi.json +57717 -0
  31. package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Modules/LinkKit.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +724 -0
  32. package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Modules/LinkKit.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  33. package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Modules/LinkKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface +724 -0
  34. package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Modules/LinkKit.swiftmodule/arm64-apple-ios-simulator.swiftmodule +0 -0
  35. package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Modules/LinkKit.swiftmodule/x86_64-apple-ios-simulator.abi.json +57717 -0
  36. package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Modules/LinkKit.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +724 -0
  37. package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Modules/LinkKit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  38. package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Modules/LinkKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +724 -0
  39. package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Modules/LinkKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule +0 -0
  40. package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Modules/module.modulemap +11 -0
  41. package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/PrivacyInfo.xcprivacy +32 -0
  42. package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Threads_Threads.bundle/Assets.car +0 -0
  43. package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/Threads_Threads.bundle/Info.plist +0 -0
  44. package/ios/Frameworks/LinkKit.xcframework/ios-arm64_x86_64-simulator/LinkKit.framework/_CodeSignature/CodeResources +300 -0
  45. package/ios/RNLinksdk.mm +1 -1
  46. package/package.json +30 -4
  47. package/react-native-plaid-link-sdk.podspec +6 -2
  48. package/dist/EmbeddedLink/EmbeddedLinkView.d.ts +0 -13
  49. package/dist/EmbeddedLink/EmbeddedLinkView.js +0 -55
  50. package/dist/EmbeddedLink/EmbeddedLinkView.web.d.ts +0 -1
  51. package/dist/EmbeddedLink/EmbeddedLinkView.web.js +0 -1
  52. package/dist/EmbeddedLink/NativeEmbeddedLinkView.d.ts +0 -2
  53. package/dist/EmbeddedLink/NativeEmbeddedLinkView.js +0 -2
  54. package/dist/PlaidLink.d.ts +0 -27
  55. package/dist/PlaidLink.js +0 -124
  56. package/dist/Types.d.ts +0 -539
  57. package/dist/Types.js +0 -454
  58. package/dist/__tests__/Types.tests.d.ts +0 -1
  59. package/dist/__tests__/Types.tests.js +0 -14
  60. package/dist/build/PlaidEmbeddedSearchView.d.ts +0 -2
  61. package/dist/build/PlaidEmbeddedSearchView.js +0 -19
  62. package/dist/build/ReactNativePlaidLinkSdk.types.d.ts +0 -108
  63. package/dist/build/ReactNativePlaidLinkSdk.types.js +0 -470
  64. package/dist/build/ReactNativePlaidLinkSdkModule.d.ts +0 -2
  65. package/dist/build/ReactNativePlaidLinkSdkModule.js +0 -4
  66. package/dist/build/index.d.ts +0 -14
  67. package/dist/build/index.js +0 -104
  68. package/dist/fabric/EmbeddedLinkViewNativeComponent.d.ts +0 -15
  69. package/dist/fabric/EmbeddedLinkViewNativeComponent.js +0 -2
  70. package/dist/fabric/NativePlaidLinkModuleAndroid.d.ts +0 -14
  71. package/dist/fabric/NativePlaidLinkModuleAndroid.js +0 -4
  72. package/dist/fabric/NativePlaidLinkModuleiOS.d.ts +0 -15
  73. package/dist/fabric/NativePlaidLinkModuleiOS.js +0 -4
  74. package/dist/fabric/fabricUtils.d.ts +0 -1
  75. package/dist/fabric/fabricUtils.js +0 -1
  76. package/dist/index.d.ts +0 -4
  77. package/dist/index.js +0 -6
  78. package/dist/scripts/check-package-entrypoints.d.ts +0 -1
  79. package/dist/scripts/check-package-entrypoints.js +0 -61
@@ -1,4 +0,0 @@
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');
@@ -1,15 +0,0 @@
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, FinanceKitError } 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
- submit(phoneNumber: string | undefined): void;
10
- addListener(eventName: string): void;
11
- removeListeners(count: Int32): void;
12
- syncFinanceKit(token: string, requestAuthorizationIfNeeded: boolean, onSuccess: (success: void) => void, onError: (error: FinanceKitError) => void): void;
13
- }
14
- declare const _default: Spec | null;
15
- export default _default;
@@ -1,4 +0,0 @@
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');
@@ -1 +0,0 @@
1
- export type UnsafeObject<T> = T;
@@ -1 +0,0 @@
1
- export {};
package/dist/index.d.ts DELETED
@@ -1,4 +0,0 @@
1
- import { create, open, dismissLink, usePlaidEmitter, syncFinanceKit, submit } from './PlaidLink';
2
- export * from './Types';
3
- export { create, open, dismissLink, usePlaidEmitter, syncFinanceKit, submit, };
4
- export { EmbeddedLinkView } from './EmbeddedLink/EmbeddedLinkView';
package/dist/index.js DELETED
@@ -1,6 +0,0 @@
1
- // qwe clean this up...
2
- import { create, open, dismissLink, usePlaidEmitter, syncFinanceKit, submit, } from './PlaidLink';
3
- export * from './Types';
4
- export { create, open, dismissLink, usePlaidEmitter, syncFinanceKit, submit, };
5
- // Components
6
- export { EmbeddedLinkView } from './EmbeddedLink/EmbeddedLinkView';
@@ -1 +0,0 @@
1
- export {};
@@ -1,61 +0,0 @@
1
- "use strict";
2
- const { execFileSync } = require('child_process');
3
- const fs = require('fs');
4
- const os = require('os');
5
- const path = require('path');
6
- const root = path.resolve(__dirname, '..');
7
- const packageJsonPath = path.join(root, 'package.json');
8
- const packageJson = require(packageJsonPath);
9
- function fail(message) {
10
- console.error(`Package entrypoint check failed: ${message}`);
11
- process.exit(1);
12
- }
13
- function assertPackageFieldExists(fieldName) {
14
- const fieldValue = packageJson[fieldName];
15
- if (typeof fieldValue !== 'string' || fieldValue.length === 0) {
16
- fail(`package.json field "${fieldName}" must be a non-empty string.`);
17
- }
18
- const absolutePath = path.join(root, fieldValue);
19
- if (!fs.existsSync(absolutePath)) {
20
- fail(`package.json field "${fieldName}" points to a missing file: ${fieldValue}`);
21
- }
22
- return fieldValue;
23
- }
24
- const main = assertPackageFieldExists('main');
25
- const types = assertPackageFieldExists('types');
26
- try {
27
- const resolved = require.resolve(root);
28
- const expected = path.join(root, main);
29
- if (resolved !== expected) {
30
- fail(`require.resolve('.') resolved to ${path.relative(root, resolved)}, expected ${main}`);
31
- }
32
- }
33
- catch (error) {
34
- fail(`require.resolve('.') failed: ${error.message}`);
35
- }
36
- let packOutput;
37
- try {
38
- packOutput = execFileSync('npm', ['pack', '--dry-run', '--json'], {
39
- cwd: root,
40
- encoding: 'utf8',
41
- env: Object.assign(Object.assign({}, process.env), { npm_config_cache: path.join(os.tmpdir(), 'react-native-plaid-link-sdk-npm-cache') }),
42
- });
43
- }
44
- catch (error) {
45
- fail(`npm pack --dry-run --json failed:\n${error.stderr || error.message}`);
46
- }
47
- let packResult;
48
- try {
49
- packResult = JSON.parse(packOutput);
50
- }
51
- catch (error) {
52
- fail(`npm pack did not return valid JSON: ${error.message}`);
53
- }
54
- const packedFiles = (packResult[0] && packResult[0].files) || [];
55
- const files = new Set(packedFiles.map(file => file.path));
56
- for (const entrypoint of [main, types]) {
57
- if (!files.has(entrypoint)) {
58
- fail(`packed package does not include ${entrypoint}`);
59
- }
60
- }
61
- console.log(`Package entrypoints are valid: ${main}, ${types}`);