@multiplatform.one/connectkit 8.2.2 → 8.4.0
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@multiplatform.one/connectkit",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.4.0",
|
|
4
4
|
"description": "Signer-agnostic wallet-modal UI kit (modal shell, routing, theming, screen registry) — no wagmi/viem",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"connectkit",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"styled-components": "^5.3.5"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@multiplatform.one/config": "8.
|
|
67
|
+
"@multiplatform.one/config": "8.4.0",
|
|
68
68
|
"@tamagui/build": "2.7.6",
|
|
69
69
|
"@tanstack/react-query": "^5.104.3",
|
|
70
70
|
"@types/qrcode": "^1.4.2",
|
package/src/utils/index.ts
CHANGED
|
@@ -98,9 +98,9 @@ export const isInjectedConnector = (connectorId?: string) => connectorId === "in
|
|
|
98
98
|
|
|
99
99
|
// wallet multi-chain seam: every wallet entry carries an `ecosystem`. EVM wallets
|
|
100
100
|
// (the wagmi/EIP-6963/Coinbase/MetaMask connectors) default to 'evm'; the
|
|
101
|
-
// wallet shim-connectors (Solana/Sui/Bitcoin) tag themselves so the modal can route
|
|
101
|
+
// wallet shim-connectors (Solana/Sui/Bitcoin/Tron) tag themselves so the modal can route
|
|
102
102
|
// them down the injected path and skip EVM-only assumptions.
|
|
103
|
-
export type Ecosystem = "evm" | "solana" | "sui" | "bitcoin";
|
|
103
|
+
export type Ecosystem = "evm" | "solana" | "sui" | "bitcoin" | "tron";
|
|
104
104
|
|
|
105
105
|
// Params are `unknown` because wagmi's Connector / CreateConnectorFn types are
|
|
106
106
|
// opaque and `ecosystem` is our own added field — narrow internally.
|
package/types/utils/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export declare const isLedgerConnector: (connectorId?: string) => connectorId is
|
|
|
15
15
|
export declare const isPortoConnector: (connectorId?: string) => connectorId is "xyz.ithaca.porto";
|
|
16
16
|
export declare const isSafeConnector: (connectorId?: string) => connectorId is "safe";
|
|
17
17
|
export declare const isInjectedConnector: (connectorId?: string) => connectorId is "injected";
|
|
18
|
-
export type Ecosystem = "evm" | "solana" | "sui" | "bitcoin";
|
|
18
|
+
export type Ecosystem = "evm" | "solana" | "sui" | "bitcoin" | "tron";
|
|
19
19
|
export declare const getConnectorEcosystem: (connector?: unknown) => Ecosystem;
|
|
20
20
|
export declare const isWalletConnector: (connectorOrId?: unknown) => boolean;
|
|
21
21
|
export { nFormatter, truncateEthAddress, truncateENSAddress, isMobile, isAndroid, detectBrowser, detectOS, flattenChildren, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,QAAA,MAAM,kBAAkB,GAAI,UAAU,MAAM,EAAE,YAAW,MAAe,WAKvE,CAAC;AAEF,QAAA,MAAM,kBAAkB,GAAI,SAAS,MAAM,EAAE,WAAW,MAAM,WAM7D,CAAC;AAEF,QAAA,MAAM,UAAU,GAAI,KAAK,MAAM,EAAE,SAAQ,MAAU,WAoBlD,CAAC;AAEF,QAAA,MAAM,aAAa,+EAGlB,CAAC;AACF,QAAA,MAAM,QAAQ,uEAGb,CAAC;AAMF,QAAA,MAAM,SAAS,eAGd,CAAC;AAMF,QAAA,MAAM,QAAQ,eAEb,CAAC;AAEF,KAAK,eAAe,GAAG,UAAU,CAAC,OAAO,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;AACjE,iBAAS,eAAe,CAAC,QAAQ,EAAE,KAAK,CAAC,SAAS,GAAG,eAAe,CAWnE;AAED,eAAO,MAAM,sBAAsB,GAAI,cAAc,MAAM,yC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