react-native-docusign 1.0.3
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 +48 -0
- package/LICENSE +21 -0
- package/README.md +867 -0
- package/android/build.gradle +81 -0
- package/android/src/main/AndroidManifest.xml +7 -0
- package/android/src/main/java/expo/modules/docusign/DocuSignError.kt +18 -0
- package/android/src/main/java/expo/modules/docusign/DocuSignManager.kt +321 -0
- package/android/src/main/java/expo/modules/docusign/DocuSignModule.kt +190 -0
- package/app.plugin.js +1 -0
- package/build/DocuSign.types.d.ts +77 -0
- package/build/DocuSign.types.d.ts.map +1 -0
- package/build/DocuSign.types.js +2 -0
- package/build/DocuSign.types.js.map +1 -0
- package/build/DocuSignModule.d.ts +14 -0
- package/build/DocuSignModule.d.ts.map +1 -0
- package/build/DocuSignModule.js +3 -0
- package/build/DocuSignModule.js.map +1 -0
- package/build/api.d.ts +39 -0
- package/build/api.d.ts.map +1 -0
- package/build/api.js +62 -0
- package/build/api.js.map +1 -0
- package/build/index.d.ts +6 -0
- package/build/index.d.ts.map +1 -0
- package/build/index.js +5 -0
- package/build/index.js.map +1 -0
- package/build/useDocuSignSigning.d.ts +38 -0
- package/build/useDocuSignSigning.d.ts.map +1 -0
- package/build/useDocuSignSigning.js +126 -0
- package/build/useDocuSignSigning.js.map +1 -0
- package/expo-module.config.json +9 -0
- package/ios/DocuSignError.swift +31 -0
- package/ios/DocuSignManager.swift +776 -0
- package/ios/DocuSignModule.swift +169 -0
- package/ios/ReactNativeDocuSign.podspec +29 -0
- package/package.json +60 -0
- package/plugin/build/index.d.ts +8 -0
- package/plugin/build/index.js +235 -0
- package/plugin/build/index.js.map +1 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 1.0.3
|
|
4
|
+
|
|
5
|
+
### Build / packaging
|
|
6
|
+
|
|
7
|
+
- **No third-party binaries shipped.** The DocuSign `sdk-pdf-2.1.4.aar` is no longer committed to the repo or included in the npm tarball. The Expo Config Plugin now downloads it directly from DocuSign's public Maven (`docucdn-a.akamaihd.net`) at `expo prebuild` time, strips the pre-generated `com.bumptech.glide.GeneratedAppGlideModuleImpl` class to prevent duplicate-class collisions with `expo-image` and other Glide-based libraries, and writes the stripped result into `node_modules/react-native-docusign/android/libs/`. The existing flatDir injection picks it up unchanged. Result: zero DocuSign IP redistributed; consumers fetch the SDK directly from DocuSign on first prebuild.
|
|
8
|
+
- New `dependencies` entry: `adm-zip` (used by the Config Plugin to strip the upstream AAR in-memory).
|
|
9
|
+
- Added `LICENSE` (MIT). Previously declared in `package.json` but the file was missing.
|
|
10
|
+
- `package.json` adds a `prepublishOnly` hook that runs `npm run build && npm test` so stale builds can never ship.
|
|
11
|
+
|
|
12
|
+
### Notes for consumers
|
|
13
|
+
|
|
14
|
+
- After `npm install`, run `npx expo prebuild` (or `expo prebuild --clean`) so the plugin can fetch and place the stripped sdk-pdf AAR. Required network access: `https://docucdn-a.akamaihd.net`.
|
|
15
|
+
- If the host machine cannot reach DocuSign's CDN, the plugin emits a warning and the Android build will fail at the dex step. CI environments must allow outbound HTTPS to that host.
|
|
16
|
+
|
|
17
|
+
## 1.0.2
|
|
18
|
+
|
|
19
|
+
### Bug fixes
|
|
20
|
+
|
|
21
|
+
- **iOS**: Fix captive signing hang on second consecutive open. The implicit teardown inside `performLogin` (logout + `clearAllWebCookies`) raced with `DSMManager.login`, leaving the WebView session bootstrapped against half-cleaned SDK state. The captive signing UI would render but the underlying `DSMEnvelopesManager` never fired its expected `settings` / `consumer_disclosure` / `recipient` requests, leaving the JS promise hanging on a spinner with no completion notification. The teardown is now sequenced via `WKWebsiteDataStore.removeData` completion before `DSMManager.login` is invoked, and skipped entirely on the first login.
|
|
22
|
+
|
|
23
|
+
### New features
|
|
24
|
+
|
|
25
|
+
- New `endSigningSession()` API on both iOS and Android. Tears down any in-flight signing session and the underlying SDK auth state so the next `loginWithAccessToken` + `presentCaptiveSigning` pair starts from a clean slate. Wired into `useDocuSignSigning`'s `reset()` automatically, so React consumers get clean teardown between captive signing flows for free.
|
|
26
|
+
|
|
27
|
+
### Tests
|
|
28
|
+
|
|
29
|
+
- Add Jest setup with `jest-expo` preset.
|
|
30
|
+
- Cover `useDocuSignSigning` state machine end-to-end: auto-init, session and url signing flows, completed / cancelled / error transitions, error listener subscription, error listener cleanup on unmount, and the `reset()` -> `endSigningSession` wiring.
|
|
31
|
+
|
|
32
|
+
## 1.0.1
|
|
33
|
+
|
|
34
|
+
### Documentation
|
|
35
|
+
|
|
36
|
+
- Surface the unified iOS/Android session payload contract in the README. New "One backend response, both platforms" callout names the 13 expected fields and links to the full schema in `docs/BACKEND_GUIDE.md`.
|
|
37
|
+
|
|
38
|
+
## 1.0.0
|
|
39
|
+
|
|
40
|
+
### New features
|
|
41
|
+
|
|
42
|
+
- Initial release.
|
|
43
|
+
- iOS native module wrapping DocuSign iOS SDK 4.1.1.
|
|
44
|
+
- Android native module wrapping DocuSign Android SDK 2.1.4.
|
|
45
|
+
- TypeScript public API: `initialize`, `loginWithAccessToken`, `presentCaptiveSigning`, `logout`, `isLoggedIn`.
|
|
46
|
+
- Event listeners: `onSigningComplete`, `onSigningCancelled`, `onSigningError`.
|
|
47
|
+
- React hook `useDocuSignSigning` wrapping the SDK lifecycle, state machine, and event subscription.
|
|
48
|
+
- Config plugin for automatic iOS Info.plist, Android permissions, and Maven repo setup.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 IronTony
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|