@tangle-network/blueprint-ui 0.1.0 → 0.1.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/README.md +47 -11
- package/dist/BlueprintHostPanel-6iVEh-f1.d.ts +39 -0
- package/dist/chunk-37ADATBT.js +55 -0
- package/dist/chunk-37ADATBT.js.map +1 -0
- package/dist/chunk-A6PJT5YQ.js +1180 -0
- package/dist/chunk-A6PJT5YQ.js.map +1 -0
- package/dist/chunk-GD3AZEJL.js +327 -0
- package/dist/chunk-GD3AZEJL.js.map +1 -0
- package/dist/components.d.ts +179 -0
- package/dist/components.js +1127 -0
- package/dist/components.js.map +1 -0
- package/dist/host.d.ts +96 -0
- package/dist/host.js +39 -0
- package/dist/host.js.map +1 -0
- package/dist/index.d.ts +8470 -0
- package/dist/index.js +841 -0
- package/dist/index.js.map +1 -0
- package/dist/preset.d.ts +60 -0
- package/dist/preset.js +7 -0
- package/dist/preset.js.map +1 -0
- package/dist/registry-JhwB9BPD.d.ts +87 -0
- package/dist/styles.css +559 -0
- package/package.json +42 -13
- package/src/components/layout/AppDocument.tsx +1 -1
- package/src/components/layout/ChainSwitcher.tsx +27 -10
- package/src/components/layout/Web3Shell.tsx +81 -6
- package/src/components/web3/ConnectWalletCta.tsx +21 -0
- package/src/components.ts +6 -0
- package/src/contracts/abi.ts +10 -1
- package/src/contracts/chains.ts +23 -10
- package/src/contracts/publicClient.ts +52 -10
- package/src/hooks/useOperators.ts +203 -96
- package/src/hooks/useProvisionProgress.ts +2 -1
- package/src/hooks/useQuotes.ts +69 -14
- package/src/hooks/useSessionAuth.ts +2 -1
- package/src/hooks/useSidecarAuth.ts +173 -0
- package/src/hooks/useWagmiSidecarAuth.ts +11 -0
- package/src/hooks/useWalletEthBalance.ts +68 -0
- package/src/host/components/BlueprintHostHero.tsx +91 -0
- package/src/host/components/BlueprintHostPanel.tsx +24 -0
- package/src/host/index.ts +42 -0
- package/src/host/resolver.ts +204 -0
- package/src/host/types.ts +111 -0
- package/src/index.ts +48 -2
- package/src/stores/infra.ts +3 -2
- package/src/styles.css +128 -0
- package/src/utils/env.ts +22 -0
- package/src/utils/web3.ts +9 -3
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
3
|
+
import * as React$1 from 'react';
|
|
4
|
+
import { ReactNode } from 'react';
|
|
5
|
+
import { VariantProps } from 'class-variance-authority';
|
|
6
|
+
export { B as BlueprintHostHero, b as BlueprintHostPanel, d as Button, e as buttonVariants } from './BlueprintHostPanel-6iVEh-f1.js';
|
|
7
|
+
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
8
|
+
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
9
|
+
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
10
|
+
import { Address } from 'viem';
|
|
11
|
+
import { Config } from 'wagmi';
|
|
12
|
+
import { b as JobFieldDef, J as JobDefinition } from './registry-JhwB9BPD.js';
|
|
13
|
+
|
|
14
|
+
declare const badgeVariants: (props?: ({
|
|
15
|
+
variant?: "default" | "success" | "secondary" | "destructive" | "outline" | "accent" | "amber" | "running" | "stopped" | "cold" | null | undefined;
|
|
16
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
17
|
+
declare function Badge({ className, variant, asChild, ...props }: React$1.ComponentProps<'span'> & VariantProps<typeof badgeVariants> & {
|
|
18
|
+
asChild?: boolean;
|
|
19
|
+
}): react_jsx_runtime.JSX.Element;
|
|
20
|
+
|
|
21
|
+
declare function Card({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
22
|
+
declare function CardHeader({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
23
|
+
declare function CardTitle({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
24
|
+
declare function CardDescription({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
25
|
+
declare function CardContent({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
26
|
+
declare function CardFooter({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
27
|
+
|
|
28
|
+
declare function Dialog({ ...props }: React$1.ComponentProps<typeof DialogPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
29
|
+
declare function DialogTrigger({ ...props }: React$1.ComponentProps<typeof DialogPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
30
|
+
declare function DialogContent({ className, children, ...props }: React$1.ComponentProps<typeof DialogPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
31
|
+
declare function DialogHeader({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
32
|
+
declare function DialogFooter({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
33
|
+
declare function DialogTitle({ className, ...props }: React$1.ComponentProps<typeof DialogPrimitive.Title>): react_jsx_runtime.JSX.Element;
|
|
34
|
+
declare function DialogDescription({ className, ...props }: React$1.ComponentProps<typeof DialogPrimitive.Description>): react_jsx_runtime.JSX.Element;
|
|
35
|
+
|
|
36
|
+
declare function Input({ className, type, ...props }: React$1.ComponentProps<'input'>): react_jsx_runtime.JSX.Element;
|
|
37
|
+
|
|
38
|
+
interface SelectOption {
|
|
39
|
+
label: string;
|
|
40
|
+
value: string;
|
|
41
|
+
}
|
|
42
|
+
interface SelectProps {
|
|
43
|
+
value?: string;
|
|
44
|
+
onValueChange?: (value: string) => void;
|
|
45
|
+
options: SelectOption[];
|
|
46
|
+
placeholder?: string;
|
|
47
|
+
className?: string;
|
|
48
|
+
disabled?: boolean;
|
|
49
|
+
}
|
|
50
|
+
declare function Select({ value, onValueChange, options, placeholder, className, disabled }: SelectProps): react_jsx_runtime.JSX.Element;
|
|
51
|
+
|
|
52
|
+
declare function Separator({ className, orientation, decorative, ...props }: React$1.ComponentProps<typeof SeparatorPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
53
|
+
|
|
54
|
+
declare function Skeleton({ className, ...props }: React.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
55
|
+
|
|
56
|
+
declare function Table({ className, ...props }: React$1.ComponentProps<'table'>): react_jsx_runtime.JSX.Element;
|
|
57
|
+
declare function TableHeader({ className, ...props }: React$1.ComponentProps<'thead'>): react_jsx_runtime.JSX.Element;
|
|
58
|
+
declare function TableBody({ className, ...props }: React$1.ComponentProps<'tbody'>): react_jsx_runtime.JSX.Element;
|
|
59
|
+
declare function TableRow({ className, ...props }: React$1.ComponentProps<'tr'>): react_jsx_runtime.JSX.Element;
|
|
60
|
+
declare function TableHead({ className, ...props }: React$1.ComponentProps<'th'>): react_jsx_runtime.JSX.Element;
|
|
61
|
+
declare function TableCell({ className, ...props }: React$1.ComponentProps<'td'>): react_jsx_runtime.JSX.Element;
|
|
62
|
+
|
|
63
|
+
declare function Tabs({ className, ...props }: React$1.ComponentProps<typeof TabsPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
64
|
+
declare function TabsList({ className, ...props }: React$1.ComponentProps<typeof TabsPrimitive.List>): react_jsx_runtime.JSX.Element;
|
|
65
|
+
declare function TabsTrigger({ className, ...props }: React$1.ComponentProps<typeof TabsPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
66
|
+
declare function TabsContent({ className, ...props }: React$1.ComponentProps<typeof TabsPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
67
|
+
|
|
68
|
+
declare function Textarea({ className, ...props }: React$1.ComponentProps<'textarea'>): react_jsx_runtime.JSX.Element;
|
|
69
|
+
|
|
70
|
+
interface ToggleProps {
|
|
71
|
+
checked: boolean;
|
|
72
|
+
onChange: (checked: boolean) => void;
|
|
73
|
+
disabled?: boolean;
|
|
74
|
+
className?: string;
|
|
75
|
+
}
|
|
76
|
+
declare function Toggle({ checked, onChange, disabled, className }: ToggleProps): react_jsx_runtime.JSX.Element;
|
|
77
|
+
|
|
78
|
+
declare function AnimatedPage({ children, className }: {
|
|
79
|
+
children: React.ReactNode;
|
|
80
|
+
className?: string;
|
|
81
|
+
}): react_jsx_runtime.JSX.Element;
|
|
82
|
+
declare function StaggerContainer({ children, className }: {
|
|
83
|
+
children: React.ReactNode;
|
|
84
|
+
className?: string;
|
|
85
|
+
}): react_jsx_runtime.JSX.Element;
|
|
86
|
+
declare function StaggerItem({ children, className }: {
|
|
87
|
+
children: React.ReactNode;
|
|
88
|
+
className?: string;
|
|
89
|
+
}): react_jsx_runtime.JSX.Element;
|
|
90
|
+
|
|
91
|
+
interface IdenticonProps {
|
|
92
|
+
address: Address;
|
|
93
|
+
size?: number;
|
|
94
|
+
className?: string;
|
|
95
|
+
}
|
|
96
|
+
declare function Identicon({ address, size, className }: IdenticonProps): react_jsx_runtime.JSX.Element;
|
|
97
|
+
|
|
98
|
+
interface TangleLogoProps {
|
|
99
|
+
label?: string;
|
|
100
|
+
}
|
|
101
|
+
declare function TangleLogo({ label }: TangleLogoProps): react_jsx_runtime.JSX.Element;
|
|
102
|
+
|
|
103
|
+
interface AppDocumentProps {
|
|
104
|
+
children: ReactNode;
|
|
105
|
+
description: string;
|
|
106
|
+
themeStorageKeys: [string, string];
|
|
107
|
+
}
|
|
108
|
+
declare function AppDocument({ children, description, themeStorageKeys }: AppDocumentProps): react_jsx_runtime.JSX.Element;
|
|
109
|
+
|
|
110
|
+
interface AppFooterProps {
|
|
111
|
+
brandText: string;
|
|
112
|
+
tone: 'cloud' | 'arena';
|
|
113
|
+
githubUrl?: string;
|
|
114
|
+
docsUrl?: string;
|
|
115
|
+
}
|
|
116
|
+
declare function AppFooter({ brandText, tone, githubUrl, docsUrl, }: AppFooterProps): react_jsx_runtime.JSX.Element;
|
|
117
|
+
|
|
118
|
+
interface AppToasterProps {
|
|
119
|
+
tone: 'cloud' | 'arena';
|
|
120
|
+
}
|
|
121
|
+
declare function AppToaster({ tone }: AppToasterProps): react_jsx_runtime.JSX.Element;
|
|
122
|
+
|
|
123
|
+
interface Web3ShellProps {
|
|
124
|
+
config: Config;
|
|
125
|
+
reconnectOnMount?: boolean;
|
|
126
|
+
children: ReactNode;
|
|
127
|
+
}
|
|
128
|
+
declare function Web3Shell({ config, reconnectOnMount, children, }: Web3ShellProps): react_jsx_runtime.JSX.Element;
|
|
129
|
+
|
|
130
|
+
declare function ChainSwitcher(): react_jsx_runtime.JSX.Element;
|
|
131
|
+
|
|
132
|
+
declare function ThemeToggle(): react_jsx_runtime.JSX.Element;
|
|
133
|
+
|
|
134
|
+
interface ConnectWalletCtaProps {
|
|
135
|
+
onClick?: () => void;
|
|
136
|
+
isReconnecting?: boolean;
|
|
137
|
+
}
|
|
138
|
+
declare function ConnectWalletCta({ onClick, isReconnecting }: ConnectWalletCtaProps): react_jsx_runtime.JSX.Element;
|
|
139
|
+
|
|
140
|
+
interface FormFieldProps {
|
|
141
|
+
field: JobFieldDef;
|
|
142
|
+
value: unknown;
|
|
143
|
+
onChange: (name: string, value: unknown) => void;
|
|
144
|
+
error?: string;
|
|
145
|
+
}
|
|
146
|
+
declare function FormField({ field, value, onChange, error }: FormFieldProps): react_jsx_runtime.JSX.Element | null;
|
|
147
|
+
|
|
148
|
+
interface FormSection {
|
|
149
|
+
label: string;
|
|
150
|
+
fields: string[];
|
|
151
|
+
collapsed?: boolean;
|
|
152
|
+
}
|
|
153
|
+
interface BlueprintJobFormProps {
|
|
154
|
+
job: JobDefinition;
|
|
155
|
+
values: Record<string, unknown>;
|
|
156
|
+
onChange: (name: string, value: unknown) => void;
|
|
157
|
+
errors?: Record<string, string>;
|
|
158
|
+
sections?: FormSection[];
|
|
159
|
+
}
|
|
160
|
+
declare function BlueprintJobForm({ job, values, onChange, errors, sections }: BlueprintJobFormProps): react_jsx_runtime.JSX.Element;
|
|
161
|
+
|
|
162
|
+
interface FormSummaryProps {
|
|
163
|
+
job: JobDefinition;
|
|
164
|
+
values: Record<string, unknown>;
|
|
165
|
+
context?: Record<string, unknown>;
|
|
166
|
+
}
|
|
167
|
+
declare function FormSummary({ job, values, context }: FormSummaryProps): react_jsx_runtime.JSX.Element;
|
|
168
|
+
|
|
169
|
+
interface JobExecutionDialogProps {
|
|
170
|
+
open: boolean;
|
|
171
|
+
onOpenChange: (open: boolean) => void;
|
|
172
|
+
job: JobDefinition;
|
|
173
|
+
serviceId: bigint;
|
|
174
|
+
context?: Record<string, unknown>;
|
|
175
|
+
onSuccess?: () => void;
|
|
176
|
+
}
|
|
177
|
+
declare function JobExecutionDialog({ open, onOpenChange, job, serviceId, context, onSuccess, }: JobExecutionDialogProps): react_jsx_runtime.JSX.Element;
|
|
178
|
+
|
|
179
|
+
export { AnimatedPage, AppDocument, AppFooter, AppToaster, Badge, BlueprintJobForm, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ChainSwitcher, ConnectWalletCta, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, FormField, type FormSection, FormSummary, Identicon, Input, JobExecutionDialog, Select, type SelectOption, Separator, Skeleton, StaggerContainer, StaggerItem, Table, TableBody, TableCell, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TangleLogo, Textarea, ThemeToggle, Toggle, Web3Shell, badgeVariants };
|