@0xsequence/marketplace-sdk 0.3.1 → 0.3.2

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/index.js CHANGED
@@ -1,161 +1,74 @@
1
- // ../../node_modules/.pnpm/@vanilla-extract+recipes@0.5.5_@vanilla-extract+css@1.16.1/node_modules/@vanilla-extract/recipes/dist/createRuntimeFn-62c9670f.esm.js
2
- function toPrimitive(t, r) {
3
- if ("object" != typeof t || !t) return t;
4
- var e = t[Symbol.toPrimitive];
5
- if (void 0 !== e) {
6
- var i = e.call(t, r || "default");
7
- if ("object" != typeof i) return i;
8
- throw new TypeError("@@toPrimitive must return a primitive value.");
9
- }
10
- return ("string" === r ? String : Number)(t);
11
- }
12
- function toPropertyKey(t) {
13
- var i = toPrimitive(t, "string");
14
- return "symbol" == typeof i ? i : String(i);
15
- }
16
- function _defineProperty(obj, key, value) {
17
- key = toPropertyKey(key);
18
- if (key in obj) {
19
- Object.defineProperty(obj, key, {
20
- value,
21
- enumerable: true,
22
- configurable: true,
23
- writable: true
24
- });
25
- } else {
26
- obj[key] = value;
27
- }
28
- return obj;
29
- }
30
- function ownKeys(e, r) {
31
- var t = Object.keys(e);
32
- if (Object.getOwnPropertySymbols) {
33
- var o = Object.getOwnPropertySymbols(e);
34
- r && (o = o.filter(function(r2) {
35
- return Object.getOwnPropertyDescriptor(e, r2).enumerable;
36
- })), t.push.apply(t, o);
37
- }
38
- return t;
39
- }
40
- function _objectSpread2(e) {
41
- for (var r = 1; r < arguments.length; r++) {
42
- var t = null != arguments[r] ? arguments[r] : {};
43
- r % 2 ? ownKeys(Object(t), true).forEach(function(r2) {
44
- _defineProperty(e, r2, t[r2]);
45
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r2) {
46
- Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
47
- });
48
- }
49
- return e;
50
- }
51
- function mapValues(input, fn) {
52
- var result = {};
53
- for (var _key in input) {
54
- result[_key] = fn(input[_key], _key);
55
- }
56
- return result;
57
- }
58
- var shouldApplyCompound = (compoundCheck, selections, defaultVariants) => {
59
- for (var key of Object.keys(compoundCheck)) {
60
- var _selections$key;
61
- if (compoundCheck[key] !== ((_selections$key = selections[key]) !== null && _selections$key !== void 0 ? _selections$key : defaultVariants[key])) {
62
- return false;
63
- }
64
- }
65
- return true;
66
- };
67
- var createRuntimeFn = (config) => {
68
- var runtimeFn = (options) => {
69
- var className = config.defaultClassName;
70
- var selections = _objectSpread2(_objectSpread2({}, config.defaultVariants), options);
71
- for (var variantName in selections) {
72
- var _selections$variantNa;
73
- var variantSelection = (_selections$variantNa = selections[variantName]) !== null && _selections$variantNa !== void 0 ? _selections$variantNa : config.defaultVariants[variantName];
74
- if (variantSelection != null) {
75
- var selection = variantSelection;
76
- if (typeof selection === "boolean") {
77
- selection = selection === true ? "true" : "false";
78
- }
79
- var selectionClassName = (
80
- // @ts-expect-error
81
- config.variantClassNames[variantName][selection]
82
- );
83
- if (selectionClassName) {
84
- className += " " + selectionClassName;
85
- }
86
- }
87
- }
88
- for (var [compoundCheck, compoundClassName] of config.compoundVariants) {
89
- if (shouldApplyCompound(compoundCheck, selections, config.defaultVariants)) {
90
- className += " " + compoundClassName;
91
- }
92
- }
93
- return className;
94
- };
95
- runtimeFn.variants = () => Object.keys(config.variantClassNames);
96
- runtimeFn.classNames = {
97
- get base() {
98
- return config.defaultClassName.split(" ")[0];
99
- },
100
- get variants() {
101
- return mapValues(config.variantClassNames, (classNames) => mapValues(classNames, (className) => className.split(" ")[0]));
102
- }
103
- };
104
- return runtimeFn;
105
- };
106
-
107
- // src/react/ui/icons/styles.css.ts
108
- var iconVariants = createRuntimeFn({ defaultClassName: "styles_iconVariants__1x12tbe0", variantClassNames: { size: { xs: "styles_iconVariants_size_xs__1x12tbe1", sm: "styles_iconVariants_size_sm__1x12tbe2", md: "styles_iconVariants_size_md__1x12tbe3", lg: "styles_iconVariants_size_lg__1x12tbe4", xl: "styles_iconVariants_size_xl__1x12tbe5" } }, defaultVariants: {}, compoundVariants: [] });
109
-
110
- // src/react/ui/modals/_internal/components/actionModal/styles.css.ts
111
- var cta = "styles_cta__1rop7tw0";
112
-
113
- // src/react/ui/modals/_internal/components/calendarPopover/styles.css.ts
114
- var dateSelectButton = "styles_dateSelectButton__1jc6p8j0";
115
- var dateSelectPopoverContent = "fyvr11h8 fyvr11hw fyvr11fw fyvr11gk fyvr11rs fyvr130l fyvr11xx fyvr11r0";
116
-
117
- // src/react/ui/modals/_internal/components/priceInput/styles.css.ts
118
- var priceInputCurrencyImage = "styles_priceInputCurrencyImage__6jjz8t1";
119
- var priceInputWrapper = "styles_priceInputWrapper__6jjz8t0";
120
-
121
- // src/react/ui/modals/_internal/components/quantityInput/styles.css.ts
122
- var quantityInputWrapper = "styles_quantityInputWrapper__50g4m90";
123
-
124
- // src/react/ui/modals/_internal/components/tokenPreview/styles.css.ts
125
- var tokenPreview = "fyvr1188 fyvr11ag fyvr11l8 fyvr11ow fyvr12g";
126
-
127
- // src/react/ui/modals/_internal/components/alertMessage/styles.css.ts
128
- var alertMessageBox = "fyvr11hc fyvr11i0 fyvr11g0 fyvr11go fyvr1vc fyvr1xg fyvr1zk fyvr111o fyvr11l8 fyvr11ow fyvr11o4 fyvr11ck";
129
- var alertMessageBoxVariants = { warning: "styles_alertMessageBoxVariants_warning__yzftal1", info: "styles_alertMessageBoxVariants_info__yzftal2" };
130
-
131
- // src/react/ui/modals/_internal/components/switchChainModal/styles.css.ts
132
- var switchChainCta = { "default": "styles_switchChainCtaBase__xmi06q1", pending: "styles_switchChainCta_pending__xmi06q3 styles_switchChainCtaBase__xmi06q1" };
133
- var switchChainModalContent = "modal_dialogContent_wide__1ypl6nt3 modal_dialogContentBase__1ypl6nt1 fyvr11hg fyvr11i4 fyvr11g4 fyvr11gs fyvr11l8 fyvr11wl fyvr11m0 fyvr11rs fyvr1vo fyvr1xs fyvr1zw fyvr1120 fyvr11lc fyvr11mc fyvr11cw";
134
-
135
- // src/react/ui/modals/SuccessfulPurchaseModal/styles.css.ts
136
- var collectiblesGrid = "styles_collectiblesGrid__1njkwfe0";
137
- var collectiblesGridImage = "styles_collectiblesGridImage__1njkwfe2";
138
- var collectiblesGridImagePale = "styles_collectiblesGridImagePale__1njkwfe3 styles_collectiblesGridImage__1njkwfe2";
139
- var collectiblesGridItem = "styles_collectiblesGridItem__1njkwfe1";
1
+ "use client"
2
+ import "./chunk-MJ4YU7RW.js";
3
+ import {
4
+ calculatePriceDifferencePercentage,
5
+ compareAddress,
6
+ getPresentableChainName,
7
+ getPublicRpcClient,
8
+ truncateEnd,
9
+ truncateMiddle
10
+ } from "./chunk-SPW24Y7I.js";
11
+ import "./chunk-MCI3KOSQ.js";
12
+ import {
13
+ EIP2981_ABI,
14
+ SequenceMarketplaceV1_ABI,
15
+ SequenceMarketplaceV2_ABI
16
+ } from "./chunk-3OHM45R3.js";
17
+ import {
18
+ ERC1155_ABI,
19
+ ERC20_ABI,
20
+ ERC721_ABI
21
+ } from "./chunk-WFE6OCYF.js";
22
+ import "./chunk-Q2BVDQ3G.js";
23
+ import {
24
+ CollectibleStatus,
25
+ CollectionStatus,
26
+ ContractType,
27
+ ExecuteType,
28
+ MarketplaceKind,
29
+ OrderSide,
30
+ OrderStatus,
31
+ OrderbookKind,
32
+ ProjectStatus,
33
+ PropertyType,
34
+ SortOrder,
35
+ SourceKind,
36
+ StepType,
37
+ TransactionCrypto,
38
+ WalletKind
39
+ } from "./chunk-GZG2QO64.js";
40
+ import "./chunk-NII6JJGH.js";
140
41
 
