Skip to content

Commit

Permalink
bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
jinglescode committed Dec 23, 2024
1 parent 2ad8829 commit 7dc1507
Show file tree
Hide file tree
Showing 15 changed files with 105 additions and 77 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import { CardanoWallet, useWalletList } from "@meshsdk/react";
import { useEffect, useRef } from "react";

import { CardanoWallet, useWallet, useWalletList } from "@meshsdk/react";

import { getProvider } from "./mesh-wallet";

export default function ConnectBrowserWallet() {
const wallets = useWalletList();
const hasAvailableWallets = wallets.length > 0;

return (
<>
{hasAvailableWallets ? (
Expand Down
15 changes: 14 additions & 1 deletion apps/playground/src/components/site/navbar/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useEffect, useState } from "react";
import React, { useEffect, useRef, useState } from "react";
import { useRouter } from "next/router";
import {
Bars4Icon,
Expand All @@ -7,6 +7,9 @@ import {
SunIcon,
XMarkIcon,
} from "@heroicons/react/24/solid";
import toast from "react-hot-toast";

import { useWallet } from "@meshsdk/react";

import Icon from "~/components/icon";
import Link from "~/components/link";
Expand All @@ -29,6 +32,16 @@ export default function Navbar() {

const [query, setQuery] = useState<string>("");

const { connected } = useWallet();
const connectedRef = useRef(false);

useEffect(() => {
if (connected && !connectedRef.current) {
connectedRef.current = true;
toast("Wallet connected");
}
}, [connected]);

useEffect(() => {
setIsSSR(false);
}, []);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { BrowserWallet } from "@meshsdk/core";
import { useWallet } from "@meshsdk/react";

import ConnectBrowserWallet from "~/components/cardano/connect-browser-wallet";
Expand Down
87 changes: 50 additions & 37 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/mesh-common/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@meshsdk/common",
"version": "1.8.3",
"version": "1.8.4",
"description": "Contains constants, types and interfaces used across the SDK and different serialization libraries",
"main": "./dist/index.cjs",
"browser": "./dist/index.js",
Expand Down
8 changes: 4 additions & 4 deletions packages/mesh-contract/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@meshsdk/contract",
"version": "1.8.3",
"version": "1.8.4",
"description": "List of open-source smart contracts, complete with documentation, live demos, and end-to-end source code. https://meshjs.dev/smart-contracts",
"main": "./dist/index.cjs",
"browser": "./dist/index.js",
Expand Down Expand Up @@ -34,9 +34,9 @@
"typescript": "^5.3.3"
},
"dependencies": {
"@meshsdk/common": "1.8.3",
"@meshsdk/core": "1.8.3",
"@meshsdk/core-csl": "1.8.3"
"@meshsdk/common": "1.8.4",
"@meshsdk/core": "1.8.4",
"@meshsdk/core-csl": "1.8.4"
},
"prettier": "@meshsdk/configs/prettier",
"publishConfig": {
Expand Down
6 changes: 3 additions & 3 deletions packages/mesh-core-csl/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@meshsdk/core-csl",
"version": "1.8.3",
"version": "1.8.4",
"description": "Types and utilities functions between Mesh and cardano-serialization-lib",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
Expand Down Expand Up @@ -31,15 +31,15 @@
},
"devDependencies": {
"@meshsdk/configs": "*",
"@meshsdk/provider": "1.8.3",
"@meshsdk/provider": "1.8.4",
"@types/json-bigint": "^1.0.4",
"eslint": "^8.57.0",
"ts-jest": "^29.1.4",
"tsup": "^8.0.2",
"typescript": "^5.3.3"
},
"dependencies": {
"@meshsdk/common": "1.8.3",
"@meshsdk/common": "1.8.4",
"@sidan-lab/sidan-csl-rs-browser": "0.9.13",
"@sidan-lab/sidan-csl-rs-nodejs": "0.9.13",
"@types/base32-encoding": "^1.0.2",
Expand Down
Loading

0 comments on commit 7dc1507

Please sign in to comment.