@medialane/ui 0.310.0 → 0.312.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.
Files changed (84) hide show
  1. package/dist/components/activity-card.cjs +2 -2
  2. package/dist/components/activity-card.cjs.map +1 -1
  3. package/dist/components/activity-card.js +2 -2
  4. package/dist/components/activity-card.js.map +1 -1
  5. package/dist/components/animated-token-media.cjs +2 -2
  6. package/dist/components/animated-token-media.cjs.map +1 -1
  7. package/dist/components/animated-token-media.js +2 -2
  8. package/dist/components/animated-token-media.js.map +1 -1
  9. package/dist/components/asset-card.cjs +1 -1
  10. package/dist/components/asset-card.cjs.map +1 -1
  11. package/dist/components/asset-card.js +1 -1
  12. package/dist/components/asset-card.js.map +1 -1
  13. package/dist/components/badge.d.cts +1 -1
  14. package/dist/components/badge.d.ts +1 -1
  15. package/dist/components/button.d.cts +1 -1
  16. package/dist/components/button.d.ts +1 -1
  17. package/dist/components/collection-card.cjs +1 -1
  18. package/dist/components/collection-card.cjs.map +1 -1
  19. package/dist/components/collection-card.js +1 -1
  20. package/dist/components/collection-card.js.map +1 -1
  21. package/dist/components/creators-page.cjs +2 -2
  22. package/dist/components/creators-page.cjs.map +1 -1
  23. package/dist/components/creators-page.js +2 -2
  24. package/dist/components/creators-page.js.map +1 -1
  25. package/dist/components/drop/drop-card.cjs +1 -1
  26. package/dist/components/drop/drop-card.cjs.map +1 -1
  27. package/dist/components/drop/drop-card.js +1 -1
  28. package/dist/components/drop/drop-card.js.map +1 -1
  29. package/dist/components/editions-page.cjs +1 -1
  30. package/dist/components/editions-page.cjs.map +1 -1
  31. package/dist/components/editions-page.js +1 -1
  32. package/dist/components/editions-page.js.map +1 -1
  33. package/dist/components/launchpad/edition-mint-schema.d.cts +19 -19
  34. package/dist/components/launchpad/edition-mint-schema.d.ts +19 -19
  35. package/dist/components/launchpad/pop-create-schema.d.cts +10 -10
  36. package/dist/components/launchpad/pop-create-schema.d.ts +10 -10
  37. package/dist/components/listing-card.cjs +4 -4
  38. package/dist/components/listing-card.cjs.map +1 -1
  39. package/dist/components/listing-card.js +4 -4
  40. package/dist/components/listing-card.js.map +1 -1
  41. package/dist/components/media-wallet/media-wallet-send.cjs +2 -5
  42. package/dist/components/media-wallet/media-wallet-send.cjs.map +1 -1
  43. package/dist/components/media-wallet/media-wallet-send.js +2 -5
  44. package/dist/components/media-wallet/media-wallet-send.js.map +1 -1
  45. package/dist/components/media-wallet/nft-strip.cjs +1 -1
  46. package/dist/components/media-wallet/nft-strip.cjs.map +1 -1
  47. package/dist/components/media-wallet/nft-strip.js +1 -1
  48. package/dist/components/media-wallet/nft-strip.js.map +1 -1
  49. package/dist/components/remix-browse-page.cjs +1 -1
  50. package/dist/components/remix-browse-page.cjs.map +1 -1
  51. package/dist/components/remix-browse-page.js +1 -1
  52. package/dist/components/remix-browse-page.js.map +1 -1
  53. package/dist/components/token-card.cjs +1 -1
  54. package/dist/components/token-card.cjs.map +1 -1
  55. package/dist/components/token-card.js +1 -1
  56. package/dist/components/token-card.js.map +1 -1
  57. package/dist/components/transfer-collection-ownership.cjs +1 -1
  58. package/dist/components/transfer-collection-ownership.cjs.map +1 -1
  59. package/dist/components/transfer-collection-ownership.js +1 -1
  60. package/dist/components/transfer-collection-ownership.js.map +1 -1
  61. package/dist/index.d.cts +0 -1
  62. package/dist/index.d.ts +0 -1
  63. package/dist/medialane.css +7 -0
  64. package/dist/utils/send-token.cjs +40 -0
  65. package/dist/utils/send-token.cjs.map +1 -0
  66. package/dist/utils/send-token.d.cts +19 -0
  67. package/dist/utils/send-token.d.ts +19 -0
  68. package/dist/utils/send-token.js +16 -0
  69. package/dist/utils/send-token.js.map +1 -0
  70. package/dist/utils/use-collection-settings.d.cts +19 -19
  71. package/dist/utils/use-collection-settings.d.ts +19 -19
  72. package/dist/utils/use-collections.d.cts +212 -205
  73. package/dist/utils/use-collections.d.ts +212 -205
  74. package/dist/utils/use-orders.d.cts +299 -299
  75. package/dist/utils/use-orders.d.ts +299 -299
  76. package/dist/utils/use-pop.d.cts +57 -55
  77. package/dist/utils/use-pop.d.ts +57 -55
  78. package/dist/utils/use-tiers.d.cts +76 -73
  79. package/dist/utils/use-tiers.d.ts +76 -73
  80. package/dist/utils/use-tokens-by-ip-type.d.cts +78 -77
  81. package/dist/utils/use-tokens-by-ip-type.d.ts +78 -77
  82. package/dist/utils/use-tokens.d.cts +234 -229
  83. package/dist/utils/use-tokens.d.ts +234 -229
  84. package/package.json +3 -3
