@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/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-CFLoS6p4.cjs';
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-CFLoS6p4.js';
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-3PA74M2L.js";
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";