@notabene/javascript-sdk 1.14.3 → 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.
@@ -0,0 +1 @@
1
+ export GITLAB_TOKEN="your-gitlab-token"
package/.tool-versions ADDED
@@ -0,0 +1,3 @@
1
+ nodejs 16.16.0
2
+ yarn 1.22.19
3
+ direnv 2.32.1
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: ['benficiaryName', 'beneficiaryGeographicAddress'];
179
+ beneficiaryDetails: [
180
+ 'benficiaryName',
181
+ 'beneficiaryGeographicAddress',
182
+ 'beneficiaryNationalIdentification',
183
+ 'beneficiaryDateAndPlaceOfBirth',
184
+ ];
172
185
  ```
173
186
 
174
187
  ---