@manifoldxyz/dropkit 0.3.0 → 0.4.1
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 +51 -4
- package/dist/cart.cjs +37 -35
- package/dist/cart.cjs.map +1 -1
- package/dist/cart.d.cts +1 -1
- package/dist/cart.d.ts +1 -1
- package/dist/cart.js +3 -1
- package/dist/cart.js.map +1 -1
- package/dist/{chunk-3PA74M2L.js → chunk-MXKJAZDW.js} +50 -7
- package/dist/chunk-MXKJAZDW.js.map +1 -0
- package/dist/{chunk-OO6QQT3M.cjs → chunk-X4P6BUV4.cjs} +73 -30
- package/dist/chunk-X4P6BUV4.cjs.map +1 -0
- package/dist/index.cjs +905 -235
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +803 -133
- package/dist/index.js.map +1 -1
- package/dist/{types-CFLoS6p4.d.cts → types-BjKGb6c7.d.cts} +23 -7
- package/dist/{types-CFLoS6p4.d.ts → types-BjKGb6c7.d.ts} +23 -7
- package/package.json +1 -1
- package/dist/chunk-3PA74M2L.js.map +0 -1
- package/dist/chunk-OO6QQT3M.cjs.map +0 -1
package/dist/cart.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode, ReactElement } from 'react';
|
|
2
2
|
import { Address, Hex } from 'viem';
|
|
3
|
-
import { R as ReasonCode, M as ManifoldClaimConfig, D as DropInfo, a as Money, b as RpcUrls } from './types-
|
|
3
|
+
import { R as ReasonCode, M as ManifoldClaimConfig, D as DropInfo, a as Money, b as RpcUrls } from './types-BjKGb6c7.cjs';
|
|
4
4
|
|
|
5
5
|
declare const CART_REASONS: readonly ["CART_ERC20_UNSUPPORTED", "PERSISTENCE_UNAVAILABLE", "REQUEST_NOT_SENT"];
|
|
6
6
|
type CartOnlyReason = (typeof CART_REASONS)[number];
|
package/dist/cart.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode, ReactElement } from 'react';
|
|
2
2
|
import { Address, Hex } from 'viem';
|
|
3
|
-
import { R as ReasonCode, M as ManifoldClaimConfig, D as DropInfo, a as Money, b as RpcUrls } from './types-
|
|
3
|
+
import { R as ReasonCode, M as ManifoldClaimConfig, D as DropInfo, a as Money, b as RpcUrls } from './types-BjKGb6c7.js';
|
|
4
4
|
|
|
5
5
|
declare const CART_REASONS: readonly ["CART_ERC20_UNSUPPORTED", "PERSISTENCE_UNAVAILABLE", "REQUEST_NOT_SENT"];
|
|
6
6
|
type CartOnlyReason = (typeof CART_REASONS)[number];
|
package/dist/cart.js
CHANGED
|
@@ -14,11 +14,12 @@ import {
|
|
|
14
14
|
manifoldClaimAdapter,
|
|
15
15
|
openConnectModal,
|
|
16
16
|
parseMintReceipt,
|
|
17
|
+
recordClaimMint,
|
|
17
18
|
requestAddChain,
|
|
18
19
|
requestSwitch,
|
|
19
20
|
subscribeAccount,
|
|
20
21
|
toReason
|
|
21
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-MXKJAZDW.js";
|
|
22
23
|
|
|
23
24
|
// src/cart/react.ts
|
|
24
25
|
import { createContext, createElement, useCallback, useContext, useEffect, useMemo, useState, useSyncExternalStore } from "react";
|
|
@@ -673,6 +674,7 @@ async function sendMint(prepared, hooks) {
|
|
|
673
674
|
throw e;
|
|
674
675
|
}
|
|
675
676
|
hooks.onHash(hash);
|
|
677
|
+
void recordClaimMint({ instanceId: prepared.config.instanceId, hash });
|
|
676
678
|
return hash;
|
|
677
679
|
}
|
|
678
680
|
var receiptOk = (status) => status === "success" || status === 1 || status === 1n || status === "0x1";
|