@0xsequence/marketplace-sdk 0.8.7 → 0.8.9
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/CHANGELOG.md +32 -0
- package/dist/chunk-2PSNAIAT.js +1 -0
- package/dist/chunk-2PSNAIAT.js.map +1 -0
- package/dist/{chunk-7FVZD2LL.js → chunk-4XLXOEXQ.js} +2 -2
- package/dist/{chunk-5HEZNTSU.js → chunk-D7RVSZAQ.js} +131 -83
- package/dist/chunk-D7RVSZAQ.js.map +1 -0
- package/dist/chunk-DWTLVJAW.js +42 -0
- package/dist/chunk-DWTLVJAW.js.map +1 -0
- package/dist/{chunk-YAUZLETY.js → chunk-G3447GIP.js} +37 -18
- package/dist/chunk-G3447GIP.js.map +1 -0
- package/dist/{chunk-O6GWM7C3.js → chunk-HHYNOPPI.js} +2 -2
- package/dist/{chunk-Y6AOCO3Q.js → chunk-I2BYHDFE.js} +419 -161
- package/dist/chunk-I2BYHDFE.js.map +1 -0
- package/dist/{chunk-KTT27YUN.js → chunk-KGM2WLSP.js} +12 -156
- package/dist/chunk-KGM2WLSP.js.map +1 -0
- package/dist/chunk-MAD64DLJ.js +81 -0
- package/dist/chunk-MAD64DLJ.js.map +1 -0
- package/dist/chunk-N7BPFK46.js +1 -0
- package/dist/chunk-N7BPFK46.js.map +1 -0
- package/dist/chunk-NX52D7NX.js +135 -0
- package/dist/chunk-NX52D7NX.js.map +1 -0
- package/dist/chunk-O34GCB47.js +32 -0
- package/dist/chunk-O34GCB47.js.map +1 -0
- package/dist/{chunk-Q2DA477S.js → chunk-YALXP2PW.js} +3 -3
- package/dist/{chunk-A6V7XDY4.js → chunk-YBOFRP65.js} +2 -2
- package/dist/{create-config-CdooE7aU.d.ts → create-config-DwrnzwpM.d.ts} +2 -2
- package/dist/{index-ClKHzm0B.d.ts → index-DGsVBflk.d.ts} +3 -12
- package/dist/index.css +83 -35
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +13 -4
- package/dist/index.js +13 -5
- package/dist/{lowestListing-kFyrUGha.d.ts → lowestListing-BQHIuvNF.d.ts} +2 -2
- package/dist/{marketplace.gen-BU6T6f0m.d.ts → marketplace.gen-DQzWciwC.d.ts} +1 -1
- package/dist/marketplaceConfig-B4Fdsmxu.d.ts +17 -0
- package/dist/react/_internal/api/index.d.ts +3 -3
- package/dist/react/_internal/api/index.js +4 -3
- package/dist/react/_internal/databeat/index.d.ts +2 -1
- package/dist/react/_internal/databeat/index.js +11 -7
- package/dist/react/_internal/index.d.ts +6 -6
- package/dist/react/_internal/index.js +13 -10
- package/dist/react/_internal/wagmi/index.d.ts +6 -5
- package/dist/react/_internal/wagmi/index.js +2 -2
- package/dist/react/hooks/index.d.ts +9 -8
- package/dist/react/hooks/index.js +10 -6
- package/dist/react/hooks/options/index.d.ts +4 -4
- package/dist/react/hooks/options/index.js +7 -4
- package/dist/react/index.css +2696 -0
- package/dist/react/index.css.map +1 -1
- package/dist/react/index.d.ts +9 -9
- package/dist/react/index.js +18 -11
- package/dist/react/queries/index.d.ts +3 -3
- package/dist/react/queries/index.js +6 -3
- package/dist/react/ssr/index.d.ts +3 -3
- package/dist/react/ssr/index.js +6 -3
- package/dist/react/ssr/index.js.map +1 -1
- package/dist/react/ui/components/collectible-card/index.css +2696 -0
- package/dist/react/ui/components/collectible-card/index.css.map +1 -1
- package/dist/react/ui/components/collectible-card/index.d.ts +23 -2
- package/dist/react/ui/components/collectible-card/index.js +16 -9
- package/dist/react/ui/icons/index.js +5 -2
- package/dist/react/ui/index.css +2696 -0
- package/dist/react/ui/index.css.map +1 -1
- package/dist/react/ui/index.d.ts +3 -2
- package/dist/react/ui/index.js +16 -9
- package/dist/react/ui/modals/_internal/components/actionModal/index.js +11 -7
- package/dist/sdk-config-txlivEKe.d.ts +133 -0
- package/dist/{services-9ApY0U-o.d.ts → services-BI_w8Eq4.d.ts} +4 -4
- package/dist/types/index.d.ts +5 -4
- package/dist/types/index.js +9 -6
- package/dist/{types-DsTwmKG-.d.ts → types-isjvwapz.d.ts} +3 -3
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.js +5 -2
- package/package.json +6 -5
- package/src/index.ts +1 -0
- package/src/react/{hooks/options/__mocks__/marketplaceConfig.msw.ts → _internal/api/__mocks__/builder.msw.ts} +70 -63
- package/src/react/_internal/api/__mocks__/metadata.msw.ts +30 -10
- package/src/react/_internal/api/builder-api.ts +32 -0
- package/src/react/_internal/api/builder.gen.ts +215 -0
- package/src/react/_internal/api/services.ts +9 -2
- package/src/react/_internal/databeat/types.ts +1 -0
- package/src/react/_internal/wagmi/__tests__/create-config.test.ts +16 -41
- package/src/react/_internal/wagmi/create-config.ts +3 -16
- package/src/react/_internal/wagmi/get-connectors.ts +31 -21
- package/src/react/_internal/wallet/__tests__/wallet.test.ts +30 -0
- package/src/react/_internal/wallet/wallet.ts +25 -2
- package/src/react/hooks/__tests__/__snapshots__/useMarketplaceConfig.test.tsx.snap +96 -0
- package/src/react/hooks/__tests__/useCollection.test.tsx +4 -5
- package/src/react/hooks/__tests__/useCurrencies.test.tsx +1 -1
- package/src/react/hooks/__tests__/useInventory.test.tsx +15 -16
- package/src/react/hooks/__tests__/useListCollections.test.tsx +18 -163
- package/src/react/hooks/__tests__/useMarketplaceConfig.test.tsx +10 -11
- package/src/react/hooks/options/index.ts +1 -1
- package/src/react/hooks/useAutoSelectFeeOption.tsx +1 -0
- package/src/react/hooks/useMarketplaceConfig.tsx +2 -2
- package/src/react/queries/marketplaceConfig.ts +101 -0
- package/src/react/ssr/__tests__/__snapshots__/create-ssr-client.test.ts.snap +1 -0
- package/src/react/ssr/create-ssr-client.ts +1 -1
- package/src/react/ui/components/ModelViewer.tsx +54 -0
- package/src/react/ui/components/_internals/custom-select/CustomSelect.tsx +0 -1
- package/src/react/ui/components/collectible-card/CollectibleCard.tsx +7 -3
- package/src/react/ui/components/collectible-card/__tests__/CollectibleAsset.test.tsx +76 -46
- package/src/react/ui/components/collectible-card/collectible-asset/CollectibleAsset.tsx +174 -0
- package/src/react/ui/components/collectible-card/collectible-asset/CollectibleAssetSkeleton.tsx +14 -0
- package/src/react/ui/components/collectible-card/collectible-asset/utils.ts +40 -0
- package/src/react/ui/components/collectible-card/index.ts +1 -0
- package/src/react/ui/index.ts +1 -0
- package/src/react/ui/modals/BuyModal/hooks/usePaymentModalParams.ts +6 -1
- package/src/react/ui/modals/BuyModal/store.ts +1 -0
- package/src/react/ui/modals/CreateListingModal/hooks/useTransactionSteps.tsx +20 -2
- package/src/react/ui/modals/MakeOfferModal/hooks/useTransactionSteps.tsx +17 -1
- package/src/react/ui/modals/SellModal/hooks/useTransactionSteps.tsx +4 -0
- package/src/react/ui/modals/SuccessfulPurchaseModal/index.tsx +9 -7
- package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/_components/TokenQuantityInput.tsx +1 -1
- package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/_components/WalletAddressInput.tsx +1 -1
- package/src/react/ui/modals/_internal/components/actionModal/ActionModal.test.tsx +7 -2
- package/src/react/ui/modals/_internal/components/priceInput/index.tsx +1 -1
- package/src/react/ui/modals/_internal/components/quantityInput/index.tsx +1 -2
- package/src/react/ui/modals/_internal/components/waasFeeOptionsSelect/WaasFeeOptionsSelect.tsx +0 -1
- package/src/types/index.ts +7 -1
- package/src/types/sdk-config.ts +4 -9
- package/src/utils/fetchContentType.ts +104 -0
- package/src/utils/getSequenceMarketRequestId.ts +32 -0
- package/test/mocks/wallet.ts +3 -1
- package/test/test-utils.tsx +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/builder-types-D5HgAUWR.d.ts +0 -82
- package/dist/chunk-5HEZNTSU.js.map +0 -1
- package/dist/chunk-KTT27YUN.js.map +0 -1
- package/dist/chunk-N7E37ENQ.js +0 -58
- package/dist/chunk-N7E37ENQ.js.map +0 -1
- package/dist/chunk-Y6AOCO3Q.js.map +0 -1
- package/dist/chunk-YAUZLETY.js.map +0 -1
- package/dist/sdk-config-DIzJk_tI.d.ts +0 -26
- package/src/react/hooks/options/__tests__/marketplaceConfigOptions.test.tsx +0 -134
- package/src/react/hooks/options/marketplaceConfigOptions.ts +0 -71
- package/src/react/ui/components/collectible-card/CollectibleAsset.tsx +0 -139
- package/src/types/builder-types.ts +0 -88
- /package/dist/{chunk-7FVZD2LL.js.map → chunk-4XLXOEXQ.js.map} +0 -0
- /package/dist/{chunk-O6GWM7C3.js.map → chunk-HHYNOPPI.js.map} +0 -0
- /package/dist/{chunk-Q2DA477S.js.map → chunk-YALXP2PW.js.map} +0 -0
- /package/dist/{chunk-A6V7XDY4.js.map → chunk-YBOFRP65.js.map} +0 -0
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
// src/utils/_internal/error/base.ts
|
|
2
|
+
var BaseError = class extends Error {
|
|
3
|
+
details;
|
|
4
|
+
shortMessage;
|
|
5
|
+
name = "MarketplaceSdkBaseError";
|
|
6
|
+
constructor(shortMessage, options = {}) {
|
|
7
|
+
super();
|
|
8
|
+
const details = "details" in options ? options.details : "";
|
|
9
|
+
this.message = [
|
|
10
|
+
shortMessage || "An error occurred.",
|
|
11
|
+
"",
|
|
12
|
+
...details ? [`Details: ${details}`] : []
|
|
13
|
+
].join("\n");
|
|
14
|
+
if ("cause" in options && options.cause) {
|
|
15
|
+
this.cause = options.cause;
|
|
16
|
+
}
|
|
17
|
+
this.details = details || "";
|
|
18
|
+
this.shortMessage = shortMessage;
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
// src/utils/_internal/error/transaction.ts
|
|
23
|
+
var TransactionError = class extends BaseError {
|
|
24
|
+
name = "TransactionError";
|
|
25
|
+
};
|
|
26
|
+
var ChainSwitchError = class extends TransactionError {
|
|
27
|
+
name = "ChainSwitchError";
|
|
28
|
+
constructor(currentChainId, targetChainId) {
|
|
29
|
+
super(
|
|
30
|
+
`Failed to switch network from ${currentChainId} to ${targetChainId}`,
|
|
31
|
+
{
|
|
32
|
+
details: "The user may have rejected the network switch or there might be a network connectivity issue."
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
var ChainSwitchUserRejectedError = class extends TransactionError {
|
|
38
|
+
name = "ChainSwitchUserRejectedError";
|
|
39
|
+
constructor() {
|
|
40
|
+
super("User rejected chain switch", {
|
|
41
|
+
details: "The user rejected the chain switch request."
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
var TransactionExecutionError = class extends TransactionError {
|
|
46
|
+
name = "TransactionExecutionError";
|
|
47
|
+
constructor(stepId, cause) {
|
|
48
|
+
super(`Failed to execute transaction step: ${stepId}`, {
|
|
49
|
+
details: cause?.message || "The transaction may have been rejected or failed during execution.",
|
|
50
|
+
cause
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
var TransactionSignatureError = class extends TransactionError {
|
|
55
|
+
name = "TransactionSignatureError";
|
|
56
|
+
constructor(stepId, cause) {
|
|
57
|
+
super(`Failed to sign transaction step: ${stepId}`, {
|
|
58
|
+
details: cause?.message || "The signature request may have been rejected by the user.",
|
|
59
|
+
cause
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
var NoWalletConnectedError = class extends TransactionError {
|
|
64
|
+
name = "NoWalletConnectedError";
|
|
65
|
+
constructor() {
|
|
66
|
+
super("No wallet connected", {
|
|
67
|
+
details: "Please connect your wallet before attempting this transaction."
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
var UserRejectedRequestError = class extends TransactionError {
|
|
72
|
+
name = "UserRejectedRequestError";
|
|
73
|
+
constructor() {
|
|
74
|
+
super("User rejected the request", {
|
|
75
|
+
details: "The user cancelled or rejected the transaction request."
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
var InvalidStepError = class extends TransactionError {
|
|
80
|
+
name = "InvalidStepError";
|
|
81
|
+
constructor(stepId, reason) {
|
|
82
|
+
super(`Invalid step configuration for ${stepId}`, {
|
|
83
|
+
details: reason
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
var TransactionConfirmationError = class extends TransactionError {
|
|
88
|
+
name = "TransactionConfirmationError";
|
|
89
|
+
constructor(hash, cause) {
|
|
90
|
+
super(`Failed to confirm transaction ${hash}`, {
|
|
91
|
+
details: cause?.message || "The transaction could not be confirmed on the network.",
|
|
92
|
+
cause
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
var InvalidContractTypeError = class extends TransactionError {
|
|
97
|
+
name = "InvalidContractTypeError";
|
|
98
|
+
constructor(contractType) {
|
|
99
|
+
super(`Invalid contract type: ${contractType}`, {
|
|
100
|
+
details: "The contract type must be either ERC721 or ERC1155."
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
var MissingConfigError = class extends TransactionError {
|
|
105
|
+
name = "MissingConfigError";
|
|
106
|
+
constructor(configName) {
|
|
107
|
+
super(`Missing required config: ${configName}`, {
|
|
108
|
+
details: "A required configuration parameter is missing."
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
var WalletInstanceNotFoundError = class extends TransactionError {
|
|
113
|
+
name = "WalletInstanceNotFoundError";
|
|
114
|
+
constructor() {
|
|
115
|
+
super("Wallet instance not found", {
|
|
116
|
+
details: "The wallet instance is undefined"
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
export {
|
|
122
|
+
BaseError,
|
|
123
|
+
ChainSwitchError,
|
|
124
|
+
ChainSwitchUserRejectedError,
|
|
125
|
+
TransactionExecutionError,
|
|
126
|
+
TransactionSignatureError,
|
|
127
|
+
NoWalletConnectedError,
|
|
128
|
+
UserRejectedRequestError,
|
|
129
|
+
InvalidStepError,
|
|
130
|
+
TransactionConfirmationError,
|
|
131
|
+
InvalidContractTypeError,
|
|
132
|
+
MissingConfigError,
|
|
133
|
+
WalletInstanceNotFoundError
|
|
134
|
+
};
|
|
135
|
+
//# sourceMappingURL=chunk-NX52D7NX.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/utils/_internal/error/base.ts","../src/utils/_internal/error/transaction.ts"],"sourcesContent":["export type ErrorType<name extends string = 'Error'> = Error & { name: name };\n\nexport type Compute<type> = { [key in keyof type]: type[key] } & unknown;\n\ntype BaseErrorOptions = Compute<\n\t{ details?: string | undefined } | { cause: BaseError | Error }\n>;\n\nexport class BaseError extends Error {\n\tdetails: string;\n\tshortMessage: string;\n\n\tname = 'MarketplaceSdkBaseError';\n\n\tconstructor(shortMessage: string, options: BaseErrorOptions = {}) {\n\t\tsuper();\n\n\t\tconst details = 'details' in options ? options.details : '';\n\t\tthis.message = [\n\t\t\tshortMessage || 'An error occurred.',\n\t\t\t'',\n\t\t\t...(details ? [`Details: ${details}`] : []),\n\t\t].join('\\n');\n\n\t\tif ('cause' in options && options.cause) {\n\t\t\tthis.cause = options.cause;\n\t\t}\n\n\t\tthis.details = details || '';\n\t\tthis.shortMessage = shortMessage;\n\t}\n}\n","import type { Address } from 'viem';\nimport { BaseError } from './base';\n\nexport type TransactionErrorType<name extends string = 'TransactionError'> =\n\tBaseError & { name: name };\n\nexport class TransactionError extends BaseError {\n\toverride name = 'TransactionError';\n}\n\nexport class ChainSwitchError extends TransactionError {\n\toverride name = 'ChainSwitchError';\n\tconstructor(currentChainId: number, targetChainId: number) {\n\t\tsuper(\n\t\t\t`Failed to switch network from ${currentChainId} to ${targetChainId}`,\n\t\t\t{\n\t\t\t\tdetails:\n\t\t\t\t\t'The user may have rejected the network switch or there might be a network connectivity issue.',\n\t\t\t},\n\t\t);\n\t}\n}\n\nexport class ChainSwitchUserRejectedError extends TransactionError {\n\toverride name = 'ChainSwitchUserRejectedError';\n\tconstructor() {\n\t\tsuper('User rejected chain switch', {\n\t\t\tdetails: 'The user rejected the chain switch request.',\n\t\t});\n\t}\n}\n\nexport class TransactionExecutionError extends TransactionError {\n\toverride name = 'TransactionExecutionError';\n\tconstructor(stepId: string, cause?: Error) {\n\t\tsuper(`Failed to execute transaction step: ${stepId}`, {\n\t\t\tdetails:\n\t\t\t\tcause?.message ||\n\t\t\t\t'The transaction may have been rejected or failed during execution.',\n\t\t\tcause,\n\t\t});\n\t}\n}\n\nexport class TransactionSignatureError extends TransactionError {\n\toverride name = 'TransactionSignatureError';\n\tconstructor(stepId: string, cause?: Error) {\n\t\tsuper(`Failed to sign transaction step: ${stepId}`, {\n\t\t\tdetails:\n\t\t\t\tcause?.message ||\n\t\t\t\t'The signature request may have been rejected by the user.',\n\t\t\tcause,\n\t\t});\n\t}\n}\n\nexport class NoWalletConnectedError extends TransactionError {\n\toverride name = 'NoWalletConnectedError';\n\tconstructor() {\n\t\tsuper('No wallet connected', {\n\t\t\tdetails: 'Please connect your wallet before attempting this transaction.',\n\t\t});\n\t}\n}\n\nexport class NoMarketplaceConfigError extends TransactionError {\n\toverride name = 'NoMarketplaceConfigError';\n\tconstructor() {\n\t\tsuper('Marketplace configuration not found', {\n\t\t\tdetails:\n\t\t\t\t'The marketplace configuration is missing or invalid. This could be due to an initialization error.',\n\t\t});\n\t}\n}\n\nexport class UserRejectedRequestError extends TransactionError {\n\toverride name = 'UserRejectedRequestError';\n\tconstructor() {\n\t\tsuper('User rejected the request', {\n\t\t\tdetails: 'The user cancelled or rejected the transaction request.',\n\t\t});\n\t}\n}\n\nexport class InsufficientFundsError extends TransactionError {\n\toverride name = 'InsufficientFundsError';\n\tconstructor(cause?: Error) {\n\t\tsuper('Insufficient funds for transaction', {\n\t\t\tdetails:\n\t\t\t\t'The wallet does not have enough funds to complete this transaction.',\n\t\t\tcause,\n\t\t});\n\t}\n}\n\nexport class SignatureExecutionError extends TransactionError {\n\toverride name = 'SignatureExecutionError';\n\tconstructor(signature: string, cause?: Error) {\n\t\tsuper(`Failed to execute signature: ${signature}`, {\n\t\t\tdetails: cause?.message || 'The execution of the signature failed.',\n\t\t\tcause,\n\t\t});\n\t}\n}\n\nexport class StepExecutionError extends TransactionError {\n\toverride name = 'StepExecutionError';\n\tconstructor(stepId: string, cause?: Error) {\n\t\tsuper(`Failed to execute step ${stepId})`, {\n\t\t\tdetails: cause?.message || 'The step execution failed unexpectedly.',\n\t\t\tcause,\n\t\t});\n\t}\n}\n\nexport class StepGenerationError extends TransactionError {\n\toverride name = 'StepGenerationError';\n\tconstructor(transactionType: string, cause?: Error) {\n\t\tsuper(`Failed to generate steps for ${transactionType}`, {\n\t\t\tdetails:\n\t\t\t\tcause?.message || 'Could not generate the required transaction steps.',\n\t\t\tcause,\n\t\t});\n\t}\n}\n\nexport class PaymentModalError extends TransactionError {\n\toverride name = 'PaymentModalError';\n\tconstructor(cause?: Error) {\n\t\tsuper('Payment modal operation failed', {\n\t\t\tdetails:\n\t\t\t\tcause?.message || 'The payment modal operation was unsuccessful.',\n\t\t\tcause,\n\t\t});\n\t}\n}\n\nexport class InvalidStepError extends TransactionError {\n\toverride name = 'InvalidStepError';\n\tconstructor(stepId: string, reason: string) {\n\t\tsuper(`Invalid step configuration for ${stepId}`, {\n\t\t\tdetails: reason,\n\t\t});\n\t}\n}\n\nexport class TransactionConfirmationError extends TransactionError {\n\toverride name = 'TransactionConfirmationError';\n\tconstructor(hash: string, cause?: Error) {\n\t\tsuper(`Failed to confirm transaction ${hash}`, {\n\t\t\tdetails:\n\t\t\t\tcause?.message ||\n\t\t\t\t'The transaction could not be confirmed on the network.',\n\t\t\tcause,\n\t\t});\n\t}\n}\n\nexport class OrderNotFoundError extends TransactionError {\n\toverride name = 'OrderNotFoundError';\n\tconstructor(orderId: string) {\n\t\tsuper(`Order ${orderId} not found`, {\n\t\t\tdetails: 'The requested order could not be found in the marketplace.',\n\t\t});\n\t}\n}\n\nexport class MissingStepDataError extends TransactionError {\n\toverride name = 'MissingStepDataError';\n\tconstructor() {\n\t\tsuper('Step is missing required data', {\n\t\t\tdetails:\n\t\t\t\t'The transaction step is missing required \"to\" or \"signature\" data.',\n\t\t});\n\t}\n}\n\nexport class MissingSignatureDataError extends TransactionError {\n\toverride name = 'MissingSignatureDataError';\n\tconstructor() {\n\t\tsuper('Step is missing signature data', {\n\t\t\tdetails:\n\t\t\t\t'The signature step is missing required signature data configuration.',\n\t\t});\n\t}\n}\n\nexport class InvalidSignatureStepError extends TransactionError {\n\toverride name = 'InvalidSignatureStepError';\n\tconstructor(stepId: string) {\n\t\tsuper(`Invalid signature step type: ${stepId}`, {\n\t\t\tdetails: 'The signature step type is not supported.',\n\t\t});\n\t}\n}\n\nexport class MissingPostStepError extends TransactionError {\n\toverride name = 'MissingPostStepError';\n\tconstructor() {\n\t\tsuper('Missing post step configuration', {\n\t\t\tdetails:\n\t\t\t\t'The signature step is missing required post-step configuration.',\n\t\t});\n\t}\n}\n\nexport class UnexpectedStepsError extends TransactionError {\n\toverride name = 'UnexpectedStepsError';\n\tconstructor() {\n\t\tsuper('Unexpected steps found', {\n\t\t\tdetails: 'The transaction contains more steps than expected.',\n\t\t});\n\t}\n}\n\nexport class NoExecutionStepError extends TransactionError {\n\toverride name = 'NoExecutionStepError';\n\tconstructor() {\n\t\tsuper('No execution step found', {\n\t\t\tdetails: 'The transaction is missing the required execution step.',\n\t\t});\n\t}\n}\n\nexport class NoStepsFoundError extends TransactionError {\n\toverride name = 'NoStepsFoundError';\n\tconstructor() {\n\t\tsuper('No steps found', {\n\t\t\tdetails: 'The transaction contains no steps to execute.',\n\t\t});\n\t}\n}\n\nexport class UnknownTransactionTypeError extends TransactionError {\n\toverride name = 'UnknownTransactionTypeError';\n\tconstructor(type: string) {\n\t\tsuper(`Unknown transaction type: ${type}`, {\n\t\t\tdetails: 'The specified transaction type is not supported.',\n\t\t});\n\t}\n}\n\nexport class InvalidContractTypeError extends TransactionError {\n\toverride name = 'InvalidContractTypeError';\n\tconstructor(contractType: string | undefined) {\n\t\tsuper(`Invalid contract type: ${contractType}`, {\n\t\t\tdetails: 'The contract type must be either ERC721 or ERC1155.',\n\t\t});\n\t}\n}\n\nexport class CollectionNotFoundError extends TransactionError {\n\toverride name = 'CollectionNotFoundError';\n\tconstructor(collectionAddress: string) {\n\t\tsuper(`Collection not found: ${collectionAddress}`, {\n\t\t\tdetails:\n\t\t\t\t'The specified collection address could not be found in the marketplace configuration.',\n\t\t});\n\t}\n}\n\nexport class InvalidCurrencyOptionsError extends TransactionError {\n\toverride name = 'InvalidCurrencyOptionsError';\n\tconstructor(currencyOptions: Address[]) {\n\t\tsuper(`Invalid currency options: ${currencyOptions}`, {\n\t\t\tdetails:\n\t\t\t\t'The currency options must be an array of valid currency contract addresses.',\n\t\t});\n\t}\n}\n\nexport class ProjectNotFoundError extends TransactionError {\n\toverride name = 'ProjectNotFoundError';\n\tconstructor(projectId: string, url: string) {\n\t\tsuper('Project not found', {\n\t\t\tdetails: `Project id: ${projectId} not found at ${url}`,\n\t\t});\n\t}\n}\n\nexport class MarketplaceConfigFetchError extends TransactionError {\n\toverride name = 'MarketplaceConfigFetchError';\n\tconstructor(message: string) {\n\t\tsuper('Failed to fetch marketplace config', {\n\t\t\tdetails: message,\n\t\t});\n\t}\n}\n\nexport class MissingConfigError extends TransactionError {\n\toverride name = 'MissingConfigError';\n\tconstructor(configName: string) {\n\t\tsuper(`Missing required config: ${configName}`, {\n\t\t\tdetails: 'A required configuration parameter is missing.',\n\t\t});\n\t}\n}\n\nexport class TransactionValidationError extends TransactionError {\n\toverride name = 'TransactionValidationError';\n\tconstructor(reason: string) {\n\t\tsuper('Transaction validation failed', {\n\t\t\tdetails: reason,\n\t\t});\n\t}\n}\n\nexport class ChainIdUnavailableError extends TransactionError {\n\toverride name = 'ChainIdUnavailableError';\n\tconstructor() {\n\t\tsuper('Chain ID is not available', {\n\t\t\tdetails: 'Could not determine the current chain ID from the wallet.',\n\t\t});\n\t}\n}\n\nexport class TransactionReceiptError extends TransactionError {\n\toverride name = 'TransactionReceiptError';\n\tconstructor(hash: string, cause?: Error) {\n\t\tsuper(`Failed to get transaction receipt for ${hash}`, {\n\t\t\tdetails:\n\t\t\t\tcause?.message ||\n\t\t\t\t'Could not retrieve the transaction receipt from the network.',\n\t\t\tcause,\n\t\t});\n\t}\n}\n\nexport class PaymentModalTransactionError extends TransactionError {\n\toverride name = 'PaymentModalTransactionError';\n\tconstructor(hash: string, cause?: Error) {\n\t\tsuper(`Payment modal transaction failed for ${hash}`, {\n\t\t\tdetails:\n\t\t\t\tcause?.message ||\n\t\t\t\t'The transaction initiated from the payment modal failed.',\n\t\t\tcause,\n\t\t});\n\t}\n}\n\nexport class CheckoutOptionsError extends TransactionError {\n\toverride name = 'CheckoutOptionsError';\n\tconstructor(cause?: Error) {\n\t\tsuper('Failed to get checkout options', {\n\t\t\tdetails:\n\t\t\t\tcause?.message ||\n\t\t\t\t'Could not retrieve the checkout options from the marketplace.',\n\t\t\tcause,\n\t\t});\n\t}\n}\n\nexport class OrdersFetchError extends TransactionError {\n\toverride name = 'OrdersFetchError';\n\tconstructor(orderId: string, cause?: Error) {\n\t\tsuper(`Failed to fetch order ${orderId}`, {\n\t\t\tdetails:\n\t\t\t\tcause?.message ||\n\t\t\t\t'Could not retrieve the order details from the marketplace.',\n\t\t\tcause,\n\t\t});\n\t}\n}\n\nexport class WalletInstanceNotFoundError extends TransactionError {\n\toverride name = 'WalletInstanceNotFoundError';\n\tconstructor() {\n\t\tsuper('Wallet instance not found', {\n\t\t\tdetails: 'The wallet instance is undefined',\n\t\t});\n\t}\n}\n\nexport type TransactionErrorTypes =\n\t| ChainIdUnavailableError\n\t| TransactionReceiptError\n\t| PaymentModalTransactionError\n\t| CheckoutOptionsError\n\t| OrdersFetchError\n\t| TransactionConfirmationError\n\t| TransactionValidationError\n\t| MissingConfigError\n\t| MarketplaceConfigFetchError\n\t| ProjectNotFoundError\n\t| CollectionNotFoundError\n\t| InvalidCurrencyOptionsError\n\t| InvalidContractTypeError\n\t| UnknownTransactionTypeError\n\t| NoStepsFoundError\n\t| NoExecutionStepError\n\t| UnexpectedStepsError\n\t| MissingPostStepError\n\t| InvalidSignatureStepError\n\t| MissingSignatureDataError\n\t| MissingStepDataError\n\t| OrderNotFoundError\n\t| TransactionConfirmationError\n\t| InvalidStepError\n\t| PaymentModalError\n\t| StepGenerationError\n\t| StepExecutionError\n\t| UserRejectedRequestError\n\t| NoMarketplaceConfigError\n\t| InsufficientFundsError\n\t| ChainSwitchUserRejectedError\n\t| ChainSwitchError\n\t| TransactionSignatureError\n\t| TransactionExecutionError\n\t| NoWalletConnectedError\n\t| TransactionError\n\t| WalletInstanceNotFoundError;\n"],"mappings":"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","names":[]}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import {
|
|
2
|
+
API
|
|
3
|
+
} from "./chunk-D7RVSZAQ.js";
|
|
4
|
+
|
|
5
|
+
// src/react/_internal/api/builder-api.ts
|
|
6
|
+
var BuilderAPI = class extends API {
|
|
7
|
+
constructor(hostname, projectAccessKey, jwtAuth) {
|
|
8
|
+
super(hostname.endsWith("/") ? hostname.slice(0, -1) : hostname, fetch);
|
|
9
|
+
this.projectAccessKey = projectAccessKey;
|
|
10
|
+
this.jwtAuth = jwtAuth;
|
|
11
|
+
this.fetch = this._fetch;
|
|
12
|
+
}
|
|
13
|
+
_fetch = (input, init) => {
|
|
14
|
+
const headers = {};
|
|
15
|
+
const jwtAuth = this.jwtAuth;
|
|
16
|
+
const projectAccessKey = this.projectAccessKey;
|
|
17
|
+
if (jwtAuth && jwtAuth.length > 0) {
|
|
18
|
+
headers.Authorization = `BEARER ${jwtAuth}`;
|
|
19
|
+
}
|
|
20
|
+
if (projectAccessKey && projectAccessKey.length > 0) {
|
|
21
|
+
headers["X-Access-Key"] = projectAccessKey;
|
|
22
|
+
}
|
|
23
|
+
const requestInit = init || {};
|
|
24
|
+
requestInit.headers = { ...init?.headers, ...headers };
|
|
25
|
+
return fetch(input, requestInit);
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export {
|
|
30
|
+
BuilderAPI
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=chunk-O34GCB47.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/react/_internal/api/builder-api.ts"],"sourcesContent":["import { API } from './builder.gen';\n\nexport class BuilderAPI extends API {\n\tconstructor(\n\t\thostname: string,\n\t\tpublic projectAccessKey?: string,\n\t\tpublic jwtAuth?: string,\n\t) {\n\t\tsuper(hostname.endsWith('/') ? hostname.slice(0, -1) : hostname, fetch);\n\t\tthis.fetch = this._fetch;\n\t}\n\n\t_fetch = (input: RequestInfo, init?: RequestInit): Promise<Response> => {\n\t\tconst headers: Record<string, string> = {};\n\n\t\tconst jwtAuth = this.jwtAuth;\n\t\tconst projectAccessKey = this.projectAccessKey;\n\n\t\tif (jwtAuth && jwtAuth.length > 0) {\n\t\t\theaders.Authorization = `BEARER ${jwtAuth}`;\n\t\t}\n\n\t\tif (projectAccessKey && projectAccessKey.length > 0) {\n\t\t\theaders['X-Access-Key'] = projectAccessKey;\n\t\t}\n\n\t\tconst requestInit = init || {};\n\t\trequestInit.headers = { ...init?.headers, ...headers };\n\n\t\treturn fetch(input, requestInit);\n\t};\n}\n"],"mappings":";;;;;AAEO,IAAM,aAAN,cAAyB,IAAI;AAAA,EACnC,YACC,UACO,kBACA,SACN;AACD,UAAM,SAAS,SAAS,GAAG,IAAI,SAAS,MAAM,GAAG,EAAE,IAAI,UAAU,KAAK;AAH/D;AACA;AAGP,SAAK,QAAQ,KAAK;AAAA,EACnB;AAAA,EAEA,SAAS,CAAC,OAAoB,SAA0C;AACvE,UAAM,UAAkC,CAAC;AAEzC,UAAM,UAAU,KAAK;AACrB,UAAM,mBAAmB,KAAK;AAE9B,QAAI,WAAW,QAAQ,SAAS,GAAG;AAClC,cAAQ,gBAAgB,UAAU,OAAO;AAAA,IAC1C;AAEA,QAAI,oBAAoB,iBAAiB,SAAS,GAAG;AACpD,cAAQ,cAAc,IAAI;AAAA,IAC3B;AAEA,UAAM,cAAc,QAAQ,CAAC;AAC7B,gBAAY,UAAU,EAAE,GAAG,MAAM,SAAS,GAAG,QAAQ;AAErD,WAAO,MAAM,OAAO,WAAW;AAAA,EAChC;AACD;","names":[]}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AddressSchema,
|
|
3
3
|
QueryArgSchema
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-DWTLVJAW.js";
|
|
5
5
|
import {
|
|
6
6
|
collectionKeys,
|
|
7
7
|
getMetadataClient
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-KGM2WLSP.js";
|
|
9
9
|
|
|
10
10
|
// src/react/hooks/options/collectionOptions.ts
|
|
11
11
|
import { queryOptions } from "@tanstack/react-query";
|
|
@@ -35,4 +35,4 @@ export {
|
|
|
35
35
|
fetchCollection,
|
|
36
36
|
collectionOptions
|
|
37
37
|
};
|
|
38
|
-
//# sourceMappingURL=chunk-
|
|
38
|
+
//# sourceMappingURL=chunk-YALXP2PW.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
MODAL_OVERLAY_PROPS,
|
|
6
6
|
useSwitchChainModal,
|
|
7
7
|
useWallet
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-G3447GIP.js";
|
|
9
9
|
|
|
10
10
|
// src/react/ui/modals/_internal/components/actionModal/ActionModal.tsx
|
|
11
11
|
import { Button, Modal, Spinner, Text } from "@0xsequence/design-system";
|
|
@@ -125,4 +125,4 @@ export {
|
|
|
125
125
|
openModal,
|
|
126
126
|
closeModal
|
|
127
127
|
};
|
|
128
|
-
//# sourceMappingURL=chunk-
|
|
128
|
+
//# sourceMappingURL=chunk-YBOFRP65.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as wagmi from 'wagmi';
|
|
2
2
|
import { Chain, Transport } from 'viem';
|
|
3
|
-
import { S as SdkConfig } from './sdk-config-
|
|
4
|
-
import {
|
|
3
|
+
import { S as SdkConfig } from './sdk-config-txlivEKe.js';
|
|
4
|
+
import { M as MarketplaceConfig } from './marketplaceConfig-B4Fdsmxu.js';
|
|
5
5
|
|
|
6
6
|
declare const createWagmiConfig: (marketplaceConfig: MarketplaceConfig, sdkConfig: SdkConfig, ssr?: boolean) => wagmi.Config<[Chain, ...Chain[]], Record<number, Transport>, wagmi.CreateConnectorFn[]>;
|
|
7
7
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
2
|
import * as _0xsequence_metadata from '@0xsequence/metadata';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import { S as SdkConfig } from './sdk-config-
|
|
5
|
-
import
|
|
4
|
+
import { S as SdkConfig } from './sdk-config-txlivEKe.js';
|
|
5
|
+
import './marketplaceConfig-B4Fdsmxu.js';
|
|
6
6
|
|
|
7
7
|
declare const UseCollectionSchema: z.ZodObject<{
|
|
8
8
|
chainId: z.ZodNumber;
|
|
@@ -59,13 +59,4 @@ type UseCollectionArgs = z.input<typeof UseCollectionSchema>;
|
|
|
59
59
|
type UseCollectionReturn = Awaited<ReturnType<typeof fetchCollection>>;
|
|
60
60
|
declare const useCollection: (args: UseCollectionArgs) => _tanstack_react_query.UseQueryResult<_0xsequence_metadata.ContractInfo, Error>;
|
|
61
61
|
|
|
62
|
-
|
|
63
|
-
queryFn?: _tanstack_react_query.QueryFunction<MarketplaceConfig, string[], never> | undefined;
|
|
64
|
-
} & {
|
|
65
|
-
queryKey: string[] & {
|
|
66
|
-
[dataTagSymbol]: MarketplaceConfig;
|
|
67
|
-
[dataTagErrorSymbol]: Error;
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
export { type UseCollectionArgs as U, type UseCollectionReturn as a, collectionOptions as c, fetchCollection as f, marketplaceConfigOptions as m, useCollection as u };
|
|
62
|
+
export { type UseCollectionArgs as U, type UseCollectionReturn as a, collectionOptions as c, fetchCollection as f, useCollection as u };
|
package/dist/index.css
CHANGED
|
@@ -81,7 +81,6 @@
|
|
|
81
81
|
--color-text-80: hsla(0, 0%, 100%, 0.8);
|
|
82
82
|
--color-text-100: hsla(0, 0%, 100%, 1);
|
|
83
83
|
--spacing-card-width: clamp(175px, 100%, 280px);
|
|
84
|
-
--spacing-action-offset: 44px;
|
|
85
84
|
--scale-hover: 1.165;
|
|
86
85
|
--animate-shimmer: shimmer 1.5s infinite;
|
|
87
86
|
--animate-bell-ring: bellRing 0.4s ease-in-out;
|
|
@@ -322,8 +321,8 @@
|
|
|
322
321
|
.-bottom-5 {
|
|
323
322
|
bottom: calc(var(--spacing) * -5);
|
|
324
323
|
}
|
|
325
|
-
.-bottom-
|
|
326
|
-
bottom: calc(var(--spacing
|
|
324
|
+
.-bottom-16 {
|
|
325
|
+
bottom: calc(var(--spacing) * -16);
|
|
327
326
|
}
|
|
328
327
|
.bottom-0 {
|
|
329
328
|
bottom: calc(var(--spacing) * 0);
|
|
@@ -532,6 +531,9 @@
|
|
|
532
531
|
.max-h-\[240px\] {
|
|
533
532
|
max-height: 240px;
|
|
534
533
|
}
|
|
534
|
+
.max-h-\[360px\] {
|
|
535
|
+
max-height: 360px;
|
|
536
|
+
}
|
|
535
537
|
.max-h-\[calc\(100dvh-80px\)\] {
|
|
536
538
|
max-height: calc(100dvh - 80px);
|
|
537
539
|
}
|
|
@@ -658,6 +660,9 @@
|
|
|
658
660
|
.min-w-6 {
|
|
659
661
|
min-width: calc(var(--spacing) * 6);
|
|
660
662
|
}
|
|
663
|
+
.min-w-\[var\(--radix-select-trigger-width\)\] {
|
|
664
|
+
min-width: var(--radix-select-trigger-width);
|
|
665
|
+
}
|
|
661
666
|
.min-w-full {
|
|
662
667
|
min-width: 100%;
|
|
663
668
|
}
|
|
@@ -670,6 +675,9 @@
|
|
|
670
675
|
.grow {
|
|
671
676
|
flex-grow: 1;
|
|
672
677
|
}
|
|
678
|
+
.origin-bottom {
|
|
679
|
+
transform-origin: bottom;
|
|
680
|
+
}
|
|
673
681
|
.origin-top {
|
|
674
682
|
transform-origin: top;
|
|
675
683
|
}
|
|
@@ -857,6 +865,9 @@
|
|
|
857
865
|
.border-border-base {
|
|
858
866
|
border-color: var(--color-border-base);
|
|
859
867
|
}
|
|
868
|
+
.border-border-error {
|
|
869
|
+
border-color: var(--seq-color-border-error);
|
|
870
|
+
}
|
|
860
871
|
.border-border-normal {
|
|
861
872
|
border-color: var(--seq-color-border-normal);
|
|
862
873
|
}
|
|
@@ -1329,6 +1340,9 @@
|
|
|
1329
1340
|
var(--tw-ring-shadow),
|
|
1330
1341
|
var(--tw-shadow);
|
|
1331
1342
|
}
|
|
1343
|
+
.ring-border-error {
|
|
1344
|
+
--tw-ring-color: var(--seq-color-border-error);
|
|
1345
|
+
}
|
|
1332
1346
|
.ring-border-focus {
|
|
1333
1347
|
--tw-ring-color: var(--color-border-focus);
|
|
1334
1348
|
}
|
|
@@ -1398,7 +1412,12 @@
|
|
|
1398
1412
|
rotate,
|
|
1399
1413
|
filter,
|
|
1400
1414
|
-webkit-backdrop-filter,
|
|
1401
|
-
backdrop-filter
|
|
1415
|
+
backdrop-filter,
|
|
1416
|
+
display,
|
|
1417
|
+
visibility,
|
|
1418
|
+
content-visibility,
|
|
1419
|
+
overlay,
|
|
1420
|
+
pointer-events;
|
|
1402
1421
|
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
1403
1422
|
transition-duration: var(--tw-duration, var(--default-transition-duration));
|
|
1404
1423
|
}
|
|
@@ -1456,10 +1475,10 @@
|
|
|
1456
1475
|
.ring-inset {
|
|
1457
1476
|
--tw-ring-inset: inset;
|
|
1458
1477
|
}
|
|
1459
|
-
.group-hover\:translate-y-\[-
|
|
1478
|
+
.group-hover\:translate-y-\[-64px\] {
|
|
1460
1479
|
&:is(:where(.group):hover *) {
|
|
1461
1480
|
@media (hover: hover) {
|
|
1462
|
-
--tw-translate-y: -
|
|
1481
|
+
--tw-translate-y: -64px;
|
|
1463
1482
|
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
1464
1483
|
}
|
|
1465
1484
|
}
|
|
@@ -1791,6 +1810,11 @@
|
|
|
1791
1810
|
var(--tw-shadow);
|
|
1792
1811
|
}
|
|
1793
1812
|
}
|
|
1813
|
+
.focus-within\:ring-border-error {
|
|
1814
|
+
&:focus-within {
|
|
1815
|
+
--tw-ring-color: var(--seq-color-border-error);
|
|
1816
|
+
}
|
|
1817
|
+
}
|
|
1794
1818
|
.focus-within\:ring-border-focus {
|
|
1795
1819
|
&:focus-within {
|
|
1796
1820
|
--tw-ring-color: var(--color-border-focus);
|
|
@@ -1870,6 +1894,11 @@
|
|
|
1870
1894
|
var(--tw-shadow);
|
|
1871
1895
|
}
|
|
1872
1896
|
}
|
|
1897
|
+
.focus\:ring-border-error {
|
|
1898
|
+
&:focus {
|
|
1899
|
+
--tw-ring-color: var(--seq-color-border-error);
|
|
1900
|
+
}
|
|
1901
|
+
}
|
|
1873
1902
|
.focus\:ring-border-focus {
|
|
1874
1903
|
&:focus {
|
|
1875
1904
|
--tw-ring-color: var(--color-border-focus);
|
|
@@ -2243,79 +2272,96 @@
|
|
|
2243
2272
|
overflow: hidden;
|
|
2244
2273
|
}
|
|
2245
2274
|
}
|
|
2246
|
-
.\[\&\>label\>div
|
|
2247
|
-
|
|
2275
|
+
.\[\&\>label\>div\>\>span\]\:text-sm {
|
|
2276
|
+
&>label>div>>span {
|
|
2277
|
+
font-size: var(--text-sm);
|
|
2278
|
+
line-height: var(--tw-leading, var(--text-sm--line-height));
|
|
2279
|
+
}
|
|
2280
|
+
}
|
|
2281
|
+
.\[\&\>label\>div\>div\>\.rounded-xl\]\:h-9 {
|
|
2282
|
+
& > label > div > div > .rounded-xl {
|
|
2248
2283
|
height: calc(var(--spacing) * 9);
|
|
2249
2284
|
}
|
|
2250
2285
|
}
|
|
2251
|
-
.\[\&\>label\>div\>\.rounded-xl\]\:rounded-sm {
|
|
2252
|
-
& > label > div > .rounded-xl {
|
|
2286
|
+
.\[\&\>label\>div\>div\>\.rounded-xl\]\:rounded-sm {
|
|
2287
|
+
& > label > div > div > .rounded-xl {
|
|
2253
2288
|
border-radius: var(--radius-sm);
|
|
2254
2289
|
}
|
|
2255
2290
|
}
|
|
2256
|
-
.\[\&\>label\>div\>\.rounded-xl\]\:px-2 {
|
|
2257
|
-
& > label > div > .rounded-xl {
|
|
2291
|
+
.\[\&\>label\>div\>div\>\.rounded-xl\]\:px-2 {
|
|
2292
|
+
& > label > div > div > .rounded-xl {
|
|
2258
2293
|
padding-inline: calc(var(--spacing) * 2);
|
|
2259
2294
|
}
|
|
2260
2295
|
}
|
|
2261
|
-
.\[\&\>label\>div\>div\]\:h-9 {
|
|
2262
|
-
& > label > div > div {
|
|
2296
|
+
.\[\&\>label\>div\>div\>div\]\:h-9 {
|
|
2297
|
+
& > label > div > div > div {
|
|
2263
2298
|
height: calc(var(--spacing) * 9);
|
|
2264
2299
|
}
|
|
2265
2300
|
}
|
|
2266
|
-
.\[\&\>label\>div\>div\]\:h-13 {
|
|
2267
|
-
& > label > div > div {
|
|
2301
|
+
.\[\&\>label\>div\>div\>div\]\:h-13 {
|
|
2302
|
+
& > label > div > div > div {
|
|
2268
2303
|
height: calc(var(--spacing) * 13);
|
|
2269
2304
|
}
|
|
2270
2305
|
}
|
|
2271
|
-
.\[\&\>label\>div\>div\]\:rounded {
|
|
2272
|
-
& > label > div > div {
|
|
2306
|
+
.\[\&\>label\>div\>div\>div\]\:rounded {
|
|
2307
|
+
& > label > div > div > div {
|
|
2273
2308
|
border-radius: 0.25rem;
|
|
2274
2309
|
}
|
|
2275
2310
|
}
|
|
2276
|
-
.\[\&\>label\>div\>div\]\:rounded-xl {
|
|
2277
|
-
& > label > div > div {
|
|
2311
|
+
.\[\&\>label\>div\>div\>div\]\:rounded-xl {
|
|
2312
|
+
& > label > div > div > div {
|
|
2278
2313
|
border-radius: var(--radius-xl);
|
|
2279
2314
|
}
|
|
2280
2315
|
}
|
|
2281
|
-
.\[\&\>label\>div\>div\]\:pr-0 {
|
|
2282
|
-
& > label > div > div {
|
|
2316
|
+
.\[\&\>label\>div\>div\>div\]\:pr-0 {
|
|
2317
|
+
& > label > div > div > div {
|
|
2283
2318
|
padding-right: calc(var(--spacing) * 0);
|
|
2284
2319
|
}
|
|
2285
2320
|
}
|
|
2286
|
-
.\[\&\>label\>div\>div\]\:pl-3 {
|
|
2287
|
-
& > label > div > div {
|
|
2321
|
+
.\[\&\>label\>div\>div\>div\]\:pl-3 {
|
|
2322
|
+
& > label > div > div > div {
|
|
2288
2323
|
padding-left: calc(var(--spacing) * 3);
|
|
2289
2324
|
}
|
|
2290
2325
|
}
|
|
2291
|
-
.\[\&\>label\>div\>div\]\:text-xs {
|
|
2292
|
-
& > label > div > div {
|
|
2326
|
+
.\[\&\>label\>div\>div\>div\]\:text-xs {
|
|
2327
|
+
& > label > div > div > div {
|
|
2293
2328
|
font-size: var(--text-xs);
|
|
2294
2329
|
line-height: var(--tw-leading, var(--text-xs--line-height));
|
|
2295
2330
|
}
|
|
2296
2331
|
}
|
|
2297
|
-
.\[\&\>label\>div\>div\:has\(\:disabled\)\]\:opacity-100 {
|
|
2298
|
-
& > label > div > div:has(:disabled) {
|
|
2332
|
+
.\[\&\>label\>div\>div\>div\:has\(\:disabled\)\]\:opacity-100 {
|
|
2333
|
+
& > label > div > div > div:has(:disabled) {
|
|
2299
2334
|
opacity: 100%;
|
|
2300
2335
|
}
|
|
2301
2336
|
}
|
|
2302
|
-
.\[\&\>label\>div\>div\:has\(\:disabled\)\:hover\]\:opacity-100 {
|
|
2303
|
-
& > label > div > div:has(:disabled):hover {
|
|
2337
|
+
.\[\&\>label\>div\>div\>div\:has\(\:disabled\)\:hover\]\:opacity-100 {
|
|
2338
|
+
& > label > div > div > div:has(:disabled):hover {
|
|
2304
2339
|
opacity: 100%;
|
|
2305
2340
|
}
|
|
2306
2341
|
}
|
|
2307
|
-
.\[\&\>label\>div\>div\>input\]\:text-
|
|
2308
|
-
& > label > div > div > input {
|
|
2342
|
+
.\[\&\>label\>div\>div\>div\>input\]\:text-sm {
|
|
2343
|
+
& > label > div > div > div > input {
|
|
2344
|
+
font-size: var(--text-sm);
|
|
2345
|
+
line-height: var(--tw-leading, var(--text-sm--line-height));
|
|
2346
|
+
}
|
|
2347
|
+
}
|
|
2348
|
+
.\[\&\>label\>div\>div\>div\>input\]\:text-xs {
|
|
2349
|
+
& > label > div > div > div > input {
|
|
2309
2350
|
font-size: var(--text-xs);
|
|
2310
2351
|
line-height: var(--tw-leading, var(--text-xs--line-height));
|
|
2311
2352
|
}
|
|
2312
2353
|
}
|
|
2313
|
-
.\[\&\>label\>div\>span\]\:text-sm {
|
|
2314
|
-
& > label > div > span {
|
|
2354
|
+
.\[\&\>label\>div\>div\>span\]\:text-sm {
|
|
2355
|
+
& > label > div > div > span {
|
|
2315
2356
|
font-size: var(--text-sm);
|
|
2316
2357
|
line-height: var(--tw-leading, var(--text-sm--line-height));
|
|
2317
2358
|
}
|
|
2318
2359
|
}
|
|
2360
|
+
.\[\&\>label\>div\>div\>span\]\:text-text-80 {
|
|
2361
|
+
& > label > div > div > span {
|
|
2362
|
+
color: var(--color-text-80);
|
|
2363
|
+
}
|
|
2364
|
+
}
|
|
2319
2365
|
.\[\&\>label\>div\>span\]\:text-text-80 {
|
|
2320
2366
|
& > label > div > span {
|
|
2321
2367
|
color: var(--color-text-80);
|
|
@@ -2363,6 +2409,7 @@
|
|
|
2363
2409
|
--seq-color-background-raised: rgba(54, 54, 54, 0.7);
|
|
2364
2410
|
--seq-color-border-normal: rgba(255, 255, 255, 0.25);
|
|
2365
2411
|
--seq-color-border-focus: rgba(255, 255, 255, 0.5);
|
|
2412
|
+
--seq-color-border-error: rgba(255, 69, 0, 1);
|
|
2366
2413
|
--seq-color-button-glass: rgba(255, 255, 255, 0.15);
|
|
2367
2414
|
--seq-color-button-emphasis: rgba(0, 0, 0, 0.5);
|
|
2368
2415
|
--seq-color-button-inverse: rgba(255, 255, 255, 0.8);
|
|
@@ -2414,6 +2461,7 @@
|
|
|
2414
2461
|
--seq-color-background-raised: rgba(192, 192, 192, 0.7);
|
|
2415
2462
|
--seq-color-border-normal: rgba(0, 0, 0, 0.25);
|
|
2416
2463
|
--seq-color-border-focus: rgba(0, 0, 0, 0.5);
|
|
2464
|
+
--seq-color-border-error: rgba(255, 69, 0, 1);
|
|
2417
2465
|
--seq-color-button-glass: rgba(0, 0, 0, 0.15);
|
|
2418
2466
|
--seq-color-button-emphasis: rgba(255, 255, 255, 0.5);
|
|
2419
2467
|
--seq-color-button-inverse: rgba(0, 0, 0, 0.8);
|
|
@@ -2644,5 +2692,5 @@ video::-webkit-media-controls {
|
|
|
2644
2692
|
}
|
|
2645
2693
|
}
|
|
2646
2694
|
}
|
|
2647
|
-
/*! tailwindcss v4.1.
|
|
2695
|
+
/*! tailwindcss v4.1.5 | MIT License | https://tailwindcss.com */
|
|
2648
2696
|
/*# sourceMappingURL=index.css.map */
|