@pooflabs/web 0.0.83-rc2 → 0.0.84

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 (61) hide show
  1. package/dist/{index-BycoUXcq.js → index-BM6hgCdH.js} +2 -149
  2. package/dist/index-BM6hgCdH.js.map +1 -0
  3. package/dist/{index-HSa4FZ9y.js → index-BPlF6-PQ.js} +279 -159
  4. package/dist/index-BPlF6-PQ.js.map +1 -0
  5. package/dist/index-Bp4b5LXs.js +8 -0
  6. package/dist/index-Bp4b5LXs.js.map +1 -0
  7. package/dist/index-C80kRxWk.esm.js +6 -0
  8. package/dist/index-C80kRxWk.esm.js.map +1 -0
  9. package/dist/{index-dyXVIGCy.esm.js → index-CH2G5Y9i.esm.js} +2 -149
  10. package/dist/index-CH2G5Y9i.esm.js.map +1 -0
  11. package/dist/{index-DQLduP63.js → index-CSeN3jbG.js} +3 -150
  12. package/dist/index-CSeN3jbG.js.map +1 -0
  13. package/dist/{index-p1LvAs78.esm.js → index-XHbmzFFO.esm.js} +279 -159
  14. package/dist/index-XHbmzFFO.esm.js.map +1 -0
  15. package/dist/{index-DEwS-N9F.esm.js → index-ep10Sw82.esm.js} +3 -150
  16. package/dist/index-ep10Sw82.esm.js.map +1 -0
  17. package/dist/{index.browser-DEfS865o.js → index.browser-BvNsUWjt.js} +2 -2
  18. package/dist/{index.browser-DEfS865o.js.map → index.browser-BvNsUWjt.js.map} +1 -1
  19. package/dist/{index.browser-jwJFPtjK.js → index.browser-BwIqqM4U.js} +2 -2
  20. package/dist/{index.browser-jwJFPtjK.js.map → index.browser-BwIqqM4U.js.map} +1 -1
  21. package/dist/{index.browser-DQvFxLjk.js → index.browser-C1QL04xM.js} +2 -2
  22. package/dist/{index.browser-DQvFxLjk.js.map → index.browser-C1QL04xM.js.map} +1 -1
  23. package/dist/{index.browser-Dekybe_E.esm.js → index.browser-Cgj7Hs6n.esm.js} +2 -2
  24. package/dist/{index.browser-Dekybe_E.esm.js.map → index.browser-Cgj7Hs6n.esm.js.map} +1 -1
  25. package/dist/{index.browser-zXADedzh.esm.js → index.browser-CifFI7Ju.esm.js} +2 -2
  26. package/dist/{index.browser-zXADedzh.esm.js.map → index.browser-CifFI7Ju.esm.js.map} +1 -1
  27. package/dist/{index.browser-CbVXUCv0.esm.js → index.browser-D8VWPXTZ.esm.js} +2 -2
  28. package/dist/{index.browser-CbVXUCv0.esm.js.map → index.browser-D8VWPXTZ.esm.js.map} +1 -1
  29. package/dist/index.esm.js +1 -1
  30. package/dist/index.js +1 -1
  31. package/dist/{index.native-CawD5H6H.js → index.native-BmtuyGXs.js} +2677 -187
  32. package/dist/index.native-BmtuyGXs.js.map +1 -0
  33. package/dist/{index.native-Brt4NkkH.esm.js → index.native-X01vlukI.esm.js} +2677 -188
  34. package/dist/index.native-X01vlukI.esm.js.map +1 -0
  35. package/dist/index.native.esm.js +1 -1
  36. package/dist/index.native.js +1 -1
  37. package/dist/{phantom-wallet-provider-CjI_IIr9.js → phantom-wallet-provider-C_LPU6Ns.js} +4 -4
  38. package/dist/{phantom-wallet-provider-CjI_IIr9.js.map → phantom-wallet-provider-C_LPU6Ns.js.map} +1 -1
  39. package/dist/{phantom-wallet-provider-BR5R3OAI.esm.js → phantom-wallet-provider-DRvhBbbR.esm.js} +4 -4
  40. package/dist/{phantom-wallet-provider-BR5R3OAI.esm.js.map → phantom-wallet-provider-DRvhBbbR.esm.js.map} +1 -1
  41. package/dist/{privy-wallet-provider-wN23XtR8.js → privy-wallet-provider-DQM8xO38.js} +3 -3
  42. package/dist/{privy-wallet-provider-wN23XtR8.js.map → privy-wallet-provider-DQM8xO38.js.map} +1 -1
  43. package/dist/{privy-wallet-provider-ZQ4fLg4f.esm.js → privy-wallet-provider-ZGu8q5T5.esm.js} +3 -3
  44. package/dist/{privy-wallet-provider-ZQ4fLg4f.esm.js.map → privy-wallet-provider-ZGu8q5T5.esm.js.map} +1 -1
  45. package/dist/{solana-mobile-wallet-provider-Dt8K5Ils.js → solana-mobile-wallet-provider-6gNw2_bX.js} +4 -4
  46. package/dist/{solana-mobile-wallet-provider-Dt8K5Ils.js.map → solana-mobile-wallet-provider-6gNw2_bX.js.map} +1 -1
  47. package/dist/{solana-mobile-wallet-provider-DhtoJcqW.esm.js → solana-mobile-wallet-provider-B65A7abd.esm.js} +4 -4
  48. package/dist/{solana-mobile-wallet-provider-DhtoJcqW.esm.js.map → solana-mobile-wallet-provider-B65A7abd.esm.js.map} +1 -1
  49. package/package.json +2 -2
  50. package/dist/index-Bdcc5821.js +0 -2375
  51. package/dist/index-Bdcc5821.js.map +0 -1
  52. package/dist/index-BycoUXcq.js.map +0 -1
  53. package/dist/index-CrOVJFX9.esm.js +0 -2373
  54. package/dist/index-CrOVJFX9.esm.js.map +0 -1
  55. package/dist/index-DEwS-N9F.esm.js.map +0 -1
  56. package/dist/index-DQLduP63.js.map +0 -1
  57. package/dist/index-HSa4FZ9y.js.map +0 -1
  58. package/dist/index-dyXVIGCy.esm.js.map +0 -1
  59. package/dist/index-p1LvAs78.esm.js.map +0 -1
  60. package/dist/index.native-Brt4NkkH.esm.js.map +0 -1
  61. package/dist/index.native-CawD5H6H.js.map +0 -1
