@notabene/javascript-sdk 1.14.2 → 1.15.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/.envrc.template +1 -0
- package/.tool-versions +3 -0
- package/README.md +14 -1
- package/dist/es/index.js +1 -1
- package/dist/lib/index.js +93 -142
- package/package.json +2 -1
- package/public/index.html +6 -5
- package/src/ivms/types.ts +302 -0
- package/src/lib/index.ts +1 -0
- package/src/module/index.ts +1 -0
- package/src/notabene.ts +11 -183
- package/src/types.ts +72 -0
- package/src/zoidComponentProps.ts +69 -0
- package/tsconfig.json +1 -0
package/.envrc.template
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export GITLAB_TOKEN="your-gitlab-token"
|
package/.tool-versions
ADDED
package/README.md
CHANGED
|
@@ -72,8 +72,14 @@ Once the widget determines the transaction is valid, it will call the `onValidSt
|
|
|
72
72
|
const currentTransactionInfo = notabene.tx;
|
|
73
73
|
```
|
|
74
74
|
|
|
75
|
+
---
|
|
76
|
+
|
|
75
77
|
### Re-rendering
|
|
76
78
|
|
|
79
|
+
**WARNING:** this shouldn't be used often, if you need to change the transaction's initial fields call `setTransaction` again. (This should be used only for tearing down the component).
|
|
80
|
+
|
|
81
|
+
The container of the widget must be in the DOM before calling `destroyWidget` or `renderWidget`.
|
|
82
|
+
|
|
77
83
|
If you need to close and re-render the widget, call the `destroyWidget` method like so:
|
|
78
84
|
|
|
79
85
|
```js
|
|
@@ -166,9 +172,16 @@ Field options:
|
|
|
166
172
|
|
|
167
173
|
- `beneficiaryName` - Recipient Name
|
|
168
174
|
- `beneficiaryGeographicAddress` - Recipient Address
|
|
175
|
+
- `beneficiaryNationalIdentification` - Recipient National Identification
|
|
176
|
+
- `beneficiaryDateAndPlaceOfBirth` - Recipient Date and Place of Birth
|
|
169
177
|
|
|
170
178
|
```js
|
|
171
|
-
beneficiaryDetails: [
|
|
179
|
+
beneficiaryDetails: [
|
|
180
|
+
'benficiaryName',
|
|
181
|
+
'beneficiaryGeographicAddress',
|
|
182
|
+
'beneficiaryNationalIdentification',
|
|
183
|
+
'beneficiaryDateAndPlaceOfBirth',
|
|
184
|
+
];
|
|
172
185
|
```
|
|
173
186
|
|
|
174
187
|
---
|