@tuwaio/nova-connect 1.0.0-fix-test-alpha.8.1eef9e0 → 1.0.0-fix-imports-alpha.1.c5966b4

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 (62) hide show
  1. package/dist/ToastError-CSlbvXKT.d.cts +106 -0
  2. package/dist/ToastError-CSlbvXKT.d.ts +106 -0
  3. package/dist/chunk-6TJVIEAU.js +6 -0
  4. package/dist/chunk-6TJVIEAU.js.map +1 -0
  5. package/dist/chunk-A2677K5M.cjs +2 -0
  6. package/dist/chunk-A2677K5M.cjs.map +1 -0
  7. package/dist/chunk-LF6FTUUQ.js +2 -0
  8. package/dist/chunk-LF6FTUUQ.js.map +1 -0
  9. package/dist/chunk-MPEJHQKC.js +2 -0
  10. package/dist/chunk-MPEJHQKC.js.map +1 -0
  11. package/dist/{chunk-FNWARYJY.js → chunk-MQGDTFY7.js} +2 -2
  12. package/dist/{chunk-FNWARYJY.js.map → chunk-MQGDTFY7.js.map} +1 -1
  13. package/dist/{chunk-6S5OTERL.cjs → chunk-NMQZA377.cjs} +2 -2
  14. package/dist/{chunk-6S5OTERL.cjs.map → chunk-NMQZA377.cjs.map} +1 -1
  15. package/dist/chunk-OA6MB7CZ.cjs +2 -0
  16. package/dist/chunk-OA6MB7CZ.cjs.map +1 -0
  17. package/dist/chunk-QASDLFV3.cjs +6 -0
  18. package/dist/chunk-QASDLFV3.cjs.map +1 -0
  19. package/dist/chunk-QERPNHKX.cjs +2 -0
  20. package/dist/chunk-QERPNHKX.cjs.map +1 -0
  21. package/dist/chunk-TAV7EL23.js +2 -0
  22. package/dist/chunk-TAV7EL23.js.map +1 -0
  23. package/dist/components/index.cjs +2 -0
  24. package/dist/components/index.cjs.map +1 -0
  25. package/dist/components/index.d.cts +6432 -0
  26. package/dist/components/index.d.ts +6432 -0
  27. package/dist/components/index.js +2 -0
  28. package/dist/components/index.js.map +1 -0
  29. package/dist/getChainsListByWalletType-CDPECVNS.cjs +2 -0
  30. package/dist/{getChainsListByWalletType-ZU7OPWTP.cjs.map → getChainsListByWalletType-CDPECVNS.cjs.map} +1 -1
  31. package/dist/{getChainsListByWalletType-EO6A7Q5A.js → getChainsListByWalletType-VMQ4BO2B.js} +2 -2
  32. package/dist/{getChainsListByWalletType-EO6A7Q5A.js.map → getChainsListByWalletType-VMQ4BO2B.js.map} +1 -1
  33. package/dist/hooks/index.cjs +2 -0
  34. package/dist/hooks/index.cjs.map +1 -0
  35. package/dist/hooks/index.d.cts +70 -0
  36. package/dist/hooks/index.d.ts +70 -0
  37. package/dist/hooks/index.js +2 -0
  38. package/dist/hooks/index.js.map +1 -0
  39. package/dist/i18n/index.cjs +2 -0
  40. package/dist/i18n/index.cjs.map +1 -0
  41. package/dist/i18n/index.d.cts +15 -0
  42. package/dist/i18n/index.d.ts +15 -0
  43. package/dist/i18n/index.js +2 -0
  44. package/dist/i18n/index.js.map +1 -0
  45. package/dist/index.cjs +1 -5
  46. package/dist/index.cjs.map +1 -1
  47. package/dist/index.d.cts +13 -7009
  48. package/dist/index.d.ts +13 -7009
  49. package/dist/index.js +1 -5
  50. package/dist/index.js.map +1 -1
  51. package/dist/satellite/index.cjs +2 -0
  52. package/dist/satellite/index.cjs.map +1 -0
  53. package/dist/satellite/index.d.cts +1 -0
  54. package/dist/satellite/index.d.ts +1 -0
  55. package/dist/satellite/index.js +2 -0
  56. package/dist/satellite/index.js.map +1 -0
  57. package/dist/types-D4Vti05g.d.cts +98 -0
  58. package/dist/types-D4Vti05g.d.ts +98 -0
  59. package/dist/useWalletNativeBalance-6RVzdGvM.d.ts +312 -0
  60. package/dist/useWalletNativeBalance-D8Ehciju.d.cts +312 -0
  61. package/package.json +23 -3
  62. package/dist/getChainsListByWalletType-ZU7OPWTP.cjs +0 -2
