@rhinestone/deposit-modal 0.14.1 → 0.16.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.
Files changed (70) hide show
  1. package/README.md +26 -24
  2. package/bridge-transcript.json +14 -0
  3. package/dist/{DepositModalReown-GAD45GIC.cjs → DepositModalReown-IFN6YLZJ.cjs} +20 -22
  4. package/dist/{DepositModalReown-2EVV64OA.mjs → DepositModalReown-R7UROJPJ.mjs} +5 -7
  5. package/dist/WithdrawModal-SZEAI473.cjs +11 -0
  6. package/dist/WithdrawModal-XKSSHVEJ.mjs +11 -0
  7. package/dist/{caip-D8aRWdEY.d.cts → caip-BMi-9t09.d.cts} +27 -3
  8. package/dist/{caip-D8aRWdEY.d.ts → caip-BMi-9t09.d.ts} +27 -3
  9. package/dist/{chunk-A6JPBMYY.cjs → chunk-24N4KMJX.cjs} +234 -115
  10. package/dist/{chunk-LMG46EP2.mjs → chunk-3HCCR54R.mjs} +1 -1
  11. package/dist/{chunk-AQVJUXSG.cjs → chunk-5CM3ZQ5U.cjs} +1 -1
  12. package/dist/chunk-EA5CE2UZ.mjs +7599 -0
  13. package/dist/{chunk-VUATPOWJ.mjs → chunk-EAGMY3QE.mjs} +74 -17
  14. package/dist/{chunk-5Q5CSVKF.mjs → chunk-F6ROQ6RJ.mjs} +215 -517
  15. package/dist/{chunk-RN5VKWI6.mjs → chunk-FTWKAJGN.mjs} +1 -1
  16. package/dist/chunk-H4O22O7Y.cjs +7599 -0
  17. package/dist/{chunk-GZ4GQ5MC.mjs → chunk-HMB2XQGD.mjs} +172 -53
  18. package/dist/{chunk-DW2EQA2U.cjs → chunk-LVCD6RHF.cjs} +2 -2
  19. package/dist/{chunk-4KCSH4T3.cjs → chunk-OY5N3E6L.cjs} +86 -29
  20. package/dist/{chunk-NQMC5VKQ.cjs → chunk-V466XQSG.cjs} +551 -853
  21. package/dist/{constants-DBrWhJWE.d.cts → constants-BT4ctuHo.d.cts} +7 -6
  22. package/dist/{constants-DBrWhJWE.d.ts → constants-D21ZdNOP.d.ts} +7 -6
  23. package/dist/constants.cjs +3 -3
  24. package/dist/constants.d.cts +3 -3
  25. package/dist/constants.d.ts +3 -3
  26. package/dist/constants.mjs +2 -2
  27. package/dist/deposit.cjs +6 -8
  28. package/dist/deposit.d.cts +3 -3
  29. package/dist/deposit.d.ts +3 -3
  30. package/dist/deposit.mjs +5 -7
  31. package/dist/embed.cjs +130 -80
  32. package/dist/embed.d.cts +3 -9
  33. package/dist/embed.d.ts +3 -9
  34. package/dist/embed.mjs +112 -62
  35. package/dist/index.cjs +8 -11
  36. package/dist/index.d.cts +3 -5
  37. package/dist/index.d.ts +3 -5
  38. package/dist/index.mjs +10 -13
  39. package/dist/polymarket.cjs +6 -6
  40. package/dist/polymarket.mjs +2 -2
  41. package/dist/server.d.cts +2 -2
  42. package/dist/server.d.ts +2 -2
  43. package/dist/styles.css +147 -100
  44. package/dist/{types-DP_3KwlD.d.cts → types-B9SbZQIG.d.ts} +145 -108
  45. package/dist/{types-Bho4OA03.d.ts → types-SwGGf0eH.d.cts} +145 -108
  46. package/dist/withdraw.cjs +5 -6
  47. package/dist/withdraw.d.cts +33 -5
  48. package/dist/withdraw.d.ts +33 -5
  49. package/dist/withdraw.mjs +4 -5
  50. package/package.json +6 -37
  51. package/dist/ClaimModal-GDFENSLV.mjs +0 -13
  52. package/dist/ClaimModal-L3FUBI5U.cjs +0 -13
  53. package/dist/WithdrawModal-FAQH35NG.cjs +0 -12
  54. package/dist/WithdrawModal-IKUHF5CF.mjs +0 -12
  55. package/dist/chunk-4J5ADVIN.cjs +0 -1848
  56. package/dist/chunk-62UCV2LG.cjs +0 -81
  57. package/dist/chunk-7AZFT2MV.cjs +0 -163
  58. package/dist/chunk-HAQOFI3D.cjs +0 -3699
  59. package/dist/chunk-QACOOLOE.mjs +0 -1062
  60. package/dist/chunk-R5UQ3TN4.mjs +0 -81
  61. package/dist/chunk-UX35GYLM.mjs +0 -3699
  62. package/dist/chunk-VALXN5IO.mjs +0 -163
  63. package/dist/chunk-XCTRKCNM.mjs +0 -1848
  64. package/dist/chunk-YP7QVKQ6.cjs +0 -1062
  65. package/dist/claim.cjs +0 -11
  66. package/dist/claim.d.cts +0 -17
  67. package/dist/claim.d.ts +0 -17
  68. package/dist/claim.mjs +0 -11
  69. package/dist/modal-ui-state-OD1RmKkK.d.cts +0 -30
  70. package/dist/modal-ui-state-OD1RmKkK.d.ts +0 -30
