@elevasis/ui 1.0.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.
- package/dist/api/index.d.ts +87 -0
- package/dist/api/index.js +3 -0
- package/dist/auth/context.d.ts +19 -0
- package/dist/auth/context.js +1 -0
- package/dist/auth/index.d.ts +85 -0
- package/dist/auth/index.js +3 -0
- package/dist/chunk-3KMDHCAR.js +52 -0
- package/dist/chunk-5UWFGBFM.js +129 -0
- package/dist/chunk-6BJOYF6E.js +8 -0
- package/dist/chunk-6M6OLGQY.js +36 -0
- package/dist/chunk-7AI5ZYJ4.js +202 -0
- package/dist/chunk-7PLEQFHO.js +18 -0
- package/dist/chunk-GDV44UWF.js +138 -0
- package/dist/chunk-GEFB5YIR.js +338 -0
- package/dist/chunk-HBRMWW6V.js +43 -0
- package/dist/chunk-HUWJXLLF.js +681 -0
- package/dist/chunk-J3FALDQE.js +176 -0
- package/dist/chunk-JKERRYVS.js +109 -0
- package/dist/chunk-KA7LO7U5.js +28 -0
- package/dist/chunk-LHQTTUL2.js +27 -0
- package/dist/chunk-MAAS6CGR.js +1299 -0
- package/dist/chunk-NE36BUGQ.js +146 -0
- package/dist/chunk-NGXCFBCS.js +398 -0
- package/dist/chunk-OEYU5O27.js +235 -0
- package/dist/chunk-OUHGHTE7.js +748 -0
- package/dist/chunk-OXVOHOP3.js +661 -0
- package/dist/chunk-PSLKGOBZ.js +58 -0
- package/dist/chunk-PYL4XW6H.js +107 -0
- package/dist/chunk-Q47SPRY7.js +1 -0
- package/dist/chunk-Q7DJKLEN.js +18 -0
- package/dist/chunk-RJCA5672.js +1664 -0
- package/dist/chunk-S66I2PYB.js +748 -0
- package/dist/chunk-W7ZBF5AA.js +1 -0
- package/dist/chunk-WNWKOCGJ.js +1067 -0
- package/dist/chunk-XCYKC6OZ.js +1 -0
- package/dist/chunk-YULUKCS6.js +56 -0
- package/dist/chunk-YZ6GTZXL.js +48 -0
- package/dist/chunk-ZGHDPDTF.js +379 -0
- package/dist/components/command-queue/index.css +53 -0
- package/dist/components/command-queue/index.d.ts +204 -0
- package/dist/components/command-queue/index.js +10 -0
- package/dist/components/forms/index.d.ts +56 -0
- package/dist/components/forms/index.js +2 -0
- package/dist/components/index.css +443 -0
- package/dist/components/index.d.ts +1354 -0
- package/dist/components/index.js +18 -0
- package/dist/components/monitoring/index.d.ts +66 -0
- package/dist/components/monitoring/index.js +2 -0
- package/dist/components/navigation/index.d.ts +54 -0
- package/dist/components/navigation/index.js +91 -0
- package/dist/components/notifications/index.d.ts +52 -0
- package/dist/components/notifications/index.js +4 -0
- package/dist/components/resource-definition/index.css +388 -0
- package/dist/components/resource-definition/index.d.ts +301 -0
- package/dist/components/resource-definition/index.js +3 -0
- package/dist/display/index.css +53 -0
- package/dist/display/index.d.ts +606 -0
- package/dist/display/index.js +6 -0
- package/dist/execution/index.css +388 -0
- package/dist/execution/index.d.ts +1090 -0
- package/dist/execution/index.js +4 -0
- package/dist/graph/index.css +388 -0
- package/dist/graph/index.d.ts +429 -0
- package/dist/graph/index.js +1 -0
- package/dist/hooks/index.d.ts +1927 -0
- package/dist/hooks/index.js +6 -0
- package/dist/hooks/published.d.ts +1653 -0
- package/dist/hooks/published.js +4 -0
- package/dist/index.css +505 -0
- package/dist/index.d.ts +7284 -0
- package/dist/index.js +31 -0
- package/dist/initialization/index.d.ts +2325 -0
- package/dist/initialization/index.js +4 -0
- package/dist/organization/index.d.ts +225 -0
- package/dist/organization/index.js +4 -0
- package/dist/profile/index.d.ts +2265 -0
- package/dist/profile/index.js +3 -0
- package/dist/provider/index.css +61 -0
- package/dist/provider/index.d.ts +291 -0
- package/dist/provider/index.js +7 -0
- package/dist/provider/published.d.ts +198 -0
- package/dist/provider/published.js +6 -0
- package/dist/router/context.d.ts +19 -0
- package/dist/router/context.js +1 -0
- package/dist/router/index.d.ts +31 -0
- package/dist/router/index.js +2 -0
- package/dist/sse/index.d.ts +83 -0
- package/dist/sse/index.js +185 -0
- package/dist/supabase/index.d.ts +4289 -0
- package/dist/supabase/index.js +47 -0
- package/dist/typeform/index.d.ts +458 -0
- package/dist/typeform/index.js +1976 -0
- package/dist/typeform/schemas.d.ts +67 -0
- package/dist/typeform/schemas.js +1 -0
- package/dist/utils/index.d.ts +177 -0
- package/dist/utils/index.js +1 -0
- package/package.json +88 -0
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as react from 'react';
|
|
3
|
+
import { ReactNode } from 'react';
|
|
4
|
+
import { Node, Edge, NodeProps, EdgeProps } from '@xyflow/react';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Shared form field types for dynamic form generation
|
|
8
|
+
* Used by: Command Queue, Execution Runner UI, future form-based features
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Supported form field types for action payloads
|
|
12
|
+
* Maps to Mantine form components
|
|
13
|
+
*/
|
|
14
|
+
type FormFieldType = 'text' | 'textarea' | 'number' | 'select' | 'checkbox' | 'radio' | 'richtext';
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Serialized Registry Types
|
|
18
|
+
*
|
|
19
|
+
* Pre-computed JSON-safe types for API responses and Command View.
|
|
20
|
+
* Serialization happens once at API startup, enabling instant response times.
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Serialized form field for API responses
|
|
25
|
+
*/
|
|
26
|
+
interface SerializedFormField {
|
|
27
|
+
name: string;
|
|
28
|
+
label: string;
|
|
29
|
+
type: FormFieldType;
|
|
30
|
+
defaultValue?: unknown;
|
|
31
|
+
required?: boolean;
|
|
32
|
+
placeholder?: string;
|
|
33
|
+
description?: string;
|
|
34
|
+
options?: Array<{
|
|
35
|
+
label: string;
|
|
36
|
+
value: string | number;
|
|
37
|
+
}>;
|
|
38
|
+
min?: number;
|
|
39
|
+
max?: number;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Serialized form schema for API responses
|
|
43
|
+
*/
|
|
44
|
+
interface SerializedFormSchema {
|
|
45
|
+
title?: string;
|
|
46
|
+
description?: string;
|
|
47
|
+
fields: SerializedFormField[];
|
|
48
|
+
layout?: 'vertical' | 'horizontal' | 'grid';
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Serialized execution form schema for API responses
|
|
52
|
+
*/
|
|
53
|
+
interface SerializedExecutionFormSchema extends SerializedFormSchema {
|
|
54
|
+
fieldMappings?: Record<string, string>;
|
|
55
|
+
submitButton?: {
|
|
56
|
+
label?: string;
|
|
57
|
+
loadingLabel?: string;
|
|
58
|
+
confirmMessage?: string;
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Serialized schedule config for API responses
|
|
63
|
+
*/
|
|
64
|
+
interface SerializedScheduleConfig {
|
|
65
|
+
enabled: boolean;
|
|
66
|
+
defaultSchedule?: string;
|
|
67
|
+
allowedPatterns?: string[];
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Serialized webhook config for API responses
|
|
71
|
+
*/
|
|
72
|
+
interface SerializedWebhookConfig {
|
|
73
|
+
enabled: boolean;
|
|
74
|
+
payloadSchema?: unknown;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Serialized execution interface for API responses
|
|
78
|
+
*/
|
|
79
|
+
interface SerializedExecutionInterface {
|
|
80
|
+
form: SerializedExecutionFormSchema;
|
|
81
|
+
schedule?: SerializedScheduleConfig;
|
|
82
|
+
webhook?: SerializedWebhookConfig;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Serialized agent definition (JSON-safe)
|
|
86
|
+
* Result of serializeDefinition(AgentDefinition)
|
|
87
|
+
*/
|
|
88
|
+
interface SerializedAgentDefinition {
|
|
89
|
+
config: {
|
|
90
|
+
resourceId: string;
|
|
91
|
+
name: string;
|
|
92
|
+
description: string;
|
|
93
|
+
version: string;
|
|
94
|
+
type: 'agent';
|
|
95
|
+
status: 'dev' | 'prod';
|
|
96
|
+
/** Whether this resource is archived and should be excluded from registration and deployment */
|
|
97
|
+
archived?: boolean;
|
|
98
|
+
systemPrompt: string;
|
|
99
|
+
constraints?: {
|
|
100
|
+
maxIterations?: number;
|
|
101
|
+
timeout?: number;
|
|
102
|
+
maxSessionMemoryKeys?: number;
|
|
103
|
+
maxMemoryTokens?: number;
|
|
104
|
+
};
|
|
105
|
+
sessionCapable?: boolean;
|
|
106
|
+
memoryPreferences?: string;
|
|
107
|
+
};
|
|
108
|
+
modelConfig: {
|
|
109
|
+
provider: string;
|
|
110
|
+
model: string;
|
|
111
|
+
apiKey: string;
|
|
112
|
+
temperature: number;
|
|
113
|
+
maxOutputTokens: number;
|
|
114
|
+
topP?: number;
|
|
115
|
+
modelOptions?: Record<string, unknown>;
|
|
116
|
+
};
|
|
117
|
+
contract: {
|
|
118
|
+
inputSchema: object;
|
|
119
|
+
outputSchema?: object;
|
|
120
|
+
};
|
|
121
|
+
tools: Array<{
|
|
122
|
+
name: string;
|
|
123
|
+
description: string;
|
|
124
|
+
inputSchema?: object;
|
|
125
|
+
outputSchema?: object;
|
|
126
|
+
}>;
|
|
127
|
+
knowledgeMap?: {
|
|
128
|
+
nodeCount: number;
|
|
129
|
+
nodes: Array<{
|
|
130
|
+
id: string;
|
|
131
|
+
description: string;
|
|
132
|
+
loaded: boolean;
|
|
133
|
+
hasPrompt: boolean;
|
|
134
|
+
}>;
|
|
135
|
+
};
|
|
136
|
+
metricsConfig?: object;
|
|
137
|
+
interface?: SerializedExecutionInterface;
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Serialized workflow definition (JSON-safe)
|
|
141
|
+
* Result of serializeDefinition(WorkflowDefinition)
|
|
142
|
+
*/
|
|
143
|
+
interface SerializedWorkflowDefinition {
|
|
144
|
+
config: {
|
|
145
|
+
resourceId: string;
|
|
146
|
+
name: string;
|
|
147
|
+
description: string;
|
|
148
|
+
version: string;
|
|
149
|
+
type: 'workflow';
|
|
150
|
+
status: 'dev' | 'prod';
|
|
151
|
+
/** Whether this resource is archived and should be excluded from registration and deployment */
|
|
152
|
+
archived?: boolean;
|
|
153
|
+
};
|
|
154
|
+
entryPoint: string;
|
|
155
|
+
steps: Array<{
|
|
156
|
+
id: string;
|
|
157
|
+
name: string;
|
|
158
|
+
description: string;
|
|
159
|
+
inputSchema?: object;
|
|
160
|
+
outputSchema?: object;
|
|
161
|
+
next: {
|
|
162
|
+
type: 'linear' | 'conditional';
|
|
163
|
+
target?: string;
|
|
164
|
+
routes?: Array<{
|
|
165
|
+
target: string;
|
|
166
|
+
}>;
|
|
167
|
+
default?: string;
|
|
168
|
+
} | null;
|
|
169
|
+
}>;
|
|
170
|
+
contract: {
|
|
171
|
+
inputSchema: object;
|
|
172
|
+
outputSchema?: object;
|
|
173
|
+
};
|
|
174
|
+
metricsConfig?: object;
|
|
175
|
+
interface?: SerializedExecutionInterface;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* Base Execution Engine type definitions
|
|
180
|
+
* Core types shared across all Execution Engine resources
|
|
181
|
+
*/
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* NOTE: AIResource interface has been removed and replaced with ResourceDefinition
|
|
185
|
+
* from registry/types.ts. All resources (executable and non-executable) now extend
|
|
186
|
+
* the unified ResourceDefinition base interface.
|
|
187
|
+
*
|
|
188
|
+
* AgentConfig and WorkflowConfig now extend ResourceDefinition directly.
|
|
189
|
+
* See packages/core/src/registry/types.ts for the base interface definition.
|
|
190
|
+
*/
|
|
191
|
+
type AIResourceDefinition = SerializedWorkflowDefinition | SerializedAgentDefinition;
|
|
192
|
+
|
|
193
|
+
interface ResourceDefinitionSectionProps {
|
|
194
|
+
resourceDefinition: AIResourceDefinition;
|
|
195
|
+
defaultExpanded?: boolean;
|
|
196
|
+
}
|
|
197
|
+
declare function ResourceDefinitionSection({ resourceDefinition, defaultExpanded }: ResourceDefinitionSectionProps): react_jsx_runtime.JSX.Element;
|
|
198
|
+
|
|
199
|
+
interface AgentDefinitionDisplayProps {
|
|
200
|
+
agent: SerializedAgentDefinition;
|
|
201
|
+
defaultExpanded?: boolean;
|
|
202
|
+
}
|
|
203
|
+
declare function AgentDefinitionDisplay({ agent, defaultExpanded }: AgentDefinitionDisplayProps): react_jsx_runtime.JSX.Element;
|
|
204
|
+
|
|
205
|
+
interface WorkflowDefinitionDisplayProps {
|
|
206
|
+
workflow: SerializedWorkflowDefinition;
|
|
207
|
+
defaultExpanded?: boolean;
|
|
208
|
+
}
|
|
209
|
+
declare function WorkflowDefinitionDisplay({ workflow, defaultExpanded }: WorkflowDefinitionDisplayProps): react_jsx_runtime.JSX.Element;
|
|
210
|
+
|
|
211
|
+
interface ContractDisplayProps {
|
|
212
|
+
contract: {
|
|
213
|
+
inputSchema: unknown;
|
|
214
|
+
outputSchema?: unknown;
|
|
215
|
+
};
|
|
216
|
+
defaultExpanded?: boolean;
|
|
217
|
+
}
|
|
218
|
+
declare function ContractDisplay({ contract, defaultExpanded }: ContractDisplayProps): react_jsx_runtime.JSX.Element;
|
|
219
|
+
|
|
220
|
+
interface ConfigItem {
|
|
221
|
+
label: string;
|
|
222
|
+
value: ReactNode;
|
|
223
|
+
mono?: boolean;
|
|
224
|
+
}
|
|
225
|
+
interface ConfigCardProps {
|
|
226
|
+
icon: ReactNode;
|
|
227
|
+
title: string;
|
|
228
|
+
badge?: string;
|
|
229
|
+
items: ConfigItem[];
|
|
230
|
+
color?: string;
|
|
231
|
+
}
|
|
232
|
+
declare function ConfigCard({ icon, title, badge, items, color }: ConfigCardProps): react_jsx_runtime.JSX.Element | null;
|
|
233
|
+
|
|
234
|
+
interface ToolInfo {
|
|
235
|
+
name: string;
|
|
236
|
+
description?: string;
|
|
237
|
+
}
|
|
238
|
+
interface ToolsListDisplayProps {
|
|
239
|
+
tools: Array<string | ToolInfo>;
|
|
240
|
+
compact?: boolean;
|
|
241
|
+
maxVisible?: number;
|
|
242
|
+
}
|
|
243
|
+
declare function ToolsListDisplay({ tools, compact, maxVisible }: ToolsListDisplayProps): react_jsx_runtime.JSX.Element;
|
|
244
|
+
|
|
245
|
+
interface CollapsibleJsonSectionProps {
|
|
246
|
+
title: React.ReactNode;
|
|
247
|
+
data: unknown;
|
|
248
|
+
defaultExpanded?: boolean;
|
|
249
|
+
}
|
|
250
|
+
declare function CollapsibleJsonSection({ title, data, defaultExpanded }: CollapsibleJsonSectionProps): react_jsx_runtime.JSX.Element;
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* Shared types for ResourceDefinition components
|
|
254
|
+
*/
|
|
255
|
+
/** Serialized knowledge node from API response */
|
|
256
|
+
interface SerializedKnowledgeNode {
|
|
257
|
+
id: string;
|
|
258
|
+
description: string;
|
|
259
|
+
loaded: boolean;
|
|
260
|
+
hasPrompt: boolean;
|
|
261
|
+
[key: string]: unknown;
|
|
262
|
+
}
|
|
263
|
+
/** Serialized knowledge map from API response */
|
|
264
|
+
interface SerializedKnowledgeMap {
|
|
265
|
+
nodeCount: number;
|
|
266
|
+
nodes: SerializedKnowledgeNode[];
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
interface NewKnowledgeMapGraphProps {
|
|
270
|
+
knowledgeMap: SerializedKnowledgeMap;
|
|
271
|
+
agentName: string;
|
|
272
|
+
compact?: boolean;
|
|
273
|
+
fitViewTrigger?: number;
|
|
274
|
+
}
|
|
275
|
+
declare function NewKnowledgeMapGraph(props: NewKnowledgeMapGraphProps): react_jsx_runtime.JSX.Element;
|
|
276
|
+
|
|
277
|
+
interface KnowledgeMapNodeData {
|
|
278
|
+
id: string;
|
|
279
|
+
name: string;
|
|
280
|
+
description: string;
|
|
281
|
+
loaded: boolean;
|
|
282
|
+
hasPrompt: boolean;
|
|
283
|
+
isAgentNode: boolean;
|
|
284
|
+
[key: string]: unknown;
|
|
285
|
+
}
|
|
286
|
+
interface KnowledgeMapEdgeData {
|
|
287
|
+
[key: string]: unknown;
|
|
288
|
+
}
|
|
289
|
+
declare function useNewKnowledgeMapLayout(knowledgeMap: SerializedKnowledgeMap | undefined, agentName: string): {
|
|
290
|
+
nodes: Node<KnowledgeMapNodeData>[];
|
|
291
|
+
edges: Edge<KnowledgeMapEdgeData>[];
|
|
292
|
+
};
|
|
293
|
+
|
|
294
|
+
type NewKnowledgeMapNodeProps = NodeProps<Node<KnowledgeMapNodeData>>;
|
|
295
|
+
declare const NewKnowledgeMapNode: react.NamedExoticComponent<NewKnowledgeMapNodeProps>;
|
|
296
|
+
|
|
297
|
+
type NewKnowledgeMapEdgeProps = EdgeProps<Edge<KnowledgeMapEdgeData, string>>;
|
|
298
|
+
declare const NewKnowledgeMapEdge: react.NamedExoticComponent<NewKnowledgeMapEdgeProps>;
|
|
299
|
+
|
|
300
|
+
export { AgentDefinitionDisplay, CollapsibleJsonSection, ConfigCard, ContractDisplay, NewKnowledgeMapEdge, NewKnowledgeMapGraph, NewKnowledgeMapNode, ResourceDefinitionSection, ToolsListDisplay, WorkflowDefinitionDisplay, useNewKnowledgeMapLayout };
|
|
301
|
+
export type { KnowledgeMapEdgeData, KnowledgeMapNodeData, SerializedKnowledgeMap, SerializedKnowledgeNode };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { AgentDefinitionDisplay, CollapsibleJsonSection, ConfigCard, ContractDisplay, NewKnowledgeMapEdge, NewKnowledgeMapGraph, NewKnowledgeMapNode, ResourceDefinitionSection, ToolsListDisplay, WorkflowDefinitionDisplay, useNewKnowledgeMapLayout } from '../../chunk-OXVOHOP3.js';
|
|
2
|
+
import '../../chunk-HUWJXLLF.js';
|
|
3
|
+
import '../../chunk-3KMDHCAR.js';
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/* src/components/display/StatCard.module.css */
|
|
2
|
+
.heroCard {
|
|
3
|
+
background: var(--glass-background);
|
|
4
|
+
backdrop-filter: var(--glass-blur);
|
|
5
|
+
border: 1px solid var(--color-border);
|
|
6
|
+
}
|
|
7
|
+
.iconRing {
|
|
8
|
+
position: relative;
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
width: 46px;
|
|
13
|
+
height: 46px;
|
|
14
|
+
border-radius: 50%;
|
|
15
|
+
background: color-mix(in srgb, var(--color-primary) 12%, transparent);
|
|
16
|
+
border: 1px solid color-mix(in srgb, var(--color-primary) 25%, transparent);
|
|
17
|
+
color: var(--color-primary);
|
|
18
|
+
flex-shrink: 0;
|
|
19
|
+
box-shadow: 0 0 12px color-mix(in srgb, var(--color-primary) 15%, transparent);
|
|
20
|
+
}
|
|
21
|
+
.iconRingSm {
|
|
22
|
+
composes: iconRing;
|
|
23
|
+
width: 36px;
|
|
24
|
+
height: 36px;
|
|
25
|
+
box-shadow: 0 0 8px color-mix(in srgb, var(--color-primary) 12%, transparent);
|
|
26
|
+
}
|
|
27
|
+
.heroValue {
|
|
28
|
+
font-family: var(--elevasis-font-family-subtitle);
|
|
29
|
+
font-size: 1.85rem;
|
|
30
|
+
font-weight: 800;
|
|
31
|
+
line-height: 1;
|
|
32
|
+
letter-spacing: -0.02em;
|
|
33
|
+
font-variant-numeric: tabular-nums;
|
|
34
|
+
}
|
|
35
|
+
[data-mantine-color-scheme=dark] .heroValue {
|
|
36
|
+
text-shadow: 0 0 20px color-mix(in srgb, var(--color-primary) 20%, transparent);
|
|
37
|
+
}
|
|
38
|
+
.heroValueSm {
|
|
39
|
+
composes: heroValue;
|
|
40
|
+
font-size: 1.35rem;
|
|
41
|
+
font-weight: 700;
|
|
42
|
+
}
|
|
43
|
+
.heroLabel {
|
|
44
|
+
font-size: 0.68rem;
|
|
45
|
+
font-weight: 700;
|
|
46
|
+
text-transform: uppercase;
|
|
47
|
+
letter-spacing: 0.12em;
|
|
48
|
+
color: var(--color-text-dimmed);
|
|
49
|
+
}
|
|
50
|
+
.heroLabelSm {
|
|
51
|
+
composes: heroLabel;
|
|
52
|
+
font-size: 0.62rem;
|
|
53
|
+
}
|