react-native-docusign 2.0.1 → 2.0.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/CHANGELOG.md +6 -0
- package/README.md +29 -16
- package/ios/ReactNativeDocuSign.podspec +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.0.2
|
|
4
|
+
|
|
5
|
+
### Native SDKs
|
|
6
|
+
|
|
7
|
+
- **iOS**: DocuSign iOS SDK 4.3.0 to 4.4.0. For some accounts, DocuSign now returns recipient view URLs such as `https://apps-d.docusign.com/authenticate?code=...` instead of a `Signing/MTRedeem` URL. DocuSign 4.3.0 only opens `Signing/MTRedeem` URLs, so `presentCaptiveSigningWithUrl` rejected these with a `DocuSignError` whose message contains `has invalid captive signing url`. DocuSign 4.4.0 opens both, and lists the fix as "Captive (embedded) signing fails to launch for certain accounts". It raises the SDK's minimum to iOS 15.0, below this module's 15.1. A project with a committed `Podfile.lock` needs `pod update DocuSign`.
|
|
8
|
+
|
|
3
9
|
## 2.0.1
|
|
4
10
|
|
|
5
11
|
### Fixes
|
package/README.md
CHANGED
|
@@ -94,7 +94,7 @@ The React Native layer never renders any of the signing UI. It only triggers the
|
|
|
94
94
|
|
|
95
95
|
| Platform | Minimum OS | SDK version | Language |
|
|
96
96
|
| -------- | -------------------- | -------------------------- | ----------- |
|
|
97
|
-
| iOS | 15.1 | DocuSign iOS SDK 4.
|
|
97
|
+
| iOS | 15.1 | DocuSign iOS SDK 4.4.0 | Swift 5.9 |
|
|
98
98
|
| Android | API 24 (Android 7.0) | DocuSign Android SDK 2.1.7 | Kotlin 2.1+ |
|
|
99
99
|
|
|
100
100
|
**Runtime requirements:**
|
|
@@ -107,7 +107,7 @@ The React Native layer never renders any of the signing UI. It only triggers the
|
|
|
107
107
|
|
|
108
108
|
The DocuSign native SDKs are **NOT bundled** inside this npm package. They are declared as external dependencies and resolved at consumer build time:
|
|
109
109
|
|
|
110
|
-
- **iOS**: the `DocuSign` pod (`~> 4.
|
|
110
|
+
- **iOS**: the `DocuSign` pod (`~> 4.4.0`) from the public CocoaPods trunk, declared by this package's podspec
|
|
111
111
|
- **Android**: `com.docusign:androidsdk:2.1.7` from DocuSign's Maven repository (the config plugin adds the repo automatically)
|
|
112
112
|
|
|
113
113
|
### Android Glide collision workaround
|
|
@@ -259,9 +259,9 @@ async function signAgreement() {
|
|
|
259
259
|
try {
|
|
260
260
|
const result = await DocuSign.presentCaptiveSigning({
|
|
261
261
|
envelopeId: session.envelopeId,
|
|
262
|
-
recipientUserName: session.
|
|
263
|
-
recipientEmail: session.
|
|
264
|
-
recipientClientUserId: session.
|
|
262
|
+
recipientUserName: session.recipientName,
|
|
263
|
+
recipientEmail: session.recipientEmail,
|
|
264
|
+
recipientClientUserId: session.clientUserId,
|
|
265
265
|
});
|
|
266
266
|
|
|
267
267
|
if (result.status === 'completed') {
|
|
@@ -515,7 +515,19 @@ function SigningScreen() {
|
|
|
515
515
|
const session = await fetchSigningSessionFromYourBackend();
|
|
516
516
|
|
|
517
517
|
// Hook handles loginWithAccessToken + presentCaptiveSigning + state transitions
|
|
518
|
-
const result = await startSigning(
|
|
518
|
+
const result = await startSigning({
|
|
519
|
+
type: 'session',
|
|
520
|
+
accessToken: session.accessToken,
|
|
521
|
+
accountId: session.accountId,
|
|
522
|
+
userId: session.userId,
|
|
523
|
+
userName: session.userName,
|
|
524
|
+
email: session.email,
|
|
525
|
+
host: session.host,
|
|
526
|
+
envelopeId: session.envelopeId,
|
|
527
|
+
recipientUserName: session.recipientName,
|
|
528
|
+
recipientEmail: session.recipientEmail,
|
|
529
|
+
recipientClientUserId: session.clientUserId,
|
|
530
|
+
});
|
|
519
531
|
|
|
520
532
|
if (result.status === 'completed') {
|
|
521
533
|
// Navigate to confirmation
|
|
@@ -568,9 +580,9 @@ const result = await startSigning({
|
|
|
568
580
|
email: sessionFromBackend.email,
|
|
569
581
|
host: sessionFromBackend.host,
|
|
570
582
|
envelopeId: sessionFromBackend.envelopeId,
|
|
571
|
-
recipientUserName: sessionFromBackend.
|
|
572
|
-
recipientEmail: sessionFromBackend.
|
|
573
|
-
recipientClientUserId: sessionFromBackend.
|
|
583
|
+
recipientUserName: sessionFromBackend.recipientName,
|
|
584
|
+
recipientEmail: sessionFromBackend.recipientEmail,
|
|
585
|
+
recipientClientUserId: sessionFromBackend.clientUserId,
|
|
574
586
|
});
|
|
575
587
|
```
|
|
576
588
|
|
|
@@ -789,9 +801,9 @@ async function signMultipleDocuments(documents: Document[]) {
|
|
|
789
801
|
await DocuSign.loginWithAccessToken(session);
|
|
790
802
|
const result = await DocuSign.presentCaptiveSigning({
|
|
791
803
|
envelopeId: session.envelopeId,
|
|
792
|
-
recipientUserName: session.
|
|
793
|
-
recipientEmail: session.
|
|
794
|
-
recipientClientUserId: session.
|
|
804
|
+
recipientUserName: session.recipientName,
|
|
805
|
+
recipientEmail: session.recipientEmail,
|
|
806
|
+
recipientClientUserId: session.clientUserId,
|
|
795
807
|
});
|
|
796
808
|
results.push(result);
|
|
797
809
|
|
|
@@ -817,9 +829,9 @@ async function signMultipleDocumentsSafe(documents: Document[]) {
|
|
|
817
829
|
await DocuSign.loginWithAccessToken(session);
|
|
818
830
|
const result = await DocuSign.presentCaptiveSigning({
|
|
819
831
|
envelopeId: session.envelopeId,
|
|
820
|
-
recipientUserName: session.
|
|
821
|
-
recipientEmail: session.
|
|
822
|
-
recipientClientUserId: session.
|
|
832
|
+
recipientUserName: session.recipientName,
|
|
833
|
+
recipientEmail: session.recipientEmail,
|
|
834
|
+
recipientClientUserId: session.clientUserId,
|
|
823
835
|
});
|
|
824
836
|
results.push(result);
|
|
825
837
|
|
|
@@ -959,7 +971,8 @@ The module uses `appContext.activityProvider.currentActivity` to get the current
|
|
|
959
971
|
| This package version | Expo SDK | React Native | iOS SDK | Android SDK |
|
|
960
972
|
| -------------------- | -------- | ------------ | ------------------ | ---------------------- |
|
|
961
973
|
| 1.0.x | 55.x | 0.82.x | DocuSign iOS 4.1.1 | DocuSign Android 2.1.4 |
|
|
962
|
-
| 2.0.
|
|
974
|
+
| 2.0.0–2.0.1 | 55.x+ | 0.85.x+ | DocuSign iOS 4.3.0 | DocuSign Android 2.1.7 |
|
|
975
|
+
| 2.0.2 | 55.x+ | 0.85.x+ | DocuSign iOS 4.4.0 | DocuSign Android 2.1.7 |
|
|
963
976
|
|
|
964
977
|
## Limitations
|
|
965
978
|
|
package/package.json
CHANGED