@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 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
- try {
8467
- // eslint-disable-next-line @typescript-eslint/no-require-imports
8468
- var walletModal$1 = require("../widgets/WalletModal");
8469
- connectorLocalStorageKey = walletModal$1.connectorLocalStorageKey || "connectorId";
8470
- ConnectorNamesEnum = walletModal$1.ConnectorNames;
8471
- } catch (e) {
8472
- // Fallback if wallet modules are not available
8473
- ConnectorNamesEnum = {
8474
- Injected: "injected",
8475
- WalletConnect: "walletconnect",
8476
- BSC: "bsc"
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
- var ConnectStepsEnum;
12639
- try {
12640
- // eslint-disable-next-line @typescript-eslint/no-require-imports
12641
- var connectVerifyPanel$2 = require("../widgets/ConnectVerifyPanel");
12642
- ConnectStepsEnum = connectVerifyPanel$2.ConnectSteps;
12643
- } catch (e) {
12644
- // Fallback enum if wallet modules are not available
12645
- ConnectStepsEnum = {
12646
- CONNECT_WALLET: 0,
12647
- VERIFY_WALLET: 1,
12648
- VERIFIED_WALLET: 2
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
- try {
17321
- // eslint-disable-next-line @typescript-eslint/no-require-imports
17322
- var walletModal = require("../../WalletModal");
17323
- useWalletModal = walletModal.useWalletModal;
17324
- // eslint-disable-next-line @typescript-eslint/no-require-imports
17325
- var disclaimerModal = require("../../DisclaimerModal");
17326
- useDisclaimer = disclaimerModal.useDisclaimer;
17327
- // eslint-disable-next-line @typescript-eslint/no-require-imports
17328
- var connectVerifyPanel$1 = require("../../ConnectVerifyPanel/components");
17329
- VerifiedWalletIcon = connectVerifyPanel$1.VerifiedWalletIcon;
17330
- } catch (e) {
17331
- // @web3-react/core is not available - wallet functionality will be disabled
17332
- console.warn("@web3-react/core is not available. Wallet features in Menu will be disabled.");
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
- try {
17661
- // eslint-disable-next-line @typescript-eslint/no-require-imports
17662
- var connectVerifyPanel = require("../ConnectVerifyPanel");
17663
- ConnectVerifyPanel = connectVerifyPanel.ConnectVerifyPanel;
17664
- } catch (e) {
17665
- // @web3-react/core is not available - wallet functionality will be disabled
17666
- console.warn("@web3-react/core is not available. ConnectVerifyPanel will be disabled.");
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
- try {
8445
- // eslint-disable-next-line @typescript-eslint/no-require-imports
8446
- var walletModal$1 = require("../widgets/WalletModal");
8447
- connectorLocalStorageKey = walletModal$1.connectorLocalStorageKey || "connectorId";
8448
- ConnectorNamesEnum = walletModal$1.ConnectorNames;
8449
- } catch (e) {
8450
- // Fallback if wallet modules are not available
8451
- ConnectorNamesEnum = {
8452
- Injected: "injected",
8453
- WalletConnect: "walletconnect",
8454
- BSC: "bsc"
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
- var ConnectStepsEnum;
12617
- try {
12618
- // eslint-disable-next-line @typescript-eslint/no-require-imports
12619
- var connectVerifyPanel$2 = require("../widgets/ConnectVerifyPanel");
12620
- ConnectStepsEnum = connectVerifyPanel$2.ConnectSteps;
12621
- } catch (e) {
12622
- // Fallback enum if wallet modules are not available
12623
- ConnectStepsEnum = {
12624
- CONNECT_WALLET: 0,
12625
- VERIFY_WALLET: 1,
12626
- VERIFIED_WALLET: 2
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
- try {
17299
- // eslint-disable-next-line @typescript-eslint/no-require-imports
17300
- var walletModal = require("../../WalletModal");
17301
- useWalletModal = walletModal.useWalletModal;
17302
- // eslint-disable-next-line @typescript-eslint/no-require-imports
17303
- var disclaimerModal = require("../../DisclaimerModal");
17304
- useDisclaimer = disclaimerModal.useDisclaimer;
17305
- // eslint-disable-next-line @typescript-eslint/no-require-imports
17306
- var connectVerifyPanel$1 = require("../../ConnectVerifyPanel/components");
17307
- VerifiedWalletIcon = connectVerifyPanel$1.VerifiedWalletIcon;
17308
- } catch (e) {
17309
- // @web3-react/core is not available - wallet functionality will be disabled
17310
- console.warn("@web3-react/core is not available. Wallet features in Menu will be disabled.");
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
- try {
17639
- // eslint-disable-next-line @typescript-eslint/no-require-imports
17640
- var connectVerifyPanel = require("../ConnectVerifyPanel");
17641
- ConnectVerifyPanel = connectVerifyPanel.ConnectVerifyPanel;
17642
- } catch (e) {
17643
- // @web3-react/core is not available - wallet functionality will be disabled
17644
- console.warn("@web3-react/core is not available. ConnectVerifyPanel will be disabled.");
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",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coinswap-app/uikit",
3
- "version": "1.0.19",
3
+ "version": "1.0.20",
4
4
  "description": "Set of UI components for CoinSwap projects",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",