@tuwaio/nova-connect 1.0.0-fix-test-alpha.61.e356934 → 1.0.0-fix-test-alpha.62.a3a7178
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/README.md +4 -3
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -596
- package/dist/index.d.ts +13 -596
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/providers/index.cjs +3 -3
- package/dist/providers/index.cjs.map +1 -1
- package/dist/providers/index.d.cts +2 -38
- package/dist/providers/index.d.ts +2 -38
- package/dist/providers/index.js +3 -3
- package/dist/providers/index.js.map +1 -1
- package/package.json +8 -8
- package/dist/evm/index.d.cts +0 -31
- package/dist/evm/index.d.ts +0 -31
|
@@ -166,20 +166,17 @@ interface NovaConnectProviderType {
|
|
|
166
166
|
type CustomIconProps = {
|
|
167
167
|
isCopied: boolean;
|
|
168
168
|
className?: string;
|
|
169
|
-
style?: React.CSSProperties;
|
|
170
169
|
'aria-hidden'?: boolean;
|
|
171
170
|
};
|
|
172
171
|
type CustomTitleProps = {
|
|
173
172
|
title: string;
|
|
174
173
|
titleId: string;
|
|
175
174
|
className?: string;
|
|
176
|
-
style?: React.CSSProperties;
|
|
177
175
|
};
|
|
178
176
|
type CustomDescriptionProps = {
|
|
179
177
|
rawError: string;
|
|
180
178
|
descriptionId: string;
|
|
181
179
|
className?: string;
|
|
182
|
-
style?: React.CSSProperties;
|
|
183
180
|
};
|
|
184
181
|
type CustomButtonContentProps = {
|
|
185
182
|
icon: ReactNode;
|
|
@@ -192,9 +189,9 @@ type CustomButtonContentProps = {
|
|
|
192
189
|
*/
|
|
193
190
|
type ToastErrorCustomization = {
|
|
194
191
|
/** Override container element props */
|
|
195
|
-
containerProps?: Partial<ComponentPropsWithoutRef<'div'>>;
|
|
192
|
+
containerProps?: Partial<Omit<ComponentPropsWithoutRef<'div'>, 'style'>>;
|
|
196
193
|
/** Override button element props */
|
|
197
|
-
buttonProps?: Partial<ComponentPropsWithoutRef<'button'>>;
|
|
194
|
+
buttonProps?: Partial<Omit<ComponentPropsWithoutRef<'button'>, 'style'>>;
|
|
198
195
|
/** Custom components */
|
|
199
196
|
components?: {
|
|
200
197
|
/** Custom icon component */
|
|
@@ -231,31 +228,6 @@ type ToastErrorCustomization = {
|
|
|
231
228
|
isCopied: boolean;
|
|
232
229
|
}) => string;
|
|
233
230
|
};
|
|
234
|
-
/** Custom style generators */
|
|
235
|
-
styles?: {
|
|
236
|
-
/** Function to generate container styles */
|
|
237
|
-
container?: (params: {
|
|
238
|
-
hasTitle: boolean;
|
|
239
|
-
hasError: boolean;
|
|
240
|
-
}) => React.CSSProperties;
|
|
241
|
-
/** Function to generate title styles */
|
|
242
|
-
title?: (params: {
|
|
243
|
-
title: string;
|
|
244
|
-
}) => React.CSSProperties;
|
|
245
|
-
/** Function to generate description styles */
|
|
246
|
-
description?: (params: {
|
|
247
|
-
rawError: string;
|
|
248
|
-
}) => React.CSSProperties;
|
|
249
|
-
/** Function to generate button styles */
|
|
250
|
-
button?: (params: {
|
|
251
|
-
isCopied: boolean;
|
|
252
|
-
disabled: boolean;
|
|
253
|
-
}) => React.CSSProperties;
|
|
254
|
-
/** Function to generate icon styles */
|
|
255
|
-
icon?: (params: {
|
|
256
|
-
isCopied: boolean;
|
|
257
|
-
}) => React.CSSProperties;
|
|
258
|
-
};
|
|
259
231
|
/** Custom event handlers */
|
|
260
232
|
handlers?: {
|
|
261
233
|
/** Custom click handler wrapper */
|
|
@@ -296,14 +268,6 @@ type ErrorsProviderCustomization = {
|
|
|
296
268
|
errorType: 'wallet' | 'switch' | null;
|
|
297
269
|
}) => string;
|
|
298
270
|
};
|
|
299
|
-
/** Custom style generators */
|
|
300
|
-
styles?: {
|
|
301
|
-
/** Function to generate container styles */
|
|
302
|
-
container?: (params: {
|
|
303
|
-
hasErrors: boolean;
|
|
304
|
-
errorType: 'wallet' | 'switch' | null;
|
|
305
|
-
}) => React.CSSProperties;
|
|
306
|
-
};
|
|
307
271
|
/** Custom toast options generators */
|
|
308
272
|
toastOptions?: {
|
|
309
273
|
/** Function to generate toast options */
|
|
@@ -166,20 +166,17 @@ interface NovaConnectProviderType {
|
|
|
166
166
|
type CustomIconProps = {
|
|
167
167
|
isCopied: boolean;
|
|
168
168
|
className?: string;
|
|
169
|
-
style?: React.CSSProperties;
|
|
170
169
|
'aria-hidden'?: boolean;
|
|
171
170
|
};
|
|
172
171
|
type CustomTitleProps = {
|
|
173
172
|
title: string;
|
|
174
173
|
titleId: string;
|
|
175
174
|
className?: string;
|
|
176
|
-
style?: React.CSSProperties;
|
|
177
175
|
};
|
|
178
176
|
type CustomDescriptionProps = {
|
|
179
177
|
rawError: string;
|
|
180
178
|
descriptionId: string;
|
|
181
179
|
className?: string;
|
|
182
|
-
style?: React.CSSProperties;
|
|
183
180
|
};
|
|
184
181
|
type CustomButtonContentProps = {
|
|
185
182
|
icon: ReactNode;
|
|
@@ -192,9 +189,9 @@ type CustomButtonContentProps = {
|
|
|
192
189
|
*/
|
|
193
190
|
type ToastErrorCustomization = {
|
|
194
191
|
/** Override container element props */
|
|
195
|
-
containerProps?: Partial<ComponentPropsWithoutRef<'div'>>;
|
|
192
|
+
containerProps?: Partial<Omit<ComponentPropsWithoutRef<'div'>, 'style'>>;
|
|
196
193
|
/** Override button element props */
|
|
197
|
-
buttonProps?: Partial<ComponentPropsWithoutRef<'button'>>;
|
|
194
|
+
buttonProps?: Partial<Omit<ComponentPropsWithoutRef<'button'>, 'style'>>;
|
|
198
195
|
/** Custom components */
|
|
199
196
|
components?: {
|
|
200
197
|
/** Custom icon component */
|
|
@@ -231,31 +228,6 @@ type ToastErrorCustomization = {
|
|
|
231
228
|
isCopied: boolean;
|
|
232
229
|
}) => string;
|
|
233
230
|
};
|
|
234
|
-
/** Custom style generators */
|
|
235
|
-
styles?: {
|
|
236
|
-
/** Function to generate container styles */
|
|
237
|
-
container?: (params: {
|
|
238
|
-
hasTitle: boolean;
|
|
239
|
-
hasError: boolean;
|
|
240
|
-
}) => React.CSSProperties;
|
|
241
|
-
/** Function to generate title styles */
|
|
242
|
-
title?: (params: {
|
|
243
|
-
title: string;
|
|
244
|
-
}) => React.CSSProperties;
|
|
245
|
-
/** Function to generate description styles */
|
|
246
|
-
description?: (params: {
|
|
247
|
-
rawError: string;
|
|
248
|
-
}) => React.CSSProperties;
|
|
249
|
-
/** Function to generate button styles */
|
|
250
|
-
button?: (params: {
|
|
251
|
-
isCopied: boolean;
|
|
252
|
-
disabled: boolean;
|
|
253
|
-
}) => React.CSSProperties;
|
|
254
|
-
/** Function to generate icon styles */
|
|
255
|
-
icon?: (params: {
|
|
256
|
-
isCopied: boolean;
|
|
257
|
-
}) => React.CSSProperties;
|
|
258
|
-
};
|
|
259
231
|
/** Custom event handlers */
|
|
260
232
|
handlers?: {
|
|
261
233
|
/** Custom click handler wrapper */
|
|
@@ -296,14 +268,6 @@ type ErrorsProviderCustomization = {
|
|
|
296
268
|
errorType: 'wallet' | 'switch' | null;
|
|
297
269
|
}) => string;
|
|
298
270
|
};
|
|
299
|
-
/** Custom style generators */
|
|
300
|
-
styles?: {
|
|
301
|
-
/** Function to generate container styles */
|
|
302
|
-
container?: (params: {
|
|
303
|
-
hasErrors: boolean;
|
|
304
|
-
errorType: 'wallet' | 'switch' | null;
|
|
305
|
-
}) => React.CSSProperties;
|
|
306
|
-
};
|
|
307
271
|
/** Custom toast options generators */
|
|
308
272
|
toastOptions?: {
|
|
309
273
|
/** Function to generate toast options */
|