@coinswap-app/uikit 1.0.19 → 1.0.20
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/dist/index.cjs.js +61 -45
- package/dist/index.esm.js +61 -45
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -8461,20 +8461,25 @@ var useParticleBurst = function useParticleBurst(options) {
|
|
|
8461
8461
|
};
|
|
8462
8462
|
|
|
8463
8463
|
// Optional wallet imports - only used if @web3-react/core is available
|
|
8464
|
+
// Rollup plugin will provide stubs for these modules
|
|
8464
8465
|
var connectorLocalStorageKey = "connectorId";
|
|
8465
|
-
var ConnectorNamesEnum
|
|
8466
|
-
|
|
8467
|
-
|
|
8468
|
-
|
|
8469
|
-
|
|
8470
|
-
|
|
8471
|
-
|
|
8472
|
-
|
|
8473
|
-
|
|
8474
|
-
|
|
8475
|
-
|
|
8476
|
-
|
|
8477
|
-
|
|
8466
|
+
var ConnectorNamesEnum = {
|
|
8467
|
+
Injected: "injected",
|
|
8468
|
+
WalletConnect: "walletconnect",
|
|
8469
|
+
BSC: "bsc"
|
|
8470
|
+
};
|
|
8471
|
+
// Runtime initialization - modules will be loaded from stubs provided by Rollup plugin
|
|
8472
|
+
if (typeof window !== 'undefined') {
|
|
8473
|
+
try {
|
|
8474
|
+
// This import is handled by the Rollup plugin as a virtual module
|
|
8475
|
+
var walletModal$1 = require("../widgets/WalletModal");
|
|
8476
|
+
if (walletModal$1) {
|
|
8477
|
+
connectorLocalStorageKey = walletModal$1.connectorLocalStorageKey || "connectorId";
|
|
8478
|
+
ConnectorNamesEnum = walletModal$1.ConnectorNames || ConnectorNamesEnum;
|
|
8479
|
+
}
|
|
8480
|
+
} catch (e) {
|
|
8481
|
+
// Fallback already set above
|
|
8482
|
+
}
|
|
8478
8483
|
}
|
|
8479
8484
|
exports.Cookies = void 0;
|
|
8480
8485
|
(function (Cookies) {
|
|
@@ -12635,18 +12640,23 @@ var moveUsercomWidget = function moveUsercomWidget() {
|
|
|
12635
12640
|
};
|
|
12636
12641
|
|
|
12637
12642
|
// Optional wallet imports - only used if @web3-react/core is available
|
|
12638
|
-
|
|
12639
|
-
|
|
12640
|
-
|
|
12641
|
-
|
|
12642
|
-
|
|
12643
|
-
}
|
|
12644
|
-
|
|
12645
|
-
|
|
12646
|
-
|
|
12647
|
-
|
|
12648
|
-
|
|
12649
|
-
|
|
12643
|
+
// Rollup plugin will provide stubs for these modules
|
|
12644
|
+
var ConnectStepsEnum = {
|
|
12645
|
+
CONNECT_WALLET: 0,
|
|
12646
|
+
VERIFY_WALLET: 1,
|
|
12647
|
+
VERIFIED_WALLET: 2
|
|
12648
|
+
};
|
|
12649
|
+
// Runtime initialization - modules will be loaded from stubs provided by Rollup plugin
|
|
12650
|
+
if (typeof window !== 'undefined') {
|
|
12651
|
+
try {
|
|
12652
|
+
// This import is handled by the Rollup plugin as a virtual module
|
|
12653
|
+
var connectVerifyPanel$2 = require("../widgets/ConnectVerifyPanel");
|
|
12654
|
+
if (connectVerifyPanel$2 !== null && connectVerifyPanel$2 !== void 0 && connectVerifyPanel$2.ConnectSteps) {
|
|
12655
|
+
ConnectStepsEnum = connectVerifyPanel$2.ConnectSteps;
|
|
12656
|
+
}
|
|
12657
|
+
} catch (e) {
|
|
12658
|
+
// Fallback already set above
|
|
12659
|
+
}
|
|
12650
12660
|
}
|
|
12651
12661
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
12652
12662
|
var verifyWallet = /*#__PURE__*/function () {
|
|
@@ -17317,19 +17327,22 @@ var _templateObject$c, _templateObject2$9, _templateObject3$8, _templateObject4$
|
|
|
17317
17327
|
var useWalletModal = null;
|
|
17318
17328
|
var useDisclaimer = null;
|
|
17319
17329
|
var VerifiedWalletIcon = null;
|
|
17320
|
-
|
|
17321
|
-
|
|
17322
|
-
|
|
17323
|
-
|
|
17324
|
-
|
|
17325
|
-
|
|
17326
|
-
|
|
17327
|
-
|
|
17328
|
-
|
|
17329
|
-
|
|
17330
|
-
|
|
17331
|
-
|
|
17332
|
-
|
|
17330
|
+
// Runtime initialization - modules will be loaded from stubs provided by Rollup plugin
|
|
17331
|
+
// The Rollup plugin creates virtual modules that export these values
|
|
17332
|
+
if (typeof window !== 'undefined') {
|
|
17333
|
+
try {
|
|
17334
|
+
// These imports are handled by the Rollup plugin as virtual modules
|
|
17335
|
+
// The plugin will provide stubs if the real modules are not available
|
|
17336
|
+
var walletModal = require("../../WalletModal");
|
|
17337
|
+
useWalletModal = walletModal === null || walletModal === void 0 ? void 0 : walletModal.useWalletModal;
|
|
17338
|
+
var disclaimerModal = require("../../DisclaimerModal");
|
|
17339
|
+
useDisclaimer = disclaimerModal === null || disclaimerModal === void 0 ? void 0 : disclaimerModal.useDisclaimer;
|
|
17340
|
+
var connectVerifyPanel$1 = require("../../ConnectVerifyPanel/components");
|
|
17341
|
+
VerifiedWalletIcon = connectVerifyPanel$1 === null || connectVerifyPanel$1 === void 0 ? void 0 : connectVerifyPanel$1.VerifiedWalletIcon;
|
|
17342
|
+
} catch (e) {
|
|
17343
|
+
// @web3-react/core is not available - wallet functionality will be disabled
|
|
17344
|
+
console.warn("@web3-react/core is not available. Wallet features in Menu will be disabled.");
|
|
17345
|
+
}
|
|
17333
17346
|
}
|
|
17334
17347
|
var UserBlockWrapper = styledComponents.styled.div.withConfig({
|
|
17335
17348
|
displayName: "UserBlockWrapper",
|
|
@@ -17657,13 +17670,16 @@ var UserButton = function UserButton(_ref5) {
|
|
|
17657
17670
|
|
|
17658
17671
|
var _templateObject$8, _templateObject2$5, _templateObject3$5, _templateObject4$5, _templateObject5$4, _templateObject6$3;
|
|
17659
17672
|
var ConnectVerifyPanel = null;
|
|
17660
|
-
|
|
17661
|
-
|
|
17662
|
-
|
|
17663
|
-
|
|
17664
|
-
|
|
17665
|
-
|
|
17666
|
-
|
|
17673
|
+
// Runtime initialization - modules will be loaded from stubs provided by Rollup plugin
|
|
17674
|
+
if (typeof window !== 'undefined') {
|
|
17675
|
+
try {
|
|
17676
|
+
// This import is handled by the Rollup plugin as a virtual module
|
|
17677
|
+
var connectVerifyPanel = require("../ConnectVerifyPanel");
|
|
17678
|
+
ConnectVerifyPanel = connectVerifyPanel === null || connectVerifyPanel === void 0 ? void 0 : connectVerifyPanel.ConnectVerifyPanel;
|
|
17679
|
+
} catch (e) {
|
|
17680
|
+
// @web3-react/core is not available - wallet functionality will be disabled
|
|
17681
|
+
console.warn("@web3-react/core is not available. ConnectVerifyPanel will be disabled.");
|
|
17682
|
+
}
|
|
17667
17683
|
}
|
|
17668
17684
|
var Wrapper = styledComponents.styled.div.withConfig({
|
|
17669
17685
|
displayName: "Wrapper",
|
package/dist/index.esm.js
CHANGED
|
@@ -8439,20 +8439,25 @@ var useParticleBurst = function useParticleBurst(options) {
|
|
|
8439
8439
|
};
|
|
8440
8440
|
|
|
8441
8441
|
// Optional wallet imports - only used if @web3-react/core is available
|
|
8442
|
+
// Rollup plugin will provide stubs for these modules
|
|
8442
8443
|
var connectorLocalStorageKey = "connectorId";
|
|
8443
|
-
var ConnectorNamesEnum
|
|
8444
|
-
|
|
8445
|
-
|
|
8446
|
-
|
|
8447
|
-
|
|
8448
|
-
|
|
8449
|
-
|
|
8450
|
-
|
|
8451
|
-
|
|
8452
|
-
|
|
8453
|
-
|
|
8454
|
-
|
|
8455
|
-
|
|
8444
|
+
var ConnectorNamesEnum = {
|
|
8445
|
+
Injected: "injected",
|
|
8446
|
+
WalletConnect: "walletconnect",
|
|
8447
|
+
BSC: "bsc"
|
|
8448
|
+
};
|
|
8449
|
+
// Runtime initialization - modules will be loaded from stubs provided by Rollup plugin
|
|
8450
|
+
if (typeof window !== 'undefined') {
|
|
8451
|
+
try {
|
|
8452
|
+
// This import is handled by the Rollup plugin as a virtual module
|
|
8453
|
+
var walletModal$1 = require("../widgets/WalletModal");
|
|
8454
|
+
if (walletModal$1) {
|
|
8455
|
+
connectorLocalStorageKey = walletModal$1.connectorLocalStorageKey || "connectorId";
|
|
8456
|
+
ConnectorNamesEnum = walletModal$1.ConnectorNames || ConnectorNamesEnum;
|
|
8457
|
+
}
|
|
8458
|
+
} catch (e) {
|
|
8459
|
+
// Fallback already set above
|
|
8460
|
+
}
|
|
8456
8461
|
}
|
|
8457
8462
|
var Cookies;
|
|
8458
8463
|
(function (Cookies) {
|
|
@@ -12613,18 +12618,23 @@ var moveUsercomWidget = function moveUsercomWidget() {
|
|
|
12613
12618
|
};
|
|
12614
12619
|
|
|
12615
12620
|
// Optional wallet imports - only used if @web3-react/core is available
|
|
12616
|
-
|
|
12617
|
-
|
|
12618
|
-
|
|
12619
|
-
|
|
12620
|
-
|
|
12621
|
-
}
|
|
12622
|
-
|
|
12623
|
-
|
|
12624
|
-
|
|
12625
|
-
|
|
12626
|
-
|
|
12627
|
-
|
|
12621
|
+
// Rollup plugin will provide stubs for these modules
|
|
12622
|
+
var ConnectStepsEnum = {
|
|
12623
|
+
CONNECT_WALLET: 0,
|
|
12624
|
+
VERIFY_WALLET: 1,
|
|
12625
|
+
VERIFIED_WALLET: 2
|
|
12626
|
+
};
|
|
12627
|
+
// Runtime initialization - modules will be loaded from stubs provided by Rollup plugin
|
|
12628
|
+
if (typeof window !== 'undefined') {
|
|
12629
|
+
try {
|
|
12630
|
+
// This import is handled by the Rollup plugin as a virtual module
|
|
12631
|
+
var connectVerifyPanel$2 = require("../widgets/ConnectVerifyPanel");
|
|
12632
|
+
if (connectVerifyPanel$2 !== null && connectVerifyPanel$2 !== void 0 && connectVerifyPanel$2.ConnectSteps) {
|
|
12633
|
+
ConnectStepsEnum = connectVerifyPanel$2.ConnectSteps;
|
|
12634
|
+
}
|
|
12635
|
+
} catch (e) {
|
|
12636
|
+
// Fallback already set above
|
|
12637
|
+
}
|
|
12628
12638
|
}
|
|
12629
12639
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
12630
12640
|
var verifyWallet = /*#__PURE__*/function () {
|
|
@@ -17295,19 +17305,22 @@ var _templateObject$c, _templateObject2$9, _templateObject3$8, _templateObject4$
|
|
|
17295
17305
|
var useWalletModal = null;
|
|
17296
17306
|
var useDisclaimer = null;
|
|
17297
17307
|
var VerifiedWalletIcon = null;
|
|
17298
|
-
|
|
17299
|
-
|
|
17300
|
-
|
|
17301
|
-
|
|
17302
|
-
|
|
17303
|
-
|
|
17304
|
-
|
|
17305
|
-
|
|
17306
|
-
|
|
17307
|
-
|
|
17308
|
-
|
|
17309
|
-
|
|
17310
|
-
|
|
17308
|
+
// Runtime initialization - modules will be loaded from stubs provided by Rollup plugin
|
|
17309
|
+
// The Rollup plugin creates virtual modules that export these values
|
|
17310
|
+
if (typeof window !== 'undefined') {
|
|
17311
|
+
try {
|
|
17312
|
+
// These imports are handled by the Rollup plugin as virtual modules
|
|
17313
|
+
// The plugin will provide stubs if the real modules are not available
|
|
17314
|
+
var walletModal = require("../../WalletModal");
|
|
17315
|
+
useWalletModal = walletModal === null || walletModal === void 0 ? void 0 : walletModal.useWalletModal;
|
|
17316
|
+
var disclaimerModal = require("../../DisclaimerModal");
|
|
17317
|
+
useDisclaimer = disclaimerModal === null || disclaimerModal === void 0 ? void 0 : disclaimerModal.useDisclaimer;
|
|
17318
|
+
var connectVerifyPanel$1 = require("../../ConnectVerifyPanel/components");
|
|
17319
|
+
VerifiedWalletIcon = connectVerifyPanel$1 === null || connectVerifyPanel$1 === void 0 ? void 0 : connectVerifyPanel$1.VerifiedWalletIcon;
|
|
17320
|
+
} catch (e) {
|
|
17321
|
+
// @web3-react/core is not available - wallet functionality will be disabled
|
|
17322
|
+
console.warn("@web3-react/core is not available. Wallet features in Menu will be disabled.");
|
|
17323
|
+
}
|
|
17311
17324
|
}
|
|
17312
17325
|
var UserBlockWrapper = styled.div.withConfig({
|
|
17313
17326
|
displayName: "UserBlockWrapper",
|
|
@@ -17635,13 +17648,16 @@ var UserButton = function UserButton(_ref5) {
|
|
|
17635
17648
|
|
|
17636
17649
|
var _templateObject$8, _templateObject2$5, _templateObject3$5, _templateObject4$5, _templateObject5$4, _templateObject6$3;
|
|
17637
17650
|
var ConnectVerifyPanel = null;
|
|
17638
|
-
|
|
17639
|
-
|
|
17640
|
-
|
|
17641
|
-
|
|
17642
|
-
|
|
17643
|
-
|
|
17644
|
-
|
|
17651
|
+
// Runtime initialization - modules will be loaded from stubs provided by Rollup plugin
|
|
17652
|
+
if (typeof window !== 'undefined') {
|
|
17653
|
+
try {
|
|
17654
|
+
// This import is handled by the Rollup plugin as a virtual module
|
|
17655
|
+
var connectVerifyPanel = require("../ConnectVerifyPanel");
|
|
17656
|
+
ConnectVerifyPanel = connectVerifyPanel === null || connectVerifyPanel === void 0 ? void 0 : connectVerifyPanel.ConnectVerifyPanel;
|
|
17657
|
+
} catch (e) {
|
|
17658
|
+
// @web3-react/core is not available - wallet functionality will be disabled
|
|
17659
|
+
console.warn("@web3-react/core is not available. ConnectVerifyPanel will be disabled.");
|
|
17660
|
+
}
|
|
17645
17661
|
}
|
|
17646
17662
|
var Wrapper = styled.div.withConfig({
|
|
17647
17663
|
displayName: "Wrapper",
|