@0xsequence/marketplace-sdk 0.3.1 → 0.3.3

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 (43) hide show
  1. package/dist/{chunk-O7UQGT43.js → chunk-RJK7PUJE.js} +13 -5
  2. package/dist/{chunk-O7UQGT43.js.map → chunk-RJK7PUJE.js.map} +1 -1
  3. package/dist/{chunk-WA433WAJ.js → chunk-RZSZNVEH.js} +16 -2
  4. package/dist/chunk-RZSZNVEH.js.map +1 -0
  5. package/dist/{chunk-22NLQ3AS.js → chunk-ZZMM3IVS.js} +296 -197
  6. package/dist/chunk-ZZMM3IVS.js.map +1 -0
  7. package/dist/index.css +40 -0
  8. package/dist/index.js +71 -158
  9. package/dist/react/hooks/index.js +2 -2
  10. package/dist/react/index.js +4 -4
  11. package/dist/react/ui/components/index.d.ts +1 -1
  12. package/dist/react/ui/components/index.js +4 -4
  13. package/dist/react/ui/index.js +4 -4
  14. package/dist/styles/index.css +40 -0
  15. package/dist/styles/index.css.map +1 -1
  16. package/dist/styles/index.d.ts +8 -1
  17. package/dist/styles/index.js +13 -1
  18. package/package.json +5 -2
  19. package/src/react/_internal/transaction-machine/execute-transaction.ts +14 -3
  20. package/src/react/ui/components/_internals/custom-select/CustomSelect.tsx +2 -2
  21. package/src/react/ui/components/collectible-card/CollectibleCard.tsx +2 -2
  22. package/src/react/ui/components/collectible-card/Footer.tsx +33 -29
  23. package/src/react/ui/modals/BuyModal/_store.ts +4 -1
  24. package/src/react/ui/modals/BuyModal/index.tsx +77 -49
  25. package/src/react/ui/modals/CreateListingModal/index.tsx +10 -6
  26. package/src/react/ui/modals/MakeOfferModal/index.tsx +11 -3
  27. package/src/react/ui/modals/SellModal/index.tsx +14 -6
  28. package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/index.tsx +2 -1
  29. package/src/react/ui/modals/TransferModal/_views/followWalletInstructions/index.tsx +1 -1
  30. package/src/react/ui/modals/_internal/components/alertMessage/index.tsx +1 -1
  31. package/src/react/ui/modals/_internal/components/currencyOptionsSelect/index.tsx +2 -7
  32. package/src/react/ui/modals/_internal/components/expirationDateSelect/index.tsx +1 -0
  33. package/src/react/ui/modals/_internal/components/floorPriceText/index.tsx +1 -0
  34. package/src/react/ui/modals/_internal/components/transaction-footer/index.tsx +30 -9
  35. package/src/react/ui/modals/_internal/components/transactionDetails/index.tsx +2 -2
  36. package/src/react/ui/modals/_internal/components/transactionHeader/index.tsx +14 -2
  37. package/src/react/ui/modals/_internal/components/transactionPreview/index.tsx +16 -4
  38. package/src/react/ui/modals/_internal/components/transactionStatusModal/index.tsx +12 -4
  39. package/src/styles/index.ts +3 -0
  40. package/tsup.config.ts +3 -0
  41. package/dist/chess-tile-6BS5MQT5.png +0 -0
  42. package/dist/chunk-22NLQ3AS.js.map +0 -1
  43. package/dist/chunk-WA433WAJ.js.map +0 -1
@@ -1607,6 +1607,10 @@ var TransactionMachine = class {
1607
1607
  return this.getChainId() === Number(this.config.config.chainId);
1608
1608
  }
1609
1609
  async switchChain() {
1610
+ debug("Checking chain", {
1611
+ currentChain: this.getChainId(),
1612
+ targetChain: Number(this.config.config.chainId)
1613
+ });
1610
1614
  if (!this.isOnCorrectChain()) {
1611
1615
  await this.transition("SWITCH_CHAIN" /* SWITCH_CHAIN */);
1612
1616
  await this.switchChainFn(this.config.config.chainId);
@@ -1746,8 +1750,10 @@ var TransactionMachine = class {
1746
1750
  })
1747
1751
  ]);
1748
1752
  const order = orders.orders[0];
1749
- await this.openPaymentModalWithPromise({
1750
- // biome-ignore lint/style/noNonNullAssertion: <explanation>
1753
+ if (!order) {
1754
+ throw new Error("Order not found");
1755
+ }
1756
+ const paymentModalProps = {
1751
1757
  chain: this.getChainId(),
1752
1758
  collectibles: [
1753
1759
  {
@@ -1767,7 +1773,9 @@ var TransactionMachine = class {
1767
1773
  "zerox" /* zerox */
1768
1774
  ),
1769
1775
  creditCardProviders: checkoutOptions?.options.nftCheckout || []
1770
- });
1776
+ };
1777
+ debug("Open Kit PaymentModal", { order, checkoutOptions });
1778
+ await this.openPaymentModalWithPromise(paymentModalProps);
1771
1779
  }
1772
1780
  async executeStep({
1773
1781
  step,
@@ -1862,7 +1870,7 @@ import { Box, Text, WarningIcon } from "@0xsequence/design-system";
1862
1870
  import { jsx as jsx2, jsxs } from "react/jsx-runtime";
1863
1871
  function AlertMessage({ message, type }) {
1864
1872
  return /* @__PURE__ */ jsxs(Box, { className: `${alertMessageBox} ${alertMessageBoxVariants[type]}`, children: [
1865
- /* @__PURE__ */ jsx2(Text, { color: "white", fontSize: "normal", fontWeight: "medium", children: message }),
1873
+ /* @__PURE__ */ jsx2(Text, { color: "white", fontSize: "normal", fontWeight: "medium", fontFamily: "body", children: message }),
1866
1874
  type === "warning" && /* @__PURE__ */ jsx2(WarningIcon, { size: "sm", color: "white" }),
1867
1875
  type === "info" && /* @__PURE__ */ jsx2(InfoIcon_default, { size: "sm", color: "white" })
1868
1876
  ] });
@@ -2113,4 +2121,4 @@ export {
2113
2121
  useCancelOrder,
2114
2122
  useBuyCollectable
2115
2123
  };
2116
- //# sourceMappingURL=chunk-O7UQGT43.js.map
2124
+ //# sourceMappingURL=chunk-RJK7PUJE.js.map