@startbahn/startrail-sdk-js 1.31.0-beta.4 → 1.31.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 +3 -1
- package/dist/startrail-sdk.js +142 -418
- package/package.json +1 -1
- package/types/startrail-sdk-js.d.ts +1 -0
package/README.md
CHANGED
|
@@ -63,7 +63,8 @@ const startrail = new Startrail(params)
|
|
|
63
63
|
- `customUi`: Customising UI. If no parameters are set, default values are applied.
|
|
64
64
|
- `logoUrl`: Applied to all logos in Startrail-sdk-js
|
|
65
65
|
- `serviceName`: Applied to all service name in Startrail-sdk-js
|
|
66
|
-
- `contactUrl`: Applied to the contact email in signup Email
|
|
66
|
+
- `contactUrl`: Applied to the contact email in signup Email
|
|
67
|
+
- `verificationEmailTitle`: Applied to the title of the verification email when you select email_password
|
|
67
68
|
- `words`: See more details in Example section
|
|
68
69
|
- `logoWhiteUrl`: Applied to all white logos on black background in Startrail-sdk-js
|
|
69
70
|
- `callbackUrl` (optional): Callback URL to redirect to from E-Mail template for signup verification
|
|
@@ -91,6 +92,7 @@ sdk = new Startrail({
|
|
|
91
92
|
logoUrl: 'https://sample.com/logo',
|
|
92
93
|
logoWhiteUrl: 'https://sample.com/white-logo',
|
|
93
94
|
serviceName: 'your service',
|
|
95
|
+
verificationEmailTitle: 'your title',
|
|
94
96
|
contactUrl: 'contact@startrail.io',
|
|
95
97
|
words: {
|
|
96
98
|
en: {
|
package/dist/startrail-sdk.js
CHANGED
|
@@ -1391,7 +1391,7 @@ class NullCoder extends _abstract_coder__WEBPACK_IMPORTED_MODULE_0__[/* Coder */
|
|
|
1391
1391
|
"use strict";
|
|
1392
1392
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return NumberCoder; });
|
|
1393
1393
|
/* harmony import */ var _ethersproject_bignumber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ethersproject/bignumber */ "./node_modules/@ethersproject/abi/node_modules/@ethersproject/bignumber/lib.esm/index.js");
|
|
1394
|
-
/* harmony import */ var _ethersproject_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @ethersproject/constants */ "./node_modules/@ethersproject/constants/lib.esm/index.js");
|
|
1394
|
+
/* harmony import */ var _ethersproject_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @ethersproject/constants */ "./node_modules/@ethersproject/abi/node_modules/@ethersproject/constants/lib.esm/index.js");
|
|
1395
1395
|
/* harmony import */ var _abstract_coder__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./abstract-coder */ "./node_modules/@ethersproject/abi/lib.esm/coders/abstract-coder.js");
|
|
1396
1396
|
|
|
1397
1397
|
|
|
@@ -3933,6 +3933,110 @@ function joinSignature(signature) {
|
|
|
3933
3933
|
}
|
|
3934
3934
|
|
|
3935
3935
|
|
|
3936
|
+
/***/ }),
|
|
3937
|
+
|
|
3938
|
+
/***/ "./node_modules/@ethersproject/abi/node_modules/@ethersproject/constants/lib.esm/addresses.js":
|
|
3939
|
+
/*!****************************************************************************************************!*\
|
|
3940
|
+
!*** ./node_modules/@ethersproject/abi/node_modules/@ethersproject/constants/lib.esm/addresses.js ***!
|
|
3941
|
+
\****************************************************************************************************/
|
|
3942
|
+
/*! exports provided: AddressZero */
|
|
3943
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3944
|
+
|
|
3945
|
+
"use strict";
|
|
3946
|
+
/* unused harmony export AddressZero */
|
|
3947
|
+
const AddressZero = "0x0000000000000000000000000000000000000000";
|
|
3948
|
+
//# sourceMappingURL=addresses.js.map
|
|
3949
|
+
|
|
3950
|
+
/***/ }),
|
|
3951
|
+
|
|
3952
|
+
/***/ "./node_modules/@ethersproject/abi/node_modules/@ethersproject/constants/lib.esm/bignumbers.js":
|
|
3953
|
+
/*!*****************************************************************************************************!*\
|
|
3954
|
+
!*** ./node_modules/@ethersproject/abi/node_modules/@ethersproject/constants/lib.esm/bignumbers.js ***!
|
|
3955
|
+
\*****************************************************************************************************/
|
|
3956
|
+
/*! exports provided: NegativeOne, Zero, One, Two, WeiPerEther, MaxUint256 */
|
|
3957
|
+
/*! exports used: MaxUint256, NegativeOne, One, Zero */
|
|
3958
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3959
|
+
|
|
3960
|
+
"use strict";
|
|
3961
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return NegativeOne; });
|
|
3962
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return Zero; });
|
|
3963
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return One; });
|
|
3964
|
+
/* unused harmony export Two */
|
|
3965
|
+
/* unused harmony export WeiPerEther */
|
|
3966
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MaxUint256; });
|
|
3967
|
+
/* harmony import */ var _ethersproject_bignumber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ethersproject/bignumber */ "./node_modules/@ethersproject/abi/node_modules/@ethersproject/bignumber/lib.esm/index.js");
|
|
3968
|
+
|
|
3969
|
+
const NegativeOne = ( /*#__PURE__*/_ethersproject_bignumber__WEBPACK_IMPORTED_MODULE_0__[/* BigNumber */ "a"].from(-1));
|
|
3970
|
+
const Zero = ( /*#__PURE__*/_ethersproject_bignumber__WEBPACK_IMPORTED_MODULE_0__[/* BigNumber */ "a"].from(0));
|
|
3971
|
+
const One = ( /*#__PURE__*/_ethersproject_bignumber__WEBPACK_IMPORTED_MODULE_0__[/* BigNumber */ "a"].from(1));
|
|
3972
|
+
const Two = ( /*#__PURE__*/_ethersproject_bignumber__WEBPACK_IMPORTED_MODULE_0__[/* BigNumber */ "a"].from(2));
|
|
3973
|
+
const WeiPerEther = ( /*#__PURE__*/_ethersproject_bignumber__WEBPACK_IMPORTED_MODULE_0__[/* BigNumber */ "a"].from("1000000000000000000"));
|
|
3974
|
+
const MaxUint256 = ( /*#__PURE__*/_ethersproject_bignumber__WEBPACK_IMPORTED_MODULE_0__[/* BigNumber */ "a"].from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"));
|
|
3975
|
+
|
|
3976
|
+
//# sourceMappingURL=bignumbers.js.map
|
|
3977
|
+
|
|
3978
|
+
/***/ }),
|
|
3979
|
+
|
|
3980
|
+
/***/ "./node_modules/@ethersproject/abi/node_modules/@ethersproject/constants/lib.esm/hashes.js":
|
|
3981
|
+
/*!*************************************************************************************************!*\
|
|
3982
|
+
!*** ./node_modules/@ethersproject/abi/node_modules/@ethersproject/constants/lib.esm/hashes.js ***!
|
|
3983
|
+
\*************************************************************************************************/
|
|
3984
|
+
/*! exports provided: HashZero */
|
|
3985
|
+
/*! exports used: HashZero */
|
|
3986
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3987
|
+
|
|
3988
|
+
"use strict";
|
|
3989
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return HashZero; });
|
|
3990
|
+
const HashZero = "0x0000000000000000000000000000000000000000000000000000000000000000";
|
|
3991
|
+
//# sourceMappingURL=hashes.js.map
|
|
3992
|
+
|
|
3993
|
+
/***/ }),
|
|
3994
|
+
|
|
3995
|
+
/***/ "./node_modules/@ethersproject/abi/node_modules/@ethersproject/constants/lib.esm/index.js":
|
|
3996
|
+
/*!************************************************************************************************!*\
|
|
3997
|
+
!*** ./node_modules/@ethersproject/abi/node_modules/@ethersproject/constants/lib.esm/index.js ***!
|
|
3998
|
+
\************************************************************************************************/
|
|
3999
|
+
/*! exports provided: AddressZero, NegativeOne, Zero, One, Two, WeiPerEther, MaxUint256, HashZero, EtherSymbol */
|
|
4000
|
+
/*! exports used: HashZero, MaxUint256, NegativeOne, One, Zero */
|
|
4001
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4002
|
+
|
|
4003
|
+
"use strict";
|
|
4004
|
+
/* harmony import */ var _addresses__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./addresses */ "./node_modules/@ethersproject/abi/node_modules/@ethersproject/constants/lib.esm/addresses.js");
|
|
4005
|
+
/* harmony import */ var _bignumbers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./bignumbers */ "./node_modules/@ethersproject/abi/node_modules/@ethersproject/constants/lib.esm/bignumbers.js");
|
|
4006
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "c", function() { return _bignumbers__WEBPACK_IMPORTED_MODULE_1__["b"]; });
|
|
4007
|
+
|
|
4008
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "e", function() { return _bignumbers__WEBPACK_IMPORTED_MODULE_1__["d"]; });
|
|
4009
|
+
|
|
4010
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "d", function() { return _bignumbers__WEBPACK_IMPORTED_MODULE_1__["c"]; });
|
|
4011
|
+
|
|
4012
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "b", function() { return _bignumbers__WEBPACK_IMPORTED_MODULE_1__["a"]; });
|
|
4013
|
+
|
|
4014
|
+
/* harmony import */ var _hashes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./hashes */ "./node_modules/@ethersproject/abi/node_modules/@ethersproject/constants/lib.esm/hashes.js");
|
|
4015
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _hashes__WEBPACK_IMPORTED_MODULE_2__["a"]; });
|
|
4016
|
+
|
|
4017
|
+
/* harmony import */ var _strings__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./strings */ "./node_modules/@ethersproject/abi/node_modules/@ethersproject/constants/lib.esm/strings.js");
|
|
4018
|
+
|
|
4019
|
+
|
|
4020
|
+
|
|
4021
|
+
|
|
4022
|
+
|
|
4023
|
+
//# sourceMappingURL=index.js.map
|
|
4024
|
+
|
|
4025
|
+
/***/ }),
|
|
4026
|
+
|
|
4027
|
+
/***/ "./node_modules/@ethersproject/abi/node_modules/@ethersproject/constants/lib.esm/strings.js":
|
|
4028
|
+
/*!**************************************************************************************************!*\
|
|
4029
|
+
!*** ./node_modules/@ethersproject/abi/node_modules/@ethersproject/constants/lib.esm/strings.js ***!
|
|
4030
|
+
\**************************************************************************************************/
|
|
4031
|
+
/*! exports provided: EtherSymbol */
|
|
4032
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4033
|
+
|
|
4034
|
+
"use strict";
|
|
4035
|
+
/* unused harmony export EtherSymbol */
|
|
4036
|
+
// NFKC (composed) // (decomposed)
|
|
4037
|
+
const EtherSymbol = "\u039e"; // "\uD835\uDF63";
|
|
4038
|
+
//# sourceMappingURL=strings.js.map
|
|
4039
|
+
|
|
3936
4040
|
/***/ }),
|
|
3937
4041
|
|
|
3938
4042
|
/***/ "./node_modules/@ethersproject/abi/node_modules/@ethersproject/logger/lib.esm/_version.js":
|
|
@@ -4426,7 +4530,7 @@ const version = "strings/5.0.1";
|
|
|
4426
4530
|
"use strict";
|
|
4427
4531
|
/* unused harmony export formatBytes32String */
|
|
4428
4532
|
/* unused harmony export parseBytes32String */
|
|
4429
|
-
/* harmony import */ var _ethersproject_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ethersproject/constants */ "./node_modules/@ethersproject/constants/lib.esm/index.js");
|
|
4533
|
+
/* harmony import */ var _ethersproject_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ethersproject/constants */ "./node_modules/@ethersproject/abi/node_modules/@ethersproject/constants/lib.esm/index.js");
|
|
4430
4534
|
/* harmony import */ var _ethersproject_bytes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @ethersproject/bytes */ "./node_modules/@ethersproject/abi/node_modules/@ethersproject/bytes/lib.esm/index.js");
|
|
4431
4535
|
/* harmony import */ var _utf8__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utf8 */ "./node_modules/@ethersproject/abi/node_modules/@ethersproject/strings/lib.esm/utf8.js");
|
|
4432
4536
|
|
|
@@ -11286,19 +11390,19 @@ function joinSignature(signature) {
|
|
|
11286
11390
|
!*** ./node_modules/@ethersproject/constants/lib.esm/index.js ***!
|
|
11287
11391
|
\****************************************************************/
|
|
11288
11392
|
/*! exports provided: AddressZero, HashZero, EtherSymbol, NegativeOne, Zero, One, Two, WeiPerEther, MaxUint256 */
|
|
11289
|
-
/*! exports used: HashZero,
|
|
11393
|
+
/*! exports used: HashZero, Zero */
|
|
11290
11394
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
11291
11395
|
|
|
11292
11396
|
"use strict";
|
|
11293
11397
|
/* unused harmony export AddressZero */
|
|
11294
11398
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return HashZero; });
|
|
11295
11399
|
/* unused harmony export EtherSymbol */
|
|
11296
|
-
/* harmony export
|
|
11297
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
11298
|
-
/* harmony export
|
|
11400
|
+
/* unused harmony export NegativeOne */
|
|
11401
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return Zero; });
|
|
11402
|
+
/* unused harmony export One */
|
|
11299
11403
|
/* unused harmony export Two */
|
|
11300
11404
|
/* unused harmony export WeiPerEther */
|
|
11301
|
-
/* harmony export
|
|
11405
|
+
/* unused harmony export MaxUint256 */
|
|
11302
11406
|
/* harmony import */ var _ethersproject_bignumber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ethersproject/bignumber */ "./node_modules/@ethersproject/constants/node_modules/@ethersproject/bignumber/lib.esm/index.js");
|
|
11303
11407
|
|
|
11304
11408
|
|
|
@@ -16439,7 +16543,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16439
16543
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return toUtf8String; });
|
|
16440
16544
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return toUtf8CodePoints; });
|
|
16441
16545
|
/* harmony import */ var _ethersproject_bytes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ethersproject/bytes */ "./node_modules/@ethersproject/bytes/lib.esm/index.js");
|
|
16442
|
-
/* harmony import */ var _ethersproject_logger__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @ethersproject/logger */ "./node_modules/@ethersproject/
|
|
16546
|
+
/* harmony import */ var _ethersproject_logger__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @ethersproject/logger */ "./node_modules/@ethersproject/logger/lib.esm/index.js");
|
|
16443
16547
|
/* harmony import */ var _version__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./_version */ "./node_modules/@ethersproject/strings/lib.esm/_version.js");
|
|
16444
16548
|
|
|
16445
16549
|
|
|
@@ -16791,392 +16895,6 @@ const EtherSymbol = "\u039e"; // "\uD835\uDF63";
|
|
|
16791
16895
|
|
|
16792
16896
|
/***/ }),
|
|
16793
16897
|
|
|
16794
|
-
/***/ "./node_modules/@ethersproject/strings/node_modules/@ethersproject/logger/lib.esm/_version.js":
|
|
16795
|
-
/*!****************************************************************************************************!*\
|
|
16796
|
-
!*** ./node_modules/@ethersproject/strings/node_modules/@ethersproject/logger/lib.esm/_version.js ***!
|
|
16797
|
-
\****************************************************************************************************/
|
|
16798
|
-
/*! exports provided: version */
|
|
16799
|
-
/*! exports used: version */
|
|
16800
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
16801
|
-
|
|
16802
|
-
"use strict";
|
|
16803
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return version; });
|
|
16804
|
-
const version = "logger/5.7.0";
|
|
16805
|
-
//# sourceMappingURL=_version.js.map
|
|
16806
|
-
|
|
16807
|
-
/***/ }),
|
|
16808
|
-
|
|
16809
|
-
/***/ "./node_modules/@ethersproject/strings/node_modules/@ethersproject/logger/lib.esm/index.js":
|
|
16810
|
-
/*!*************************************************************************************************!*\
|
|
16811
|
-
!*** ./node_modules/@ethersproject/strings/node_modules/@ethersproject/logger/lib.esm/index.js ***!
|
|
16812
|
-
\*************************************************************************************************/
|
|
16813
|
-
/*! exports provided: LogLevel, ErrorCode, Logger */
|
|
16814
|
-
/*! exports used: Logger */
|
|
16815
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
16816
|
-
|
|
16817
|
-
"use strict";
|
|
16818
|
-
/* unused harmony export LogLevel */
|
|
16819
|
-
/* unused harmony export ErrorCode */
|
|
16820
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Logger; });
|
|
16821
|
-
/* harmony import */ var _version__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_version */ "./node_modules/@ethersproject/strings/node_modules/@ethersproject/logger/lib.esm/_version.js");
|
|
16822
|
-
|
|
16823
|
-
let _permanentCensorErrors = false;
|
|
16824
|
-
let _censorErrors = false;
|
|
16825
|
-
const LogLevels = { debug: 1, "default": 2, info: 2, warning: 3, error: 4, off: 5 };
|
|
16826
|
-
let _logLevel = LogLevels["default"];
|
|
16827
|
-
|
|
16828
|
-
let _globalLogger = null;
|
|
16829
|
-
function _checkNormalize() {
|
|
16830
|
-
try {
|
|
16831
|
-
const missing = [];
|
|
16832
|
-
// Make sure all forms of normalization are supported
|
|
16833
|
-
["NFD", "NFC", "NFKD", "NFKC"].forEach((form) => {
|
|
16834
|
-
try {
|
|
16835
|
-
if ("test".normalize(form) !== "test") {
|
|
16836
|
-
throw new Error("bad normalize");
|
|
16837
|
-
}
|
|
16838
|
-
;
|
|
16839
|
-
}
|
|
16840
|
-
catch (error) {
|
|
16841
|
-
missing.push(form);
|
|
16842
|
-
}
|
|
16843
|
-
});
|
|
16844
|
-
if (missing.length) {
|
|
16845
|
-
throw new Error("missing " + missing.join(", "));
|
|
16846
|
-
}
|
|
16847
|
-
if (String.fromCharCode(0xe9).normalize("NFD") !== String.fromCharCode(0x65, 0x0301)) {
|
|
16848
|
-
throw new Error("broken implementation");
|
|
16849
|
-
}
|
|
16850
|
-
}
|
|
16851
|
-
catch (error) {
|
|
16852
|
-
return error.message;
|
|
16853
|
-
}
|
|
16854
|
-
return null;
|
|
16855
|
-
}
|
|
16856
|
-
const _normalizeError = _checkNormalize();
|
|
16857
|
-
var LogLevel;
|
|
16858
|
-
(function (LogLevel) {
|
|
16859
|
-
LogLevel["DEBUG"] = "DEBUG";
|
|
16860
|
-
LogLevel["INFO"] = "INFO";
|
|
16861
|
-
LogLevel["WARNING"] = "WARNING";
|
|
16862
|
-
LogLevel["ERROR"] = "ERROR";
|
|
16863
|
-
LogLevel["OFF"] = "OFF";
|
|
16864
|
-
})(LogLevel || (LogLevel = {}));
|
|
16865
|
-
var ErrorCode;
|
|
16866
|
-
(function (ErrorCode) {
|
|
16867
|
-
///////////////////
|
|
16868
|
-
// Generic Errors
|
|
16869
|
-
// Unknown Error
|
|
16870
|
-
ErrorCode["UNKNOWN_ERROR"] = "UNKNOWN_ERROR";
|
|
16871
|
-
// Not Implemented
|
|
16872
|
-
ErrorCode["NOT_IMPLEMENTED"] = "NOT_IMPLEMENTED";
|
|
16873
|
-
// Unsupported Operation
|
|
16874
|
-
// - operation
|
|
16875
|
-
ErrorCode["UNSUPPORTED_OPERATION"] = "UNSUPPORTED_OPERATION";
|
|
16876
|
-
// Network Error (i.e. Ethereum Network, such as an invalid chain ID)
|
|
16877
|
-
// - event ("noNetwork" is not re-thrown in provider.ready; otherwise thrown)
|
|
16878
|
-
ErrorCode["NETWORK_ERROR"] = "NETWORK_ERROR";
|
|
16879
|
-
// Some sort of bad response from the server
|
|
16880
|
-
ErrorCode["SERVER_ERROR"] = "SERVER_ERROR";
|
|
16881
|
-
// Timeout
|
|
16882
|
-
ErrorCode["TIMEOUT"] = "TIMEOUT";
|
|
16883
|
-
///////////////////
|
|
16884
|
-
// Operational Errors
|
|
16885
|
-
// Buffer Overrun
|
|
16886
|
-
ErrorCode["BUFFER_OVERRUN"] = "BUFFER_OVERRUN";
|
|
16887
|
-
// Numeric Fault
|
|
16888
|
-
// - operation: the operation being executed
|
|
16889
|
-
// - fault: the reason this faulted
|
|
16890
|
-
ErrorCode["NUMERIC_FAULT"] = "NUMERIC_FAULT";
|
|
16891
|
-
///////////////////
|
|
16892
|
-
// Argument Errors
|
|
16893
|
-
// Missing new operator to an object
|
|
16894
|
-
// - name: The name of the class
|
|
16895
|
-
ErrorCode["MISSING_NEW"] = "MISSING_NEW";
|
|
16896
|
-
// Invalid argument (e.g. value is incompatible with type) to a function:
|
|
16897
|
-
// - argument: The argument name that was invalid
|
|
16898
|
-
// - value: The value of the argument
|
|
16899
|
-
ErrorCode["INVALID_ARGUMENT"] = "INVALID_ARGUMENT";
|
|
16900
|
-
// Missing argument to a function:
|
|
16901
|
-
// - count: The number of arguments received
|
|
16902
|
-
// - expectedCount: The number of arguments expected
|
|
16903
|
-
ErrorCode["MISSING_ARGUMENT"] = "MISSING_ARGUMENT";
|
|
16904
|
-
// Too many arguments
|
|
16905
|
-
// - count: The number of arguments received
|
|
16906
|
-
// - expectedCount: The number of arguments expected
|
|
16907
|
-
ErrorCode["UNEXPECTED_ARGUMENT"] = "UNEXPECTED_ARGUMENT";
|
|
16908
|
-
///////////////////
|
|
16909
|
-
// Blockchain Errors
|
|
16910
|
-
// Call exception
|
|
16911
|
-
// - transaction: the transaction
|
|
16912
|
-
// - address?: the contract address
|
|
16913
|
-
// - args?: The arguments passed into the function
|
|
16914
|
-
// - method?: The Solidity method signature
|
|
16915
|
-
// - errorSignature?: The EIP848 error signature
|
|
16916
|
-
// - errorArgs?: The EIP848 error parameters
|
|
16917
|
-
// - reason: The reason (only for EIP848 "Error(string)")
|
|
16918
|
-
ErrorCode["CALL_EXCEPTION"] = "CALL_EXCEPTION";
|
|
16919
|
-
// Insufficient funds (< value + gasLimit * gasPrice)
|
|
16920
|
-
// - transaction: the transaction attempted
|
|
16921
|
-
ErrorCode["INSUFFICIENT_FUNDS"] = "INSUFFICIENT_FUNDS";
|
|
16922
|
-
// Nonce has already been used
|
|
16923
|
-
// - transaction: the transaction attempted
|
|
16924
|
-
ErrorCode["NONCE_EXPIRED"] = "NONCE_EXPIRED";
|
|
16925
|
-
// The replacement fee for the transaction is too low
|
|
16926
|
-
// - transaction: the transaction attempted
|
|
16927
|
-
ErrorCode["REPLACEMENT_UNDERPRICED"] = "REPLACEMENT_UNDERPRICED";
|
|
16928
|
-
// The gas limit could not be estimated
|
|
16929
|
-
// - transaction: the transaction passed to estimateGas
|
|
16930
|
-
ErrorCode["UNPREDICTABLE_GAS_LIMIT"] = "UNPREDICTABLE_GAS_LIMIT";
|
|
16931
|
-
// The transaction was replaced by one with a higher gas price
|
|
16932
|
-
// - reason: "cancelled", "replaced" or "repriced"
|
|
16933
|
-
// - cancelled: true if reason == "cancelled" or reason == "replaced")
|
|
16934
|
-
// - hash: original transaction hash
|
|
16935
|
-
// - replacement: the full TransactionsResponse for the replacement
|
|
16936
|
-
// - receipt: the receipt of the replacement
|
|
16937
|
-
ErrorCode["TRANSACTION_REPLACED"] = "TRANSACTION_REPLACED";
|
|
16938
|
-
///////////////////
|
|
16939
|
-
// Interaction Errors
|
|
16940
|
-
// The user rejected the action, such as signing a message or sending
|
|
16941
|
-
// a transaction
|
|
16942
|
-
ErrorCode["ACTION_REJECTED"] = "ACTION_REJECTED";
|
|
16943
|
-
})(ErrorCode || (ErrorCode = {}));
|
|
16944
|
-
;
|
|
16945
|
-
const HEX = "0123456789abcdef";
|
|
16946
|
-
class Logger {
|
|
16947
|
-
constructor(version) {
|
|
16948
|
-
Object.defineProperty(this, "version", {
|
|
16949
|
-
enumerable: true,
|
|
16950
|
-
value: version,
|
|
16951
|
-
writable: false
|
|
16952
|
-
});
|
|
16953
|
-
}
|
|
16954
|
-
_log(logLevel, args) {
|
|
16955
|
-
const level = logLevel.toLowerCase();
|
|
16956
|
-
if (LogLevels[level] == null) {
|
|
16957
|
-
this.throwArgumentError("invalid log level name", "logLevel", logLevel);
|
|
16958
|
-
}
|
|
16959
|
-
if (_logLevel > LogLevels[level]) {
|
|
16960
|
-
return;
|
|
16961
|
-
}
|
|
16962
|
-
console.log.apply(console, args);
|
|
16963
|
-
}
|
|
16964
|
-
debug(...args) {
|
|
16965
|
-
this._log(Logger.levels.DEBUG, args);
|
|
16966
|
-
}
|
|
16967
|
-
info(...args) {
|
|
16968
|
-
this._log(Logger.levels.INFO, args);
|
|
16969
|
-
}
|
|
16970
|
-
warn(...args) {
|
|
16971
|
-
this._log(Logger.levels.WARNING, args);
|
|
16972
|
-
}
|
|
16973
|
-
makeError(message, code, params) {
|
|
16974
|
-
// Errors are being censored
|
|
16975
|
-
if (_censorErrors) {
|
|
16976
|
-
return this.makeError("censored error", code, {});
|
|
16977
|
-
}
|
|
16978
|
-
if (!code) {
|
|
16979
|
-
code = Logger.errors.UNKNOWN_ERROR;
|
|
16980
|
-
}
|
|
16981
|
-
if (!params) {
|
|
16982
|
-
params = {};
|
|
16983
|
-
}
|
|
16984
|
-
const messageDetails = [];
|
|
16985
|
-
Object.keys(params).forEach((key) => {
|
|
16986
|
-
const value = params[key];
|
|
16987
|
-
try {
|
|
16988
|
-
if (value instanceof Uint8Array) {
|
|
16989
|
-
let hex = "";
|
|
16990
|
-
for (let i = 0; i < value.length; i++) {
|
|
16991
|
-
hex += HEX[value[i] >> 4];
|
|
16992
|
-
hex += HEX[value[i] & 0x0f];
|
|
16993
|
-
}
|
|
16994
|
-
messageDetails.push(key + "=Uint8Array(0x" + hex + ")");
|
|
16995
|
-
}
|
|
16996
|
-
else {
|
|
16997
|
-
messageDetails.push(key + "=" + JSON.stringify(value));
|
|
16998
|
-
}
|
|
16999
|
-
}
|
|
17000
|
-
catch (error) {
|
|
17001
|
-
messageDetails.push(key + "=" + JSON.stringify(params[key].toString()));
|
|
17002
|
-
}
|
|
17003
|
-
});
|
|
17004
|
-
messageDetails.push(`code=${code}`);
|
|
17005
|
-
messageDetails.push(`version=${this.version}`);
|
|
17006
|
-
const reason = message;
|
|
17007
|
-
let url = "";
|
|
17008
|
-
switch (code) {
|
|
17009
|
-
case ErrorCode.NUMERIC_FAULT: {
|
|
17010
|
-
url = "NUMERIC_FAULT";
|
|
17011
|
-
const fault = message;
|
|
17012
|
-
switch (fault) {
|
|
17013
|
-
case "overflow":
|
|
17014
|
-
case "underflow":
|
|
17015
|
-
case "division-by-zero":
|
|
17016
|
-
url += "-" + fault;
|
|
17017
|
-
break;
|
|
17018
|
-
case "negative-power":
|
|
17019
|
-
case "negative-width":
|
|
17020
|
-
url += "-unsupported";
|
|
17021
|
-
break;
|
|
17022
|
-
case "unbound-bitwise-result":
|
|
17023
|
-
url += "-unbound-result";
|
|
17024
|
-
break;
|
|
17025
|
-
}
|
|
17026
|
-
break;
|
|
17027
|
-
}
|
|
17028
|
-
case ErrorCode.CALL_EXCEPTION:
|
|
17029
|
-
case ErrorCode.INSUFFICIENT_FUNDS:
|
|
17030
|
-
case ErrorCode.MISSING_NEW:
|
|
17031
|
-
case ErrorCode.NONCE_EXPIRED:
|
|
17032
|
-
case ErrorCode.REPLACEMENT_UNDERPRICED:
|
|
17033
|
-
case ErrorCode.TRANSACTION_REPLACED:
|
|
17034
|
-
case ErrorCode.UNPREDICTABLE_GAS_LIMIT:
|
|
17035
|
-
url = code;
|
|
17036
|
-
break;
|
|
17037
|
-
}
|
|
17038
|
-
if (url) {
|
|
17039
|
-
message += " [ See: https:/\/links.ethers.org/v5-errors-" + url + " ]";
|
|
17040
|
-
}
|
|
17041
|
-
if (messageDetails.length) {
|
|
17042
|
-
message += " (" + messageDetails.join(", ") + ")";
|
|
17043
|
-
}
|
|
17044
|
-
// @TODO: Any??
|
|
17045
|
-
const error = new Error(message);
|
|
17046
|
-
error.reason = reason;
|
|
17047
|
-
error.code = code;
|
|
17048
|
-
Object.keys(params).forEach(function (key) {
|
|
17049
|
-
error[key] = params[key];
|
|
17050
|
-
});
|
|
17051
|
-
return error;
|
|
17052
|
-
}
|
|
17053
|
-
throwError(message, code, params) {
|
|
17054
|
-
throw this.makeError(message, code, params);
|
|
17055
|
-
}
|
|
17056
|
-
throwArgumentError(message, name, value) {
|
|
17057
|
-
return this.throwError(message, Logger.errors.INVALID_ARGUMENT, {
|
|
17058
|
-
argument: name,
|
|
17059
|
-
value: value
|
|
17060
|
-
});
|
|
17061
|
-
}
|
|
17062
|
-
assert(condition, message, code, params) {
|
|
17063
|
-
if (!!condition) {
|
|
17064
|
-
return;
|
|
17065
|
-
}
|
|
17066
|
-
this.throwError(message, code, params);
|
|
17067
|
-
}
|
|
17068
|
-
assertArgument(condition, message, name, value) {
|
|
17069
|
-
if (!!condition) {
|
|
17070
|
-
return;
|
|
17071
|
-
}
|
|
17072
|
-
this.throwArgumentError(message, name, value);
|
|
17073
|
-
}
|
|
17074
|
-
checkNormalize(message) {
|
|
17075
|
-
if (message == null) {
|
|
17076
|
-
message = "platform missing String.prototype.normalize";
|
|
17077
|
-
}
|
|
17078
|
-
if (_normalizeError) {
|
|
17079
|
-
this.throwError("platform missing String.prototype.normalize", Logger.errors.UNSUPPORTED_OPERATION, {
|
|
17080
|
-
operation: "String.prototype.normalize", form: _normalizeError
|
|
17081
|
-
});
|
|
17082
|
-
}
|
|
17083
|
-
}
|
|
17084
|
-
checkSafeUint53(value, message) {
|
|
17085
|
-
if (typeof (value) !== "number") {
|
|
17086
|
-
return;
|
|
17087
|
-
}
|
|
17088
|
-
if (message == null) {
|
|
17089
|
-
message = "value not safe";
|
|
17090
|
-
}
|
|
17091
|
-
if (value < 0 || value >= 0x1fffffffffffff) {
|
|
17092
|
-
this.throwError(message, Logger.errors.NUMERIC_FAULT, {
|
|
17093
|
-
operation: "checkSafeInteger",
|
|
17094
|
-
fault: "out-of-safe-range",
|
|
17095
|
-
value: value
|
|
17096
|
-
});
|
|
17097
|
-
}
|
|
17098
|
-
if (value % 1) {
|
|
17099
|
-
this.throwError(message, Logger.errors.NUMERIC_FAULT, {
|
|
17100
|
-
operation: "checkSafeInteger",
|
|
17101
|
-
fault: "non-integer",
|
|
17102
|
-
value: value
|
|
17103
|
-
});
|
|
17104
|
-
}
|
|
17105
|
-
}
|
|
17106
|
-
checkArgumentCount(count, expectedCount, message) {
|
|
17107
|
-
if (message) {
|
|
17108
|
-
message = ": " + message;
|
|
17109
|
-
}
|
|
17110
|
-
else {
|
|
17111
|
-
message = "";
|
|
17112
|
-
}
|
|
17113
|
-
if (count < expectedCount) {
|
|
17114
|
-
this.throwError("missing argument" + message, Logger.errors.MISSING_ARGUMENT, {
|
|
17115
|
-
count: count,
|
|
17116
|
-
expectedCount: expectedCount
|
|
17117
|
-
});
|
|
17118
|
-
}
|
|
17119
|
-
if (count > expectedCount) {
|
|
17120
|
-
this.throwError("too many arguments" + message, Logger.errors.UNEXPECTED_ARGUMENT, {
|
|
17121
|
-
count: count,
|
|
17122
|
-
expectedCount: expectedCount
|
|
17123
|
-
});
|
|
17124
|
-
}
|
|
17125
|
-
}
|
|
17126
|
-
checkNew(target, kind) {
|
|
17127
|
-
if (target === Object || target == null) {
|
|
17128
|
-
this.throwError("missing new", Logger.errors.MISSING_NEW, { name: kind.name });
|
|
17129
|
-
}
|
|
17130
|
-
}
|
|
17131
|
-
checkAbstract(target, kind) {
|
|
17132
|
-
if (target === kind) {
|
|
17133
|
-
this.throwError("cannot instantiate abstract class " + JSON.stringify(kind.name) + " directly; use a sub-class", Logger.errors.UNSUPPORTED_OPERATION, { name: target.name, operation: "new" });
|
|
17134
|
-
}
|
|
17135
|
-
else if (target === Object || target == null) {
|
|
17136
|
-
this.throwError("missing new", Logger.errors.MISSING_NEW, { name: kind.name });
|
|
17137
|
-
}
|
|
17138
|
-
}
|
|
17139
|
-
static globalLogger() {
|
|
17140
|
-
if (!_globalLogger) {
|
|
17141
|
-
_globalLogger = new Logger(_version__WEBPACK_IMPORTED_MODULE_0__[/* version */ "a"]);
|
|
17142
|
-
}
|
|
17143
|
-
return _globalLogger;
|
|
17144
|
-
}
|
|
17145
|
-
static setCensorship(censorship, permanent) {
|
|
17146
|
-
if (!censorship && permanent) {
|
|
17147
|
-
this.globalLogger().throwError("cannot permanently disable censorship", Logger.errors.UNSUPPORTED_OPERATION, {
|
|
17148
|
-
operation: "setCensorship"
|
|
17149
|
-
});
|
|
17150
|
-
}
|
|
17151
|
-
if (_permanentCensorErrors) {
|
|
17152
|
-
if (!censorship) {
|
|
17153
|
-
return;
|
|
17154
|
-
}
|
|
17155
|
-
this.globalLogger().throwError("error censorship permanent", Logger.errors.UNSUPPORTED_OPERATION, {
|
|
17156
|
-
operation: "setCensorship"
|
|
17157
|
-
});
|
|
17158
|
-
}
|
|
17159
|
-
_censorErrors = !!censorship;
|
|
17160
|
-
_permanentCensorErrors = !!permanent;
|
|
17161
|
-
}
|
|
17162
|
-
static setLogLevel(logLevel) {
|
|
17163
|
-
const level = LogLevels[logLevel.toLowerCase()];
|
|
17164
|
-
if (level == null) {
|
|
17165
|
-
Logger.globalLogger().warn("invalid log level - " + logLevel);
|
|
17166
|
-
return;
|
|
17167
|
-
}
|
|
17168
|
-
_logLevel = level;
|
|
17169
|
-
}
|
|
17170
|
-
static from(version) {
|
|
17171
|
-
return new Logger(version);
|
|
17172
|
-
}
|
|
17173
|
-
}
|
|
17174
|
-
Logger.errors = ErrorCode;
|
|
17175
|
-
Logger.levels = LogLevel;
|
|
17176
|
-
//# sourceMappingURL=index.js.map
|
|
17177
|
-
|
|
17178
|
-
/***/ }),
|
|
17179
|
-
|
|
17180
16898
|
/***/ "./node_modules/@metamask/detect-provider/dist/index.js":
|
|
17181
16899
|
/*!**************************************************************!*\
|
|
17182
16900
|
!*** ./node_modules/@metamask/detect-provider/dist/index.js ***!
|
|
@@ -116558,7 +116276,7 @@ function handleAddress(value) {
|
|
|
116558
116276
|
}
|
|
116559
116277
|
function handleNumber(value) {
|
|
116560
116278
|
if (value === "0x") {
|
|
116561
|
-
return _ethersproject_constants__WEBPACK_IMPORTED_MODULE_3__[/* Zero */ "
|
|
116279
|
+
return _ethersproject_constants__WEBPACK_IMPORTED_MODULE_3__[/* Zero */ "b"];
|
|
116562
116280
|
}
|
|
116563
116281
|
return _ethersproject_bignumber__WEBPACK_IMPORTED_MODULE_1__[/* BigNumber */ "a"].from(value);
|
|
116564
116282
|
}
|
|
@@ -131385,7 +131103,7 @@ exports.getModalConfigByLoginProviders = (verifier, configVerifiers) => {
|
|
|
131385
131103
|
* User data is stored in your Auth0 DB.
|
|
131386
131104
|
*/
|
|
131387
131105
|
exports.getCustomLoginConfig = (config) => {
|
|
131388
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
131106
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
131389
131107
|
const baseConf = {
|
|
131390
131108
|
line: Object.assign({ typeOfLogin: 'line', clientId: config.auth0ClientId, jwtParameters: {
|
|
131391
131109
|
prompt: 'select_account',
|
|
@@ -131398,9 +131116,10 @@ exports.getCustomLoginConfig = (config) => {
|
|
|
131398
131116
|
callback_url: config.callbackUrl || exports.getCallabckUrl(),
|
|
131399
131117
|
contactUrl: ((_d = config === null || config === void 0 ? void 0 : config.customUi) === null || _d === void 0 ? void 0 : _d.contactUrl) || constant_1.CONTACT_EMAIL,
|
|
131400
131118
|
serviceName: ((_e = config === null || config === void 0 ? void 0 : config.customUi) === null || _e === void 0 ? void 0 : _e.serviceName) || constant_1.APP,
|
|
131401
|
-
|
|
131402
|
-
|
|
131403
|
-
|
|
131119
|
+
verificationEmailTitle: (_f = config === null || config === void 0 ? void 0 : config.customUi) === null || _f === void 0 ? void 0 : _f.verificationEmailTitle,
|
|
131120
|
+
logoURL: ((_g = config.customUi) === null || _g === void 0 ? void 0 : _g.logoUrl) || constant_1.LOGO_URL(constant_1.STARTRAIL_ENV.PROD).black,
|
|
131121
|
+
titleSignup: ((_l = (_k = (_j = (_h = config.customUi) === null || _h === void 0 ? void 0 : _h.words) === null || _j === void 0 ? void 0 : _j[config.lang]) === null || _k === void 0 ? void 0 : _k.emailAuthPopup) === null || _l === void 0 ? void 0 : _l['titleSignup']) || constant_1.EMAIL_PASSWORD_POPUP_LABEL.SIGNUP[config.lang],
|
|
131122
|
+
titleLogin: ((_q = (_p = (_o = (_m = config.customUi) === null || _m === void 0 ? void 0 : _m.words) === null || _o === void 0 ? void 0 : _o[config.lang]) === null || _p === void 0 ? void 0 : _p.emailAuthPopup) === null || _q === void 0 ? void 0 : _q['titleLogin']) || constant_1.EMAIL_PASSWORD_POPUP_LABEL.LOGIN[config.lang],
|
|
131404
131123
|
ui_locales: config.lang
|
|
131405
131124
|
} })
|
|
131406
131125
|
};
|
|
@@ -131415,11 +131134,8 @@ exports.getCustomLoginConfig = (config) => {
|
|
|
131415
131134
|
exports.getVerifierByLoginProvider = (env, withModal, loginProvider, authConfigKey) => {
|
|
131416
131135
|
if (withModal)
|
|
131417
131136
|
return null;
|
|
131418
|
-
|
|
131419
|
-
|
|
131420
|
-
.map(([key, _]) => key);
|
|
131421
|
-
// Alwasys Use first index of array when withModal is false
|
|
131422
|
-
const verifier = verifiers[0];
|
|
131137
|
+
// Always use first index of array when withModal is false
|
|
131138
|
+
const verifier = Object.keys(loginProvider).filter(key => loginProvider[key].showOnModal)[0];
|
|
131423
131139
|
switch (verifier) {
|
|
131424
131140
|
// NOTE: email_passwordless always need modal
|
|
131425
131141
|
case 'email_passwordless':
|
|
@@ -131434,30 +131150,38 @@ exports.getVerifierByLoginProvider = (env, withModal, loginProvider, authConfigK
|
|
|
131434
131150
|
return constant_1.TORUS_VERIFIERS[verifier][env];
|
|
131435
131151
|
}
|
|
131436
131152
|
};
|
|
131153
|
+
/**
|
|
131154
|
+
* Arrange the layout of login providers in modal.
|
|
131155
|
+
* if it is true, login providers are positioned in the upper layout of modal.
|
|
131156
|
+
* Note: email_passwordless is restricted to alaways be lower layout by Torus library.
|
|
131157
|
+
*/
|
|
131158
|
+
const isShowInUpperLayoutInModal = (target, selectedVerifiers) => {
|
|
131159
|
+
const shouldPositionedAsMain = !verifiersDisplayedAsSubmain.includes(target);
|
|
131160
|
+
const isPasswordlessAndEmailpasswordExist = () => {
|
|
131161
|
+
return verifiersDisplayedAsSubmain.every((verifier) => selectedVerifiers.includes(verifier));
|
|
131162
|
+
};
|
|
131163
|
+
return shouldPositionedAsMain || (target === 'email_password' && isPasswordlessAndEmailpasswordExist());
|
|
131164
|
+
};
|
|
131437
131165
|
/**
|
|
131438
131166
|
* To absorb irregularity such as
|
|
131439
131167
|
* verifiers is undefined or empty array, priority number
|
|
131440
131168
|
* and isShowAsMainOption for some verifiers
|
|
131441
131169
|
*/
|
|
131442
|
-
exports.restructureLoginConfig = (verifiers) => {
|
|
131443
|
-
|
|
131444
|
-
const
|
|
131445
|
-
|
|
131446
|
-
|
|
131170
|
+
exports.restructureLoginConfig = (verifiers = []) => {
|
|
131171
|
+
const uniqueVerifiersSet = new Set(verifiers);
|
|
131172
|
+
const hasVerifiers = uniqueVerifiersSet.size > 0;
|
|
131173
|
+
const selectedVerifiers = hasVerifiers
|
|
131174
|
+
? [...verifiers, ...exports.allAllowedVerifiers.filter(item => !uniqueVerifiersSet.has(item))]
|
|
131175
|
+
: exports.allAllowedVerifiers;
|
|
131447
131176
|
const conf = {};
|
|
131448
|
-
for (let i = 0; i <
|
|
131449
|
-
const isShow = !
|
|
131450
|
-
conf[
|
|
131451
|
-
// Modify the order of buttons. Should be greater than zero, where 1 is top priority.
|
|
131177
|
+
for (let i = 0; i < selectedVerifiers.length; i++) {
|
|
131178
|
+
const isShow = !hasVerifiers || uniqueVerifiersSet.has(selectedVerifiers[i]);
|
|
131179
|
+
conf[selectedVerifiers[i]] = {
|
|
131452
131180
|
priority: i + 1,
|
|
131453
|
-
// Whether to show the login button on modal or not
|
|
131454
131181
|
showOnModal: isShow,
|
|
131455
|
-
// Whether to show the login button on mobile
|
|
131456
131182
|
showOnMobile: isShow,
|
|
131457
|
-
// Whether to show the login button on desktop
|
|
131458
131183
|
showOnDesktop: isShow,
|
|
131459
|
-
|
|
131460
|
-
mainOption: !verifiersDisplayedAsSubmain.includes(sortedVerifiers[i])
|
|
131184
|
+
mainOption: isShowInUpperLayoutInModal(selectedVerifiers[i], hasVerifiers ? verifiers : selectedVerifiers)
|
|
131461
131185
|
};
|
|
131462
131186
|
}
|
|
131463
131187
|
return conf;
|
package/package.json
CHANGED
|
@@ -155,6 +155,7 @@ declare module '@startbahn/startrail-sdk-js/types' {
|
|
|
155
155
|
contactUrl?: string;
|
|
156
156
|
words?: CustomMultiLangConfig;
|
|
157
157
|
logoWhiteUrl?: string;
|
|
158
|
+
verificationEmailTitle?: string;
|
|
158
159
|
}
|
|
159
160
|
export type CustomMultiLangConfig = {
|
|
160
161
|
[lang in Language]: CustomWords;
|