@@ -0,0 +1,8 @@
1
+ 'use strict';
2
+
3
+ var index_native = require('./index.native-BmtuyGXs.js');
4
+
5
+ var bufferExports = index_native.requireBuffer();
6
+
7
+ exports.bufferExports = bufferExports;
8
+ //# sourceMappingURL=index-Bp4b5LXs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-Bp4b5LXs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -0,0 +1,6 @@
1
+ import { r as requireBuffer } from './index.native-X01vlukI.esm.js';
2
+
3
+ var bufferExports = requireBuffer();
4
+
5
+ export { bufferExports as b };
6
+ //# sourceMappingURL=index-C80kRxWk.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-C80kRxWk.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { useContext, createContext, useState, useMemo, useRef, useEffect, useCallback } from 'react';
3
3
  import globalAxios, { isAxiosError } from 'axios';
4
- import { b as bufferExports, g as getDefaultExportFromCjs, a as base58 } from './index-p1LvAs78.esm.js';
4
+ import { b as bufferExports, g as getDefaultExportFromCjs, a as base58 } from './index-XHbmzFFO.esm.js';
5
5
  import { Transaction as Transaction$1, VersionedTransaction } from '@solana/web3.js';
6
6
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
7
7
  import '@coral-xyz/anchor';
@@ -998,153 +998,6 @@ function isSolanaChain(networkId) {
998
998
  return network === "solana";
999
999
  }
1000
1000
 
