@notabene/javascript-sdk 2.13.0-next.1 → 2.13.0
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/README.md +39 -0
- package/dist/cjs/package.json +1 -1
- package/dist/esm/package.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -50,6 +50,8 @@ This library is the JavaScript SDK for loading the Notabene UX components in the
|
|
|
50
50
|
- [Retrieving Completed Data](#retrieving-completed-data)
|
|
51
51
|
- [Error handling](#error-handling)
|
|
52
52
|
- [Error reference](#error-reference)
|
|
53
|
+
- [Warning Message handling](#warning-message-handling)
|
|
54
|
+
- [Warning reference](#warning-reference)
|
|
53
55
|
- [Transaction parameters](#transaction-parameters)
|
|
54
56
|
- [Asset specification](#asset-specification)
|
|
55
57
|
- [Transaction amount](#transaction-amount)
|
|
@@ -653,6 +655,43 @@ component.on('error', (error) => {
|
|
|
653
655
|
| WALLET_CONNECTION_FAILED | The connection to the wallet service failed, possibly due to network issues or unsupported wallet types. | ✅ |
|
|
654
656
|
| WALLET_NOT_SUPPORTED | The wallet used does not support the required functionality or blockchain. | |
|
|
655
657
|
|
|
658
|
+
## Warning Message Handling
|
|
659
|
+
|
|
660
|
+
Warning messages include an identifier code to help developers diagnose and handle specific error conditions.
|
|
661
|
+
|
|
662
|
+
```ts
|
|
663
|
+
component.on('warning', (event) => {
|
|
664
|
+
switch(event.identifier) {
|
|
665
|
+
case WarningIdentifierCode.WALLET_ADDRESS_NOT_CONNECTED:
|
|
666
|
+
// Handle wallet connection issue
|
|
667
|
+
break;
|
|
668
|
+
case WarningIdentifierCode.IDV_UNAVAILABLE:
|
|
669
|
+
// Handle identity verification service unavailability
|
|
670
|
+
break;
|
|
671
|
+
case WarningIdentifierCode.WALLET_LOCKED:
|
|
672
|
+
// Handle wallet locked or password is either not entered or invalid
|
|
673
|
+
break;
|
|
674
|
+
case WarningIdentifierCode.WALLET_UNREACHABLE:
|
|
675
|
+
// Handle wallet connection failure
|
|
676
|
+
break;
|
|
677
|
+
case WarningIdentifierCode.JURISDICTIONAL_REQUIREMENTS_UNAVAILABLE:
|
|
678
|
+
// Handle jurisdictional compliance check failure
|
|
679
|
+
break;
|
|
680
|
+
}
|
|
681
|
+
});
|
|
682
|
+
```
|
|
683
|
+
|
|
684
|
+
### Warning Reference
|
|
685
|
+
|
|
686
|
+
| Identifier Code | Description | Status |
|
|
687
|
+
|----------------|-------------|--------|
|
|
688
|
+
| `WALLET_ADDRESS_NOT_CONNECTED` | The specified wallet address is not connected to the selected wallet | ✅ Active |
|
|
689
|
+
| `IDV_UNAVAILABLE` | Identity verification service is unavailable for the transaction | ✅ Active |
|
|
690
|
+
| `WALLET_LOCKED` | The wallet in use is either locked or not open. | ✅ Active |
|
|
691
|
+
| `WALLET_UNREACHABLE` | Connection to wallet failed due to network issues or unsupported wallet type | ✅ Active |
|
|
692
|
+
| `JURISDICTIONAL_REQUIREMENTS_UNAVAILABLE` | Unable to retrieve jurisdictional compliance requirements | ✅ Active |
|
|
693
|
+
|
|
694
|
+
|
|
656
695
|
## Transaction parameters
|
|
657
696
|
|
|
658
697
|
### Asset specification
|
package/dist/cjs/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"author": "Notabene <developers@notabene.id>",
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"packageManager": "yarn@4.5.1",
|
|
13
|
-
"version": "2.13.0
|
|
13
|
+
"version": "2.13.0",
|
|
14
14
|
"source": "src/notabene.ts",
|
|
15
15
|
"main": "dist/cjs/notabene.cjs",
|
|
16
16
|
"module": "dist/esm/notabene.js",
|
package/dist/esm/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"author": "Notabene <developers@notabene.id>",
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"packageManager": "yarn@4.5.1",
|
|
13
|
-
"version": "2.13.0
|
|
13
|
+
"version": "2.13.0",
|
|
14
14
|
"source": "src/notabene.ts",
|
|
15
15
|
"main": "dist/cjs/notabene.cjs",
|
|
16
16
|
"module": "dist/esm/notabene.js",
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"author": "Notabene <developers@notabene.id>",
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"packageManager": "yarn@4.5.1",
|
|
13
|
-
"version": "2.13.0
|
|
13
|
+
"version": "2.13.0",
|
|
14
14
|
"source": "src/notabene.ts",
|
|
15
15
|
"main": "dist/cjs/notabene.cjs",
|
|
16
16
|
"module": "dist/esm/notabene.js",
|