@0xsequence/marketplace-sdk 0.3.2 → 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.
- package/dist/{chunk-O7UQGT43.js → chunk-RJK7PUJE.js} +13 -5
- package/dist/{chunk-O7UQGT43.js.map → chunk-RJK7PUJE.js.map} +1 -1
- package/dist/{chunk-WA433WAJ.js → chunk-RZSZNVEH.js} +16 -2
- package/dist/chunk-RZSZNVEH.js.map +1 -0
- package/dist/{chunk-22NLQ3AS.js → chunk-ZZMM3IVS.js} +296 -197
- package/dist/chunk-ZZMM3IVS.js.map +1 -0
- package/dist/index.css +40 -0
- package/dist/index.js +1 -1
- package/dist/react/hooks/index.js +3 -3
- package/dist/react/index.js +5 -5
- package/dist/react/ui/components/index.d.ts +1 -1
- package/dist/react/ui/components/index.js +5 -5
- package/dist/react/ui/index.js +5 -5
- package/dist/react/ui/styles/index.d.ts +1 -1
- package/dist/styles/index.css +40 -0
- package/dist/styles/index.css.map +1 -1
- package/dist/styles/index.d.ts +9 -2
- package/dist/styles/index.js +14 -2
- package/package.json +5 -2
- package/src/react/_internal/transaction-machine/execute-transaction.ts +14 -3
- package/src/react/ui/components/_internals/custom-select/CustomSelect.tsx +2 -2
- package/src/react/ui/components/collectible-card/CollectibleCard.tsx +2 -2
- package/src/react/ui/components/collectible-card/Footer.tsx +33 -29
- package/src/react/ui/modals/BuyModal/_store.ts +4 -1
- package/src/react/ui/modals/BuyModal/index.tsx +77 -49
- package/src/react/ui/modals/CreateListingModal/index.tsx +10 -6
- package/src/react/ui/modals/MakeOfferModal/index.tsx +11 -3
- package/src/react/ui/modals/SellModal/index.tsx +14 -6
- package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/index.tsx +2 -1
- package/src/react/ui/modals/TransferModal/_views/followWalletInstructions/index.tsx +1 -1
- package/src/react/ui/modals/_internal/components/alertMessage/index.tsx +1 -1
- package/src/react/ui/modals/_internal/components/currencyOptionsSelect/index.tsx +2 -7
- package/src/react/ui/modals/_internal/components/expirationDateSelect/index.tsx +1 -0
- package/src/react/ui/modals/_internal/components/floorPriceText/index.tsx +1 -0
- package/src/react/ui/modals/_internal/components/transaction-footer/index.tsx +30 -9
- package/src/react/ui/modals/_internal/components/transactionDetails/index.tsx +2 -2
- package/src/react/ui/modals/_internal/components/transactionHeader/index.tsx +14 -2
- package/src/react/ui/modals/_internal/components/transactionPreview/index.tsx +16 -4
- package/src/react/ui/modals/_internal/components/transactionStatusModal/index.tsx +12 -4
- package/src/styles/index.ts +3 -0
- package/tsup.config.ts +3 -0
- package/dist/chess-tile-6BS5MQT5.png +0 -0
- package/dist/chunk-22NLQ3AS.js.map +0 -1
- 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
|
-
|
|
1750
|
-
|
|
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-
|
|
2124
|
+
//# sourceMappingURL=chunk-RJK7PUJE.js.map
|