@embarkai/ui-kit 0.4.41 → 0.4.43
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/iframe/index.html +1 -1
- package/dist/iframe/main.js +1 -1
- package/dist/index.cjs +7109 -6997
- package/dist/index.d.cts +43 -4
- package/dist/index.d.ts +43 -4
- package/dist/index.js +6012 -5897
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BatchOperation as BatchOperation$1 } from '@embarkai/core';
|
|
2
2
|
export { wagmiConfig } from '@embarkai/core';
|
|
3
3
|
import * as react from 'react';
|
|
4
|
-
import react__default, { ReactNode,
|
|
4
|
+
import react__default, { ReactNode, RefObject, FC, HTMLAttributes, ButtonHTMLAttributes } from 'react';
|
|
5
5
|
import { BlockscoutTokenBalance } from '@embarkai/core/clients';
|
|
6
6
|
import * as viem from 'viem';
|
|
7
7
|
import { Address as Address$1, Hex, PublicClient, Chain, Hash as Hash$1, TransactionReceipt } from 'viem';
|
|
@@ -364,7 +364,7 @@ interface CallbacksConfig {
|
|
|
364
364
|
onWalletReady?: (status: WalletReadyStatus$1) => void;
|
|
365
365
|
}
|
|
366
366
|
interface UIContextType {
|
|
367
|
-
config:
|
|
367
|
+
config: RefObject<ProviderConfig>;
|
|
368
368
|
updateConfig: (updates: Partial<ProviderConfig>) => void;
|
|
369
369
|
/**
|
|
370
370
|
* Legacy snapshot of callbacks from provider props.
|
|
@@ -373,7 +373,7 @@ interface UIContextType {
|
|
|
373
373
|
* @deprecated
|
|
374
374
|
*/
|
|
375
375
|
callbacks?: CallbacksConfig;
|
|
376
|
-
callbacksRef:
|
|
376
|
+
callbacksRef: RefObject<CallbacksConfig | undefined>;
|
|
377
377
|
updateCallbacks: (updates: Partial<CallbacksConfig> | null) => void;
|
|
378
378
|
}
|
|
379
379
|
interface ProviderProps {
|
|
@@ -1088,7 +1088,7 @@ declare function useColorMode(): {
|
|
|
1088
1088
|
};
|
|
1089
1089
|
|
|
1090
1090
|
declare const buttonVariants: (props?: {
|
|
1091
|
-
variant?: "outline" | "default" | "ghost";
|
|
1091
|
+
variant?: "outline" | "default" | "default-glow" | "secondary" | "secondary-glow" | "ghost";
|
|
1092
1092
|
size?: "small" | "large" | "medium" | "icon";
|
|
1093
1093
|
} & class_variance_authority_types.ClassProp) => string;
|
|
1094
1094
|
interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
@@ -2283,6 +2283,13 @@ declare const PASSPORT_TRANSLATIONS: {
|
|
|
2283
2283
|
next: string;
|
|
2284
2284
|
prev: string;
|
|
2285
2285
|
page: string;
|
|
2286
|
+
loading: string;
|
|
2287
|
+
max: string;
|
|
2288
|
+
min: string;
|
|
2289
|
+
search: string;
|
|
2290
|
+
select: string;
|
|
2291
|
+
selectAll: string;
|
|
2292
|
+
selectNone: string;
|
|
2286
2293
|
errors: {
|
|
2287
2294
|
oops: string;
|
|
2288
2295
|
};
|
|
@@ -2411,6 +2418,12 @@ declare const PASSPORT_TRANSLATIONS: {
|
|
|
2411
2418
|
selectPaymentMode: string;
|
|
2412
2419
|
enterAmount: string;
|
|
2413
2420
|
purchaseSummary: string;
|
|
2421
|
+
actions: {
|
|
2422
|
+
limitsCheck: string;
|
|
2423
|
+
estimateFees: string;
|
|
2424
|
+
estimatiing: string;
|
|
2425
|
+
confirmPurchase: string;
|
|
2426
|
+
};
|
|
2414
2427
|
summary: {
|
|
2415
2428
|
youPay: string;
|
|
2416
2429
|
youReceive: string;
|
|
@@ -2597,6 +2610,13 @@ declare const PASSPORT_TRANSLATIONS: {
|
|
|
2597
2610
|
next: string;
|
|
2598
2611
|
prev: string;
|
|
2599
2612
|
page: string;
|
|
2613
|
+
loading: string;
|
|
2614
|
+
max: string;
|
|
2615
|
+
min: string;
|
|
2616
|
+
search: string;
|
|
2617
|
+
select: string;
|
|
2618
|
+
selectAll: string;
|
|
2619
|
+
selectNone: string;
|
|
2600
2620
|
errors: {
|
|
2601
2621
|
oops: string;
|
|
2602
2622
|
};
|
|
@@ -2725,6 +2745,12 @@ declare const PASSPORT_TRANSLATIONS: {
|
|
|
2725
2745
|
selectPaymentMode: string;
|
|
2726
2746
|
enterAmount: string;
|
|
2727
2747
|
purchaseSummary: string;
|
|
2748
|
+
actions: {
|
|
2749
|
+
limitsCheck: string;
|
|
2750
|
+
estimateFees: string;
|
|
2751
|
+
estimatiing: string;
|
|
2752
|
+
confirmPurchase: string;
|
|
2753
|
+
};
|
|
2728
2754
|
summary: {
|
|
2729
2755
|
youPay: string;
|
|
2730
2756
|
youReceive: string;
|
|
@@ -2911,6 +2937,13 @@ declare const PASSPORT_TRANSLATIONS: {
|
|
|
2911
2937
|
next: string;
|
|
2912
2938
|
prev: string;
|
|
2913
2939
|
page: string;
|
|
2940
|
+
loading: string;
|
|
2941
|
+
max: string;
|
|
2942
|
+
min: string;
|
|
2943
|
+
search: string;
|
|
2944
|
+
select: string;
|
|
2945
|
+
selectAll: string;
|
|
2946
|
+
selectNone: string;
|
|
2914
2947
|
errors: {
|
|
2915
2948
|
oops: string;
|
|
2916
2949
|
};
|
|
@@ -3039,6 +3072,12 @@ declare const PASSPORT_TRANSLATIONS: {
|
|
|
3039
3072
|
selectPaymentMode: string;
|
|
3040
3073
|
enterAmount: string;
|
|
3041
3074
|
purchaseSummary: string;
|
|
3075
|
+
actions: {
|
|
3076
|
+
limitsCheck: string;
|
|
3077
|
+
estimateFees: string;
|
|
3078
|
+
estimatiing: string;
|
|
3079
|
+
confirmPurchase: string;
|
|
3080
|
+
};
|
|
3042
3081
|
summary: {
|
|
3043
3082
|
youPay: string;
|
|
3044
3083
|
youReceive: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BatchOperation as BatchOperation$1 } from '@embarkai/core';
|
|
2
2
|
export { wagmiConfig } from '@embarkai/core';
|
|
3
3
|
import * as react from 'react';
|
|
4
|
-
import react__default, { ReactNode,
|
|
4
|
+
import react__default, { ReactNode, RefObject, FC, HTMLAttributes, ButtonHTMLAttributes } from 'react';
|
|
5
5
|
import { BlockscoutTokenBalance } from '@embarkai/core/clients';
|
|
6
6
|
import * as viem from 'viem';
|
|
7
7
|
import { Address as Address$1, Hex, PublicClient, Chain, Hash as Hash$1, TransactionReceipt } from 'viem';
|
|
@@ -364,7 +364,7 @@ interface CallbacksConfig {
|
|
|
364
364
|
onWalletReady?: (status: WalletReadyStatus$1) => void;
|
|
365
365
|
}
|
|
366
366
|
interface UIContextType {
|
|
367
|
-
config:
|
|
367
|
+
config: RefObject<ProviderConfig>;
|
|
368
368
|
updateConfig: (updates: Partial<ProviderConfig>) => void;
|
|
369
369
|
/**
|
|
370
370
|
* Legacy snapshot of callbacks from provider props.
|
|
@@ -373,7 +373,7 @@ interface UIContextType {
|
|
|
373
373
|
* @deprecated
|
|
374
374
|
*/
|
|
375
375
|
callbacks?: CallbacksConfig;
|
|
376
|
-
callbacksRef:
|
|
376
|
+
callbacksRef: RefObject<CallbacksConfig | undefined>;
|
|
377
377
|
updateCallbacks: (updates: Partial<CallbacksConfig> | null) => void;
|
|
378
378
|
}
|
|
379
379
|
interface ProviderProps {
|
|
@@ -1088,7 +1088,7 @@ declare function useColorMode(): {
|
|
|
1088
1088
|
};
|
|
1089
1089
|
|
|
1090
1090
|
declare const buttonVariants: (props?: {
|
|
1091
|
-
variant?: "outline" | "default" | "ghost";
|
|
1091
|
+
variant?: "outline" | "default" | "default-glow" | "secondary" | "secondary-glow" | "ghost";
|
|
1092
1092
|
size?: "small" | "large" | "medium" | "icon";
|
|
1093
1093
|
} & class_variance_authority_types.ClassProp) => string;
|
|
1094
1094
|
interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
@@ -2283,6 +2283,13 @@ declare const PASSPORT_TRANSLATIONS: {
|
|
|
2283
2283
|
next: string;
|
|
2284
2284
|
prev: string;
|
|
2285
2285
|
page: string;
|
|
2286
|
+
loading: string;
|
|
2287
|
+
max: string;
|
|
2288
|
+
min: string;
|
|
2289
|
+
search: string;
|
|
2290
|
+
select: string;
|
|
2291
|
+
selectAll: string;
|
|
2292
|
+
selectNone: string;
|
|
2286
2293
|
errors: {
|
|
2287
2294
|
oops: string;
|
|
2288
2295
|
};
|
|
@@ -2411,6 +2418,12 @@ declare const PASSPORT_TRANSLATIONS: {
|
|
|
2411
2418
|
selectPaymentMode: string;
|
|
2412
2419
|
enterAmount: string;
|
|
2413
2420
|
purchaseSummary: string;
|
|
2421
|
+
actions: {
|
|
2422
|
+
limitsCheck: string;
|
|
2423
|
+
estimateFees: string;
|
|
2424
|
+
estimatiing: string;
|
|
2425
|
+
confirmPurchase: string;
|
|
2426
|
+
};
|
|
2414
2427
|
summary: {
|
|
2415
2428
|
youPay: string;
|
|
2416
2429
|
youReceive: string;
|
|
@@ -2597,6 +2610,13 @@ declare const PASSPORT_TRANSLATIONS: {
|
|
|
2597
2610
|
next: string;
|
|
2598
2611
|
prev: string;
|
|
2599
2612
|
page: string;
|
|
2613
|
+
loading: string;
|
|
2614
|
+
max: string;
|
|
2615
|
+
min: string;
|
|
2616
|
+
search: string;
|
|
2617
|
+
select: string;
|
|
2618
|
+
selectAll: string;
|
|
2619
|
+
selectNone: string;
|
|
2600
2620
|
errors: {
|
|
2601
2621
|
oops: string;
|
|
2602
2622
|
};
|
|
@@ -2725,6 +2745,12 @@ declare const PASSPORT_TRANSLATIONS: {
|
|
|
2725
2745
|
selectPaymentMode: string;
|
|
2726
2746
|
enterAmount: string;
|
|
2727
2747
|
purchaseSummary: string;
|
|
2748
|
+
actions: {
|
|
2749
|
+
limitsCheck: string;
|
|
2750
|
+
estimateFees: string;
|
|
2751
|
+
estimatiing: string;
|
|
2752
|
+
confirmPurchase: string;
|
|
2753
|
+
};
|
|
2728
2754
|
summary: {
|
|
2729
2755
|
youPay: string;
|
|
2730
2756
|
youReceive: string;
|
|
@@ -2911,6 +2937,13 @@ declare const PASSPORT_TRANSLATIONS: {
|
|
|
2911
2937
|
next: string;
|
|
2912
2938
|
prev: string;
|
|
2913
2939
|
page: string;
|
|
2940
|
+
loading: string;
|
|
2941
|
+
max: string;
|
|
2942
|
+
min: string;
|
|
2943
|
+
search: string;
|
|
2944
|
+
select: string;
|
|
2945
|
+
selectAll: string;
|
|
2946
|
+
selectNone: string;
|
|
2914
2947
|
errors: {
|
|
2915
2948
|
oops: string;
|
|
2916
2949
|
};
|
|
@@ -3039,6 +3072,12 @@ declare const PASSPORT_TRANSLATIONS: {
|
|
|
3039
3072
|
selectPaymentMode: string;
|
|
3040
3073
|
enterAmount: string;
|
|
3041
3074
|
purchaseSummary: string;
|
|
3075
|
+
actions: {
|
|
3076
|
+
limitsCheck: string;
|
|
3077
|
+
estimateFees: string;
|
|
3078
|
+
estimatiing: string;
|
|
3079
|
+
confirmPurchase: string;
|
|
3080
|
+
};
|
|
3042
3081
|
summary: {
|
|
3043
3082
|
youPay: string;
|
|
3044
3083
|
youReceive: string;
|