package/dist/claim.cjs DELETED
@@ -1,11 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
- var _chunkYP7QVKQ6cjs = require('./chunk-YP7QVKQ6.cjs');
4
- require('./chunk-7AZFT2MV.cjs');
5
- require('./chunk-62UCV2LG.cjs');
6
- require('./chunk-HAQOFI3D.cjs');
7
- require('./chunk-AQVJUXSG.cjs');
8
- require('./chunk-4KCSH4T3.cjs');
9
-
10
-
11
- exports.ClaimModal = _chunkYP7QVKQ6cjs.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 { o as ClaimModalProps } from './types-DP_3KwlD.cjs';
4
- export { A as AnalyticsEventEnvelope, a as AnalyticsIngestFailureEvent, b as AnalyticsIngestFailureReason, c as AnalyticsReasonFamily, f as ClaimAnalyticsAbandonmentReason, g as ClaimAnalyticsCloseSource, h as ClaimAnalyticsEvent, i as ClaimAnalyticsEventPayload, j as ClaimAnalyticsFailureReason, k as ClaimAnalyticsSessionProperties, l as ClaimAnalyticsStep, m as ClaimAnalyticsUiOutcome, n as ClaimLifecycleEvent, V as ErrorEventData, ac as RecoveryErrorCode, Z as RpcUrlMap, ad as SignRecovery, ae as SignRecoveryPayload } from './types-DP_3KwlD.cjs';
5
- import 'viem';
6
- import './caip-D8aRWdEY.cjs';
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 { o as ClaimModalProps } from './types-Bho4OA03.js';
4
- export { A as AnalyticsEventEnvelope, a as AnalyticsIngestFailureEvent, b as AnalyticsIngestFailureReason, c as AnalyticsReasonFamily, f as ClaimAnalyticsAbandonmentReason, g as ClaimAnalyticsCloseSource, h as ClaimAnalyticsEvent, i as ClaimAnalyticsEventPayload, j as ClaimAnalyticsFailureReason, k as ClaimAnalyticsSessionProperties, l as ClaimAnalyticsStep, m as ClaimAnalyticsUiOutcome, n as ClaimLifecycleEvent, V as ErrorEventData, ac as RecoveryErrorCode, Z as RpcUrlMap, ad as SignRecovery, ae as SignRecoveryPayload } from './types-Bho4OA03.js';
5
- import 'viem';
6
- import './caip-D8aRWdEY.js';
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,11 +0,0 @@
1
- import {
2
- ClaimModal
3
- } from "./chunk-QACOOLOE.mjs";
4
- import "./chunk-VALXN5IO.mjs";
5
- import "./chunk-R5UQ3TN4.mjs";
6
- import "./chunk-UX35GYLM.mjs";
7
- import "./chunk-LMG46EP2.mjs";
8
- import "./chunk-VUATPOWJ.mjs";
9
- export {
10
- ClaimModal
11
- };
@@ -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 };