@meshsdk/react 1.9.0-beta.32 → 1.9.0-beta.35
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 +6 -5
- package/dist/index.js +9 -6
- package/package.json +7 -6
package/dist/index.cjs
CHANGED
|
@@ -24496,14 +24496,15 @@ function Web3Services({
|
|
|
24496
24496
|
}) {
|
|
24497
24497
|
const { setWallet } = useWallet();
|
|
24498
24498
|
const [loading, setLoading] = (0, import_react11.useState)(false);
|
|
24499
|
-
async function loadWallet() {
|
|
24499
|
+
async function loadWallet(directTo) {
|
|
24500
24500
|
setLoading(true);
|
|
24501
24501
|
const _options = {
|
|
24502
24502
|
networkId: 0,
|
|
24503
24503
|
fetcher: options.fetcher,
|
|
24504
24504
|
submitter: options.submitter,
|
|
24505
24505
|
appUrl: options.appUrl,
|
|
24506
|
-
projectId: options.projectId
|
|
24506
|
+
projectId: options.projectId,
|
|
24507
|
+
directTo
|
|
24507
24508
|
};
|
|
24508
24509
|
const wallet = await import_web3_sdk2.Web3Wallet.enable(_options);
|
|
24509
24510
|
setWallet(
|
|
@@ -24522,7 +24523,7 @@ function Web3Services({
|
|
|
24522
24523
|
{
|
|
24523
24524
|
iconReactNode: IconGoogle(),
|
|
24524
24525
|
name: `Google`,
|
|
24525
|
-
action: () => loadWallet(),
|
|
24526
|
+
action: () => loadWallet("google"),
|
|
24526
24527
|
loading
|
|
24527
24528
|
}
|
|
24528
24529
|
),
|
|
@@ -24531,7 +24532,7 @@ function Web3Services({
|
|
|
24531
24532
|
{
|
|
24532
24533
|
iconReactNode: IconDiscord(),
|
|
24533
24534
|
name: `Discord`,
|
|
24534
|
-
action: () => loadWallet(),
|
|
24535
|
+
action: () => loadWallet("discord"),
|
|
24535
24536
|
loading
|
|
24536
24537
|
}
|
|
24537
24538
|
),
|
|
@@ -24540,7 +24541,7 @@ function Web3Services({
|
|
|
24540
24541
|
{
|
|
24541
24542
|
iconReactNode: IconTwitter(),
|
|
24542
24543
|
name: `Twitter`,
|
|
24543
|
-
action: () => loadWallet(),
|
|
24544
|
+
action: () => loadWallet("twitter"),
|
|
24544
24545
|
loading
|
|
24545
24546
|
}
|
|
24546
24547
|
)
|
package/dist/index.js
CHANGED
|
@@ -24376,7 +24376,9 @@ function WalletIcon({
|
|
|
24376
24376
|
|
|
24377
24377
|
// src/cardano-wallet/web3-services.tsx
|
|
24378
24378
|
import { useState as useState10 } from "react";
|
|
24379
|
-
import {
|
|
24379
|
+
import {
|
|
24380
|
+
Web3Wallet as Web3Wallet2
|
|
24381
|
+
} from "@meshsdk/web3-sdk";
|
|
24380
24382
|
|
|
24381
24383
|
// src/common/icons/icon-discord.tsx
|
|
24382
24384
|
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
@@ -24475,14 +24477,15 @@ function Web3Services({
|
|
|
24475
24477
|
}) {
|
|
24476
24478
|
const { setWallet } = useWallet();
|
|
24477
24479
|
const [loading, setLoading] = useState10(false);
|
|
24478
|
-
async function loadWallet() {
|
|
24480
|
+
async function loadWallet(directTo) {
|
|
24479
24481
|
setLoading(true);
|
|
24480
24482
|
const _options = {
|
|
24481
24483
|
networkId: 0,
|
|
24482
24484
|
fetcher: options.fetcher,
|
|
24483
24485
|
submitter: options.submitter,
|
|
24484
24486
|
appUrl: options.appUrl,
|
|
24485
|
-
projectId: options.projectId
|
|
24487
|
+
projectId: options.projectId,
|
|
24488
|
+
directTo
|
|
24486
24489
|
};
|
|
24487
24490
|
const wallet = await Web3Wallet2.enable(_options);
|
|
24488
24491
|
setWallet(
|
|
@@ -24501,7 +24504,7 @@ function Web3Services({
|
|
|
24501
24504
|
{
|
|
24502
24505
|
iconReactNode: IconGoogle(),
|
|
24503
24506
|
name: `Google`,
|
|
24504
|
-
action: () => loadWallet(),
|
|
24507
|
+
action: () => loadWallet("google"),
|
|
24505
24508
|
loading
|
|
24506
24509
|
}
|
|
24507
24510
|
),
|
|
@@ -24510,7 +24513,7 @@ function Web3Services({
|
|
|
24510
24513
|
{
|
|
24511
24514
|
iconReactNode: IconDiscord(),
|
|
24512
24515
|
name: `Discord`,
|
|
24513
|
-
action: () => loadWallet(),
|
|
24516
|
+
action: () => loadWallet("discord"),
|
|
24514
24517
|
loading
|
|
24515
24518
|
}
|
|
24516
24519
|
),
|
|
@@ -24519,7 +24522,7 @@ function Web3Services({
|
|
|
24519
24522
|
{
|
|
24520
24523
|
iconReactNode: IconTwitter(),
|
|
24521
24524
|
name: `Twitter`,
|
|
24522
|
-
action: () => loadWallet(),
|
|
24525
|
+
action: () => loadWallet("twitter"),
|
|
24523
24526
|
loading
|
|
24524
24527
|
}
|
|
24525
24528
|
)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meshsdk/react",
|
|
3
|
-
"version": "1.9.0-beta.
|
|
3
|
+
"version": "1.9.0-beta.35",
|
|
4
4
|
"description": "React component library - https://meshjs.dev/react",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"browser": "./dist/index.js",
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@fabianbormann/cardano-peer-connect": "^1.2.18",
|
|
33
|
-
"@meshsdk/common": "1.9.0-beta.
|
|
34
|
-
"@meshsdk/transaction": "1.9.0-beta.
|
|
35
|
-
"@meshsdk/wallet": "1.9.0-beta.
|
|
36
|
-
"@meshsdk/web3-sdk": "0.0.
|
|
33
|
+
"@meshsdk/common": "1.9.0-beta.35",
|
|
34
|
+
"@meshsdk/transaction": "1.9.0-beta.35",
|
|
35
|
+
"@meshsdk/wallet": "1.9.0-beta.35",
|
|
36
|
+
"@meshsdk/web3-sdk": "0.0.23",
|
|
37
37
|
"@radix-ui/react-dialog": "^1.1.2",
|
|
38
38
|
"@radix-ui/react-dropdown-menu": "^2.1.2",
|
|
39
39
|
"@radix-ui/react-icons": "^1.3.2",
|
|
@@ -50,7 +50,8 @@
|
|
|
50
50
|
"concurrently": "^8.0.1",
|
|
51
51
|
"postcss": "^8.4.35",
|
|
52
52
|
"tailwindcss": "^3.4.1",
|
|
53
|
-
"typescript": "latest"
|
|
53
|
+
"typescript": "latest",
|
|
54
|
+
"tsup": "^8.0.2"
|
|
54
55
|
},
|
|
55
56
|
"peerDependencies": {
|
|
56
57
|
"react": ">=16.0.0 <20.0.0 || >=16.0.0-rc <20.0.0-rc || >=19.0.0-rc",
|