@@ -1,91 +1,91 @@
1
1
  import * as swr from 'swr';
2
2
  import * as _medialane_sdk from '@medialane/sdk';
3
3
  import { ApiResponse } from '@medialane/sdk';
4
- import * as zod from 'zod';
5
4
 
6
5
  declare function useTokensByIpType(ipTypeSlug: string | null, page?: number, limit?: number): {
7
6
  tokens: {
7
+ id: string;
8
8
  chain: string;
9
+ contractAddress: string;
9
10
  tokenId: string;
10
11
  owner: string | null;
11
12
  tokenUri: string | null;
12
- contractAddress: string;
13
- id: string;
14
- createdAt: string;
15
- updatedAt: string;
16
13
  metadataStatus: "PENDING" | "FETCHING" | "FETCHED" | "FAILED";
17
14
  standard: "ERC721" | "ERC1155" | null;
18
15
  metadata: {
19
16
  name: string | null;
20
17
  description: string | null;
21
18
  image: string | null;
22
- author: string | null;
23
19
  animationUrl: string | null;
24
- attributes: zod.objectOutputType<{
25
- trait_type: zod.ZodString;
26
- value: zod.ZodUnion<[zod.ZodString, zod.ZodNumber, zod.ZodBoolean]>;
27
- display_type: zod.ZodOptional<zod.ZodString>;
28
- }, zod.ZodTypeAny, "passthrough">[] | null;
20
+ attributes: {
21
+ [x: string]: unknown;
22
+ trait_type: string;
23
+ value: string | number | boolean;
24
+ display_type?: string | undefined;
25
+ }[] | null;
29
26
  ipType: string | null;
30
27
  licenseType: string | null;
31
28
  commercialUse: boolean | null;
29
+ author: string | null;
32
30
  externalUrl: string | null;
33
31
  };
34
32
  balances: {
35
- amount: string;
36
33
  owner: string;
34
+ amount: string;
37
35
  }[] | null;
38
36
  activeOrders: {
39
- status: "ACTIVE" | "FULFILLED" | "CANCELLED" | "EXPIRED";
37
+ id: string;
40
38
  chain: string;
41
- offerer: string;
42
- nftContract: string | null;
43
- price: {
44
- currency: string | null;
45
- raw: string | null;
46
- formatted: string | null;
47
- decimals: number;
48
- };
49
- endTime: string;
50
- fulfiller: string | null;
51
39
  orderHash: string;
52
- startTime: string;
53
- txHash: {
54
- created: string | null;
55
- fulfilled: string | null;
56
- cancelled: string | null;
57
- };
58
- token: {
59
- name: string | null;
60
- description: string | null;
61
- image: string | null;
62
- animationUrl: string | null;
63
- } | null;
40
+ offerer: string;
64
41
  offer: {
65
- token: string;
66
42
  itemType: string;
43
+ token: string;
67
44
  identifier: string;
68
45
  startAmount: string;
69
46
  endAmount: string;
70
47
  };
71
- id: string;
72
48
  consideration: {
73
- recipient: string;
74
- token: string;
75
49
  itemType: string;
50
+ token: string;
76
51
  identifier: string;
77
52
  startAmount: string;
78
53
  endAmount: string;
54
+ recipient: string;
79
55
  };
56
+ startTime: string;
57
+ endTime: string;
58
+ status: "ACTIVE" | "FULFILLED" | "CANCELLED" | "EXPIRED";
59
+ fulfiller: string | null;
60
+ nftContract: string | null;
80
61
  nftTokenId: string | null;
62
+ price: {
63
+ raw: string | null;
64
+ formatted: string | null;
65
+ currency: string | null;
66
+ decimals: number;
67
+ };
68
+ txHash: {
69
+ created: string | null;
70
+ fulfilled: string | null;
71
+ cancelled: string | null;
72
+ };
81
73
  createdBlockNumber: string;
82
74
  remainingAmount: string | null;
83
75
  createdAt: string;
84
76
  updatedAt: string;
77
+ token: {
78
+ name: string | null;
79
+ image: string | null;
80
+ description: string | null;
81
+ animationUrl: string | null;
82
+ } | null;
85
83
  parentOrderHash?: string | null | undefined;
86
84
  counterOfferMessage?: string | null | undefined;
87
85
  hasActiveCounterOffer?: boolean | undefined;
88
86
  }[];
87
+ createdAt: string;
88
+ updatedAt: string;
89
89
  holderCount?: number | undefined;
90
90
  supply?: string | undefined;
91
91
  }[];
@@ -93,87 +93,88 @@ declare function useTokensByIpType(ipTypeSlug: string | null, page?: number, lim
93
93
  isLoading: boolean;
94
94
  error: any;
95
95
  mutate: swr.KeyedMutator<ApiResponse<{
96
+ id: string;
96
97
  chain: string;
98
+ contractAddress: string;
97
99
  tokenId: string;
98
100
  owner: string | null;
99
101
  tokenUri: string | null;
100
- contractAddress: string;
101
- id: string;
102
- createdAt: string;
103
- updatedAt: string;
104
102
  metadataStatus: "PENDING" | "FETCHING" | "FETCHED" | "FAILED";
105
103
  standard: "ERC721" | "ERC1155" | null;
106
104
  metadata: {
107
105
  name: string | null;
108
106
  description: string | null;
109
107
  image: string | null;
110
- author: string | null;
111
108
  animationUrl: string | null;
112
- attributes: zod.objectOutputType<{
113
- trait_type: zod.ZodString;
114
- value: zod.ZodUnion<[zod.ZodString, zod.ZodNumber, zod.ZodBoolean]>;
115
- display_type: zod.ZodOptional<zod.ZodString>;
116
- }, zod.ZodTypeAny, "passthrough">[] | null;
109
+ attributes: {
110
+ [x: string]: unknown;
111
+ trait_type: string;
112
+ value: string | number | boolean;
113
+ display_type?: string | undefined;
114
+ }[] | null;
117
115
  ipType: string | null;
118
116
  licenseType: string | null;
119
117
  commercialUse: boolean | null;
118
+ author: string | null;
120
119
  externalUrl: string | null;
121
120
  };
122
121
  balances: {
123
- amount: string;
124
122
  owner: string;
123
+ amount: string;
125
124
  }[] | null;
126
125
  activeOrders: {
127
- status: "ACTIVE" | "FULFILLED" | "CANCELLED" | "EXPIRED";
126
+ id: string;
128
127
  chain: string;
129
- offerer: string;
130
- nftContract: string | null;
131
- price: {
132
- currency: string | null;
133
- raw: string | null;
134
- formatted: string | null;
135
- decimals: number;
136
- };
137
- endTime: string;
138
- fulfiller: string | null;
139
128
  orderHash: string;
140
- startTime: string;
141
- txHash: {
142
- created: string | null;
143
- fulfilled: string | null;
144
- cancelled: string | null;
145
- };
146
- token: {
147
- name: string | null;
148
- description: string | null;
149
- image: string | null;
150
- animationUrl: string | null;
151
- } | null;
129
+ offerer: string;
152
130
  offer: {
153
- token: string;
154
131
  itemType: string;
132
+ token: string;
155
133
  identifier: string;
156
134
  startAmount: string;
157
135
  endAmount: string;
158
136
  };
159
- id: string;
160
137
  consideration: {
161
- recipient: string;
162
- token: string;
163
138
  itemType: string;
139
+ token: string;
164
140
  identifier: string;
165
141
  startAmount: string;
166
142
  endAmount: string;
143
+ recipient: string;
167
144
  };
145
+ startTime: string;
146
+ endTime: string;
147
+ status: "ACTIVE" | "FULFILLED" | "CANCELLED" | "EXPIRED";
148
+ fulfiller: string | null;
149
+ nftContract: string | null;
168
150
  nftTokenId: string | null;
151
+ price: {
152
+ raw: string | null;
153
+ formatted: string | null;
154
+ currency: string | null;
155
+ decimals: number;
156
+ };
157
+ txHash: {
158
+ created: string | null;
159
+ fulfilled: string | null;
160
+ cancelled: string | null;
161
+ };
169
162
  createdBlockNumber: string;
170
163
  remainingAmount: string | null;
171
164
  createdAt: string;
172
165
  updatedAt: string;
166
+ token: {
167
+ name: string | null;
168
+ image: string | null;
169
+ description: string | null;
170
+ animationUrl: string | null;
171
+ } | null;
173
172
  parentOrderHash?: string | null | undefined;
174
173
  counterOfferMessage?: string | null | undefined;
175
174
  hasActiveCounterOffer?: boolean | undefined;
176
175
  }[];
176
+ createdAt: string;
177
+ updatedAt: string;
177
178
  holderCount?: number | undefined;
178
179
  supply?: string | undefined;
179
180
  }[]>>;