1001
- var src;
1002
- var hasRequiredSrc;
1003
-
1004
- function requireSrc () {
1005
- if (hasRequiredSrc) return src;
1006
- hasRequiredSrc = 1;
1007
- // base-x encoding / decoding
1008
- // Copyright (c) 2018 base-x contributors
1009
- // Copyright (c) 2014-2018 The Bitcoin Core developers (base58.cpp)
1010
- // Distributed under the MIT software license, see the accompanying
1011
- // file LICENSE or http://www.opensource.org/licenses/mit-license.php.
1012
- function base (ALPHABET) {
1013
- if (ALPHABET.length >= 255) { throw new TypeError('Alphabet too long') }
1014
- var BASE_MAP = new Uint8Array(256);
1015
- for (var j = 0; j < BASE_MAP.length; j++) {
1016
- BASE_MAP[j] = 255;
1017
- }
1018
- for (var i = 0; i < ALPHABET.length; i++) {
1019
- var x = ALPHABET.charAt(i);
1020
- var xc = x.charCodeAt(0);
1021
- if (BASE_MAP[xc] !== 255) { throw new TypeError(x + ' is ambiguous') }
1022
- BASE_MAP[xc] = i;
1023
- }
1024
- var BASE = ALPHABET.length;
1025
- var LEADER = ALPHABET.charAt(0);
1026
- var FACTOR = Math.log(BASE) / Math.log(256); // log(BASE) / log(256), rounded up
1027
- var iFACTOR = Math.log(256) / Math.log(BASE); // log(256) / log(BASE), rounded up
1028
- function encode (source) {
1029
- if (source instanceof Uint8Array) ; else if (ArrayBuffer.isView(source)) {
1030
- source = new Uint8Array(source.buffer, source.byteOffset, source.byteLength);
1031
- } else if (Array.isArray(source)) {
1032
- source = Uint8Array.from(source);
1033
- }
1034
- if (!(source instanceof Uint8Array)) { throw new TypeError('Expected Uint8Array') }
1035
- if (source.length === 0) { return '' }
1036
- // Skip & count leading zeroes.
1037
- var zeroes = 0;
1038
- var length = 0;
1039
- var pbegin = 0;
1040
- var pend = source.length;
1041
- while (pbegin !== pend && source[pbegin] === 0) {
1042
- pbegin++;
1043
- zeroes++;
1044
- }
1045
- // Allocate enough space in big-endian base58 representation.
1046
- var size = ((pend - pbegin) * iFACTOR + 1) >>> 0;
1047
- var b58 = new Uint8Array(size);
1048
- // Process the bytes.
1049
- while (pbegin !== pend) {
1050
- var carry = source[pbegin];
1051
- // Apply "b58 = b58 * 256 + ch".
1052
- var i = 0;
1053
- for (var it1 = size - 1; (carry !== 0 || i < length) && (it1 !== -1); it1--, i++) {
1054
- carry += (256 * b58[it1]) >>> 0;
1055
- b58[it1] = (carry % BASE) >>> 0;
1056
- carry = (carry / BASE) >>> 0;
1057
- }
1058
- if (carry !== 0) { throw new Error('Non-zero carry') }
1059
- length = i;
1060
- pbegin++;
1061
- }
1062
- // Skip leading zeroes in base58 result.
1063
- var it2 = size - length;
1064
- while (it2 !== size && b58[it2] === 0) {
1065
- it2++;
1066
- }
1067
- // Translate the result into a string.
1068
- var str = LEADER.repeat(zeroes);
1069
- for (; it2 < size; ++it2) { str += ALPHABET.charAt(b58[it2]); }
1070
- return str
1071
- }
1072
- function decodeUnsafe (source) {
1073
- if (typeof source !== 'string') { throw new TypeError('Expected String') }
1074
- if (source.length === 0) { return new Uint8Array() }
1075
- var psz = 0;
1076
- // Skip and count leading '1's.
1077
- var zeroes = 0;
1078
- var length = 0;
1079
- while (source[psz] === LEADER) {
1080
- zeroes++;
1081
- psz++;
1082
- }
1083
- // Allocate enough space in big-endian base256 representation.
1084
- var size = (((source.length - psz) * FACTOR) + 1) >>> 0; // log(58) / log(256), rounded up.
1085
- var b256 = new Uint8Array(size);
1086
- // Process the characters.
1087
- while (source[psz]) {
1088
- // Find code of next character
1089
- var charCode = source.charCodeAt(psz);
1090
- // Base map can not be indexed using char code
1091
- if (charCode > 255) { return }
1092
- // Decode character
1093
- var carry = BASE_MAP[charCode];
1094
- // Invalid character
1095
- if (carry === 255) { return }
1096
- var i = 0;
1097
- for (var it3 = size - 1; (carry !== 0 || i < length) && (it3 !== -1); it3--, i++) {
1098
- carry += (BASE * b256[it3]) >>> 0;
1099
- b256[it3] = (carry % 256) >>> 0;
1100
- carry = (carry / 256) >>> 0;
1101
- }
1102
- if (carry !== 0) { throw new Error('Non-zero carry') }
1103
- length = i;
1104
- psz++;
1105
- }
1106
- // Skip leading zeroes in b256.
1107
- var it4 = size - length;
1108
- while (it4 !== size && b256[it4] === 0) {
1109
- it4++;
1110
- }
1111
- var vch = new Uint8Array(zeroes + (size - it4));
1112
- var j = zeroes;
1113
- while (it4 !== size) {
1114
- vch[j++] = b256[it4++];
1115
- }
1116
- return vch
1117
- }
1118
- function decode (string) {
1119
- var buffer = decodeUnsafe(string);
1120
- if (buffer) { return buffer }
1121
- throw new Error('Non-base' + BASE + ' character')
1122
- }
1123
- return {
1124
- encode: encode,
1125
- decodeUnsafe: decodeUnsafe,
1126
- decode: decode
1127
- }
1128
- }
1129
- src = base;
1130
- return src;
1131
- }
1132
-
1133
- var bs58;
1134
- var hasRequiredBs58;
1135
-
1136
- function requireBs58 () {
1137
- if (hasRequiredBs58) return bs58;
1138
- hasRequiredBs58 = 1;
1139
- const basex = requireSrc();
1140
- const ALPHABET = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz';
1141
-
1142
- bs58 = basex(ALPHABET);
1143
- return bs58;
1144
- }
1145
-
1146
- requireBs58();
1147
-
1148
1001
  // src/PhantomClient.ts
1149
1002
  var CAIP2_NETWORK_MAPPINGS = {
1150
1003
  // Solana networks
@@ -15883,4 +15736,4 @@ function ConnectBox({ maxWidth = "350px", transparent = false, appIcon, appName
15883
15736
  }
15884
15737
 
15885
15738
  export { DerivationInfoAddressFormatEnum as AddressType, ConnectBox, ConnectButton, DebugLevel, NetworkId, PhantomProvider, darkTheme, debug, isMobileDevice, lightTheme, mergeTheme, useAccounts, useAutoConfirm, useConnect, useDisconnect, useDiscoveredWallets, useEthereum, useIsExtensionInstalled, useIsPhantomLoginAvailable, useModal, usePhantom, useSolana, useTheme };
15886
- //# sourceMappingURL=index-dyXVIGCy.esm.js.map
15739
+ //# sourceMappingURL=index-CH2G5Y9i.esm.js.map