141
- // src/react/ui/modals/TransferModal/styles.css.ts
142
- var transferModalContent = "styles_transferModalContent__i1qz9g0 modal_dialogContent_wide__1ypl6nt3 modal_dialogContentBase__1ypl6nt1 fyvr11hg fyvr11i4 fyvr11g4 fyvr11gs fyvr11l8 fyvr11wl fyvr11m0 fyvr11rs fyvr1vo fyvr1xs fyvr1zw fyvr1120";
42
+ // src/consts.ts
43
+ var SEQUENCE_MARKET_V1_ADDRESS = "0xB537a160472183f2150d42EB1c3DD6684A55f74c";
143
44
  export {
144
- alertMessageBox,
145
- alertMessageBoxVariants,
146
- collectiblesGrid,
147
- collectiblesGridImage,
148
- collectiblesGridImagePale,
149
- collectiblesGridItem,
150
- cta,
151
- dateSelectButton,
152
- dateSelectPopoverContent,
153
- iconVariants,
154
- priceInputCurrencyImage,
155
- priceInputWrapper,
156
- quantityInputWrapper,
157
- switchChainCta,
158
- switchChainModalContent,
159
- tokenPreview,
160
- transferModalContent
45
+ CollectibleStatus,
46
+ CollectionStatus,
47
+ ContractType,
48
+ EIP2981_ABI,
49
+ ERC1155_ABI,
50
+ ERC20_ABI,
51
+ ERC721_ABI,
52
+ ExecuteType,
53
+ MarketplaceKind,
54
+ OrderSide,
55
+ OrderStatus,
56
+ OrderbookKind,
57
+ ProjectStatus,
58
+ PropertyType,
59
+ SEQUENCE_MARKET_V1_ADDRESS,
60
+ SequenceMarketplaceV1_ABI,
61
+ SequenceMarketplaceV2_ABI,
62
+ SortOrder,
63
+ SourceKind,
64
+ StepType,
65
+ TransactionCrypto,
66
+ WalletKind,
67
+ calculatePriceDifferencePercentage,
68
+ compareAddress,
69
+ getPresentableChainName,
70
+ getPublicRpcClient,
71
+ truncateEnd,
72
+ truncateMiddle
161
73
  };
