@rozoai/intent-pay 0.1.24 → 0.1.25
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/build/assets/MobileWithLogos.d.ts +1 -1
- package/build/assets/browsers.d.ts +4 -4
- package/build/assets/chains.d.ts +11 -11
- package/build/assets/coins.d.ts +2 -2
- package/build/assets/icons.d.ts +14 -14
- package/build/assets/logos.d.ts +40 -40
- package/build/assets/rozo-dark.d.ts +1 -1
- package/build/assets/rozo-text.d.ts +2 -1
- package/build/assets/rozo-white.d.ts +1 -1
- package/build/assets/wallet.d.ts +1 -1
- package/build/assets/wave.d.ts +1 -1
- package/build/components/Common/Alert/index.d.ts +1 -1
- package/build/components/Common/ChainSelectList/index.d.ts +1 -1
- package/build/components/Common/ConnectorList/index.d.ts +1 -1
- package/build/components/Common/CopyToClipboard/CopyToClipboardIcon.d.ts +1 -1
- package/build/components/Common/CustomQRCode/QRCode.d.ts +1 -1
- package/build/components/Common/CustomQRCode/index.d.ts +1 -1
- package/build/components/Common/FitText/index.d.ts +1 -1
- package/build/components/Common/Modal/index.d.ts +1 -1
- package/build/components/Common/OptionsList/index.d.ts +1 -1
- package/build/components/Common/OrderHeader/index.d.ts +2 -1
- package/build/components/Common/PoweredByFooter/index.d.ts +1 -1
- package/build/components/Common/ScrollArea/index.d.ts +1 -1
- package/build/components/Common/SelectAnotherMethodButton/index.d.ts +1 -1
- package/build/components/Common/Spinner/index.d.ts +1 -1
- package/build/components/Common/ThemedButton/index.d.ts +1 -1
- package/build/components/Common/TokenChainLogo/index.d.ts +1 -1
- package/build/components/Common/WalletChainLogo/index.d.ts +1 -1
- package/build/components/Pages/About/graphics.d.ts +3 -3
- package/build/components/Pages/DownloadApp/index.d.ts +1 -1
- package/build/components/Pages/Error/index.d.ts +1 -1
- package/build/components/Pages/SelectMethod/index.d.ts +2 -1
- package/build/components/Pages/SelectToken/index.d.ts +1 -1
- package/build/components/Pages/WaitingDepositAddress/index.d.ts +1 -1
- package/build/components/RozoPayButton/index.d.ts +1 -1
- package/build/components/RozoPayModal/ConnectUsing.d.ts +1 -1
- package/build/components/Spinners/CircleSpinner/index.d.ts +1 -1
- package/build/components/Spinners/ExternalPaymentSpinner/index.d.ts +1 -1
- package/build/components/Spinners/SquircleSpinner/index.d.ts +1 -1
- package/build/components/Spinners/TokenLogoSpinner/index.d.ts +1 -1
- package/build/components/Spinners/WalletPaymentSpinner/index.d.ts +1 -1
- package/build/hooks/useFocusTrap.d.ts +1 -1
- package/build/lib/analytics/events.d.ts +2 -0
- package/build/package.json.js +1 -1
- package/build/payment/paymentEventContext.d.ts +1 -1
- package/build/provider/AnalyticsProvider.d.ts +6 -3
- package/build/provider/PaymentProvider.d.ts +1 -1
- package/build/provider/RozoPayProvider.d.ts +6 -3
- package/build/provider/SolanaContextProvider.d.ts +1 -1
- package/build/provider/StellarContextProvider.d.ts +1 -1
- package/build/provider/Web3ContextProvider.d.ts +1 -1
- package/build/src/components/Pages/Confirmation/index.js +9 -6
- package/build/src/components/Pages/Confirmation/index.js.map +1 -1
- package/build/src/components/Pages/PayWithToken/index.js +7 -3
- package/build/src/components/Pages/PayWithToken/index.js.map +1 -1
- package/build/src/components/RozoPayButton/index.js +9 -0
- package/build/src/components/RozoPayButton/index.js.map +1 -1
- package/build/src/hooks/usePaymentState.js +9 -5
- package/build/src/hooks/usePaymentState.js.map +1 -1
- package/build/src/lib/analytics/events.js +1 -0
- package/build/src/lib/analytics/events.js.map +1 -1
- package/build/src/provider/AnalyticsProvider.js.map +1 -1
- package/build/src/provider/RozoPayProvider.js +9 -3
- package/build/src/provider/RozoPayProvider.js.map +1 -1
- package/build/world-mini-app/WorldPayButton.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function MobileWithLogos(): import("react
|
|
1
|
+
export declare function MobileWithLogos(): import("react").JSX.Element;
|
|
2
2
|
export default MobileWithLogos;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* TODO: Move hex colors into css variables for p3 support
|
|
3
3
|
*/
|
|
4
4
|
declare const _default: {
|
|
5
|
-
Chrome: import("react
|
|
6
|
-
FireFox: import("react
|
|
7
|
-
Brave: import("react
|
|
8
|
-
Edge: import("react
|
|
5
|
+
Chrome: import("react").JSX.Element;
|
|
6
|
+
FireFox: import("react").JSX.Element;
|
|
7
|
+
Brave: import("react").JSX.Element;
|
|
8
|
+
Edge: import("react").JSX.Element;
|
|
9
9
|
};
|
|
10
10
|
export default _default;
|
package/build/assets/chains.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export declare const UnknownChain: (props: any) => import("react
|
|
2
|
-
export declare const Ethereum: (props: any) => import("react
|
|
3
|
-
export declare const Polygon: (props: any) => import("react
|
|
4
|
-
export declare const Optimism: (props: any) => import("react
|
|
5
|
-
export declare const Arbitrum: (props: any) => import("react
|
|
6
|
-
export declare const BinanceSmartChain: (props: any) => import("react
|
|
7
|
-
export declare const Solana: (props: any) => import("react
|
|
8
|
-
export declare const Base: (props: any) => import("react
|
|
9
|
-
export declare const Worldchain: (props: any) => import("react
|
|
10
|
-
export declare const Stellar: (props: any) => import("react
|
|
1
|
+
export declare const UnknownChain: (props: any) => import("react").JSX.Element;
|
|
2
|
+
export declare const Ethereum: (props: any) => import("react").JSX.Element;
|
|
3
|
+
export declare const Polygon: (props: any) => import("react").JSX.Element;
|
|
4
|
+
export declare const Optimism: (props: any) => import("react").JSX.Element;
|
|
5
|
+
export declare const Arbitrum: (props: any) => import("react").JSX.Element;
|
|
6
|
+
export declare const BinanceSmartChain: (props: any) => import("react").JSX.Element;
|
|
7
|
+
export declare const Solana: (props: any) => import("react").JSX.Element;
|
|
8
|
+
export declare const Base: (props: any) => import("react").JSX.Element;
|
|
9
|
+
export declare const Worldchain: (props: any) => import("react").JSX.Element;
|
|
10
|
+
export declare const Stellar: (props: any) => import("react").JSX.Element;
|
|
11
11
|
export declare const chainToLogo: {
|
|
12
|
-
[x: number]: import("react
|
|
12
|
+
[x: number]: import("react").JSX.Element;
|
|
13
13
|
};
|
package/build/assets/coins.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const USDC: (props: any) => import("react
|
|
2
|
-
export declare const DAI: (props: any) => import("react
|
|
1
|
+
export declare const USDC: (props: any) => import("react").JSX.Element;
|
|
2
|
+
export declare const DAI: (props: any) => import("react").JSX.Element;
|
package/build/assets/icons.d.ts
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
export declare const Scan: ({ ...props }: {
|
|
2
2
|
[x: string]: any;
|
|
3
|
-
}) => import("react
|
|
4
|
-
export declare const WarningIcon: () => import("react
|
|
3
|
+
}) => import("react").JSX.Element;
|
|
4
|
+
export declare const WarningIcon: () => import("react").JSX.Element;
|
|
5
5
|
export declare const Download: ({ ...props }: {
|
|
6
6
|
[x: string]: any;
|
|
7
|
-
}) => import("react
|
|
7
|
+
}) => import("react").JSX.Element;
|
|
8
8
|
export declare const ExternalLinkIcon: ({ ...props }: {
|
|
9
9
|
[x: string]: any;
|
|
10
|
-
}) => import("react
|
|
10
|
+
}) => import("react").JSX.Element;
|
|
11
11
|
export declare const AlertIcon: ({ ...props }: {
|
|
12
12
|
[x: string]: any;
|
|
13
|
-
}) => import("react
|
|
13
|
+
}) => import("react").JSX.Element;
|
|
14
14
|
export declare const DisconnectIcon: ({ ...props }: {
|
|
15
15
|
[x: string]: any;
|
|
16
|
-
}) => import("react
|
|
16
|
+
}) => import("react").JSX.Element;
|
|
17
17
|
export declare const TickIcon: ({ ...props }: {
|
|
18
18
|
[x: string]: any;
|
|
19
|
-
}) => import("react
|
|
19
|
+
}) => import("react").JSX.Element;
|
|
20
20
|
export declare const BadgeCheckIcon: ({ ...props }: {
|
|
21
21
|
[x: string]: any;
|
|
22
|
-
}) => import("react
|
|
22
|
+
}) => import("react").JSX.Element;
|
|
23
23
|
export declare const LoadingCircleIcon: ({ ...props }: {
|
|
24
24
|
[x: string]: any;
|
|
25
|
-
}) => import("react
|
|
25
|
+
}) => import("react").JSX.Element;
|
|
26
26
|
export declare const RetryIconCircle: ({ ...props }: {
|
|
27
27
|
[x: string]: any;
|
|
28
|
-
}) => import("react
|
|
28
|
+
}) => import("react").JSX.Element;
|
|
29
29
|
export declare const RetryIcon: ({ ...props }: {
|
|
30
30
|
[x: string]: any;
|
|
31
|
-
}) => import("react
|
|
31
|
+
}) => import("react").JSX.Element;
|
|
32
32
|
export declare const CopyToClipboardIcon: ({ ...props }: {
|
|
33
33
|
[x: string]: any;
|
|
34
|
-
}) => import("react
|
|
35
|
-
export declare const AuthIcon: ({ ...props }: React.HTMLAttributes<HTMLDivElement>) => import("react
|
|
34
|
+
}) => import("react").JSX.Element;
|
|
35
|
+
export declare const AuthIcon: ({ ...props }: React.HTMLAttributes<HTMLDivElement>) => import("react").JSX.Element;
|
|
36
36
|
export declare const SwitchIcon: ({ ...props }: {
|
|
37
37
|
[x: string]: any;
|
|
38
|
-
}) => import("react
|
|
38
|
+
}) => import("react").JSX.Element;
|
package/build/assets/logos.d.ts
CHANGED
|
@@ -1,98 +1,98 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
export declare const MetaMask: ({ background, ...props }: any) =>
|
|
2
|
+
export declare const MetaMask: ({ background, ...props }: any) => React.JSX.Element;
|
|
3
3
|
export declare const Coinbase: ({ ...props }: {
|
|
4
4
|
[x: string]: any;
|
|
5
|
-
}) =>
|
|
5
|
+
}) => React.JSX.Element;
|
|
6
6
|
export declare const Family: ({ ...props }: {
|
|
7
7
|
[x: string]: any;
|
|
8
|
-
}) =>
|
|
8
|
+
}) => React.JSX.Element;
|
|
9
9
|
export declare const Trust: ({ background, ...props }: {
|
|
10
10
|
background?: boolean;
|
|
11
|
-
}) =>
|
|
11
|
+
}) => React.JSX.Element;
|
|
12
12
|
export declare const WalletIcon: ({ inverted }: {
|
|
13
13
|
inverted?: boolean;
|
|
14
|
-
}) =>
|
|
15
|
-
export declare const Rainbow: ({ round, ...props }: any) =>
|
|
14
|
+
}) => React.JSX.Element;
|
|
15
|
+
export declare const Rainbow: ({ round, ...props }: any) => React.JSX.Element;
|
|
16
16
|
export declare const Phantom: ({ ...props }: {
|
|
17
17
|
[x: string]: any;
|
|
18
|
-
}) =>
|
|
18
|
+
}) => React.JSX.Element;
|
|
19
19
|
export declare const Solflare: ({ ...props }: {
|
|
20
20
|
[x: string]: any;
|
|
21
|
-
}) =>
|
|
21
|
+
}) => React.JSX.Element;
|
|
22
22
|
export declare const Backpack: ({ ...props }: {
|
|
23
23
|
[x: string]: any;
|
|
24
|
-
}) =>
|
|
24
|
+
}) => React.JSX.Element;
|
|
25
25
|
export declare const Bitget: ({ ...props }: {
|
|
26
26
|
[x: string]: any;
|
|
27
|
-
}) =>
|
|
28
|
-
export declare const MiniPay: () =>
|
|
27
|
+
}) => React.JSX.Element;
|
|
28
|
+
export declare const MiniPay: () => React.JSX.Element;
|
|
29
29
|
export declare const OKX: ({ ...props }: {
|
|
30
30
|
[x: string]: any;
|
|
31
|
-
}) =>
|
|
31
|
+
}) => React.JSX.Element;
|
|
32
32
|
export declare const Zerion: ({ ...props }: {
|
|
33
33
|
[x: string]: any;
|
|
34
|
-
}) =>
|
|
34
|
+
}) => React.JSX.Element;
|
|
35
35
|
export declare const Rabby: ({ ...props }: {
|
|
36
36
|
[x: string]: any;
|
|
37
|
-
}) =>
|
|
37
|
+
}) => React.JSX.Element;
|
|
38
38
|
export declare const OtherWallets: ({ ...props }: {
|
|
39
39
|
[x: string]: any;
|
|
40
|
-
}) =>
|
|
41
|
-
export declare const Freighter: () =>
|
|
42
|
-
export declare const Lobstr: () =>
|
|
43
|
-
export declare const HotWallet: () =>
|
|
44
|
-
export declare const WalletConnect: () =>
|
|
40
|
+
}) => React.JSX.Element;
|
|
41
|
+
export declare const Freighter: () => React.JSX.Element;
|
|
42
|
+
export declare const Lobstr: () => React.JSX.Element;
|
|
43
|
+
export declare const HotWallet: () => React.JSX.Element;
|
|
44
|
+
export declare const WalletConnect: () => React.JSX.Element;
|
|
45
45
|
export declare const SquircleIcon: ({ icon, alt, }: {
|
|
46
46
|
icon: string | React.ComponentType<any>;
|
|
47
47
|
alt: string;
|
|
48
|
-
}) =>
|
|
48
|
+
}) => React.JSX.Element;
|
|
49
49
|
declare const Logos: {
|
|
50
|
-
MetaMask: ({ background, ...props }: any) =>
|
|
50
|
+
MetaMask: ({ background, ...props }: any) => React.JSX.Element;
|
|
51
51
|
Coinbase: ({ ...props }: {
|
|
52
52
|
[x: string]: any;
|
|
53
|
-
}) =>
|
|
53
|
+
}) => React.JSX.Element;
|
|
54
54
|
Family: ({ ...props }: {
|
|
55
55
|
[x: string]: any;
|
|
56
|
-
}) =>
|
|
56
|
+
}) => React.JSX.Element;
|
|
57
57
|
Trust: ({ background, ...props }: {
|
|
58
58
|
background?: boolean;
|
|
59
|
-
}) =>
|
|
59
|
+
}) => React.JSX.Element;
|
|
60
60
|
WalletIcon: ({ inverted }: {
|
|
61
61
|
inverted?: boolean;
|
|
62
|
-
}) =>
|
|
63
|
-
Rainbow: ({ round, ...props }: any) =>
|
|
62
|
+
}) => React.JSX.Element;
|
|
63
|
+
Rainbow: ({ round, ...props }: any) => React.JSX.Element;
|
|
64
64
|
Phantom: ({ ...props }: {
|
|
65
65
|
[x: string]: any;
|
|
66
|
-
}) =>
|
|
66
|
+
}) => React.JSX.Element;
|
|
67
67
|
Solflare: ({ ...props }: {
|
|
68
68
|
[x: string]: any;
|
|
69
|
-
}) =>
|
|
69
|
+
}) => React.JSX.Element;
|
|
70
70
|
Backpack: ({ ...props }: {
|
|
71
71
|
[x: string]: any;
|
|
72
|
-
}) =>
|
|
72
|
+
}) => React.JSX.Element;
|
|
73
73
|
Bitget: ({ ...props }: {
|
|
74
74
|
[x: string]: any;
|
|
75
|
-
}) =>
|
|
76
|
-
MiniPay: () =>
|
|
75
|
+
}) => React.JSX.Element;
|
|
76
|
+
MiniPay: () => React.JSX.Element;
|
|
77
77
|
OKX: ({ ...props }: {
|
|
78
78
|
[x: string]: any;
|
|
79
|
-
}) =>
|
|
79
|
+
}) => React.JSX.Element;
|
|
80
80
|
Zerion: ({ ...props }: {
|
|
81
81
|
[x: string]: any;
|
|
82
|
-
}) =>
|
|
82
|
+
}) => React.JSX.Element;
|
|
83
83
|
Rabby: ({ ...props }: {
|
|
84
84
|
[x: string]: any;
|
|
85
|
-
}) =>
|
|
85
|
+
}) => React.JSX.Element;
|
|
86
86
|
OtherWallets: ({ ...props }: {
|
|
87
87
|
[x: string]: any;
|
|
88
|
-
}) =>
|
|
89
|
-
Freighter: () =>
|
|
90
|
-
Lobstr: () =>
|
|
91
|
-
HotWallet: () =>
|
|
92
|
-
WalletConnect: () =>
|
|
88
|
+
}) => React.JSX.Element;
|
|
89
|
+
Freighter: () => React.JSX.Element;
|
|
90
|
+
Lobstr: () => React.JSX.Element;
|
|
91
|
+
HotWallet: () => React.JSX.Element;
|
|
92
|
+
WalletConnect: () => React.JSX.Element;
|
|
93
93
|
SquircleIcon: ({ icon, alt, }: {
|
|
94
94
|
icon: string | React.ComponentType<any>;
|
|
95
95
|
alt: string;
|
|
96
|
-
}) =>
|
|
96
|
+
}) => React.JSX.Element;
|
|
97
97
|
};
|
|
98
98
|
export default Logos;
|
|
@@ -2,5 +2,5 @@ import React from 'react';
|
|
|
2
2
|
declare const RozoDark: ({ width, height, ...props }: React.SVGProps<SVGSVGElement> & {
|
|
3
3
|
width?: number | string;
|
|
4
4
|
height?: number | string;
|
|
5
|
-
}) =>
|
|
5
|
+
}) => React.JSX.Element;
|
|
6
6
|
export default RozoDark;
|
|
@@ -2,5 +2,5 @@ import React from 'react';
|
|
|
2
2
|
declare const RozoWhite: ({ width, height, ...props }: React.SVGProps<SVGSVGElement> & {
|
|
3
3
|
width?: number | string;
|
|
4
4
|
height?: number | string;
|
|
5
|
-
}) =>
|
|
5
|
+
}) => React.JSX.Element;
|
|
6
6
|
export default RozoWhite;
|
package/build/assets/wallet.d.ts
CHANGED
package/build/assets/wave.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("react
|
|
1
|
+
declare const _default: import("react").JSX.Element;
|
|
2
2
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AlertProps } from "./types";
|
|
2
2
|
declare const Alert: {
|
|
3
|
-
({ children, error, icon }: AlertProps): import("react
|
|
3
|
+
({ children, error, icon }: AlertProps): import("react").JSX.Element;
|
|
4
4
|
displayName: string;
|
|
5
5
|
};
|
|
6
6
|
export default Alert;
|
|
@@ -8,5 +8,5 @@ type Props = {
|
|
|
8
8
|
image?: React.ReactNode;
|
|
9
9
|
imageBackground?: string;
|
|
10
10
|
};
|
|
11
|
-
export declare function QRCode({ ecl, size: sizeProp, uri, clearArea, image, imageBackground, }: Props):
|
|
11
|
+
export declare function QRCode({ ecl, size: sizeProp, uri, clearArea, image, imageBackground, }: Props): React.JSX.Element;
|
|
12
12
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CustomQRCodeProps } from "./types";
|
|
2
|
-
declare function CustomQRCode({ value, image, imageBackground, imagePosition, tooltipMessage, contentPadding, }: CustomQRCodeProps): import("react
|
|
2
|
+
declare function CustomQRCode({ value, image, imageBackground, imagePosition, tooltipMessage, contentPadding, }: CustomQRCodeProps): import("react").JSX.Element;
|
|
3
3
|
declare namespace CustomQRCode {
|
|
4
4
|
var displayName: string;
|
|
5
5
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
/** Shows payment amount. */
|
|
2
3
|
export declare const OrderHeader: ({ minified, show, excludeLogos, }: {
|
|
3
4
|
minified?: boolean;
|
|
4
5
|
show?: "evm" | "solana" | "stellar" | "zkp2p" | "all";
|
|
5
6
|
excludeLogos?: string[];
|
|
6
|
-
}) =>
|
|
7
|
+
}) => React.JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function SelectAnotherMethodButton(): import("react
|
|
1
|
+
export default function SelectAnotherMethodButton(): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const Spinner: () => import("react
|
|
1
|
+
export declare const Spinner: () => import("react").JSX.Element;
|
|
@@ -9,7 +9,7 @@ type ThemedButtonProps = {
|
|
|
9
9
|
style?: React.CSSProperties;
|
|
10
10
|
onClick?: () => void;
|
|
11
11
|
};
|
|
12
|
-
export declare const PlaceholderButton: () =>
|
|
12
|
+
export declare const PlaceholderButton: () => React.JSX.Element;
|
|
13
13
|
declare const ThemedButton: React.FC<ThemedButtonProps & All>;
|
|
14
14
|
export default ThemedButton;
|
|
15
15
|
export { ThemeContainer };
|
|
@@ -2,5 +2,5 @@ declare const WalletChainLogo: ({ walletIcon, walletName, chainLogo, }: {
|
|
|
2
2
|
walletIcon: React.ReactNode | string;
|
|
3
3
|
walletName: string;
|
|
4
4
|
chainLogo: React.ReactNode;
|
|
5
|
-
}) => import("react
|
|
5
|
+
}) => import("react").JSX.Element;
|
|
6
6
|
export default WalletChainLogo;
|
|
@@ -5,7 +5,7 @@ type Slide = {
|
|
|
5
5
|
duration: number;
|
|
6
6
|
ease: Easing;
|
|
7
7
|
};
|
|
8
|
-
export declare const SlideOne: ({ layoutId }: Slide) => import("react
|
|
9
|
-
export declare const SlideTwo: ({ layoutId }: Slide) => import("react
|
|
10
|
-
export declare const SlideThree: ({ layoutId }: Slide) => import("react
|
|
8
|
+
export declare const SlideOne: ({ layoutId }: Slide) => import("react").JSX.Element;
|
|
9
|
+
export declare const SlideTwo: ({ layoutId }: Slide) => import("react").JSX.Element;
|
|
10
|
+
export declare const SlideThree: ({ layoutId }: Slide) => import("react").JSX.Element;
|
|
11
11
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const DownloadApp: () => import("react
|
|
1
|
+
declare const DownloadApp: () => import("react").JSX.Element;
|
|
2
2
|
export default DownloadApp;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function ErrorPage(): import("react
|
|
1
|
+
export default function ErrorPage(): import("react").JSX.Element;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
export default function SelectMethod(): React.JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function SelectToken(): import("react
|
|
1
|
+
export default function SelectToken(): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function WaitingDepositAddress(): import("react
|
|
1
|
+
export default function WaitingDepositAddress(): import("react").JSX.Element;
|
|
@@ -12,5 +12,5 @@ declare function RozoPayButtonCustom(props: RozoPayButtonCustomProps): JSX.Eleme
|
|
|
12
12
|
declare namespace RozoPayButtonCustom {
|
|
13
13
|
var displayName: string;
|
|
14
14
|
}
|
|
15
|
-
export declare function RozoPayButtonInner(): import("react
|
|
15
|
+
export declare function RozoPayButtonInner(): import("react").JSX.Element;
|
|
16
16
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const ConnectUsing: () => import("react
|
|
1
|
+
declare const ConnectUsing: () => import("react").JSX.Element;
|
|
2
2
|
export default ConnectUsing;
|
|
@@ -2,5 +2,5 @@ import { RozoPayToken } from "@rozoai/intent-common";
|
|
|
2
2
|
declare const TokenLogoSpinner: ({ token, loading }: {
|
|
3
3
|
token: RozoPayToken;
|
|
4
4
|
loading?: boolean;
|
|
5
|
-
}) => import("react
|
|
5
|
+
}) => import("react").JSX.Element;
|
|
6
6
|
export default TokenLogoSpinner;
|
|
@@ -3,5 +3,5 @@ declare const WalletPaymentSpinner: ({ logo, logoShape, loading, unavailable, }:
|
|
|
3
3
|
logoShape: "circle" | "squircle";
|
|
4
4
|
loading?: boolean;
|
|
5
5
|
unavailable?: boolean;
|
|
6
|
-
}) => import("react
|
|
6
|
+
}) => import("react").JSX.Element;
|
|
7
7
|
export default WalletPaymentSpinner;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function FocusTrap(props: any): import("react
|
|
1
|
+
export default function FocusTrap(props: any): import("react").JSX.Element;
|
|
@@ -8,6 +8,7 @@ export declare const PAYMENT_EVENTS: {
|
|
|
8
8
|
readonly PAYMENT_SUBMITTED: "payment_submitted";
|
|
9
9
|
readonly PAYMENT_COMPLETED: "payment_completed";
|
|
10
10
|
readonly PAYMENT_FAILED: "payment_failed";
|
|
11
|
+
readonly PAYMENT_VALIDATION_ERROR: "payment_validation_error";
|
|
11
12
|
readonly PAYMENT_CANCELLED: "payment_cancelled";
|
|
12
13
|
};
|
|
13
14
|
export declare const GLOBAL_EVENTS: {
|
|
@@ -25,6 +26,7 @@ export declare const ROZO_EVENTS: {
|
|
|
25
26
|
readonly PAYMENT_SUBMITTED: "payment_submitted";
|
|
26
27
|
readonly PAYMENT_COMPLETED: "payment_completed";
|
|
27
28
|
readonly PAYMENT_FAILED: "payment_failed";
|
|
29
|
+
readonly PAYMENT_VALIDATION_ERROR: "payment_validation_error";
|
|
28
30
|
readonly PAYMENT_CANCELLED: "payment_cancelled";
|
|
29
31
|
readonly USER_IDENTIFIED: "user_identified";
|
|
30
32
|
readonly USER_RESET: "user_reset";
|
package/build/package.json.js
CHANGED
|
@@ -55,7 +55,7 @@ interface PaymentEventContextValue {
|
|
|
55
55
|
*/
|
|
56
56
|
export declare function PaymentEventProvider({ children }: {
|
|
57
57
|
children: ReactNode;
|
|
58
|
-
}): import("react
|
|
58
|
+
}): import("react").JSX.Element;
|
|
59
59
|
/**
|
|
60
60
|
* Hook to access payment event system
|
|
61
61
|
*
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
|
-
import type { PostHog } from "posthog-js";
|
|
3
2
|
import type { RozoEventName } from "../lib/analytics/events";
|
|
4
3
|
interface AnalyticsContextValue {
|
|
5
4
|
capture: (event: RozoEventName, properties?: Record<string, unknown>) => void;
|
|
6
5
|
}
|
|
6
|
+
/** Minimal PostHog interface — only capture() is needed. Any posthog-js version works. */
|
|
7
|
+
interface PostHogCapture {
|
|
8
|
+
capture: (event: string, properties?: Record<string, unknown>) => void;
|
|
9
|
+
}
|
|
7
10
|
interface AnalyticsProviderProps {
|
|
8
11
|
children: ReactNode;
|
|
9
12
|
/** Optional PostHog instance from host app. If omitted, all analytics are no-ops. */
|
|
10
|
-
posthog?:
|
|
13
|
+
posthog?: PostHogCapture;
|
|
11
14
|
}
|
|
12
|
-
export declare function AnalyticsProvider({ children, posthog }: AnalyticsProviderProps): import("react
|
|
15
|
+
export declare function AnalyticsProvider({ children, posthog }: AnalyticsProviderProps): import("react").JSX.Element;
|
|
13
16
|
export declare function useAnalytics(): AnalyticsContextValue;
|
|
14
17
|
export {};
|
|
@@ -6,5 +6,5 @@ type PaymentProviderProps = {
|
|
|
6
6
|
apiVersion?: "v1" | "v2";
|
|
7
7
|
log?: (msg: string) => void;
|
|
8
8
|
};
|
|
9
|
-
export declare function PaymentProvider({ children, payApiUrl, apiVersion, log, }: PaymentProviderProps): import("react
|
|
9
|
+
export declare function PaymentProvider({ children, payApiUrl, apiVersion, log, }: PaymentProviderProps): import("react").JSX.Element;
|
|
10
10
|
export {};
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { ApiVersion } from "@rozoai/intent-common";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import type { StellarWalletsKit } from "@creit.tech/stellar-wallets-kit";
|
|
4
|
-
import type { PostHog } from "posthog-js";
|
|
5
4
|
import { useConnectCallbackProps } from "../hooks/useConnectCallback";
|
|
6
5
|
import { CustomTheme, Mode, RozoPayContextOptions, Theme } from "../types";
|
|
6
|
+
/** Minimal PostHog interface — only capture() is needed. Any posthog-js version works. */
|
|
7
|
+
type PostHogCapture = {
|
|
8
|
+
capture: (event: string, properties?: Record<string, unknown>) => void;
|
|
9
|
+
};
|
|
7
10
|
type RozoPayProviderProps = {
|
|
8
11
|
children?: React.ReactNode;
|
|
9
12
|
theme?: Theme;
|
|
@@ -27,10 +30,10 @@ type RozoPayProviderProps = {
|
|
|
27
30
|
/** Persistent Stellar wallet connection (localStorage) in StellarContextProvider. */
|
|
28
31
|
stellarWalletPersistence?: boolean;
|
|
29
32
|
/** Optional PostHog instance from host app. All payment events fire through it. */
|
|
30
|
-
posthog?:
|
|
33
|
+
posthog?: PostHogCapture;
|
|
31
34
|
} & useConnectCallbackProps;
|
|
32
35
|
/**
|
|
33
36
|
* Provides context for RozoPayButton and hooks. Place in app root or layout.
|
|
34
37
|
*/
|
|
35
|
-
export declare const RozoPayProvider: (props: RozoPayProviderProps) =>
|
|
38
|
+
export declare const RozoPayProvider: (props: RozoPayProviderProps) => React.JSX.Element;
|
|
36
39
|
export {};
|