@manifoldxyz/dropkit 0.4.0 → 0.5.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/dist/cart.js CHANGED
@@ -1,24 +1,27 @@
1
1
  import {
2
2
  MAX_QUANTITY,
3
+ getAccount,
4
+ getWalletProvider,
5
+ loadConnectWidget,
6
+ openConnectModal,
7
+ parseMintReceipt,
8
+ recordClaimMint,
9
+ requestAddChain,
10
+ requestSwitch,
11
+ subscribeAccount
12
+ } from "./chunk-W7OBZPCY.js";
13
+ import {
3
14
  MintError,
4
15
  UNSUPPORTED_REASONS,
5
16
  createReadClient,
6
17
  findExtension,
7
18
  friendlyErrorMessage,
8
- getAccount,
9
19
  getChain,
10
- getWalletProvider,
11
20
  isMintError,
12
21
  isRejection,
13
- loadConnectWidget,
14
22
  manifoldClaimAdapter,
15
- openConnectModal,
16
- parseMintReceipt,
17
- requestAddChain,
18
- requestSwitch,
19
- subscribeAccount,
20
23
  toReason
21
- } from "./chunk-SUJQB3SL.js";
24
+ } from "./chunk-VHAAGH7Z.js";
22
25
 
23
26
  // src/cart/react.ts
24
27
  import { createContext, createElement, useCallback, useContext, useEffect, useMemo, useState, useSyncExternalStore } from "react";
@@ -673,6 +676,7 @@ async function sendMint(prepared, hooks) {
673
676
  throw e;
674
677
  }
675
678
  hooks.onHash(hash);
679
+ void recordClaimMint({ instanceId: prepared.config.instanceId, hash });
676
680
  return hash;
677
681
  }
678
682
  var receiptOk = (status) => status === "success" || status === 1 || status === 1n || status === "0x1";