@mysten/dapp-kit 0.13.0 → 0.13.2

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/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "author": "Mysten Labs <build@mystenlabs.com>",
4
4
  "description": "A collection of React hooks and components for interacting with the Sui blockchain and wallets.",
5
5
  "homepage": "https://sdk.mystenlabs.com/typescript",
6
- "version": "0.13.0",
6
+ "version": "0.13.2",
7
7
  "license": "Apache-2.0",
8
8
  "files": [
9
9
  "CHANGELOG.md",
@@ -73,7 +73,7 @@
73
73
  "zustand": "^4.4.1",
74
74
  "@mysten/sui.js": "0.54.1",
75
75
  "@mysten/wallet-standard": "0.11.6",
76
- "@mysten/zksend": "0.8.0"
76
+ "@mysten/zksend": "0.8.2"
77
77
  },
78
78
  "peerDependencies": {
79
79
  "@tanstack/react-query": "^5.0.0",
@@ -18,6 +18,10 @@ export function InjectedThemeStyles({ theme }: InjectedThemeStylesProps) {
18
18
 
19
19
  return (
20
20
  <style
21
+ // @ts-expect-error The precedence prop hasn't made it to the stable release of React, but we
22
+ // don't want this to break in frameworks like Next which use the latest canary build.
23
+ precedence="default"
24
+ href="mysten-dapp-kit-theme"
21
25
  dangerouslySetInnerHTML={{
22
26
  __html: themeStyles,
23
27
  }}
@@ -20,6 +20,7 @@ export function useWalletsChanged(
20
20
 
21
21
  useEffect(() => {
22
22
  const walletsApi = getWallets();
23
+ setWalletRegistered(getRegisteredWallets(preferredWallets, requiredFeatures));
23
24
 
24
25
  const unsubscribeFromRegister = walletsApi.on('register', () => {
25
26
  setWalletRegistered(getRegisteredWallets(preferredWallets, requiredFeatures));