@rozoai/intent-pay 0.1.22-beta.1 → 0.1.22-beta.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 (27) hide show
  1. package/build/package.json.js +4 -4
  2. package/build/provider/RozoPayProvider.d.ts +6 -0
  3. package/build/provider/StellarContextProvider.d.ts +10 -5
  4. package/build/src/components/Pages/SelectMethod/index.js +2 -1
  5. package/build/src/components/Pages/SelectMethod/index.js.map +1 -1
  6. package/build/src/components/Pages/Stellar/ConnectStellar/index.js +13 -22
  7. package/build/src/components/Pages/Stellar/ConnectStellar/index.js.map +1 -1
  8. package/build/src/components/Pages/Stellar/PayWithStellarToken/index.js +3 -3
  9. package/build/src/components/Pages/Stellar/PayWithStellarToken/index.js.map +1 -1
  10. package/build/src/defaultConfig.js +0 -1
  11. package/build/src/defaultConfig.js.map +1 -1
  12. package/build/src/hooks/usePaymentState.js +2 -2
  13. package/build/src/hooks/usePaymentState.js.map +1 -1
  14. package/build/src/provider/RozoPayProvider.js +1 -1
  15. package/build/src/provider/RozoPayProvider.js.map +1 -1
  16. package/build/src/provider/StellarContextProvider.js +89 -42
  17. package/build/src/provider/StellarContextProvider.js.map +1 -1
  18. package/build/src/utils/index.js +1 -11
  19. package/build/src/utils/index.js.map +1 -1
  20. package/build/src/utils/stellar/singleton-import.js +38 -47
  21. package/build/src/utils/stellar/singleton-import.js.map +1 -1
  22. package/build/src/utils/stellar/walletconnect.module.js.map +1 -1
  23. package/build/utils/stellar/index.d.ts +1 -0
  24. package/build/utils/stellar/singleton-import.d.ts +15 -8
  25. package/build/utils/stellar/walletconnect.module.d.ts +14 -70
  26. package/package.json +13 -14
  27. package/src/index.ts +52 -0
package/src/index.ts ADDED
@@ -0,0 +1,52 @@
1
+ export type * as Types from "./types";
2
+
3
+ export { version } from "../package.json";
4
+
5
+ // Configure Rozo Pay
6
+ export { default as getDefaultConfig } from "./defaultConfig";
7
+ export { RozoPayProvider } from "./provider/RozoPayProvider";
8
+
9
+ // Pay button
10
+ export { RozoPayButton } from "./components/RozoPayButton";
11
+
12
+ export type {
13
+ RozoPayButtonCustomProps,
14
+ RozoPayButtonProps,
15
+ } from "./components/RozoPayButton/types";
16
+
17
+ // Hooks to track payment status + UI status.
18
+ export { useRozoPay } from "./hooks/useRozoPay";
19
+ export { useRozoPayStatus } from "./hooks/useRozoPayStatus";
20
+ export { useRozoPayUI } from "./hooks/useRozoPayUI";
21
+
22
+ // For convenience, export components to show connected account.
23
+ // export { default as ChainIcon } from "./components/Common/Chain";
24
+ export { wallets } from "./wallets";
25
+
26
+ // Export utilities.
27
+ export * from "./utils/exports";
28
+
29
+ // Export types
30
+ export * from "./types";
31
+
32
+ // Export chain address utilities and types
33
+ export {
34
+ isValidEvmAddress,
35
+ isValidSolanaAddress,
36
+ isValidStellarAddress,
37
+ validateAddressForChain,
38
+ } from "./types/chainAddress";
39
+
40
+ // TODO: expose this more selectively.
41
+ export { usePayContext } from "./hooks/usePayContext";
42
+ export { PayContext as RozoPayContext } from "./provider/PayContext";
43
+
44
+ // Stellar integration
45
+ export { useRozoConnectStellar } from "./provider/StellarContextProvider";
46
+
47
+ // EVM utils
48
+ export { getAddress as getEVMAddress, isAddress as isEVMAddress } from "viem";
49
+ export {
50
+ createConfig as createRozoWagmiConfig,
51
+ WagmiProvider as RozoWagmiProvider,
52
+ } from "wagmi";