@qore-id/react-native-qoreid-sdk 1.1.4 → 1.2.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/LICENSE +1 -1
- package/README.md +1 -1
- package/android/build.gradle +69 -63
- package/android/gradle.properties +5 -9
- package/android/src/main/AndroidManifest.xml +1 -1
- package/android/src/main/java/com/qoreidsdk/QoreidSdkModule.kt +169 -137
- package/android/src/main/java/com/qoreidsdk/QoreidSdkPackage.kt +1 -4
- package/ios/QoreidSdk.m +4 -13
- package/ios/QoreidSdk.swift +30 -23
- package/lib/commonjs/index.js +2 -2
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/qoreIdSdk.js +32 -6
- package/lib/commonjs/qoreIdSdk.js.map +1 -1
- package/lib/commonjs/types.d.js.map +1 -1
- package/lib/commonjs/utils.js.map +1 -1
- package/lib/module/index.js +4 -2
- package/lib/module/index.js.map +1 -1
- package/lib/module/qoreIdSdk.js +33 -6
- package/lib/module/qoreIdSdk.js.map +1 -1
- package/lib/module/types.d.js +1 -1
- package/lib/module/types.d.js.map +1 -1
- package/lib/module/utils.js +2 -0
- package/lib/module/utils.js.map +1 -1
- package/lib/typescript/src/index.d.ts +4 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/{qoreIdSdk.d.ts → src/qoreIdSdk.d.ts} +6 -1
- package/lib/typescript/src/qoreIdSdk.d.ts.map +1 -0
- package/lib/typescript/src/utils.d.ts.map +1 -0
- package/package.json +64 -42
- package/qore-id-react-native-qoreid-sdk.podspec +23 -16
- package/src/index.tsx +1 -0
- package/src/qoreIdSdk.tsx +40 -5
- package/src/types.d.ts +22 -3
- package/android/src/main/java/com/qoreidsdk/QoreIdJSData.kt +0 -50
- package/ios/QoreidSdk.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -4
- package/ios/QoreidSdk.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
- package/ios/QoreidSdk.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +0 -5
- package/ios/QoreidSdk.xcodeproj/project.xcworkspace/xcuserdata/e.ugwuoke.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/QoreidSdk.xcodeproj/project.xcworkspace/xcuserdata/e.ugwuoke.xcuserdatad/WorkspaceSettings.xcsettings +0 -14
- package/ios/QoreidSdk.xcodeproj/xcuserdata/e.ugwuoke.xcuserdatad/xcschemes/xcschememanagement.plist +0 -14
- package/lib/typescript/index.d.ts +0 -3
- package/lib/typescript/index.d.ts.map +0 -1
- package/lib/typescript/qoreIdSdk.d.ts.map +0 -1
- package/lib/typescript/utils.d.ts.map +0 -1
- /package/lib/typescript/{utils.d.ts → src/utils.d.ts} +0 -0
package/ios/QoreidSdk.swift
CHANGED
|
@@ -14,15 +14,15 @@ import QoreIDSDK
|
|
|
14
14
|
|
|
15
15
|
@objc(QoreidSdk)
|
|
16
16
|
class QoreidSdk: RCTEventEmitter {
|
|
17
|
-
|
|
17
|
+
|
|
18
18
|
@objc func launchQoreidSdk(_ data: NSDictionary) -> Void {
|
|
19
19
|
let config = data["config"] as? NSDictionary
|
|
20
20
|
let _applicant = data["applicantData"] as? NSDictionary
|
|
21
21
|
let _identity = data["identityData"] as? NSDictionary
|
|
22
22
|
let _address = data["addressData"] as? NSDictionary
|
|
23
23
|
let ocrs = data["acceptedDocuments"] as? NSArray
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
let _extraData = data["extraData"] as? NSDictionary
|
|
25
|
+
|
|
26
26
|
let applicant = ApplicantData(
|
|
27
27
|
firstname:_applicant?["firstName"] as? String,
|
|
28
28
|
lastname:_applicant?["lastName"] as? String,
|
|
@@ -31,7 +31,7 @@ class QoreidSdk: RCTEventEmitter {
|
|
|
31
31
|
dob: _applicant?["dob"] as? String,
|
|
32
32
|
email: _applicant?["email"] as? String
|
|
33
33
|
)
|
|
34
|
-
|
|
34
|
+
|
|
35
35
|
let addressData = AddressData(
|
|
36
36
|
address: _address?["address"] as? String,
|
|
37
37
|
city: _address?["city"] as? String,
|
|
@@ -41,19 +41,26 @@ class QoreidSdk: RCTEventEmitter {
|
|
|
41
41
|
subCounty: _address?["region"] as? String,
|
|
42
42
|
ccc: _address?["ccc"] as? String ?? ""
|
|
43
43
|
)
|
|
44
|
-
|
|
44
|
+
|
|
45
45
|
let identityData = IdentityData(
|
|
46
46
|
idType: _identity?["idType"] as? String,
|
|
47
47
|
idNumber: _identity?["idNumber"] as? String
|
|
48
48
|
)
|
|
49
|
-
|
|
49
|
+
|
|
50
|
+
let extraData = VerificationExtraData(
|
|
51
|
+
organisationId: _extraData?["organisationId"] as? String,
|
|
52
|
+
organisationName: _extraData?["organisationName"] as? String,
|
|
53
|
+
requestSource: _extraData?["requestSource"] as? String,
|
|
54
|
+
internalReferenceId: _extraData?["internalReferenceId"] as? String
|
|
55
|
+
)
|
|
56
|
+
|
|
50
57
|
var param:QoreIDParam?
|
|
51
|
-
|
|
58
|
+
|
|
52
59
|
if (config!["flowId"] as! Int != 0) {
|
|
53
60
|
param = QoreIDParam()
|
|
54
61
|
.clientId(clientId: config?["clientId"] as? String)
|
|
55
62
|
.customerReference(config?["customerReference"] as? String)
|
|
56
|
-
.inputData(InputData(applicant: applicant,address: addressData, identity: identityData))
|
|
63
|
+
.inputData(InputData(applicant: applicant,address: addressData, identity: identityData, extraData: extraData))
|
|
57
64
|
.ocrAcceptedDocuments(ocrs as? Array<String>)
|
|
58
65
|
.workFlow(config!["flowId"] as! Int)
|
|
59
66
|
.workFlowRequiredIdentity(config?["defaultIdType"] as? String ?? "")
|
|
@@ -62,12 +69,12 @@ class QoreidSdk: RCTEventEmitter {
|
|
|
62
69
|
param = QoreIDParam()
|
|
63
70
|
.clientId(clientId: config?["clientId"] as? String)
|
|
64
71
|
.customerReference(config?["customerReference"] as? String)
|
|
65
|
-
.inputData(InputData(applicant: applicant,address: addressData, identity: identityData))
|
|
72
|
+
.inputData(InputData(applicant: applicant,address: addressData, identity: identityData, extraData: extraData))
|
|
66
73
|
.ocrAcceptedDocuments(ocrs as? Array<String>)
|
|
67
74
|
.collection((config?["productCode"] as? String)!)
|
|
68
75
|
.build()
|
|
69
76
|
}
|
|
70
|
-
|
|
77
|
+
|
|
71
78
|
if let params = param {
|
|
72
79
|
DispatchQueue.main.async {
|
|
73
80
|
let vc = ViewController()
|
|
@@ -79,7 +86,7 @@ class QoreidSdk: RCTEventEmitter {
|
|
|
79
86
|
}
|
|
80
87
|
}
|
|
81
88
|
}
|
|
82
|
-
|
|
89
|
+
|
|
83
90
|
func onQoreIdResultReceived(result: QoreIDResult?) {
|
|
84
91
|
if let result = result {
|
|
85
92
|
if let errorResult = result as? ErrorResult {
|
|
@@ -91,45 +98,45 @@ class QoreidSdk: RCTEventEmitter {
|
|
|
91
98
|
} else if let pendingResult = result as? PendingResult {
|
|
92
99
|
self.sendEvent(withName: "onResult", body:["data": pendingResult.data?.verification?.id! ?? 0, "message": pendingResult.message!, "event": "SESSION_RESULT"])
|
|
93
100
|
}
|
|
94
|
-
}
|
|
101
|
+
}
|
|
95
102
|
}
|
|
96
103
|
|
|
97
104
|
func parseData(_ resultData: QoreIDSDK.ResultData?) -> [String: Any] {
|
|
98
105
|
var data: [String: Any] = [:]
|
|
99
|
-
|
|
106
|
+
|
|
100
107
|
if let resultData = resultData {
|
|
101
108
|
data["customerReference"] = resultData.customerReference ?? ""
|
|
102
|
-
|
|
109
|
+
|
|
103
110
|
data["flowId"] = String(resultData.flowId ?? 0)
|
|
104
|
-
|
|
111
|
+
|
|
105
112
|
var verificationData: [String: Any] = [:]
|
|
106
|
-
|
|
113
|
+
|
|
107
114
|
verificationData["id"] = resultData.verification?.id
|
|
108
|
-
|
|
115
|
+
|
|
109
116
|
verificationData["status"] = [
|
|
110
117
|
"status": resultData.verification?.status?.status ?? "",
|
|
111
118
|
"state": resultData.verification?.status?.state ?? ""
|
|
112
119
|
]
|
|
113
|
-
|
|
120
|
+
|
|
114
121
|
data["verification"] = verificationData
|
|
115
|
-
|
|
122
|
+
|
|
116
123
|
data["productCode"] = resultData.productCode
|
|
117
|
-
|
|
124
|
+
|
|
118
125
|
} else {
|
|
119
126
|
data = [:]
|
|
120
127
|
}
|
|
121
128
|
|
|
122
129
|
return data
|
|
123
130
|
}
|
|
124
|
-
|
|
131
|
+
|
|
125
132
|
override func supportedEvents() -> [String] {
|
|
126
133
|
return ["onResult"]
|
|
127
134
|
}
|
|
128
|
-
|
|
135
|
+
|
|
129
136
|
@objc override static func requiresMainQueueSetup() -> Bool {
|
|
130
137
|
return false
|
|
131
138
|
}
|
|
132
|
-
|
|
139
|
+
|
|
133
140
|
private func controller() -> UINavigationController {
|
|
134
141
|
let rootViewController = UIApplication.shared.keyWindow?.rootViewController
|
|
135
142
|
return rootViewController as! UINavigationController
|
package/lib/commonjs/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
var _utils = require("./utils");
|
|
6
|
+
var _utils = require("./utils.js");
|
|
7
7
|
Object.keys(_utils).forEach(function (key) {
|
|
8
8
|
if (key === "default" || key === "__esModule") return;
|
|
9
9
|
if (key in exports && exports[key] === _utils[key]) return;
|
|
@@ -14,7 +14,7 @@ Object.keys(_utils).forEach(function (key) {
|
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
});
|
|
17
|
-
var _qoreIdSdk = require("./qoreIdSdk");
|
|
17
|
+
var _qoreIdSdk = require("./qoreIdSdk.js");
|
|
18
18
|
Object.keys(_qoreIdSdk).forEach(function (key) {
|
|
19
19
|
if (key === "default" || key === "__esModule") return;
|
|
20
20
|
if (key in exports && exports[key] === _qoreIdSdk[key]) return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_utils","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_qoreIdSdk"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,MAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,MAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,MAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,UAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,UAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,UAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,UAAA,CAAAL,GAAA;IAAA;EAAA;AAAA"}
|
|
1
|
+
{"version":3,"names":["_utils","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_qoreIdSdk"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,MAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,MAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,MAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,UAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,UAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,UAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,UAAA,CAAAL,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -4,21 +4,33 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.QoreIdSdk = void 0;
|
|
7
|
+
exports.useQoreIdSdk = useQoreIdSdk;
|
|
7
8
|
var _reactNative = require("react-native");
|
|
9
|
+
var _react = require("react");
|
|
10
|
+
const LINKING_ERROR = `The package '@qoreid/react-native-qoreid-sdk' doesn't seem to be linked. Make sure: \n\n` + _reactNative.Platform.select({
|
|
11
|
+
ios: "- You have run 'pod install'\n",
|
|
12
|
+
default: ''
|
|
13
|
+
}) + '- You rebuilt the app after installing the package\n' + '- You are not using Expo Go\n';
|
|
14
|
+
const QoreidRNModule = _reactNative.NativeModules.QoreidSdk;
|
|
15
|
+
const ReactNativeQoreidSdkModule = QoreidRNModule ?? new Proxy({}, {
|
|
16
|
+
get() {
|
|
17
|
+
throw new Error(LINKING_ERROR);
|
|
18
|
+
}
|
|
19
|
+
});
|
|
8
20
|
const QoreIdSdk = exports.QoreIdSdk = {
|
|
9
21
|
/**
|
|
10
22
|
* lauches QoreID SDK
|
|
11
23
|
* @param initialData - data to launch Qore ID SDK
|
|
12
24
|
* @requires QoreIdSdk native module installed
|
|
13
25
|
*/
|
|
14
|
-
launch(initialData
|
|
26
|
+
launch(initialData) {
|
|
15
27
|
const payload = {
|
|
16
28
|
config: {
|
|
17
29
|
flowId: initialData.flowId || 0,
|
|
18
30
|
customerReference: initialData.customerReference,
|
|
19
31
|
productCode: initialData.productCode,
|
|
20
32
|
clientId: initialData.clientId,
|
|
21
|
-
defaultIdType:
|
|
33
|
+
defaultIdType: initialData?.defaultIdType ?? ''
|
|
22
34
|
},
|
|
23
35
|
applicantData: {
|
|
24
36
|
...initialData.applicantData
|
|
@@ -29,20 +41,34 @@ const QoreIdSdk = exports.QoreIdSdk = {
|
|
|
29
41
|
acceptedDocuments: initialData.ocrAcceptedDocuments,
|
|
30
42
|
identityData: {
|
|
31
43
|
...initialData.identityData
|
|
32
|
-
}
|
|
44
|
+
},
|
|
45
|
+
extraData: initialData.extraData
|
|
33
46
|
};
|
|
34
|
-
|
|
47
|
+
ReactNativeQoreidSdkModule.launchQoreidSdk(payload);
|
|
35
48
|
},
|
|
36
49
|
/**
|
|
37
50
|
* QoreIdSdk events listener. It takes callbacks to handle success and error events
|
|
38
51
|
* @param callback(data: OnResultType) Handles various events from QoreID SDK
|
|
39
52
|
*/
|
|
40
53
|
events(callback) {
|
|
41
|
-
const eventEmitter = _reactNative.Platform.OS === 'android' ? new _reactNative.NativeEventEmitter() : new _reactNative.NativeEventEmitter(
|
|
42
|
-
let eventListener = eventEmitter
|
|
54
|
+
const eventEmitter = _reactNative.Platform.OS === 'android' ? new _reactNative.NativeEventEmitter() : new _reactNative.NativeEventEmitter(ReactNativeQoreidSdkModule);
|
|
55
|
+
let eventListener = eventEmitter?.addListener('onResult', callback);
|
|
43
56
|
return () => {
|
|
44
57
|
eventListener.remove();
|
|
45
58
|
};
|
|
46
59
|
}
|
|
47
60
|
};
|
|
61
|
+
function useQoreIdSdk({
|
|
62
|
+
onResult
|
|
63
|
+
}) {
|
|
64
|
+
(0, _react.useEffect)(() => {
|
|
65
|
+
const unsubscribed = QoreIdSdk.events(onResult);
|
|
66
|
+
return () => {
|
|
67
|
+
unsubscribed();
|
|
68
|
+
};
|
|
69
|
+
}, [onResult]);
|
|
70
|
+
return {
|
|
71
|
+
launchQoreId: QoreIdSdk.launch
|
|
72
|
+
};
|
|
73
|
+
}
|
|
48
74
|
//# sourceMappingURL=qoreIdSdk.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","QoreIdSdk","exports","launch","initialData","
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_react","LINKING_ERROR","Platform","select","ios","default","QoreidRNModule","NativeModules","QoreidSdk","ReactNativeQoreidSdkModule","Proxy","get","Error","QoreIdSdk","exports","launch","initialData","payload","config","flowId","customerReference","productCode","clientId","defaultIdType","applicantData","addressData","acceptedDocuments","ocrAcceptedDocuments","identityData","extraData","launchQoreidSdk","events","callback","eventEmitter","OS","NativeEventEmitter","eventListener","addListener","remove","useQoreIdSdk","onResult","useEffect","unsubscribed","launchQoreId"],"sourceRoot":"../../src","sources":["qoreIdSdk.tsx"],"mappings":";;;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAD,OAAA;AAEA,MAAME,aAAa,GACjB,0FAA0F,GAC1FC,qBAAQ,CAACC,MAAM,CAAC;EAAEC,GAAG,EAAE,gCAAgC;EAAEC,OAAO,EAAE;AAAG,CAAC,CAAC,GACvE,sDAAsD,GACtD,+BAA+B;AAEjC,MAAMC,cAAc,GAAGC,0BAAa,CAACC,SAAS;AAE9C,MAAMC,0BAA0B,GAC9BH,cAAc,IACd,IAAII,KAAK,CACP,CAAC,CAAC,EACF;EACEC,GAAGA,CAAA,EAAG;IACJ,MAAM,IAAIC,KAAK,CAACX,aAAa,CAAC;EAChC;AACF,CACF,CAAC;AAEI,MAAMY,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAG;EACvB;AACF;AACA;AACA;AACA;EACEE,MAAMA,CAACC,WAAuB,EAAE;IAC9B,MAAMC,OAAO,GAAG;MACdC,MAAM,EAAE;QACNC,MAAM,EAAEH,WAAW,CAACG,MAAM,IAAI,CAAC;QAC/BC,iBAAiB,EAAEJ,WAAW,CAACI,iBAAiB;QAChDC,WAAW,EAAEL,WAAW,CAACK,WAAW;QACpCC,QAAQ,EAAEN,WAAW,CAACM,QAAQ;QAC9BC,aAAa,EAAEP,WAAW,EAAEO,aAAa,IAAI;MAC/C,CAAC;MACDC,aAAa,EAAE;QACb,GAAGR,WAAW,CAACQ;MACjB,CAAC;MACDC,WAAW,EAAE;QACX,GAAGT,WAAW,CAACS;MACjB,CAAC;MACDC,iBAAiB,EAAEV,WAAW,CAACW,oBAAoB;MACnDC,YAAY,EAAE;QAAE,GAAGZ,WAAW,CAACY;MAAa,CAAC;MAC7CC,SAAS,EAAEb,WAAW,CAACa;IACzB,CAAC;IACDpB,0BAA0B,CAACqB,eAAe,CAACb,OAAO,CAAC;EACrD,CAAC;EAED;AACF;AACA;AACA;EACEc,MAAMA,CAACC,QAAkC,EAAE;IACzC,MAAMC,YAAY,GAChB/B,qBAAQ,CAACgC,EAAE,KAAK,SAAS,GACrB,IAAIC,+BAAkB,CAAC,CAAC,GACxB,IAAIA,+BAAkB,CAAC1B,0BAA0B,CAAC;IACxD,IAAI2B,aAAa,GAAGH,YAAY,EAAEI,WAAW,CAAC,UAAU,EAAEL,QAAQ,CAAC;IAEnE,OAAO,MAAM;MACXI,aAAa,CAACE,MAAM,CAAC,CAAC;IACxB,CAAC;EACH;AACF,CAAC;AAEM,SAASC,YAAYA,CAAC;EAC3BC;AAGF,CAAC,EAAE;EACD,IAAAC,gBAAS,EAAC,MAAM;IACd,MAAMC,YAAY,GAAG7B,SAAS,CAACkB,MAAM,CAACS,QAAQ,CAAC;IAC/C,OAAO,MAAM;MACXE,YAAY,CAAC,CAAC;IAChB,CAAC;EACH,CAAC,EAAE,CAACF,QAAQ,CAAC,CAAC;EAEd,OAAO;IAAEG,YAAY,EAAE9B,SAAS,CAACE;EAAO,CAAC;AAC3C","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../src","sources":["types.d.ts"],"mappings":""}
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../src","sources":["types.d.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["acceptedDocuments","Nigeria","Ghana","Kenya","productCodes","utils","exports"],"sourceRoot":"../../src","sources":["utils.ts"],"mappings":";;;;;;AAAA,MAAMA,iBAAiB,GAAG;EACxBC,OAAO,EAAE,CACP,qBAAqB,EACrB,iBAAiB,EACjB,cAAc,EACd,cAAc,CACf;EACDC,KAAK,EAAE,CACL,qBAAqB,EACrB,eAAe,EACf,iBAAiB,EACjB,qBAAqB,EACrB,iBAAiB,EACjB,cAAc,EACd,gBAAgB,CACjB;EACDC,KAAK,EAAE,CACL,qBAAqB,EACrB,iBAAiB,EACjB,gBAAgB,EAChB,cAAc;AAElB,CAAC;AAED,MAAMC,YAAY,GAAG,CACnB,YAAY,EACZ,KAAK,EACL,kBAAkB,EAClB,WAAW,EACX,aAAa,EACb,WAAW,EACX,aAAa,EACb,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,YAAY,EACZ,WAAW,EACX,uBAAuB,EACvB,mCAAmC,EACnC,uBAAuB,EACvB,+BAA+B,EAC/B,+BAA+B,EAC/B,wBAAwB,EACxB,oBAAoB,EACpB,UAAU,EACV,qBAAqB,EACrB,uBAAuB,EACvB,UAAU,EACV,cAAc,EACd,0BAA0B,EAC1B,cAAc,EACd,cAAc,EACd,sBAAsB,EACtB,eAAe,EACf,KAAK,EACL,WAAW,EACX,OAAO,EACP,KAAK,EACL,aAAa,EACb,aAAa,EACb,UAAU,EACV,KAAK;AACL;AACA,UAAU,EACV,aAAa,EACb,KAAK,EACL,aAAa,CACd;AAEM,MAAMC,KAAK,GAAAC,OAAA,CAAAD,KAAA,GAAG;EACnBD,YAAY;EACZJ;AACF,CAAC"}
|
|
1
|
+
{"version":3,"names":["acceptedDocuments","Nigeria","Ghana","Kenya","productCodes","utils","exports"],"sourceRoot":"../../src","sources":["utils.ts"],"mappings":";;;;;;AAAA,MAAMA,iBAAiB,GAAG;EACxBC,OAAO,EAAE,CACP,qBAAqB,EACrB,iBAAiB,EACjB,cAAc,EACd,cAAc,CACf;EACDC,KAAK,EAAE,CACL,qBAAqB,EACrB,eAAe,EACf,iBAAiB,EACjB,qBAAqB,EACrB,iBAAiB,EACjB,cAAc,EACd,gBAAgB,CACjB;EACDC,KAAK,EAAE,CACL,qBAAqB,EACrB,iBAAiB,EACjB,gBAAgB,EAChB,cAAc;AAElB,CAAC;AAED,MAAMC,YAAY,GAAG,CACnB,YAAY,EACZ,KAAK,EACL,kBAAkB,EAClB,WAAW,EACX,aAAa,EACb,WAAW,EACX,aAAa,EACb,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,YAAY,EACZ,WAAW,EACX,uBAAuB,EACvB,mCAAmC,EACnC,uBAAuB,EACvB,+BAA+B,EAC/B,+BAA+B,EAC/B,wBAAwB,EACxB,oBAAoB,EACpB,UAAU,EACV,qBAAqB,EACrB,uBAAuB,EACvB,UAAU,EACV,cAAc,EACd,0BAA0B,EAC1B,cAAc,EACd,cAAc,EACd,sBAAsB,EACtB,eAAe,EACf,KAAK,EACL,WAAW,EACX,OAAO,EACP,KAAK,EACL,aAAa,EACb,aAAa,EACb,UAAU,EACV,KAAK;AACL;AACA,UAAU,EACV,aAAa,EACb,KAAK,EACL,aAAa,CACd;AAEM,MAAMC,KAAK,GAAAC,OAAA,CAAAD,KAAA,GAAG;EACnBD,YAAY;EACZJ;AACF,CAAC","ignoreList":[]}
|
package/lib/module/index.js
CHANGED
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA,cAAc,YAAS;AACvB,cAAc,gBAAa","ignoreList":[]}
|
package/lib/module/qoreIdSdk.js
CHANGED
|
@@ -1,18 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
1
3
|
import { NativeEventEmitter, NativeModules, Platform } from 'react-native';
|
|
4
|
+
import { useEffect } from 'react';
|
|
5
|
+
const LINKING_ERROR = `The package '@qoreid/react-native-qoreid-sdk' doesn't seem to be linked. Make sure: \n\n` + Platform.select({
|
|
6
|
+
ios: "- You have run 'pod install'\n",
|
|
7
|
+
default: ''
|
|
8
|
+
}) + '- You rebuilt the app after installing the package\n' + '- You are not using Expo Go\n';
|
|
9
|
+
const QoreidRNModule = NativeModules.QoreidSdk;
|
|
10
|
+
const ReactNativeQoreidSdkModule = QoreidRNModule ?? new Proxy({}, {
|
|
11
|
+
get() {
|
|
12
|
+
throw new Error(LINKING_ERROR);
|
|
13
|
+
}
|
|
14
|
+
});
|
|
2
15
|
export const QoreIdSdk = {
|
|
3
16
|
/**
|
|
4
17
|
* lauches QoreID SDK
|
|
5
18
|
* @param initialData - data to launch Qore ID SDK
|
|
6
19
|
* @requires QoreIdSdk native module installed
|
|
7
20
|
*/
|
|
8
|
-
launch(initialData
|
|
21
|
+
launch(initialData) {
|
|
9
22
|
const payload = {
|
|
10
23
|
config: {
|
|
11
24
|
flowId: initialData.flowId || 0,
|
|
12
25
|
customerReference: initialData.customerReference,
|
|
13
26
|
productCode: initialData.productCode,
|
|
14
27
|
clientId: initialData.clientId,
|
|
15
|
-
defaultIdType:
|
|
28
|
+
defaultIdType: initialData?.defaultIdType ?? ''
|
|
16
29
|
},
|
|
17
30
|
applicantData: {
|
|
18
31
|
...initialData.applicantData
|
|
@@ -23,20 +36,34 @@ export const QoreIdSdk = {
|
|
|
23
36
|
acceptedDocuments: initialData.ocrAcceptedDocuments,
|
|
24
37
|
identityData: {
|
|
25
38
|
...initialData.identityData
|
|
26
|
-
}
|
|
39
|
+
},
|
|
40
|
+
extraData: initialData.extraData
|
|
27
41
|
};
|
|
28
|
-
|
|
42
|
+
ReactNativeQoreidSdkModule.launchQoreidSdk(payload);
|
|
29
43
|
},
|
|
30
44
|
/**
|
|
31
45
|
* QoreIdSdk events listener. It takes callbacks to handle success and error events
|
|
32
46
|
* @param callback(data: OnResultType) Handles various events from QoreID SDK
|
|
33
47
|
*/
|
|
34
48
|
events(callback) {
|
|
35
|
-
const eventEmitter = Platform.OS === 'android' ? new NativeEventEmitter() : new NativeEventEmitter(
|
|
36
|
-
let eventListener = eventEmitter
|
|
49
|
+
const eventEmitter = Platform.OS === 'android' ? new NativeEventEmitter() : new NativeEventEmitter(ReactNativeQoreidSdkModule);
|
|
50
|
+
let eventListener = eventEmitter?.addListener('onResult', callback);
|
|
37
51
|
return () => {
|
|
38
52
|
eventListener.remove();
|
|
39
53
|
};
|
|
40
54
|
}
|
|
41
55
|
};
|
|
56
|
+
export function useQoreIdSdk({
|
|
57
|
+
onResult
|
|
58
|
+
}) {
|
|
59
|
+
useEffect(() => {
|
|
60
|
+
const unsubscribed = QoreIdSdk.events(onResult);
|
|
61
|
+
return () => {
|
|
62
|
+
unsubscribed();
|
|
63
|
+
};
|
|
64
|
+
}, [onResult]);
|
|
65
|
+
return {
|
|
66
|
+
launchQoreId: QoreIdSdk.launch
|
|
67
|
+
};
|
|
68
|
+
}
|
|
42
69
|
//# sourceMappingURL=qoreIdSdk.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["NativeEventEmitter","NativeModules","Platform","QoreIdSdk","launch","initialData","
|
|
1
|
+
{"version":3,"names":["NativeEventEmitter","NativeModules","Platform","useEffect","LINKING_ERROR","select","ios","default","QoreidRNModule","QoreidSdk","ReactNativeQoreidSdkModule","Proxy","get","Error","QoreIdSdk","launch","initialData","payload","config","flowId","customerReference","productCode","clientId","defaultIdType","applicantData","addressData","acceptedDocuments","ocrAcceptedDocuments","identityData","extraData","launchQoreidSdk","events","callback","eventEmitter","OS","eventListener","addListener","remove","useQoreIdSdk","onResult","unsubscribed","launchQoreId"],"sourceRoot":"../../src","sources":["qoreIdSdk.tsx"],"mappings":";;AAAA,SAASA,kBAAkB,EAAEC,aAAa,EAAEC,QAAQ,QAAQ,cAAc;AAE1E,SAASC,SAAS,QAAQ,OAAO;AAEjC,MAAMC,aAAa,GACjB,0FAA0F,GAC1FF,QAAQ,CAACG,MAAM,CAAC;EAAEC,GAAG,EAAE,gCAAgC;EAAEC,OAAO,EAAE;AAAG,CAAC,CAAC,GACvE,sDAAsD,GACtD,+BAA+B;AAEjC,MAAMC,cAAc,GAAGP,aAAa,CAACQ,SAAS;AAE9C,MAAMC,0BAA0B,GAC9BF,cAAc,IACd,IAAIG,KAAK,CACP,CAAC,CAAC,EACF;EACEC,GAAGA,CAAA,EAAG;IACJ,MAAM,IAAIC,KAAK,CAACT,aAAa,CAAC;EAChC;AACF,CACF,CAAC;AAEH,OAAO,MAAMU,SAAS,GAAG;EACvB;AACF;AACA;AACA;AACA;EACEC,MAAMA,CAACC,WAAuB,EAAE;IAC9B,MAAMC,OAAO,GAAG;MACdC,MAAM,EAAE;QACNC,MAAM,EAAEH,WAAW,CAACG,MAAM,IAAI,CAAC;QAC/BC,iBAAiB,EAAEJ,WAAW,CAACI,iBAAiB;QAChDC,WAAW,EAAEL,WAAW,CAACK,WAAW;QACpCC,QAAQ,EAAEN,WAAW,CAACM,QAAQ;QAC9BC,aAAa,EAAEP,WAAW,EAAEO,aAAa,IAAI;MAC/C,CAAC;MACDC,aAAa,EAAE;QACb,GAAGR,WAAW,CAACQ;MACjB,CAAC;MACDC,WAAW,EAAE;QACX,GAAGT,WAAW,CAACS;MACjB,CAAC;MACDC,iBAAiB,EAAEV,WAAW,CAACW,oBAAoB;MACnDC,YAAY,EAAE;QAAE,GAAGZ,WAAW,CAACY;MAAa,CAAC;MAC7CC,SAAS,EAAEb,WAAW,CAACa;IACzB,CAAC;IACDnB,0BAA0B,CAACoB,eAAe,CAACb,OAAO,CAAC;EACrD,CAAC;EAED;AACF;AACA;AACA;EACEc,MAAMA,CAACC,QAAkC,EAAE;IACzC,MAAMC,YAAY,GAChB/B,QAAQ,CAACgC,EAAE,KAAK,SAAS,GACrB,IAAIlC,kBAAkB,CAAC,CAAC,GACxB,IAAIA,kBAAkB,CAACU,0BAA0B,CAAC;IACxD,IAAIyB,aAAa,GAAGF,YAAY,EAAEG,WAAW,CAAC,UAAU,EAAEJ,QAAQ,CAAC;IAEnE,OAAO,MAAM;MACXG,aAAa,CAACE,MAAM,CAAC,CAAC;IACxB,CAAC;EACH;AACF,CAAC;AAED,OAAO,SAASC,YAAYA,CAAC;EAC3BC;AAGF,CAAC,EAAE;EACDpC,SAAS,CAAC,MAAM;IACd,MAAMqC,YAAY,GAAG1B,SAAS,CAACiB,MAAM,CAACQ,QAAQ,CAAC;IAC/C,OAAO,MAAM;MACXC,YAAY,CAAC,CAAC;IAChB,CAAC;EACH,CAAC,EAAE,CAACD,QAAQ,CAAC,CAAC;EAEd,OAAO;IAAEE,YAAY,EAAE3B,SAAS,CAACC;EAAO,CAAC;AAC3C","ignoreList":[]}
|
package/lib/module/types.d.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
2
|
//# sourceMappingURL=types.d.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../src","sources":["types.d.ts"],"mappings":""}
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../src","sources":["types.d.ts"],"mappings":"","ignoreList":[]}
|
package/lib/module/utils.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
1
3
|
const acceptedDocuments = {
|
|
2
4
|
Nigeria: ['DRIVERS_LICENSE_NGA', 'VOTERS_CARD_NGA', 'NIN_SLIP_NGA', 'PASSPORT_NGA'],
|
|
3
5
|
Ghana: ['DRIVERS_LICENSE_GHA', 'NHIS_CARD_GHA', 'ECOWAS_CARD_GHA', 'SOCIAL_SECURITY_GHA', 'VOTERS_CARD_GHA', 'PASSPORT_GHA', 'GHANA_CARD_GHA'],
|
package/lib/module/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["acceptedDocuments","Nigeria","Ghana","Kenya","productCodes","utils"],"sourceRoot":"../../src","sources":["utils.ts"],"mappings":"AAAA,MAAMA,iBAAiB,GAAG;EACxBC,OAAO,EAAE,CACP,qBAAqB,EACrB,iBAAiB,EACjB,cAAc,EACd,cAAc,CACf;EACDC,KAAK,EAAE,CACL,qBAAqB,EACrB,eAAe,EACf,iBAAiB,EACjB,qBAAqB,EACrB,iBAAiB,EACjB,cAAc,EACd,gBAAgB,CACjB;EACDC,KAAK,EAAE,CACL,qBAAqB,EACrB,iBAAiB,EACjB,gBAAgB,EAChB,cAAc;AAElB,CAAC;AAED,MAAMC,YAAY,GAAG,CACnB,YAAY,EACZ,KAAK,EACL,kBAAkB,EAClB,WAAW,EACX,aAAa,EACb,WAAW,EACX,aAAa,EACb,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,YAAY,EACZ,WAAW,EACX,uBAAuB,EACvB,mCAAmC,EACnC,uBAAuB,EACvB,+BAA+B,EAC/B,+BAA+B,EAC/B,wBAAwB,EACxB,oBAAoB,EACpB,UAAU,EACV,qBAAqB,EACrB,uBAAuB,EACvB,UAAU,EACV,cAAc,EACd,0BAA0B,EAC1B,cAAc,EACd,cAAc,EACd,sBAAsB,EACtB,eAAe,EACf,KAAK,EACL,WAAW,EACX,OAAO,EACP,KAAK,EACL,aAAa,EACb,aAAa,EACb,UAAU,EACV,KAAK;AACL;AACA,UAAU,EACV,aAAa,EACb,KAAK,EACL,aAAa,CACd;AAED,OAAO,MAAMC,KAAK,GAAG;EACnBD,YAAY;EACZJ;AACF,CAAC"}
|
|
1
|
+
{"version":3,"names":["acceptedDocuments","Nigeria","Ghana","Kenya","productCodes","utils"],"sourceRoot":"../../src","sources":["utils.ts"],"mappings":";;AAAA,MAAMA,iBAAiB,GAAG;EACxBC,OAAO,EAAE,CACP,qBAAqB,EACrB,iBAAiB,EACjB,cAAc,EACd,cAAc,CACf;EACDC,KAAK,EAAE,CACL,qBAAqB,EACrB,eAAe,EACf,iBAAiB,EACjB,qBAAqB,EACrB,iBAAiB,EACjB,cAAc,EACd,gBAAgB,CACjB;EACDC,KAAK,EAAE,CACL,qBAAqB,EACrB,iBAAiB,EACjB,gBAAgB,EAChB,cAAc;AAElB,CAAC;AAED,MAAMC,YAAY,GAAG,CACnB,YAAY,EACZ,KAAK,EACL,kBAAkB,EAClB,WAAW,EACX,aAAa,EACb,WAAW,EACX,aAAa,EACb,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,YAAY,EACZ,WAAW,EACX,uBAAuB,EACvB,mCAAmC,EACnC,uBAAuB,EACvB,+BAA+B,EAC/B,+BAA+B,EAC/B,wBAAwB,EACxB,oBAAoB,EACpB,UAAU,EACV,qBAAqB,EACrB,uBAAuB,EACvB,UAAU,EACV,cAAc,EACd,0BAA0B,EAC1B,cAAc,EACd,cAAc,EACd,sBAAsB,EACtB,eAAe,EACf,KAAK,EACL,WAAW,EACX,OAAO,EACP,KAAK,EACL,aAAa,EACb,aAAa,EACb,UAAU,EACV,KAAK;AACL;AACA,UAAU,EACV,aAAa,EACb,KAAK,EACL,aAAa,CACd;AAED,OAAO,MAAMC,KAAK,GAAG;EACnBD,YAAY;EACZJ;AACF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,YAAY,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -5,11 +5,16 @@ export declare const QoreIdSdk: {
|
|
|
5
5
|
* @param initialData - data to launch Qore ID SDK
|
|
6
6
|
* @requires QoreIdSdk native module installed
|
|
7
7
|
*/
|
|
8
|
-
launch(initialData: QoreIdData
|
|
8
|
+
launch(initialData: QoreIdData): void;
|
|
9
9
|
/**
|
|
10
10
|
* QoreIdSdk events listener. It takes callbacks to handle success and error events
|
|
11
11
|
* @param callback(data: OnResultType) Handles various events from QoreID SDK
|
|
12
12
|
*/
|
|
13
13
|
events(callback: (data: OnResult) => void): () => void;
|
|
14
14
|
};
|
|
15
|
+
export declare function useQoreIdSdk({ onResult, }: {
|
|
16
|
+
onResult: (data: OnResult) => void;
|
|
17
|
+
}): {
|
|
18
|
+
launchQoreId: (initialData: QoreIdData) => void;
|
|
19
|
+
};
|
|
15
20
|
//# sourceMappingURL=qoreIdSdk.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qoreIdSdk.d.ts","sourceRoot":"","sources":["../../../src/qoreIdSdk.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAsBpD,eAAO,MAAM,SAAS;IACpB;;;;OAIG;wBACiB,UAAU;IAsB9B;;;OAGG;qBACc,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI;CAW1C,CAAC;AAEF,wBAAgB,YAAY,CAAC,EAC3B,QAAQ,GACT,EAAE;IACD,QAAQ,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;CACpC;gCA3CqB,UAAU;EAoD/B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/utils.ts"],"names":[],"mappings":"AAqEA,eAAO,MAAM,KAAK;;;;;;;CAGjB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qore-id/react-native-qoreid-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"description": "QoreId React Native SDK",
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
5
|
+
"source": "./src/index.tsx",
|
|
6
|
+
"main": "./lib/commonjs/index.js",
|
|
7
|
+
"module": "./lib/module/index.js",
|
|
8
|
+
"types": "./lib/typescript/src/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./lib/typescript/src/index.d.ts",
|
|
12
|
+
"import": "./lib/module/index.js",
|
|
13
|
+
"require": "./lib/commonjs/index.js"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
10
16
|
"files": [
|
|
11
17
|
"src",
|
|
12
18
|
"lib",
|
|
@@ -14,7 +20,7 @@
|
|
|
14
20
|
"ios",
|
|
15
21
|
"cpp",
|
|
16
22
|
"*.podspec",
|
|
17
|
-
"
|
|
23
|
+
"react-native.config.json",
|
|
18
24
|
"!ios/build",
|
|
19
25
|
"!android/build",
|
|
20
26
|
"!android/gradle",
|
|
@@ -27,23 +33,24 @@
|
|
|
27
33
|
"!**/.*"
|
|
28
34
|
],
|
|
29
35
|
"scripts": {
|
|
36
|
+
"example": "yarn workspace @qore-id/react-native-qoreid-sdk-example",
|
|
30
37
|
"test": "jest",
|
|
31
|
-
"typecheck": "tsc
|
|
38
|
+
"typecheck": "tsc",
|
|
32
39
|
"lint": "eslint \"**/*.{js,ts,tsx}\"",
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"bootstrap": "yarn example && yarn install && yarn example pods",
|
|
37
|
-
"clean": "del-cli android/build example/android/build example/android/app/build example/ios/build"
|
|
40
|
+
"clean": "del-cli android/build example/android/build example/android/app/build example/ios/build lib",
|
|
41
|
+
"prepare": "bob build",
|
|
42
|
+
"release": "release-it"
|
|
38
43
|
},
|
|
39
44
|
"keywords": [
|
|
40
45
|
"react-native",
|
|
41
46
|
"ios",
|
|
42
47
|
"android"
|
|
43
48
|
],
|
|
44
|
-
"repository":
|
|
45
|
-
|
|
46
|
-
|
|
49
|
+
"repository": {
|
|
50
|
+
"type": "git",
|
|
51
|
+
"url": "git+https://.git"
|
|
52
|
+
},
|
|
53
|
+
"author": "Emmannuel <e.ugwuoke@verifyme.ng> (https://)",
|
|
47
54
|
"license": "MIT",
|
|
48
55
|
"bugs": {
|
|
49
56
|
"url": "https:///issues"
|
|
@@ -54,37 +61,37 @@
|
|
|
54
61
|
},
|
|
55
62
|
"devDependencies": {
|
|
56
63
|
"@commitlint/config-conventional": "^17.0.2",
|
|
57
|
-
"@evilmartians/lefthook": "^1.
|
|
58
|
-
"@react-native-community/
|
|
64
|
+
"@evilmartians/lefthook": "^1.5.0",
|
|
65
|
+
"@react-native-community/cli": "15.0.0",
|
|
66
|
+
"@react-native/eslint-config": "^0.73.1",
|
|
59
67
|
"@release-it/conventional-changelog": "^5.0.0",
|
|
60
|
-
"@types/jest": "^
|
|
61
|
-
"@types/react": "
|
|
62
|
-
"@types/react-native": "0.70.0",
|
|
68
|
+
"@types/jest": "^29.5.5",
|
|
69
|
+
"@types/react": "^18.2.44",
|
|
63
70
|
"commitlint": "^17.0.2",
|
|
64
|
-
"del-cli": "^5.
|
|
65
|
-
"eslint": "^8.
|
|
66
|
-
"eslint-config-prettier": "^
|
|
67
|
-
"eslint-plugin-prettier": "^
|
|
68
|
-
"jest": "^
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"react": "
|
|
72
|
-
"react-native": "0.
|
|
73
|
-
"react-native-builder-bob": "^0.20.0",
|
|
71
|
+
"del-cli": "^5.1.0",
|
|
72
|
+
"eslint": "^8.51.0",
|
|
73
|
+
"eslint-config-prettier": "^9.0.0",
|
|
74
|
+
"eslint-plugin-prettier": "^5.0.1",
|
|
75
|
+
"jest": "^29.7.0",
|
|
76
|
+
"prettier": "^3.0.3",
|
|
77
|
+
"react": "18.3.1",
|
|
78
|
+
"react-native": "0.76.1",
|
|
79
|
+
"react-native-builder-bob": "^0.30.3",
|
|
74
80
|
"release-it": "^15.0.0",
|
|
75
|
-
"
|
|
81
|
+
"turbo": "^1.10.7",
|
|
82
|
+
"typescript": "^5.2.2"
|
|
76
83
|
},
|
|
77
84
|
"resolutions": {
|
|
78
|
-
"@types/react": "
|
|
85
|
+
"@types/react": "^18.2.44"
|
|
79
86
|
},
|
|
80
87
|
"peerDependencies": {
|
|
81
88
|
"react": "*",
|
|
82
|
-
|
|
89
|
+
"react-native": "*"
|
|
83
90
|
},
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
|
|
87
|
-
"packageManager": "
|
|
91
|
+
"workspaces": [
|
|
92
|
+
"example"
|
|
93
|
+
],
|
|
94
|
+
"packageManager": "yarn@3.6.1",
|
|
88
95
|
"jest": {
|
|
89
96
|
"preset": "react-native",
|
|
90
97
|
"modulePathIgnorePatterns": [
|
|
@@ -117,11 +124,11 @@
|
|
|
117
124
|
"eslintConfig": {
|
|
118
125
|
"root": true,
|
|
119
126
|
"extends": [
|
|
120
|
-
"@react-native
|
|
127
|
+
"@react-native",
|
|
121
128
|
"prettier"
|
|
122
129
|
],
|
|
123
130
|
"rules": {
|
|
124
|
-
"react
|
|
131
|
+
"react/react-in-jsx-scope": "off",
|
|
125
132
|
"prettier/prettier": [
|
|
126
133
|
"error",
|
|
127
134
|
{
|
|
@@ -149,8 +156,18 @@
|
|
|
149
156
|
"source": "src",
|
|
150
157
|
"output": "lib",
|
|
151
158
|
"targets": [
|
|
152
|
-
|
|
153
|
-
|
|
159
|
+
[
|
|
160
|
+
"commonjs",
|
|
161
|
+
{
|
|
162
|
+
"esm": true
|
|
163
|
+
}
|
|
164
|
+
],
|
|
165
|
+
[
|
|
166
|
+
"module",
|
|
167
|
+
{
|
|
168
|
+
"esm": true
|
|
169
|
+
}
|
|
170
|
+
],
|
|
154
171
|
[
|
|
155
172
|
"typescript",
|
|
156
173
|
{
|
|
@@ -158,5 +175,10 @@
|
|
|
158
175
|
}
|
|
159
176
|
]
|
|
160
177
|
]
|
|
178
|
+
},
|
|
179
|
+
"create-react-native-library": {
|
|
180
|
+
"type": "module-legacy",
|
|
181
|
+
"languages": "kotlin-swift",
|
|
182
|
+
"version": "0.42.2"
|
|
161
183
|
}
|
|
162
184
|
}
|