74
+ //# sourceMappingURL=index.js.map
@@ -57,8 +57,8 @@ import {
57
57
  } from "../../chunk-O7UQGT43.js";
58
58
  import "../../chunk-Y7YO5TLE.js";
59
59
  import "../../chunk-7NJETFMF.js";
60
- import "../../chunk-SBVLWSRZ.js";
61
60
  import "../../chunk-NJ2GXOPW.js";
61
+ import "../../chunk-SBVLWSRZ.js";
62
62
  import "../../chunk-MJ4YU7RW.js";
63
63
  import "../../chunk-SPW24Y7I.js";
64
64
  import "../../chunk-MCI3KOSQ.js";
@@ -73,8 +73,8 @@ import {
73
73
  } from "../chunk-O7UQGT43.js";
74
74
  import "../chunk-Y7YO5TLE.js";
75
75
  import "../chunk-7NJETFMF.js";
76
- import "../chunk-SBVLWSRZ.js";
77
76
  import "../chunk-NJ2GXOPW.js";
77
+ import "../chunk-SBVLWSRZ.js";
78
78
  import "../chunk-MJ4YU7RW.js";
79
79
  import "../chunk-SPW24Y7I.js";
80
80
  import "../chunk-MCI3KOSQ.js";
@@ -9,8 +9,8 @@ import "../../../chunk-O642NH7U.js";
9
9
  import "../../../chunk-O7UQGT43.js";
