@circle-fin/w3s-pw-react-native-sdk 0.0.175

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 (42) hide show
  1. package/LICENSE.md +20 -0
  2. package/README.md +113 -0
  3. package/circlefin-programmablewallet-rn-sdk.podspec +40 -0
  4. package/lib/commonjs/NativeProgrammablewalletRnSdk.js +9 -0
  5. package/lib/commonjs/NativeProgrammablewalletRnSdk.js.map +1 -0
  6. package/lib/commonjs/ProgrammablewalletRnSdkModule.js +22 -0
  7. package/lib/commonjs/ProgrammablewalletRnSdkModule.js.map +1 -0
  8. package/lib/commonjs/WalletSdk.js +176 -0
  9. package/lib/commonjs/WalletSdk.js.map +1 -0
  10. package/lib/commonjs/index.js +74 -0
  11. package/lib/commonjs/index.js.map +1 -0
  12. package/lib/commonjs/tsconfig.build.json +109 -0
  13. package/lib/commonjs/types.js +258 -0
  14. package/lib/commonjs/types.js.map +1 -0
  15. package/lib/module/NativeProgrammablewalletRnSdk.js +3 -0
  16. package/lib/module/NativeProgrammablewalletRnSdk.js.map +1 -0
  17. package/lib/module/ProgrammablewalletRnSdkModule.js +16 -0
  18. package/lib/module/ProgrammablewalletRnSdkModule.js.map +1 -0
  19. package/lib/module/WalletSdk.js +169 -0
  20. package/lib/module/WalletSdk.js.map +1 -0
  21. package/lib/module/index.js +3 -0
  22. package/lib/module/index.js.map +1 -0
  23. package/lib/module/tsconfig.build.json +109 -0
  24. package/lib/module/types.js +249 -0
  25. package/lib/module/types.js.map +1 -0
  26. package/lib/typescript/src/NativeProgrammablewalletRnSdk.d.ts +26 -0
  27. package/lib/typescript/src/NativeProgrammablewalletRnSdk.d.ts.map +1 -0
  28. package/lib/typescript/src/ProgrammablewalletRnSdkModule.d.ts +3 -0
  29. package/lib/typescript/src/ProgrammablewalletRnSdkModule.d.ts.map +1 -0
  30. package/lib/typescript/src/WalletSdk.d.ts +3 -0
  31. package/lib/typescript/src/WalletSdk.d.ts.map +1 -0
  32. package/lib/typescript/src/index.d.ts +4 -0
  33. package/lib/typescript/src/index.d.ts.map +1 -0
  34. package/lib/typescript/src/types.d.ts +295 -0
  35. package/lib/typescript/src/types.d.ts.map +1 -0
  36. package/package.json +172 -0
  37. package/src/NativeProgrammablewalletRnSdk.ts +53 -0
  38. package/src/ProgrammablewalletRnSdkModule.ts +26 -0
  39. package/src/WalletSdk.ts +215 -0
  40. package/src/index.tsx +14 -0
  41. package/src/tsconfig.build.json +109 -0
  42. package/src/types.ts +367 -0
package/LICENSE.md ADDED
@@ -0,0 +1,20 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Circle
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ of this software and associated documentation files (the "Software"), to deal
6
+ in the Software without restriction, including without limitation the rights
7
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the Software is
9
+ furnished to do so, subject to the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in all
12
+ copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,113 @@
1
+ # @circle-fin/w3s-pw-react-native-sdk
2
+
3
+ React Native SDK for Circle Programmable Wallet
4
+ ## Install NVM
5
+
6
+ Install Node Version Manager to use different versions of node and npm easily.
7
+
8
+ ```bash
9
+ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
10
+ ```
11
+
12
+ > **Note:** See [nvm repo](https://github.com/nvm-sh/nvm) for the most updated instruction.
13
+
14
+ ## Authenticate the npm registry
15
+
16
+ Create a Personal Access Token in your [GitHub setting](https://github.com/settings/tokens). Use `Configure SSO` button next to your created token to authorize `circlefin` organization. More instruction can be found [here](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens). Then, log in to `npm` on your terminal.
17
+
18
+ ```bash
19
+ npm login --scope=@OWNER --registry=https://npm.pkg.github.com
20
+ ```
21
+ This will ask you to submit your GitHub personal access token as below.
22
+ Check below links for creating GitHub PAT:
23
+ - [Creating a fine-grained personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-fine-grained-personal-access-token)
24
+ - [Creating a personal access token (classic)](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-personal-access-token-classic)
25
+
26
+ ```properties
27
+ npm notice Log in on https://npm.pkg.github.com/
28
+ Username: <insert your GitHub username here>
29
+ Password: <insert your GitHub personal access token here>
30
+ ```
31
+ ## [Enable the New Architecture]((https://reactnative.dev/docs/new-architecture-app-intro#android---enable-the-new-architecture) )
32
+ The SDK is supporting both React Native old and [new architectures](https://reactnative.dev/docs/the-new-architecture/landing-page).
33
+ You can enable the new architecture by changing the project setting.
34
+ ### Android
35
+ Update the `android/gradle.properties` file as follows:
36
+ ```properties
37
+ newArchEnabled=true
38
+ ```
39
+ ### iOS
40
+ Reinstall your pods by running pod install with the right flag:
41
+ ```shell
42
+ RCT_NEW_ARCH_ENABLED=1 bundle exec pod install
43
+ ```
44
+ ## Installation
45
+ ### Using yarn
46
+ ```shell
47
+ yarn add @circle-fin/w3s-pw-react-native-sdk
48
+ ```
49
+ ### Using npm
50
+ ```shell
51
+ npm install @circle-fin/w3s-pw-react-native-sdk
52
+ ```
53
+ ## Link Native Dependencies
54
+ ### Android
55
+ Add the maven repository to your `android/build.gradle`. It's suggested that load settings from `local.properties`:
56
+ ```properties
57
+ repositories {
58
+ ...
59
+ maven {
60
+ Properties properties = new Properties()
61
+ // Load local.properties.
62
+ properties.load(new File(rootDir.absolutePath + "/local.properties").newDataInputStream())
63
+
64
+ url properties.getProperty('pwsdk.maven.url')
65
+ credentials {
66
+ username properties.getProperty('pwsdk.maven.username')
67
+ password properties.getProperty('pwsdk.maven.password')
68
+ }
69
+ }
70
+ }
71
+ ```
72
+ Add the maven setting values in `local.properties` file.
73
+ ```properties
74
+ pwsdk.maven.url=https://maven.pkg.github.com/circlefin/w3s-android-sdk
75
+ pwsdk.maven.username=<GITHUB_USERNAME>
76
+ # Fine-grained personal access tokens or classic with package write permission.
77
+ pwsdk.maven.password=<GITHUB_PAT>
78
+ ```
79
+ ### iOS
80
+ Add below links at tne top of `ios/Podfile`:
81
+ ```ruby
82
+ source 'https://github.com/circlefin/w3s-ios-sdk.git'
83
+ source 'https://cdn.cocoapods.org/'
84
+ ```
85
+ Declare static link as below:
86
+ ```ruby
87
+ target 'W3sSampleWallet' do
88
+ use_frameworks! :linkage => :static
89
+ end
90
+ ```
91
+ And add the following `post_install` hook:
92
+ ```ruby
93
+ post_install do |installer|
94
+ installer.pods_project.targets.each do |target|
95
+ target.build_configurations.each do |config|
96
+ config.build_settings["ONLY_ACTIVE_ARCH"] = "NO"
97
+ config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES'
98
+ end
99
+ installer.pods_project.build_configurations.each do |config|
100
+ config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
101
+ end
102
+ end
103
+ end
104
+ ```
105
+ ## Run the Example
106
+ ### Android
107
+ ```bash
108
+ yarn example android
109
+ ```
110
+ ### iOS
111
+ ```bash
112
+ yarn example ios
113
+ ```
@@ -0,0 +1,40 @@
1
+ require "json"
2
+
3
+ package = JSON.parse(File.read(File.join(__dir__, "package.json")))
4
+ folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
5
+
6
+ Pod::Spec.new do |s|
7
+ s.name = "circlefin-programmablewallet-rn-sdk"
8
+ s.version = package["version"]
9
+ s.summary = package["description"]
10
+ s.homepage = package["homepage"]
11
+ s.license = package["license"]
12
+ s.authors = package["author"]
13
+
14
+ s.platforms = { :ios => "11.0" }
15
+ s.source = { :git => package["repository"], :tag => "#{s.version}" }
16
+
17
+ s.source_files = "ios/**/*.{h,m,mm,swift}"
18
+ s.dependency 'CircleProgrammableWalletSDK', '1.0.12'
19
+ # Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
20
+ # See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
21
+ if respond_to?(:install_modules_dependencies, true)
22
+ install_modules_dependencies(s)
23
+ else
24
+ s.dependency "React-Core"
25
+ # Don't install the dependencies when we run `pod install` in the old architecture.
26
+ if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
27
+ s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
28
+ s.pod_target_xcconfig = {
29
+ "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
30
+ "OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
31
+ "CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
32
+ }
33
+ s.dependency "React-Codegen"
34
+ s.dependency "RCT-Folly"
35
+ s.dependency "RCTRequired"
36
+ s.dependency "RCTTypeSafety"
37
+ s.dependency "ReactCommon/turbomodule/core"
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _reactNative = require("react-native");
8
+ var _default = exports.default = _reactNative.TurboModuleRegistry.getEnforcing('ProgrammablewalletRnSdk');
9
+ //# sourceMappingURL=NativeProgrammablewalletRnSdk.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reactNative","require","_default","exports","default","TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../src","sources":["NativeProgrammablewalletRnSdk.ts"],"mappings":";;;;;;AACA,IAAAA,YAAA,GAAAC,OAAA;AAAkD,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAiDnCC,gCAAmB,CAACC,YAAY,CAC7C,yBACF,CAAC","ignoreList":[]}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _reactNative = require("react-native");
8
+ const LINKING_ERROR = `The package '@circle-fin/w3s-pw-react-native-sdk' doesn't seem to be linked. Make sure: \n\n` + _reactNative.Platform.select({
9
+ ios: '- You have run \'pod install\'\n',
10
+ default: ''
11
+ }) + '- You rebuilt the app after installing the package\n' + '- You are not using Expo Go\n';
12
+
13
+ // @ts-expect-error
14
+ const isTurboModuleEnabled = global.__turboModuleProxy != null;
15
+ const programmablewalletRnSdkModule = isTurboModuleEnabled ? require('./NativeProgrammablewalletRnSdk').default : _reactNative.NativeModules.ProgrammablewalletRnSdk;
16
+ const WalletSdkModule = programmablewalletRnSdkModule ? programmablewalletRnSdkModule : new Proxy({}, {
17
+ get() {
18
+ throw new Error(LINKING_ERROR);
19
+ }
20
+ });
21
+ var _default = exports.default = WalletSdkModule;
22
+ //# sourceMappingURL=ProgrammablewalletRnSdkModule.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reactNative","require","LINKING_ERROR","Platform","select","ios","default","isTurboModuleEnabled","global","__turboModuleProxy","programmablewalletRnSdkModule","NativeModules","ProgrammablewalletRnSdk","WalletSdkModule","Proxy","get","Error","_default","exports"],"sourceRoot":"../../src","sources":["ProgrammablewalletRnSdkModule.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA,MAAMC,aAAa,GAChB,8FAA6F,GAC9FC,qBAAQ,CAACC,MAAM,CAAC;EAAEC,GAAG,EAAE,kCAAkC;EAAEC,OAAO,EAAE;AAAG,CAAC,CAAC,GACzE,sDAAsD,GACtD,+BAA+B;;AAEjC;AACA,MAAMC,oBAAoB,GAAGC,MAAM,CAACC,kBAAkB,IAAI,IAAI;AAE9D,MAAMC,6BAA6B,GAAGH,oBAAoB,GACtDN,OAAO,CAAC,iCAAiC,CAAC,CAACK,OAAO,GAClDK,0BAAa,CAACC,uBAAuB;AAEzC,MAAMC,eAAe,GAAGH,6BAA6B,GACjDA,6BAA6B,GAC7B,IAAII,KAAK,CACT,CAAC,CAAC,EACF;EACEC,GAAGA,CAAA,EAAG;IACJ,MAAM,IAAIC,KAAK,CAACd,aAAa,CAAC;EAChC;AACF,CACF,CAAC;AAAA,IAAAe,QAAA,GAAAC,OAAA,CAAAZ,OAAA,GACYO,eAAe","ignoreList":[]}
@@ -0,0 +1,176 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.WalletSdk = void 0;
7
+ var _ProgrammablewalletRnSdkModule = _interopRequireDefault(require("./ProgrammablewalletRnSdkModule"));
8
+ var _reactNative = require("react-native");
9
+ var _package = _interopRequireDefault(require("../package.json"));
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
+ const {
12
+ ReactNativeEventEmitter
13
+ } = _reactNative.NativeModules;
14
+ if (!_ProgrammablewalletRnSdkModule.default) {
15
+ throw new Error(`NativeModule: ProgrammablewalletRnSdkModule is null.`);
16
+ }
17
+ const emitter = _reactNative.Platform.OS === 'ios' ? new _reactNative.NativeEventEmitter(ReactNativeEventEmitter) : _reactNative.DeviceEventEmitter;
18
+ const EVENT_NAME_ON_EVENT = 'CirclePwOnEvent';
19
+ const EVENT_NAME_ON_SUCCESS = 'CirclePwOnSuccess';
20
+ const EVENT_NAME_ON_ERROR = 'CirclePwOnError';
21
+ const WalletSdk = exports.WalletSdk = (() => {
22
+ const constants = _ProgrammablewalletRnSdkModule.default.getConstants();
23
+ return {
24
+ sdkVersion: {
25
+ native: constants.sdkVersion,
26
+ rn: _package.default.version
27
+ },
28
+ deviceId: _ProgrammablewalletRnSdkModule.default.getDeviceId() ?? constants.deviceId,
29
+ init(configuration) {
30
+ return _ProgrammablewalletRnSdkModule.default.initSdk(configuration);
31
+ },
32
+ setSecurityQuestions(securityQuestions) {
33
+ _ProgrammablewalletRnSdkModule.default.setSecurityQuestions(securityQuestions);
34
+ },
35
+ addListener(listener) {
36
+ emitter.addListener(EVENT_NAME_ON_EVENT, listener);
37
+ },
38
+ removeAllListeners() {
39
+ emitter.removeAllListeners(EVENT_NAME_ON_EVENT);
40
+ },
41
+ getDeviceId() {
42
+ return _ProgrammablewalletRnSdkModule.default.getDeviceId();
43
+ },
44
+ execute(userToken, encryptionKey, challengeIds, successCallback, errorCallback) {
45
+ emitter.addListener(EVENT_NAME_ON_SUCCESS, successCallback);
46
+ emitter.addListener(EVENT_NAME_ON_ERROR, errorCallback);
47
+ _ProgrammablewalletRnSdkModule.default.execute(userToken, encryptionKey, challengeIds).then(successResult => {
48
+ successCallback(successResult);
49
+ }).catch(e => {
50
+ errorCallback(e);
51
+ }).finally(() => {
52
+ emitter.removeAllListeners(EVENT_NAME_ON_SUCCESS);
53
+ emitter.removeAllListeners(EVENT_NAME_ON_ERROR);
54
+ });
55
+ },
56
+ executeWithUserSecret(userToken, encryptionKey, userSecret, challengeIds, successCallback, errorCallback) {
57
+ emitter.addListener(EVENT_NAME_ON_SUCCESS, successCallback);
58
+ emitter.addListener(EVENT_NAME_ON_ERROR, errorCallback);
59
+ _ProgrammablewalletRnSdkModule.default.executeWithUserSecret(userToken, encryptionKey, userSecret, challengeIds).then(successResult => {
60
+ successCallback(successResult);
61
+ }).catch(e => {
62
+ errorCallback(e);
63
+ }).finally(() => {
64
+ emitter.removeAllListeners(EVENT_NAME_ON_SUCCESS);
65
+ emitter.removeAllListeners(EVENT_NAME_ON_ERROR);
66
+ });
67
+ },
68
+ setBiometricsPin(userToken, encryptionKey, successCallback, errorCallback) {
69
+ emitter.addListener(EVENT_NAME_ON_SUCCESS, successCallback);
70
+ emitter.addListener(EVENT_NAME_ON_ERROR, errorCallback);
71
+ _ProgrammablewalletRnSdkModule.default.setBiometricsPin(userToken, encryptionKey).then(successResult => {
72
+ successCallback(successResult);
73
+ }).catch(e => {
74
+ errorCallback(e);
75
+ }).finally(() => {
76
+ emitter.removeAllListeners(EVENT_NAME_ON_SUCCESS);
77
+ emitter.removeAllListeners(EVENT_NAME_ON_ERROR);
78
+ });
79
+ },
80
+ setDismissOnCallbackMap(map) {
81
+ try {
82
+ _ProgrammablewalletRnSdkModule.default.setDismissOnCallbackMap(Object.fromEntries(map));
83
+ } catch (e) {
84
+ console.error(e);
85
+ }
86
+ },
87
+ moveTaskToFront() {
88
+ _ProgrammablewalletRnSdkModule.default.moveTaskToFront();
89
+ },
90
+ moveRnTaskToFront() {
91
+ _ProgrammablewalletRnSdkModule.default.moveRnTaskToFront();
92
+ },
93
+ setTextConfigsMap(map) {
94
+ try {
95
+ _ProgrammablewalletRnSdkModule.default.setTextConfigsMap(Object.fromEntries(map));
96
+ } catch (e) {
97
+ console.error(e);
98
+ }
99
+ },
100
+ setIconTextConfigsMap(rawMap) {
101
+ try {
102
+ const map = {};
103
+ for (const [key, configs] of rawMap) {
104
+ const newConfigs = [];
105
+ for (const config of configs) {
106
+ const url = getImageUrl(config.image);
107
+ newConfigs.push({
108
+ image: url,
109
+ textConfig: config.textConfig
110
+ });
111
+ }
112
+ // @ts-ignore
113
+ map[key] = newConfigs;
114
+ }
115
+ console.log('IconTextConfigs_map:' + JSON.stringify(map));
116
+ _ProgrammablewalletRnSdkModule.default.setIconTextConfigsMap(map);
117
+ } catch (e) {
118
+ console.error(e);
119
+ }
120
+ },
121
+ setTextConfigMap(map) {
122
+ try {
123
+ _ProgrammablewalletRnSdkModule.default.setTextConfigMap(Object.fromEntries(map));
124
+ } catch (e) {
125
+ console.error(e);
126
+ }
127
+ },
128
+ setImageMap(rawMap) {
129
+ try {
130
+ const map = {};
131
+ for (const [key, value] of rawMap) {
132
+ // @ts-ignore
133
+ const url = getImageUrl(value);
134
+ if (url == null) {
135
+ continue;
136
+ }
137
+ // @ts-ignore
138
+ map[key] = url;
139
+ }
140
+ console.log('Image_map:' + JSON.stringify(map));
141
+ _ProgrammablewalletRnSdkModule.default.setImageMap(map);
142
+ } catch (e) {
143
+ console.error(e);
144
+ }
145
+ },
146
+ setDateFormat(format) {
147
+ _ProgrammablewalletRnSdkModule.default.setDateFormat(format);
148
+ },
149
+ setDebugging(debugging) {
150
+ _ProgrammablewalletRnSdkModule.default.setDebugging(debugging);
151
+ },
152
+ setCustomUserAgent(userAgent) {
153
+ _ProgrammablewalletRnSdkModule.default.setCustomUserAgent(userAgent);
154
+ },
155
+ setErrorStringMap(map) {
156
+ try {
157
+ _ProgrammablewalletRnSdkModule.default.setErrorStringMap(Object.fromEntries(map));
158
+ } catch (e) {
159
+ console.error(e);
160
+ }
161
+ }
162
+ };
163
+ })();
164
+ function getImageUrl(source) {
165
+ if (!source) {
166
+ return null;
167
+ }
168
+ // @ts-ignore
169
+ const resolved = _reactNative.Image.resolveAssetSource(source);
170
+ if (!resolved || !resolved.uri) {
171
+ return null;
172
+ }
173
+ // @ts-ignore
174
+ return resolved.uri;
175
+ }
176
+ //# sourceMappingURL=WalletSdk.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_ProgrammablewalletRnSdkModule","_interopRequireDefault","require","_reactNative","_package","obj","__esModule","default","ReactNativeEventEmitter","NativeModules","WalletSdkModule","Error","emitter","Platform","OS","NativeEventEmitter","DeviceEventEmitter","EVENT_NAME_ON_EVENT","EVENT_NAME_ON_SUCCESS","EVENT_NAME_ON_ERROR","WalletSdk","exports","constants","getConstants","sdkVersion","native","rn","packageJson","version","deviceId","getDeviceId","init","configuration","initSdk","setSecurityQuestions","securityQuestions","addListener","listener","removeAllListeners","execute","userToken","encryptionKey","challengeIds","successCallback","errorCallback","then","successResult","catch","e","finally","executeWithUserSecret","userSecret","setBiometricsPin","setDismissOnCallbackMap","map","Object","fromEntries","console","error","moveTaskToFront","moveRnTaskToFront","setTextConfigsMap","setIconTextConfigsMap","rawMap","key","configs","newConfigs","config","url","getImageUrl","image","push","textConfig","log","JSON","stringify","setTextConfigMap","setImageMap","value","setDateFormat","format","setDebugging","debugging","setCustomUserAgent","userAgent","setErrorStringMap","source","resolved","Image","resolveAssetSource","uri"],"sourceRoot":"../../src","sources":["WalletSdk.ts"],"mappings":";;;;;;AAAA,IAAAA,8BAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,YAAA,GAAAD,OAAA;AAwBA,IAAAE,QAAA,GAAAH,sBAAA,CAAAC,OAAA;AAAyC,SAAAD,uBAAAI,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAEzC,MAAM;EAAEG;AAAwB,CAAC,GAAGC,0BAAa;AAEjD,IAAI,CAACC,sCAAe,EAAE;EACpB,MAAM,IAAIC,KAAK,CAAE,sDAAqD,CAAC;AACzE;AACA,MAAMC,OAAO,GACXC,qBAAQ,CAACC,EAAE,KAAK,KAAK,GACjB,IAAIC,+BAAkB,CAACP,uBAAuB,CAAC,GAC/CQ,+BAAkB;AACxB,MAAMC,mBAAmB,GAAG,iBAAiB;AAC7C,MAAMC,qBAAqB,GAAG,mBAAmB;AACjD,MAAMC,mBAAmB,GAAG,iBAAiB;AACtC,MAAMC,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAG,CAAC,MAAkB;EAC1C,MAAME,SAAS,GAAGZ,sCAAe,CAACa,YAAY,CAAC,CAAC;EAChD,OAAO;IACLC,UAAU,EAAE;MACVC,MAAM,EAAEH,S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BAAiB,CAAC9B,MAAM,CAACC,WAAW,CAACF,GAAG,CAAC,CAAC;MAC5D,CAAC,CAAC,OAAON,CAAC,EAAE;QACVS,OAAO,CAACC,KAAK,CAACV,CAAC,CAAC;MAClB;IACF;EACF,CAAC;AACH,CAAC,EAAE,CAAC;AAEJ,SAASqB,WAAWA,CAACiB,MAA2B,EAAiB;EAC/D,IAAI,CAACA,MAAM,EAAE;IACX,OAAO,IAAI;EACb;EACA;EACA,MAAMC,QAAQ,GAAGC,kBAAK,CAACC,kBAAkB,CAACH,MAAM,CAAC;EACjD,IAAI,CAACC,QAAQ,IAAI,CAACA,QAAQ,CAACG,GAAG,EAAE;IAC9B,OAAO,IAAI;EACb;EACA;EACA,OAAOH,QAAQ,CAACG,GAAG;AACrB","ignoreList":[]}
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "DateFormat", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _types.DateFormat;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "ErrorCode", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _types.ErrorCode;
16
+ }
17
+ });
18
+ Object.defineProperty(exports, "IconTextConfig", {
19
+ enumerable: true,
20
+ get: function () {
21
+ return _types.IconTextConfig;
22
+ }
23
+ });
24
+ Object.defineProperty(exports, "IconTextsKey", {
25
+ enumerable: true,
26
+ get: function () {
27
+ return _types.IconTextsKey;
28
+ }
29
+ });
30
+ Object.defineProperty(exports, "ImageKey", {
31
+ enumerable: true,
32
+ get: function () {
33
+ return _types.ImageKey;
34
+ }
35
+ });
36
+ Object.defineProperty(exports, "InputType", {
37
+ enumerable: true,
38
+ get: function () {
39
+ return _types.InputType;
40
+ }
41
+ });
42
+ Object.defineProperty(exports, "SecurityQuestion", {
43
+ enumerable: true,
44
+ get: function () {
45
+ return _types.SecurityQuestion;
46
+ }
47
+ });
48
+ Object.defineProperty(exports, "TextConfig", {
49
+ enumerable: true,
50
+ get: function () {
51
+ return _types.TextConfig;
52
+ }
53
+ });
54
+ Object.defineProperty(exports, "TextKey", {
55
+ enumerable: true,
56
+ get: function () {
57
+ return _types.TextKey;
58
+ }
59
+ });
60
+ Object.defineProperty(exports, "TextsKey", {
61
+ enumerable: true,
62
+ get: function () {
63
+ return _types.TextsKey;
64
+ }
65
+ });
66
+ Object.defineProperty(exports, "WalletSdk", {
67
+ enumerable: true,
68
+ get: function () {
69
+ return _WalletSdk.WalletSdk;
70
+ }
71
+ });
72
+ var _WalletSdk = require("./WalletSdk");
73
+ var _types = require("./types");
74
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_WalletSdk","require","_types"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAD,OAAA","ignoreList":[]}
@@ -0,0 +1,109 @@
1
+ {
2
+ "compilerOptions": {
3
+ /* Visit https://aka.ms/tsconfig to read more about this file */
4
+
5
+ /* Projects */
6
+ // "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */
7
+ // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */
8
+ // "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */
9
+ // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */
10
+ // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */
11
+ // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
12
+
13
+ /* Language and Environment */
14
+ "target": "es2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
15
+ // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
16
+ // "jsx": "preserve", /* Specify what JSX code is generated. */
17
+ // "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */
18
+ // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
19
+ // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */
20
+ // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */
21
+ // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */
22
+ // "reactNamespace": "", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */
23
+ // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
24
+ // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
25
+ // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
26
+
27
+ /* Modules */
28
+ "module": "commonjs", /* Specify what module code is generated. */
29
+ // "rootDir": "./", /* Specify the root folder within your source files. */
30
+ // "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */
31
+ // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
32
+ // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
33
+ // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
34
+ // "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
35
+ // "types": [], /* Specify type package names to be included without being referenced in a source file. */
36
+ // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
37
+ // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
38
+ // "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */
39
+ // "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */
40
+ // "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */
41
+ // "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */
42
+ "resolveJsonModule": true, /* Enable importing .json files. */
43
+ // "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */
44
+ // "noResolve": true, /* Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project. */
45
+
46
+ /* JavaScript Support */
47
+ // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
48
+ // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
49
+ // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
50
+
51
+ /* Emit */
52
+ // "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
53
+ // "declarationMap": true, /* Create sourcemaps for d.ts files. */
54
+ // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
55
+ // "sourceMap": true, /* Create source map files for emitted JavaScript files. */
56
+ // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
57
+ // "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
58
+ // "outDir": "./", /* Specify an output folder for all emitted files. */
59
+ // "removeComments": true, /* Disable emitting comments. */
60
+ // "noEmit": true, /* Disable emitting files from a compilation. */
61
+ // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
62
+ // "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */
63
+ // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */
64
+ // "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */
65
+ // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
66
+ // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */
67
+ // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */
68
+ // "newLine": "crlf", /* Set the newline character for emitting files. */
69
+ // "stripInternal": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */
70
+ // "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */
71
+ // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */
72
+ // "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */
73
+ // "declarationDir": "./", /* Specify the output directory for generated declaration files. */
74
+ // "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */
75
+
76
+ /* Interop Constraints */
77
+ // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
78
+ // "verbatimModuleSyntax": true, /* Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting. */
79
+ // "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
80
+ "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
81
+ // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
82
+ "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
83
+
84
+ /* Type Checking */
85
+ "strict": true, /* Enable all strict type-checking options. */
86
+ // "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
87
+ // "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */
88
+ // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
89
+ // "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */
90
+ // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */
91
+ // "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */
92
+ // "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */
93
+ // "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
94
+ // "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */
95
+ // "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */
96
+ // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
97
+ // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
98
+ // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
99
+ // "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */
100
+ // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
101
+ // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */
102
+ // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
103
+ // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */
104
+
105
+ /* Completeness */
106
+ // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
107
+ "skipLibCheck": true /* Skip type checking all .d.ts files. */
108
+ }
109
+ }