@@ -0,0 +1,106 @@
1
+ import { OrbitAdapter } from '@tuwaio/orbit-core';
2
+ import * as React$1 from 'react';
3
+ import { ComponentPropsWithoutRef, ComponentType, ReactNode } from 'react';
4
+
5
+ declare const getNetworkIcon: (adapter: OrbitAdapter) => {
6
+ chainId: number;
7
+ name: string;
8
+ } | {
9
+ chainId: string;
10
+ name: string;
11
+ } | undefined;
12
+
13
+ type CustomIconProps = {
14
+ isCopied: boolean;
15
+ className?: string;
16
+ 'aria-hidden'?: boolean;
17
+ };
18
+ type CustomTitleProps = {
19
+ title: string;
20
+ titleId: string;
21
+ className?: string;
22
+ };
23
+ type CustomDescriptionProps = {
24
+ rawError: string;
25
+ descriptionId: string;
26
+ className?: string;
27
+ };
28
+ type CustomButtonContentProps = {
29
+ icon: ReactNode;
30
+ isCopied: boolean;
31
+ copyLabel: string;
32
+ copiedLabel: string;
33
+ };
34
+ /**
35
+ * Customization options for ToastError component
36
+ */
37
+ type ToastErrorCustomization = {
38
+ /** Override container element props */
39
+ containerProps?: Partial<Omit<ComponentPropsWithoutRef<'div'>, 'style'>>;
40
+ /** Override button element props */
41
+ buttonProps?: Partial<Omit<ComponentPropsWithoutRef<'button'>, 'style'>>;
42
+ /** Custom components */
43
+ components?: {
44
+ /** Custom icon component */
45
+ Icon?: ComponentType<CustomIconProps>;
46
+ /** Custom title component */
47
+ Title?: ComponentType<CustomTitleProps>;
48
+ /** Custom description component */
49
+ Description?: ComponentType<CustomDescriptionProps>;
50
+ /** Custom button content component */
51
+ ButtonContent?: ComponentType<CustomButtonContentProps>;
52
+ };
53
+ /** Custom class name generators */
54
+ classNames?: {
55
+ /** Function to generate container classes */
56
+ container?: (params: {
57
+ hasTitle: boolean;
58
+ hasError: boolean;
59
+ }) => string;
60
+ /** Function to generate title classes */
61
+ title?: (params: {
62
+ title: string;
63
+ }) => string;
64
+ /** Function to generate description classes */
65
+ description?: (params: {
66
+ rawError: string;
67
+ }) => string;
68
+ /** Function to generate button classes */
69
+ button?: (params: {
70
+ isCopied: boolean;
71
+ disabled: boolean;
72
+ }) => string;
73
+ /** Function to generate icon classes */
74
+ icon?: (params: {
75
+ isCopied: boolean;
76
+ }) => string;
77
+ };
78
+ /** Custom event handlers */
79
+ handlers?: {
80
+ /** Custom click handler wrapper */
81
+ onClick?: (originalHandler: (event: React.MouseEvent<HTMLButtonElement>) => void, event: React.MouseEvent<HTMLButtonElement>) => void;
82
+ /** Custom keydown handler wrapper */
83
+ onKeyDown?: (originalHandler: (event: React.KeyboardEvent<HTMLButtonElement>) => void, event: React.KeyboardEvent<HTMLButtonElement>) => void;
84
+ };
85
+ };
86
+ interface ToastErrorProps extends Omit<ComponentPropsWithoutRef<'div'>, 'role' | 'aria-live' | 'style'> {
87
+ /** Error title to display */
88
+ title: string;
89
+ /** Raw error message to display and copy */
90
+ rawError: string;
91
+ /** Custom CSS classes for the container */
92
+ className?: string;
93
+ /** Custom ARIA label for the error container */
94
+ 'aria-label'?: string;
95
+ /** Callback fired when copy operation completes */
96
+ onCopyComplete?: (success: boolean) => void;
97
+ /** Customization options */
98
+ customization?: ToastErrorCustomization;
99
+ }
100
+ /**
101
+ * A highly customizable error toast component with copy functionality and extensive styling options.
102
+ * Provides comprehensive customization for appearance, behavior, and event handling while maintaining accessibility.
103
+ */
104
+ declare const ToastError: React$1.ForwardRefExoticComponent<ToastErrorProps & React$1.RefAttributes<HTMLDivElement>>;
105
+
106
+ export { type ToastErrorCustomization as T, type ToastErrorProps as a, ToastError as b, getNetworkIcon as g };
@@ -0,0 +1,106 @@
1
+ import { OrbitAdapter } from '@tuwaio/orbit-core';
2
+ import * as React$1 from 'react';
3
+ import { ComponentPropsWithoutRef, ComponentType, ReactNode } from 'react';
4
+
5
+ declare const getNetworkIcon: (adapter: OrbitAdapter) => {
6
+ chainId: number;
7
+ name: string;
8
+ } | {
9
+ chainId: string;
10
+ name: string;
11
+ } | undefined;
12
+
13
+ type CustomIconProps = {
14
+ isCopied: boolean;
15
+ className?: string;
16
+ 'aria-hidden'?: boolean;
17
+ };
18
+ type CustomTitleProps = {
19
+ title: string;
20
+ titleId: string;
21
+ className?: string;
22
+ };
23
+ type CustomDescriptionProps = {
24
+ rawError: string;
25
+ descriptionId: string;
26
+ className?: string;
27
+ };
28
+ type CustomButtonContentProps = {
29
+ icon: ReactNode;
30
+ isCopied: boolean;
31
+ copyLabel: string;
32
+ copiedLabel: string;
33
+ };
34
+ /**
35
+ * Customization options for ToastError component
36
+ */
37
+ type ToastErrorCustomization = {
38
+ /** Override container element props */
39
+ containerProps?: Partial<Omit<ComponentPropsWithoutRef<'div'>, 'style'>>;
40
+ /** Override button element props */
41
+ buttonProps?: Partial<Omit<ComponentPropsWithoutRef<'button'>, 'style'>>;
42
+ /** Custom components */
43
+ components?: {
44
+ /** Custom icon component */
45
+ Icon?: ComponentType<CustomIconProps>;
46
+ /** Custom title component */
47
+ Title?: ComponentType<CustomTitleProps>;
48
+ /** Custom description component */
49
+ Description?: ComponentType<CustomDescriptionProps>;
50
+ /** Custom button content component */
51
+ ButtonContent?: ComponentType<CustomButtonContentProps>;
52
+ };
53
+ /** Custom class name generators */
54
+ classNames?: {
55
+ /** Function to generate container classes */
56
+ container?: (params: {
57
+ hasTitle: boolean;
58
+ hasError: boolean;
59
+ }) => string;
60
+ /** Function to generate title classes */
61
+ title?: (params: {
62
+ title: string;
63
+ }) => string;
64
+ /** Function to generate description classes */
65
+ description?: (params: {
66
+ rawError: string;
67
+ }) => string;
68
+ /** Function to generate button classes */
69
+ button?: (params: {
70
+ isCopied: boolean;
71
+ disabled: boolean;
72
+ }) => string;
73
+ /** Function to generate icon classes */
74
+ icon?: (params: {
75
+ isCopied: boolean;
76
+ }) => string;
77
+ };
78
+ /** Custom event handlers */
79
+ handlers?: {
80
+ /** Custom click handler wrapper */
81
+ onClick?: (originalHandler: (event: React.MouseEvent<HTMLButtonElement>) => void, event: React.MouseEvent<HTMLButtonElement>) => void;
82
+ /** Custom keydown handler wrapper */
83
+ onKeyDown?: (originalHandler: (event: React.KeyboardEvent<HTMLButtonElement>) => void, event: React.KeyboardEvent<HTMLButtonElement>) => void;
84
+ };
85
+ };
86
+ interface ToastErrorProps extends Omit<ComponentPropsWithoutRef<'div'>, 'role' | 'aria-live' | 'style'> {
87
+ /** Error title to display */
88
+ title: string;
89
+ /** Raw error message to display and copy */
90
+ rawError: string;
91
+ /** Custom CSS classes for the container */
92
+ className?: string;
93
+ /** Custom ARIA label for the error container */
94
+ 'aria-label'?: string;
95
+ /** Callback fired when copy operation completes */
96
+ onCopyComplete?: (success: boolean) => void;
97
+ /** Customization options */
98
+ customization?: ToastErrorCustomization;
99
+ }
100
+ /**
101
+ * A highly customizable error toast component with copy functionality and extensive styling options.
102
+ * Provides comprehensive customization for appearance, behavior, and event handling while maintaining accessibility.
103
+ */
104
+ declare const ToastError: React$1.ForwardRefExoticComponent<ToastErrorProps & React$1.RefAttributes<HTMLDivElement>>;
105
+
106
+ export { type ToastErrorCustomization as T, type ToastErrorProps as a, ToastError as b, getNetworkIcon as g };