10
10
  import "../../../chunk-Y7YO5TLE.js";
11
11
  import "../../../chunk-7NJETFMF.js";
12
- import "../../../chunk-SBVLWSRZ.js";
13
12
  import "../../../chunk-NJ2GXOPW.js";
13
+ import "../../../chunk-SBVLWSRZ.js";
14
14
  import "../../../chunk-MJ4YU7RW.js";
15
15
  import "../../../chunk-SPW24Y7I.js";
16
16
  import "../../../chunk-MCI3KOSQ.js";
@@ -16,8 +16,8 @@ import "../../chunk-O642NH7U.js";
16
16
  import "../../chunk-O7UQGT43.js";
17
17
  import "../../chunk-Y7YO5TLE.js";
18
18
  import "../../chunk-7NJETFMF.js";
19
- import "../../chunk-SBVLWSRZ.js";
20
19
  import "../../chunk-NJ2GXOPW.js";
20
+ import "../../chunk-SBVLWSRZ.js";
21
21
  import "../../chunk-MJ4YU7RW.js";
22
22
  import "../../chunk-SPW24Y7I.js";
23
23
  import "../../chunk-MCI3KOSQ.js";
@@ -1,5 +1,5 @@
1
1
  declare const dialogOverlay: string;
2
- declare const dialogContent: Record<"wide" | "narrow", string>;
2
+ declare const dialogContent: Record<"narrow" | "wide", string>;
3
3
  declare const closeButton: string;
4
4
 
5
5
  export { closeButton, dialogContent, dialogOverlay };
@@ -43,7 +43,7 @@ declare const alertMessageBox: string;
43
43
  declare const alertMessageBoxVariants: Record<"info" | "warning", string>;
44
44
 
45
45
  declare const switchChainModalContent: string;
46
- declare const switchChainCta: Record<"pending" | "default", string>;
46
+ declare const switchChainCta: Record<"default" | "pending", string>;
47
47
 
48
48
  declare const collectiblesGrid: string;
49
49
  declare const collectiblesGridItem: string;
@@ -22,10 +22,10 @@ import {
22
22
  switchChainCta,
23
23
  switchChainModalContent
24
24
  } from "../chunk-7NJETFMF.js";
25
+ import "../chunk-NJ2GXOPW.js";
25
26
  import {
26
27
  iconVariants
27
28
  } from "../chunk-SBVLWSRZ.js";
28
- import "../chunk-NJ2GXOPW.js";
29
29
  export {
30
30
  alertMessageBox,
31
31
  alertMessageBoxVariants,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@0xsequence/marketplace-sdk",
3
3
  "private": false,
4
- "version": "0.3.1",
4
+ "version": "0.3.2",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {