@rhinestone/deposit-modal 0.15.0 → 0.17.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/README.md +22 -26
- package/dist/{DepositModalReown-R37SSHUF.cjs → DepositModalReown-6CXXGQ7X.cjs} +16 -17
- package/dist/{DepositModalReown-KOJ7VEY7.mjs → DepositModalReown-ELDSTIME.mjs} +3 -4
- package/dist/WithdrawModal-QB2U756L.cjs +11 -0
- package/dist/{WithdrawModal-QVXHMH43.mjs → WithdrawModal-QRMDR5T4.mjs} +3 -4
- package/dist/{chunk-DTVZUBHI.cjs → chunk-2W4BJ5I3.cjs} +71 -73
- package/dist/{chunk-IKUYZA7A.mjs → chunk-H66WM5AO.mjs} +33 -32
- package/dist/{chunk-5P2PVLS4.cjs → chunk-JCWJ6HW7.cjs} +1 -1
- package/dist/{chunk-3OOY67VJ.cjs → chunk-QGNJFDEO.cjs} +5143 -1882
- package/dist/{chunk-5VONFVQN.mjs → chunk-QMGEK623.mjs} +5146 -1885
- package/dist/{chunk-CXBMIZUF.mjs → chunk-XCBDJPBD.mjs} +1 -1
- package/dist/{chunk-VPDCGD2D.cjs → chunk-XJMDCBHS.cjs} +443 -442
- package/dist/{chunk-7UQ6OUEE.mjs → chunk-ZHX4QROC.mjs} +13 -15
- package/dist/constants.cjs +2 -2
- package/dist/constants.d.cts +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants.mjs +1 -1
- package/dist/deposit.cjs +4 -5
- package/dist/deposit.d.cts +2 -2
- package/dist/deposit.d.ts +2 -2
- package/dist/deposit.mjs +3 -4
- package/dist/embed.cjs +18 -59
- package/dist/embed.d.cts +2 -8
- package/dist/embed.d.ts +2 -8
- package/dist/embed.mjs +9 -50
- package/dist/index.cjs +5 -10
- package/dist/index.d.cts +1 -3
- package/dist/index.d.ts +1 -3
- package/dist/index.mjs +4 -9
- package/dist/server.d.cts +2 -2
- package/dist/server.d.ts +2 -2
- package/dist/styles.css +37 -0
- package/dist/{types-CQ0NHqCy.d.ts → types-B9SbZQIG.d.ts} +15 -113
- package/dist/{types-CxiLX5sv.d.cts → types-SwGGf0eH.d.cts} +15 -113
- package/dist/withdraw.cjs +4 -5
- package/dist/withdraw.d.cts +31 -3
- package/dist/withdraw.d.ts +31 -3
- package/dist/withdraw.mjs +3 -4
- package/package.json +6 -37
- package/dist/ClaimModal-GFDBVCN5.cjs +0 -11
- package/dist/ClaimModal-VQS3AKEL.mjs +0 -11
- package/dist/WithdrawModal-RY2NMFLE.cjs +0 -12
- package/dist/chunk-6HUHVXCY.cjs +0 -704
- package/dist/chunk-QJ7RCCU7.mjs +0 -704
- package/dist/chunk-UCBUCX2W.mjs +0 -3169
- package/dist/chunk-X4D52IZK.cjs +0 -3169
- package/dist/claim.cjs +0 -9
- package/dist/claim.d.cts +0 -17
- package/dist/claim.d.ts +0 -17
- package/dist/claim.mjs +0 -9
- package/dist/modal-ui-state-OD1RmKkK.d.cts +0 -30
- package/dist/modal-ui-state-OD1RmKkK.d.ts +0 -30
package/dist/claim.cjs
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
var _chunk6HUHVXCYcjs = require('./chunk-6HUHVXCY.cjs');
|
|
4
|
-
require('./chunk-3OOY67VJ.cjs');
|
|
5
|
-
require('./chunk-5P2PVLS4.cjs');
|
|
6
|
-
require('./chunk-OY5N3E6L.cjs');
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
exports.ClaimModal = _chunk6HUHVXCYcjs.ClaimModal;
|
package/dist/claim.d.cts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { M as ModalUiState } from './modal-ui-state-OD1RmKkK.cjs';
|
|
3
|
-
import { q as ClaimModalProps } from './types-CxiLX5sv.cjs';
|
|
4
|
-
export { A as AnalyticsEventEnvelope, a as AnalyticsIngestFailureEvent, b as AnalyticsIngestFailureReason, c as AnalyticsReasonFamily, f as ClaimAnalyticsAbandonmentReason, g as ClaimAnalyticsCloseSource, h as ClaimAnalyticsCorrelation, i as ClaimAnalyticsEntrySource, j as ClaimAnalyticsEvent, k as ClaimAnalyticsEventPayload, l as ClaimAnalyticsFailureReason, m as ClaimAnalyticsSessionProperties, n as ClaimAnalyticsStep, o as ClaimAnalyticsUiOutcome, p as ClaimLifecycleEvent, X as ErrorEventData, a2 as RecoveryErrorCode, a3 as RpcUrlMap, a4 as SignRecovery, a5 as SignRecoveryPayload } from './types-CxiLX5sv.cjs';
|
|
5
|
-
import './caip-BMi-9t09.cjs';
|
|
6
|
-
import 'viem';
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Not part of `ClaimModalProps`: the native embed is the only consumer, and a
|
|
10
|
-
* published prop is immediately someone else's import.
|
|
11
|
-
*/
|
|
12
|
-
interface ClaimModalInternalProps {
|
|
13
|
-
onUiState?: (state: ModalUiState) => void;
|
|
14
|
-
}
|
|
15
|
-
declare function ClaimModal({ signRecovery, isOpen, onClose, inline, closeOnOverlayClick, backendUrl, rpcUrls: rpcUrlsProp, defaultTxHash, defaultRefundDestination, theme, uiConfig, className, onReady, onLifecycle, onEvent, onError, enableAnalyticsIngest, analyticsIngestUrl, debug, onUiState, }: ClaimModalProps & ClaimModalInternalProps): react.JSX.Element;
|
|
16
|
-
|
|
17
|
-
export { ClaimModal, ClaimModalProps };
|
package/dist/claim.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { M as ModalUiState } from './modal-ui-state-OD1RmKkK.js';
|
|
3
|
-
import { q as ClaimModalProps } from './types-CQ0NHqCy.js';
|
|
4
|
-
export { A as AnalyticsEventEnvelope, a as AnalyticsIngestFailureEvent, b as AnalyticsIngestFailureReason, c as AnalyticsReasonFamily, f as ClaimAnalyticsAbandonmentReason, g as ClaimAnalyticsCloseSource, h as ClaimAnalyticsCorrelation, i as ClaimAnalyticsEntrySource, j as ClaimAnalyticsEvent, k as ClaimAnalyticsEventPayload, l as ClaimAnalyticsFailureReason, m as ClaimAnalyticsSessionProperties, n as ClaimAnalyticsStep, o as ClaimAnalyticsUiOutcome, p as ClaimLifecycleEvent, X as ErrorEventData, a2 as RecoveryErrorCode, a3 as RpcUrlMap, a4 as SignRecovery, a5 as SignRecoveryPayload } from './types-CQ0NHqCy.js';
|
|
5
|
-
import './caip-BMi-9t09.js';
|
|
6
|
-
import 'viem';
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Not part of `ClaimModalProps`: the native embed is the only consumer, and a
|
|
10
|
-
* published prop is immediately someone else's import.
|
|
11
|
-
*/
|
|
12
|
-
interface ClaimModalInternalProps {
|
|
13
|
-
onUiState?: (state: ModalUiState) => void;
|
|
14
|
-
}
|
|
15
|
-
declare function ClaimModal({ signRecovery, isOpen, onClose, inline, closeOnOverlayClick, backendUrl, rpcUrls: rpcUrlsProp, defaultTxHash, defaultRefundDestination, theme, uiConfig, className, onReady, onLifecycle, onEvent, onError, enableAnalyticsIngest, analyticsIngestUrl, debug, onUiState, }: ClaimModalProps & ClaimModalInternalProps): react.JSX.Element;
|
|
16
|
-
|
|
17
|
-
export { ClaimModal, ClaimModalProps };
|
package/dist/claim.mjs
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* What a flow is showing, for a surface that draws its own chrome around it.
|
|
3
|
-
*
|
|
4
|
-
* Every modal reports the same shape, because the thing consuming it — a
|
|
5
|
-
* native sheet that owns dismissal — needs the same three answers whichever
|
|
6
|
-
* product is running: what screen is this, can you go back, and would closing
|
|
7
|
-
* now lose something.
|
|
8
|
-
*
|
|
9
|
-
* Its own module so the withdraw and claim modals can report it without
|
|
10
|
-
* importing anything from the deposit one. They are separate chunks on
|
|
11
|
-
* purpose.
|
|
12
|
-
*/
|
|
13
|
-
interface ModalUiState {
|
|
14
|
-
/** The flow's own step name. Stable enough for a sheet title or telemetry;
|
|
15
|
-
* never something to branch payment logic on. */
|
|
16
|
-
screen: string;
|
|
17
|
-
/** The page's back action, or absent when it has nowhere to go. */
|
|
18
|
-
back?: () => void;
|
|
19
|
-
/**
|
|
20
|
-
* The user has committed and the flow is mid-submit.
|
|
21
|
-
*
|
|
22
|
-
* Its own field rather than a screen, because the screen does not change:
|
|
23
|
-
* the gasless deposit path hands the signature to the backend and waits
|
|
24
|
-
* there, with the wallet request already cleared, and this page the only
|
|
25
|
-
* thing tracking a deposit that may already be processing.
|
|
26
|
-
*/
|
|
27
|
-
submitting: boolean;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export type { ModalUiState as M };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* What a flow is showing, for a surface that draws its own chrome around it.
|
|
3
|
-
*
|
|
4
|
-
* Every modal reports the same shape, because the thing consuming it — a
|
|
5
|
-
* native sheet that owns dismissal — needs the same three answers whichever
|
|
6
|
-
* product is running: what screen is this, can you go back, and would closing
|
|
7
|
-
* now lose something.
|
|
8
|
-
*
|
|
9
|
-
* Its own module so the withdraw and claim modals can report it without
|
|
10
|
-
* importing anything from the deposit one. They are separate chunks on
|
|
11
|
-
* purpose.
|
|
12
|
-
*/
|
|
13
|
-
interface ModalUiState {
|
|
14
|
-
/** The flow's own step name. Stable enough for a sheet title or telemetry;
|
|
15
|
-
* never something to branch payment logic on. */
|
|
16
|
-
screen: string;
|
|
17
|
-
/** The page's back action, or absent when it has nowhere to go. */
|
|
18
|
-
back?: () => void;
|
|
19
|
-
/**
|
|
20
|
-
* The user has committed and the flow is mid-submit.
|
|
21
|
-
*
|
|
22
|
-
* Its own field rather than a screen, because the screen does not change:
|
|
23
|
-
* the gasless deposit path hands the signature to the backend and waits
|
|
24
|
-
* there, with the wallet request already cleared, and this page the only
|
|
25
|
-
* thing tracking a deposit that may already be processing.
|
|
26
|
-
*/
|
|
27
|
-
submitting: boolean;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export type { ModalUiState as M };
|