@notabene/javascript-sdk 1.34.0 → 1.35.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/.husky/commit-msg +0 -0
- package/.husky/pre-commit +1 -1
- package/.husky/pre-push +0 -0
- package/.yarn/releases/yarn-3.2.2.cjs +783 -0
- package/.yarnrc.yml +5 -0
- package/README.md +11 -0
- package/dist/es/index.js +1 -1
- package/dist/lib/index.js +3 -0
- package/package.json +2 -3
- package/src/notabene.ts +5 -0
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
},
|
|
9
9
|
"author": "Notabene <developers@notabene.id>",
|
|
10
10
|
"license": "MIT",
|
|
11
|
-
"version": "1.
|
|
11
|
+
"version": "1.35.2",
|
|
12
12
|
"main": "dist/index.js",
|
|
13
13
|
"packageManager": "yarn@3.2.2",
|
|
14
14
|
"browserslist": "> 0.5%, last 2 versions, not dead",
|
|
@@ -34,7 +34,6 @@
|
|
|
34
34
|
"buffer": false
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
|
-
"prepare": "husky install",
|
|
38
37
|
"watch": "parcel watch",
|
|
39
38
|
"dev": "sirv --dev --port 3002 public",
|
|
40
39
|
"build:dev": "yarn build && yarn dev",
|
|
@@ -92,4 +91,4 @@
|
|
|
92
91
|
"jsx-pragmatic": "^2.0.22",
|
|
93
92
|
"zoid": "^9.0.86"
|
|
94
93
|
}
|
|
95
|
-
}
|
|
94
|
+
}
|
package/src/notabene.ts
CHANGED
|
@@ -29,6 +29,7 @@ interface NotabeneConfig {
|
|
|
29
29
|
fieldsProps?: FieldsProps;
|
|
30
30
|
fallbacks?: Fallback[];
|
|
31
31
|
optInFeatures?: OptInFeature[];
|
|
32
|
+
counterpartyManualEntry?: boolean;
|
|
32
33
|
}
|
|
33
34
|
|
|
34
35
|
export default class Notabene {
|
|
@@ -52,6 +53,8 @@ export default class Notabene {
|
|
|
52
53
|
this.config.fallbacks = this.config.fallbacks || [
|
|
53
54
|
{ flow: 'WALLET_NOT_SUPPORTED', action: 'DECLARATION' },
|
|
54
55
|
];
|
|
56
|
+
this.config.counterpartyManualEntry = this.config.counterpartyManualEntry !== undefined ? this.config.counterpartyManualEntry : true;
|
|
57
|
+
|
|
55
58
|
}
|
|
56
59
|
|
|
57
60
|
/**
|
|
@@ -185,6 +188,7 @@ export default class Notabene {
|
|
|
185
188
|
fieldsProps: this.config.fieldsProps,
|
|
186
189
|
fallbacks: this.config.fallbacks,
|
|
187
190
|
optInFeatures: this.config.optInFeatures,
|
|
191
|
+
counterpartyManualEntry: this.config.counterpartyManualEntry,
|
|
188
192
|
onRequireAdditionalInformation: () => {
|
|
189
193
|
this.popup.updateProps({
|
|
190
194
|
popupOpen: true,
|
|
@@ -280,6 +284,7 @@ export default class Notabene {
|
|
|
280
284
|
transaction: this.tx,
|
|
281
285
|
beneficiaryDetails: this.config.beneficiaryDetails,
|
|
282
286
|
fieldsProps: this.config.fieldsProps,
|
|
287
|
+
counterpartyManualEntry: this.config.counterpartyManualEntry,
|
|
283
288
|
storeTransaction: (tx: Transaction) => {
|
|
284
289
|
this.setTransaction(tx);
|
|
285
290
|
console.debug('Notabene: Transaction stored');
|