@kheopskit/core 6.0.2 → 6.0.3

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.
Files changed (48) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/{config-Bb-Zz8J1.d.ts → config-Csp5p0-Z.d.ts} +2 -2
  3. package/dist/{config-C-Xk2AP_.d.mts → config-qMsgD8tJ.d.mts} +2 -2
  4. package/dist/ethereum.d.mts +1 -1
  5. package/dist/ethereum.d.ts +1 -1
  6. package/dist/ethereum.js +1 -1
  7. package/dist/ethereum.mjs +1 -1
  8. package/dist/index.d.mts +3 -3
  9. package/dist/index.d.ts +3 -3
  10. package/dist/index.js +2 -2
  11. package/dist/index.mjs +2 -2
  12. package/dist/{instance-BJVnjk4r.mjs → instance--1tqj7s5.mjs} +2 -2
  13. package/dist/{instance-BJVnjk4r.mjs.map → instance--1tqj7s5.mjs.map} +1 -1
  14. package/dist/{instance-aPJrTyvW.js → instance-4DgSj55G.js} +2 -2
  15. package/dist/{instance-aPJrTyvW.js.map → instance-4DgSj55G.js.map} +1 -1
  16. package/dist/{instance-1BgEld17.d.ts → instance-CrdktIu7.d.ts} +2 -2
  17. package/dist/{instance-DDvZiq1L.d.mts → instance-Gv9IDCIY.d.mts} +2 -2
  18. package/dist/internal.d.mts +2 -2
  19. package/dist/internal.d.ts +2 -2
  20. package/dist/internal.js +1 -1
  21. package/dist/internal.mjs +1 -1
  22. package/dist/{platformAccounts-C1sFv82e.mjs → platformAccounts-3jM3W1fB.mjs} +4 -3
  23. package/dist/{platformAccounts-C1sFv82e.mjs.map → platformAccounts-3jM3W1fB.mjs.map} +1 -1
  24. package/dist/{platformAccounts-CqMSpl3X.js → platformAccounts-BcLoaZZb.js} +4 -3
  25. package/dist/{platformAccounts-CqMSpl3X.js.map → platformAccounts-BcLoaZZb.js.map} +1 -1
  26. package/dist/polkadot.d.mts +1 -1
  27. package/dist/polkadot.d.ts +1 -1
  28. package/dist/polkadot.js +6 -4
  29. package/dist/polkadot.js.map +1 -1
  30. package/dist/polkadot.mjs +6 -4
  31. package/dist/polkadot.mjs.map +1 -1
  32. package/dist/solana.d.mts +1 -1
  33. package/dist/solana.d.ts +1 -1
  34. package/dist/solana.js +1 -1
  35. package/dist/solana.mjs +1 -1
  36. package/dist/testing.d.mts +2 -2
  37. package/dist/testing.d.ts +2 -2
  38. package/dist/{types-BGeGUtxz.d.mts → types-C9aw2FEm.d.mts} +2 -1
  39. package/dist/{types-BGeGUtxz.d.ts → types-C9aw2FEm.d.ts} +2 -1
  40. package/dist/types-DaRMgleZ.js.map +1 -1
  41. package/dist/types-DcpmEGhO.mjs.map +1 -1
  42. package/dist/walletconnect.d.mts +1 -1
  43. package/dist/walletconnect.d.ts +1 -1
  44. package/dist/walletconnect.js +2 -2
  45. package/dist/walletconnect.js.map +1 -1
  46. package/dist/walletconnect.mjs +2 -2
  47. package/dist/walletconnect.mjs.map +1 -1
  48. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @kheopskit/core
2
2
 
3
+ ## 6.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#210](https://github.com/kheopskit/kheopskit/pull/210) [`db1da91`](https://github.com/kheopskit/kheopskit/commit/db1da9101e3d7e6b180fde2d49882c3794950afe) Thanks [@0xKheops](https://github.com/0xKheops)! - Fixed: when a wallet paired over WalletConnect reports an empty icon or name, the WalletConnect connector shows the WalletConnect logo and name instead of a broken image and a blank name.
8
+
9
+ - [#212](https://github.com/kheopskit/kheopskit/pull/212) [`6f7496a`](https://github.com/kheopskit/kheopskit/commit/6f7496abea802936ce3997e96382b2e2b3cb4b6f) Thanks [@0xKheops](https://github.com/0xKheops)! - Fixed: `signRaw` on a Polkadot account connected over WalletConnect now targets a chain the session approved for that account and for `polkadot_signMessage`, preferring the order of the configured networks. Before, it always targeted the first configured network, so wallets that did not approve that network rejected the request.
10
+
3
11
  ## 6.0.2
4
12
 
5
13
  ### Patch Changes
@@ -1,4 +1,4 @@
1
- import { c as KheopskitConfig, l as KheopskitPlatform } from "./types-BGeGUtxz.js";
1
+ import { c as KheopskitConfig, l as KheopskitPlatform } from "./types-C9aw2FEm.js";
2
2
  //#region src/api/config.d.ts
3
3
  /**
4
4
  * Default storage key for persisting wallet connection state.
@@ -11,4 +11,4 @@ declare const DEFAULT_HYDRATION_TIMEOUT_MS = 3000;
11
11
  declare const resolveConfig: <const P extends readonly KheopskitPlatform[] = readonly KheopskitPlatform[]>(config?: Partial<KheopskitConfig<P>>) => KheopskitConfig<P>;
12
12
  //#endregion
13
13
  export { resolveConfig as i, DEFAULT_HYDRATION_TIMEOUT_MS as n, DEFAULT_STORAGE_KEY as r, DEFAULT_HYDRATION_GRACE_PERIOD_MS as t };
14
- //# sourceMappingURL=config-Bb-Zz8J1.d.ts.map
14
+ //# sourceMappingURL=config-Csp5p0-Z.d.ts.map
@@ -1,4 +1,4 @@
1
- import { c as KheopskitConfig, l as KheopskitPlatform } from "./types-BGeGUtxz.mjs";
1
+ import { c as KheopskitConfig, l as KheopskitPlatform } from "./types-C9aw2FEm.mjs";
2
2
  //#region src/api/config.d.ts
3
3
  /**
4
4
  * Default storage key for persisting wallet connection state.
@@ -11,4 +11,4 @@ declare const DEFAULT_HYDRATION_TIMEOUT_MS = 3000;
11
11
  declare const resolveConfig: <const P extends readonly KheopskitPlatform[] = readonly KheopskitPlatform[]>(config?: Partial<KheopskitConfig<P>>) => KheopskitConfig<P>;
12
12
  //#endregion
13
13
  export { resolveConfig as i, DEFAULT_HYDRATION_TIMEOUT_MS as n, DEFAULT_STORAGE_KEY as r, DEFAULT_HYDRATION_GRACE_PERIOD_MS as t };
14
- //# sourceMappingURL=config-C-Xk2AP_.d.mts.map
14
+ //# sourceMappingURL=config-qMsgD8tJ.d.mts.map
@@ -1,4 +1,4 @@
1
- import { E as isWalletConnectWallet, N as WalletAccountId, T as isInjectedWallet, b as WalletConnectWallet, k as WalletId, l as KheopskitPlatform, m as PlaceholderWallet, p as Placeholder, r as BaseWallet } from "./types-BGeGUtxz.mjs";
1
+ import { E as isWalletConnectWallet, N as WalletAccountId, T as isInjectedWallet, b as WalletConnectWallet, k as WalletId, l as KheopskitPlatform, m as PlaceholderWallet, p as Placeholder, r as BaseWallet } from "./types-C9aw2FEm.mjs";
2
2
  import { Account, CustomTransport, EIP1193Provider, WalletClient } from "viem";
3
3
  //#region src/utils/isEthereumAddress.d.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { E as isWalletConnectWallet, N as WalletAccountId, T as isInjectedWallet, b as WalletConnectWallet, k as WalletId, l as KheopskitPlatform, m as PlaceholderWallet, p as Placeholder, r as BaseWallet } from "./types-BGeGUtxz.js";
1
+ import { E as isWalletConnectWallet, N as WalletAccountId, T as isInjectedWallet, b as WalletConnectWallet, k as WalletId, l as KheopskitPlatform, m as PlaceholderWallet, p as Placeholder, r as BaseWallet } from "./types-C9aw2FEm.js";
2
2
  import { Account, CustomTransport, EIP1193Provider, WalletClient } from "viem";
3
3
  //#region src/utils/isEthereumAddress.d.ts
4
4
  /**
package/dist/ethereum.js CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_types = require("./types-DaRMgleZ.js");
3
- const require_platformAccounts = require("./platformAccounts-CqMSpl3X.js");
3
+ const require_platformAccounts = require("./platformAccounts-BcLoaZZb.js");
4
4
  const require_errors = require("./errors-B6Z21vkI.js");
5
5
  const require_injectedWallets = require("./injectedWallets-Cfn3caW3.js");
6
6
  let rxjs = require("rxjs");
package/dist/ethereum.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { d as getCachedObservable$, i as getWalletId, l as clearCachedObservable, n as isWalletConnectWallet, t as isInjectedWallet } from "./types-DcpmEGhO.mjs";
2
- import { d as isEthereumAddress, i as getSessionCaip10s, o as getWalletAccountId, r as getCaip10Addresses, t as createPlatformAccounts$ } from "./platformAccounts-C1sFv82e.mjs";
2
+ import { d as isEthereumAddress, i as getSessionCaip10s, o as getWalletAccountId, r as getCaip10Addresses, t as createPlatformAccounts$ } from "./platformAccounts-3jM3W1fB.mjs";
3
3
  import { i as isEip1193UserRejection } from "./errors-DszTFbnO.mjs";
4
4
  import { t as createInjectedWallets$ } from "./injectedWallets-CUo7rVqB.mjs";
5
5
  import { Observable, ReplaySubject, combineLatest, distinctUntilChanged, firstValueFrom, map, of, race, shareReplay, tap, timer } from "rxjs";
package/dist/index.d.mts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { t as SyncableStorage } from "./storage-D3AwNgqc.mjs";
2
- import { A as getWalletId, C as WalletStatus, D as KheopskitError, E as isWalletConnectWallet, F as parseWalletAccountId, M as parseWalletId, N as WalletAccountId, O as KheopskitErrorCode, P as getWalletAccountId, S as WalletPlatform, T as isInjectedWallet, _ as WalletConnectMetadata, a as CachedAccount, b as WalletConnectWallet, c as KheopskitConfig, d as KheopskitStore, f as KheopskitStoreData, g as PolkadotAccountType, h as PlatformContext, i as BaseWalletAccount, j as isValidWalletId, k as WalletId, l as KheopskitPlatform, m as PlaceholderWallet, n as AppKitInstance, o as CachedWallet, p as Placeholder, r as BaseWallet, s as ConnectOptions, t as AccountOf, u as KheopskitState, v as WalletConnectPlugin, w as WalletType, x as WalletOf, y as WalletConnectProvider } from "./types-BGeGUtxz.mjs";
3
- import { a as createKheopskit, c as clearAllCachedObservables, n as CreateKheopskitOptions, r as Kheopskit, t as CreateKheopskitConfig } from "./instance-DDvZiq1L.mjs";
4
- import { i as resolveConfig, r as DEFAULT_STORAGE_KEY } from "./config-C-Xk2AP_.mjs";
2
+ import { A as getWalletId, C as WalletStatus, D as KheopskitError, E as isWalletConnectWallet, F as parseWalletAccountId, M as parseWalletId, N as WalletAccountId, O as KheopskitErrorCode, P as getWalletAccountId, S as WalletPlatform, T as isInjectedWallet, _ as WalletConnectMetadata, a as CachedAccount, b as WalletConnectWallet, c as KheopskitConfig, d as KheopskitStore, f as KheopskitStoreData, g as PolkadotAccountType, h as PlatformContext, i as BaseWalletAccount, j as isValidWalletId, k as WalletId, l as KheopskitPlatform, m as PlaceholderWallet, n as AppKitInstance, o as CachedWallet, p as Placeholder, r as BaseWallet, s as ConnectOptions, t as AccountOf, u as KheopskitState, v as WalletConnectPlugin, w as WalletType, x as WalletOf, y as WalletConnectProvider } from "./types-C9aw2FEm.mjs";
3
+ import { a as createKheopskit, c as clearAllCachedObservables, n as CreateKheopskitOptions, r as Kheopskit, t as CreateKheopskitConfig } from "./instance-Gv9IDCIY.mjs";
4
+ import { i as resolveConfig, r as DEFAULT_STORAGE_KEY } from "./config-qMsgD8tJ.mjs";
5
5
  //#region src/utils/isValidAddress.d.ts
6
6
  export declare const isValidAddress: (address: string) => boolean;
7
7
  //#endregion
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { t as SyncableStorage } from "./storage-D3AwNgqc.js";
2
- import { A as getWalletId, C as WalletStatus, D as KheopskitError, E as isWalletConnectWallet, F as parseWalletAccountId, M as parseWalletId, N as WalletAccountId, O as KheopskitErrorCode, P as getWalletAccountId, S as WalletPlatform, T as isInjectedWallet, _ as WalletConnectMetadata, a as CachedAccount, b as WalletConnectWallet, c as KheopskitConfig, d as KheopskitStore, f as KheopskitStoreData, g as PolkadotAccountType, h as PlatformContext, i as BaseWalletAccount, j as isValidWalletId, k as WalletId, l as KheopskitPlatform, m as PlaceholderWallet, n as AppKitInstance, o as CachedWallet, p as Placeholder, r as BaseWallet, s as ConnectOptions, t as AccountOf, u as KheopskitState, v as WalletConnectPlugin, w as WalletType, x as WalletOf, y as WalletConnectProvider } from "./types-BGeGUtxz.js";
3
- import { a as createKheopskit, c as clearAllCachedObservables, n as CreateKheopskitOptions, r as Kheopskit, t as CreateKheopskitConfig } from "./instance-1BgEld17.js";
4
- import { i as resolveConfig, r as DEFAULT_STORAGE_KEY } from "./config-Bb-Zz8J1.js";
2
+ import { A as getWalletId, C as WalletStatus, D as KheopskitError, E as isWalletConnectWallet, F as parseWalletAccountId, M as parseWalletId, N as WalletAccountId, O as KheopskitErrorCode, P as getWalletAccountId, S as WalletPlatform, T as isInjectedWallet, _ as WalletConnectMetadata, a as CachedAccount, b as WalletConnectWallet, c as KheopskitConfig, d as KheopskitStore, f as KheopskitStoreData, g as PolkadotAccountType, h as PlatformContext, i as BaseWalletAccount, j as isValidWalletId, k as WalletId, l as KheopskitPlatform, m as PlaceholderWallet, n as AppKitInstance, o as CachedWallet, p as Placeholder, r as BaseWallet, s as ConnectOptions, t as AccountOf, u as KheopskitState, v as WalletConnectPlugin, w as WalletType, x as WalletOf, y as WalletConnectProvider } from "./types-C9aw2FEm.js";
3
+ import { a as createKheopskit, c as clearAllCachedObservables, n as CreateKheopskitOptions, r as Kheopskit, t as CreateKheopskitConfig } from "./instance-CrdktIu7.js";
4
+ import { i as resolveConfig, r as DEFAULT_STORAGE_KEY } from "./config-Csp5p0-Z.js";
5
5
  //#region src/utils/isValidAddress.d.ts
6
6
  export declare const isValidAddress: (address: string) => boolean;
7
7
  //#endregion
package/dist/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_types = require("./types-DaRMgleZ.js");
3
- const require_platformAccounts = require("./platformAccounts-CqMSpl3X.js");
3
+ const require_platformAccounts = require("./platformAccounts-BcLoaZZb.js");
4
4
  const require_errors = require("./errors-B6Z21vkI.js");
5
5
  const require_config = require("./config-B3TqJq0m.js");
6
- const require_instance = require("./instance-aPJrTyvW.js");
6
+ const require_instance = require("./instance-4DgSj55G.js");
7
7
  exports.DEFAULT_STORAGE_KEY = require_config.DEFAULT_STORAGE_KEY;
8
8
  exports.KheopskitError = require_errors.KheopskitError;
9
9
  exports.clearAllCachedObservables = require_types.clearAllCachedObservables;
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { a as isValidWalletId, c as clearAllCachedObservables, i as getWalletId, n as isWalletConnectWallet, o as parseWalletId, t as isInjectedWallet } from "./types-DcpmEGhO.mjs";
2
- import { c as isValidAddress, o as getWalletAccountId, s as parseWalletAccountId } from "./platformAccounts-C1sFv82e.mjs";
2
+ import { c as isValidAddress, o as getWalletAccountId, s as parseWalletAccountId } from "./platformAccounts-3jM3W1fB.mjs";
3
3
  import { t as KheopskitError } from "./errors-DszTFbnO.mjs";
4
4
  import { i as resolveConfig, r as DEFAULT_STORAGE_KEY } from "./config-WwW0zov1.mjs";
5
- import { a as getDefaultStore, i as createKheopskitStore, n as createKheopskit, o as getHydratedSnapshot } from "./instance-BJVnjk4r.mjs";
5
+ import { a as getDefaultStore, i as createKheopskitStore, n as createKheopskit, o as getHydratedSnapshot } from "./instance--1tqj7s5.mjs";
6
6
  export { DEFAULT_STORAGE_KEY, KheopskitError, clearAllCachedObservables, createKheopskit, createKheopskitStore, getDefaultStore, getHydratedSnapshot, getWalletAccountId, getWalletId, isInjectedWallet, isValidAddress, isValidWalletId, isWalletConnectWallet, parseWalletAccountId, parseWalletId, resolveConfig };
@@ -1,5 +1,5 @@
1
1
  import { a as isValidWalletId, n as isWalletConnectWallet, o as parseWalletId, r as WALLET_CONNECT_WALLET_ID, s as isWalletPlatform, t as isInjectedWallet } from "./types-DcpmEGhO.mjs";
2
- import { n as framesOf, o as getWalletAccountId, s as parseWalletAccountId } from "./platformAccounts-C1sFv82e.mjs";
2
+ import { n as framesOf, o as getWalletAccountId, s as parseWalletAccountId } from "./platformAccounts-3jM3W1fB.mjs";
3
3
  import { n as abortedError$1, r as accountUnavailableError, s as walletPendingError, t as KheopskitError } from "./errors-DszTFbnO.mjs";
4
4
  import { i as resolveConfig, r as DEFAULT_STORAGE_KEY } from "./config-WwW0zov1.mjs";
5
5
  import { t as POLKADOT_EXTENSIONS } from "./polkadotExtensions-BoVKhNU_.mjs";
@@ -1434,4 +1434,4 @@ const createKheopskit = (config, options = {}) => {
1434
1434
  //#endregion
1435
1435
  export { getDefaultStore as a, getSafeLocalStorage as c, createKheopskitStore as i, serializeAccount as l, createKheopskit as n, getHydratedSnapshot as o, kheopskitInternals as r, setCachedIcons as s, createInstance as t, serializeWallet as u };
1436
1436
 
1437
- //# sourceMappingURL=instance-BJVnjk4r.mjs.map
1437
+ //# sourceMappingURL=instance--1tqj7s5.mjs.map