agentui-wc 0.1.56 → 0.1.59
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/AGENTS.md +11 -11
- package/README.md +2 -2
- package/dist/AGENTS.md +11 -11
- package/dist/README.md +2 -2
- package/dist/agentui.d.ts +113 -15
- package/dist/agentui.esm.js +55 -55
- package/dist/agentui.esm.js.map +6 -6
- package/dist/agentui.min.js +54 -54
- package/dist/agentui.min.js.map +6 -6
- package/dist/chunks/advanced.js +1 -1
- package/dist/chunks/{chunk-8dp4wezq.js → chunk-4z97wya5.js} +1 -1
- package/dist/chunks/{chunk-z3watjbd.js → chunk-8hwf1xbg.js} +1 -1
- package/dist/chunks/chunk-dxdz7tae.js +5 -0
- package/dist/chunks/core.js +1 -1
- package/dist/chunks/display.js +1 -1
- package/dist/chunks/feedback.js +1 -1
- package/dist/chunks/forms.js +1 -1
- package/dist/chunks/layout.js +1 -1
- package/dist/component-schema.json +103 -51
- package/dist/components/au-alert.js +1 -1
- package/dist/components/au-api-table.js +1 -1
- package/dist/components/au-avatar.js +1 -1
- package/dist/components/au-badge.js +1 -1
- package/dist/components/au-bottom-nav.js +1 -1
- package/dist/components/au-button.js +1 -1
- package/dist/components/au-callout.js +1 -1
- package/dist/components/au-card.js +1 -1
- package/dist/components/au-checkbox.js +1 -1
- package/dist/components/au-chip.js +1 -1
- package/dist/components/au-code.js +1 -1
- package/dist/components/au-confirm.js +2 -2
- package/dist/components/au-container.js +1 -1
- package/dist/components/au-datatable.js +1 -1
- package/dist/components/au-divider.js +1 -1
- package/dist/components/au-doc-page.js +1 -1
- package/dist/components/au-drawer-item.js +1 -1
- package/dist/components/au-drawer.js +1 -1
- package/dist/components/au-dropdown.js +1 -1
- package/dist/components/au-error-boundary.js +1 -1
- package/dist/components/au-example.js +1 -1
- package/dist/components/au-fetch.js +1 -1
- package/dist/components/au-form.js +1 -1
- package/dist/components/au-grid.js +1 -1
- package/dist/components/au-icon.js +1 -1
- package/dist/components/au-input.js +1 -1
- package/dist/components/au-layout.js +1 -1
- package/dist/components/au-lazy.js +1 -1
- package/dist/components/au-modal.js +1 -1
- package/dist/components/au-navbar.js +1 -1
- package/dist/components/au-page.js +1 -1
- package/dist/components/au-progress.js +1 -1
- package/dist/components/au-prompt-ui.js +1 -1
- package/dist/components/au-radio.js +1 -1
- package/dist/components/au-repeat.js +1 -1
- package/dist/components/au-router.js +1 -1
- package/dist/components/au-schema-form.js +1 -1
- package/dist/components/au-sidebar.js +1 -1
- package/dist/components/au-skeleton.js +1 -1
- package/dist/components/au-spinner.js +1 -1
- package/dist/components/au-splash.js +1 -1
- package/dist/components/au-stack.js +1 -1
- package/dist/components/au-switch.js +1 -1
- package/dist/components/au-table.js +1 -1
- package/dist/components/au-tabs.js +1 -1
- package/dist/components/au-textarea.js +1 -1
- package/dist/components/au-theme-toggle.js +1 -1
- package/dist/components/au-toast.js +1 -1
- package/dist/components/au-tooltip.js +1 -1
- package/dist/components/au-virtual-list.js +1 -1
- package/dist/components/{chunk-mvj2z35y.js → chunk-h4jp7tbb.js} +1 -1
- package/dist/components/{chunk-yh93vx74.js → chunk-qagksrca.js} +2 -2
- package/dist/describe-catalog.json +1 -1
- package/dist/routes/alerts.js +1 -1
- package/dist/routes/avatars.js +1 -1
- package/dist/routes/badges.js +1 -1
- package/dist/routes/buttons.js +1 -1
- package/dist/routes/callouts.js +1 -1
- package/dist/routes/cards.js +1 -1
- package/dist/routes/checkboxes.js +1 -1
- package/dist/routes/chips.js +1 -1
- package/dist/routes/{chunk-xbbxw954.js → chunk-4xjmyejw.js} +1 -1
- package/dist/routes/{chunk-088p998f.js → chunk-5yk61q33.js} +1 -1
- package/dist/routes/{chunk-sxpew8wc.js → chunk-b005hymr.js} +1 -1
- package/dist/routes/{chunk-3s1gk3h8.js → chunk-e9xqwj18.js} +1 -1
- package/dist/routes/{chunk-m1f2h1jq.js → chunk-edd3z095.js} +1 -1
- package/dist/routes/{chunk-0g66jt6k.js → chunk-gm8twpce.js} +1 -1
- package/dist/routes/{chunk-g78t688g.js → chunk-he6pg7cg.js} +1 -1
- package/dist/routes/{chunk-32d29sak.js → chunk-n9apd3rk.js} +1 -1
- package/dist/routes/{chunk-hfds909w.js → chunk-nhq5ne7r.js} +2 -2
- package/dist/routes/{chunk-4mjan2sj.js → chunk-p4p7dwhb.js} +1 -1
- package/dist/routes/{chunk-twkj6j28.js → chunk-prq6rg88.js} +1 -1
- package/dist/routes/{chunk-xpzaw60z.js → chunk-q20mn0mj.js} +1 -1
- package/dist/routes/{chunk-wj9v82mm.js → chunk-s6h5wrem.js} +1 -1
- package/dist/routes/{chunk-71av9vrz.js → chunk-vhat7vjt.js} +1 -1
- package/dist/routes/{chunk-w90zpng4.js → chunk-y3br9fz6.js} +1 -1
- package/dist/routes/{chunk-916nbw17.js → chunk-zt87t2ss.js} +1 -1
- package/dist/routes/codeblocks.js +1 -1
- package/dist/routes/confirms.js +1 -1
- package/dist/routes/datatables.js +1 -1
- package/dist/routes/dividers.js +1 -1
- package/dist/routes/dropdowns.js +1 -1
- package/dist/routes/enterprise.js +1 -1
- package/dist/routes/home.js +1 -1
- package/dist/routes/icons.js +1 -1
- package/dist/routes/inputs.js +1 -1
- package/dist/routes/installation.js +1 -1
- package/dist/routes/layout.js +1 -1
- package/dist/routes/modals.js +1 -1
- package/dist/routes/navbar.js +1 -1
- package/dist/routes/progress.js +1 -1
- package/dist/routes/radios.js +1 -1
- package/dist/routes/shell-critical.js +1 -1
- package/dist/routes/shell-deferred.js +1 -1
- package/dist/routes/shell.js +3 -3
- package/dist/routes/skeletons.js +1 -1
- package/dist/routes/spinners.js +1 -1
- package/dist/routes/src/chunks/core.js +6 -6
- package/dist/routes/switches.js +1 -1
- package/dist/routes/tables.js +1 -1
- package/dist/routes/tabs.js +1 -1
- package/dist/routes/toasts.js +1 -1
- package/dist/routes/tooltips.js +1 -1
- package/dist/routes/virtual-lists.js +1 -1
- package/llms.txt +4 -4
- package/package.json +2 -2
- package/dist/chunks/chunk-m5sq043j.js +0 -5
package/AGENTS.md
CHANGED
|
@@ -451,10 +451,10 @@ A `custom-elements.json` manifest is included in the root. Agents can read this
|
|
|
451
451
|
- CSS Custom Properties (theming)
|
|
452
452
|
|
|
453
453
|
**2. Runtime Debugging (Agent Logger)**
|
|
454
|
-
Components validate usage and log structured errors to `window.
|
|
454
|
+
Components validate usage and log structured errors to `window.__AGENTUI_ERRORS__`.
|
|
455
455
|
```javascript
|
|
456
456
|
// Check for errors in E2E tests
|
|
457
|
-
const errors = await page.evaluate(() => window.
|
|
457
|
+
const errors = await page.evaluate(() => window.__AGENTUI_ERRORS__);
|
|
458
458
|
if (errors.length > 0) console.error('AgentUI Errors:', errors);
|
|
459
459
|
```
|
|
460
460
|
|
|
@@ -641,7 +641,7 @@ if (window.AgentUI?.ready) {
|
|
|
641
641
|
Enable verbose logging for troubleshooting:
|
|
642
642
|
|
|
643
643
|
```html
|
|
644
|
-
<script>window.
|
|
644
|
+
<script>window.AGENTUI_DEBUG = true;</script>
|
|
645
645
|
<script type="module" src="dist/agentui.esm.js"></script>
|
|
646
646
|
```
|
|
647
647
|
|
|
@@ -1399,14 +1399,14 @@ this.style.zIndex = Z_INDEX.modal;
|
|
|
1399
1399
|
|
|
1400
1400
|
### Confirm Dialog (Agent-Friendly)
|
|
1401
1401
|
```javascript
|
|
1402
|
-
import {
|
|
1402
|
+
import { auConfirm } from 'agentui-wc';
|
|
1403
1403
|
|
|
1404
1404
|
// Simple confirm - returns Promise<boolean>
|
|
1405
|
-
const ok = await
|
|
1405
|
+
const ok = await auConfirm('Delete this item?');
|
|
1406
1406
|
if (ok) deleteItem();
|
|
1407
1407
|
|
|
1408
1408
|
// With options
|
|
1409
|
-
const confirmed = await
|
|
1409
|
+
const confirmed = await auConfirm('Are you sure?', {
|
|
1410
1410
|
title: 'Confirm Delete',
|
|
1411
1411
|
confirmText: 'Delete',
|
|
1412
1412
|
cancelText: 'Cancel',
|
|
@@ -2268,11 +2268,11 @@ document.querySelectorAll('a[data-route]').forEach(link => {
|
|
|
2268
2268
|
|
|
2269
2269
|
### 1. Runtime Error Collection
|
|
2270
2270
|
|
|
2271
|
-
AgentUI logs all component errors to `window.
|
|
2271
|
+
AgentUI logs all component errors to `window.__AGENTUI_ERRORS__`:
|
|
2272
2272
|
|
|
2273
2273
|
```javascript
|
|
2274
2274
|
// In E2E tests or debug console
|
|
2275
|
-
const errors = window.
|
|
2275
|
+
const errors = window.__AGENTUI_ERRORS__ || [];
|
|
2276
2276
|
errors.forEach(err => {
|
|
2277
2277
|
console.error(`[${err.component}] ${err.message}`, err.details);
|
|
2278
2278
|
});
|
|
@@ -2351,7 +2351,7 @@ async function fetchWithRetry(url, options = {}, retries = 3) {
|
|
|
2351
2351
|
|
|
2352
2352
|
```javascript
|
|
2353
2353
|
// Enable verbose logging
|
|
2354
|
-
window.
|
|
2354
|
+
window.window.AGENTUI_DEBUG = true;
|
|
2355
2355
|
|
|
2356
2356
|
// Check component registration
|
|
2357
2357
|
customElements.get('au-button'); // Returns class or undefined
|
|
@@ -2719,7 +2719,7 @@ list.renderItem = (item) => `
|
|
|
2719
2719
|
### Runtime Error Detection
|
|
2720
2720
|
```javascript
|
|
2721
2721
|
// Check for AgentUI component errors
|
|
2722
|
-
const errors = window.
|
|
2722
|
+
const errors = window.__AGENTUI_ERRORS__ || [];
|
|
2723
2723
|
if (errors.length) {
|
|
2724
2724
|
console.error('AgentUI component errors:', errors);
|
|
2725
2725
|
// Report to monitoring service
|
|
@@ -2955,7 +2955,7 @@ node lighthouse-audit.mjs
|
|
|
2955
2955
|
# Results saved to /tmp/lighthouse-shell.json
|
|
2956
2956
|
```
|
|
2957
2957
|
|
|
2958
|
-
### Current Lighthouse Scores
|
|
2958
|
+
### Current Lighthouse Scores
|
|
2959
2959
|
|
|
2960
2960
|
| Page | Performance | Accessibility | Best Practices | SEO |
|
|
2961
2961
|
|------|-------------|---------------|----------------|-----|
|
package/README.md
CHANGED
|
@@ -75,7 +75,7 @@ AgentUI is built on four ideas:
|
|
|
75
75
|
| **Bundle** | 60KB gzipped (JS+CSS), all 50 components | Tree-shake to ~20KB, then add deps |
|
|
76
76
|
| **Performance** | Lighthouse 100/100/100/100 ([verify](https://pagespeed.web.dev/analysis?url=https://giuseppescottolavina.github.io/AgentUI/demo/)) | Varies |
|
|
77
77
|
| **Dependencies** | Zero. Forever. | npm audit anxiety |
|
|
78
|
-
| **Tests** |
|
|
78
|
+
| **Tests** | 1300+ tests, 0 failures, isolated runner | Coverage varies |
|
|
79
79
|
| **Memory** | Managed listeners (AbortController), zero leaks verified | Framework-dependent |
|
|
80
80
|
| **Security** | Every component XSS-audited, CSP-compatible, no `eval()` | Trust your deps |
|
|
81
81
|
| **Stability** | W3C Web Components — no migration treadmill | React 16→17→18→19... |
|
|
@@ -123,7 +123,7 @@ AgentUI is in **alpha** (v0.1.x). Here's an honest look at where we are:
|
|
|
123
123
|
- 500 component DOM instantiation in <8ms, 500 updates in <3ms
|
|
124
124
|
|
|
125
125
|
**Engineering**
|
|
126
|
-
-
|
|
126
|
+
- 1300+ isolated tests, zero failures, across 99 test files
|
|
127
127
|
- Every component XSS-audited — `escapeHTML()` on all user-facing content
|
|
128
128
|
- Zero runtime dependencies — zero supply chain risk
|
|
129
129
|
- Managed event listeners via AbortController — verified zero memory leaks
|
package/dist/AGENTS.md
CHANGED
|
@@ -451,10 +451,10 @@ A `custom-elements.json` manifest is included in the root. Agents can read this
|
|
|
451
451
|
- CSS Custom Properties (theming)
|
|
452
452
|
|
|
453
453
|
**2. Runtime Debugging (Agent Logger)**
|
|
454
|
-
Components validate usage and log structured errors to `window.
|
|
454
|
+
Components validate usage and log structured errors to `window.__AGENTUI_ERRORS__`.
|
|
455
455
|
```javascript
|
|
456
456
|
// Check for errors in E2E tests
|
|
457
|
-
const errors = await page.evaluate(() => window.
|
|
457
|
+
const errors = await page.evaluate(() => window.__AGENTUI_ERRORS__);
|
|
458
458
|
if (errors.length > 0) console.error('AgentUI Errors:', errors);
|
|
459
459
|
```
|
|
460
460
|
|
|
@@ -641,7 +641,7 @@ if (window.AgentUI?.ready) {
|
|
|
641
641
|
Enable verbose logging for troubleshooting:
|
|
642
642
|
|
|
643
643
|
```html
|
|
644
|
-
<script>window.
|
|
644
|
+
<script>window.AGENTUI_DEBUG = true;</script>
|
|
645
645
|
<script type="module" src="dist/agentui.esm.js"></script>
|
|
646
646
|
```
|
|
647
647
|
|
|
@@ -1399,14 +1399,14 @@ this.style.zIndex = Z_INDEX.modal;
|
|
|
1399
1399
|
|
|
1400
1400
|
### Confirm Dialog (Agent-Friendly)
|
|
1401
1401
|
```javascript
|
|
1402
|
-
import {
|
|
1402
|
+
import { auConfirm } from 'agentui-wc';
|
|
1403
1403
|
|
|
1404
1404
|
// Simple confirm - returns Promise<boolean>
|
|
1405
|
-
const ok = await
|
|
1405
|
+
const ok = await auConfirm('Delete this item?');
|
|
1406
1406
|
if (ok) deleteItem();
|
|
1407
1407
|
|
|
1408
1408
|
// With options
|
|
1409
|
-
const confirmed = await
|
|
1409
|
+
const confirmed = await auConfirm('Are you sure?', {
|
|
1410
1410
|
title: 'Confirm Delete',
|
|
1411
1411
|
confirmText: 'Delete',
|
|
1412
1412
|
cancelText: 'Cancel',
|
|
@@ -2268,11 +2268,11 @@ document.querySelectorAll('a[data-route]').forEach(link => {
|
|
|
2268
2268
|
|
|
2269
2269
|
### 1. Runtime Error Collection
|
|
2270
2270
|
|
|
2271
|
-
AgentUI logs all component errors to `window.
|
|
2271
|
+
AgentUI logs all component errors to `window.__AGENTUI_ERRORS__`:
|
|
2272
2272
|
|
|
2273
2273
|
```javascript
|
|
2274
2274
|
// In E2E tests or debug console
|
|
2275
|
-
const errors = window.
|
|
2275
|
+
const errors = window.__AGENTUI_ERRORS__ || [];
|
|
2276
2276
|
errors.forEach(err => {
|
|
2277
2277
|
console.error(`[${err.component}] ${err.message}`, err.details);
|
|
2278
2278
|
});
|
|
@@ -2351,7 +2351,7 @@ async function fetchWithRetry(url, options = {}, retries = 3) {
|
|
|
2351
2351
|
|
|
2352
2352
|
```javascript
|
|
2353
2353
|
// Enable verbose logging
|
|
2354
|
-
window.
|
|
2354
|
+
window.window.AGENTUI_DEBUG = true;
|
|
2355
2355
|
|
|
2356
2356
|
// Check component registration
|
|
2357
2357
|
customElements.get('au-button'); // Returns class or undefined
|
|
@@ -2719,7 +2719,7 @@ list.renderItem = (item) => `
|
|
|
2719
2719
|
### Runtime Error Detection
|
|
2720
2720
|
```javascript
|
|
2721
2721
|
// Check for AgentUI component errors
|
|
2722
|
-
const errors = window.
|
|
2722
|
+
const errors = window.__AGENTUI_ERRORS__ || [];
|
|
2723
2723
|
if (errors.length) {
|
|
2724
2724
|
console.error('AgentUI component errors:', errors);
|
|
2725
2725
|
// Report to monitoring service
|
|
@@ -2955,7 +2955,7 @@ node lighthouse-audit.mjs
|
|
|
2955
2955
|
# Results saved to /tmp/lighthouse-shell.json
|
|
2956
2956
|
```
|
|
2957
2957
|
|
|
2958
|
-
### Current Lighthouse Scores
|
|
2958
|
+
### Current Lighthouse Scores
|
|
2959
2959
|
|
|
2960
2960
|
| Page | Performance | Accessibility | Best Practices | SEO |
|
|
2961
2961
|
|------|-------------|---------------|----------------|-----|
|
package/dist/README.md
CHANGED
|
@@ -75,7 +75,7 @@ AgentUI is built on four ideas:
|
|
|
75
75
|
| **Bundle** | 60KB gzipped (JS+CSS), all 50 components | Tree-shake to ~20KB, then add deps |
|
|
76
76
|
| **Performance** | Lighthouse 100/100/100/100 ([verify](https://pagespeed.web.dev/analysis?url=https://giuseppescottolavina.github.io/AgentUI/demo/)) | Varies |
|
|
77
77
|
| **Dependencies** | Zero. Forever. | npm audit anxiety |
|
|
78
|
-
| **Tests** |
|
|
78
|
+
| **Tests** | 1300+ tests, 0 failures, isolated runner | Coverage varies |
|
|
79
79
|
| **Memory** | Managed listeners (AbortController), zero leaks verified | Framework-dependent |
|
|
80
80
|
| **Security** | Every component XSS-audited, CSP-compatible, no `eval()` | Trust your deps |
|
|
81
81
|
| **Stability** | W3C Web Components — no migration treadmill | React 16→17→18→19... |
|
|
@@ -123,7 +123,7 @@ AgentUI is in **alpha** (v0.1.x). Here's an honest look at where we are:
|
|
|
123
123
|
- 500 component DOM instantiation in <8ms, 500 updates in <3ms
|
|
124
124
|
|
|
125
125
|
**Engineering**
|
|
126
|
-
-
|
|
126
|
+
- 1300+ isolated tests, zero failures, across 99 test files
|
|
127
127
|
- Every component XSS-audited — `escapeHTML()` on all user-facing content
|
|
128
128
|
- Zero runtime dependencies — zero supply chain risk
|
|
129
129
|
- Managed event listeners via AbortController — verified zero memory leaks
|
package/dist/agentui.d.ts
CHANGED
|
@@ -1,16 +1,32 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* AgentUI v2 TypeScript Definitions
|
|
3
|
-
* Complete types for
|
|
3
|
+
* Complete types for all components
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
// ============================================
|
|
7
7
|
// CORE
|
|
8
8
|
// ============================================
|
|
9
|
+
|
|
10
|
+
/** Component description returned by AuElement.describe() */
|
|
11
|
+
export interface ComponentDescription {
|
|
12
|
+
name: string;
|
|
13
|
+
description: string;
|
|
14
|
+
props?: Record<string, { type: string; values?: string[]; default?: any; description?: string }>;
|
|
15
|
+
events?: string[] | { name: string; detail?: string; description?: string }[];
|
|
16
|
+
methods?: string[];
|
|
17
|
+
slots?: string[];
|
|
18
|
+
examples?: string[];
|
|
19
|
+
tips?: string[];
|
|
20
|
+
}
|
|
21
|
+
|
|
9
22
|
export declare class AuElement extends HTMLElement {
|
|
10
23
|
static observedAttributes: string[];
|
|
11
24
|
static baseClass: string;
|
|
12
25
|
static useContainment: boolean;
|
|
13
26
|
|
|
27
|
+
/** Returns machine-readable component metadata for AI agent discovery */
|
|
28
|
+
static describe(): ComponentDescription;
|
|
29
|
+
|
|
14
30
|
connectedCallback(): void;
|
|
15
31
|
disconnectedCallback(): void;
|
|
16
32
|
attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
|
|
@@ -30,7 +46,7 @@ export declare class AuElement extends HTMLElement {
|
|
|
30
46
|
export declare function define(tagName: string, ComponentClass: typeof AuElement): void;
|
|
31
47
|
|
|
32
48
|
// ============================================
|
|
33
|
-
// EVENT BUS (
|
|
49
|
+
// EVENT BUS (LightBus)
|
|
34
50
|
// ============================================
|
|
35
51
|
export interface EventBus {
|
|
36
52
|
on(event: string, callback: (data: any) => void): () => void;
|
|
@@ -42,11 +58,14 @@ export interface EventBus {
|
|
|
42
58
|
request(peerId: string, handler: string, payload?: any): Promise<any>;
|
|
43
59
|
broadcastRequest(handler: string, payload?: any): Promise<Map<string, any>>;
|
|
44
60
|
handle(name: string, handler: (payload: any) => any): () => void;
|
|
61
|
+
unhandle(name: string): void;
|
|
62
|
+
hasListeners(event: string): boolean;
|
|
45
63
|
destroy(): void;
|
|
46
64
|
setMaxListeners(n: number): void;
|
|
47
65
|
readonly peerId: string;
|
|
48
66
|
readonly peers: string[];
|
|
49
67
|
readonly peerCount: number;
|
|
68
|
+
readonly raw: any;
|
|
50
69
|
}
|
|
51
70
|
|
|
52
71
|
export declare const bus: EventBus;
|
|
@@ -68,6 +87,20 @@ export declare function showToast(message: string, options?: {
|
|
|
68
87
|
duration?: number;
|
|
69
88
|
}): void;
|
|
70
89
|
|
|
90
|
+
export declare const AGENTUI_VERSION: string;
|
|
91
|
+
export declare function isDebugEnabled(): boolean;
|
|
92
|
+
export declare function enableDebug(): boolean;
|
|
93
|
+
export declare function disableDebug(): void;
|
|
94
|
+
export declare function getHealth(): { peerId: string; uptime: number; listeners: number };
|
|
95
|
+
export declare function getCapabilities(): { peerId: string; capabilities: string[]; meta: any; version: string };
|
|
96
|
+
export declare function addInboundHook(fn: (payload: any) => any): () => void;
|
|
97
|
+
export declare function addOutboundHook(fn: (payload: any) => any): () => void;
|
|
98
|
+
export declare function registerComponent(tag: string, caps: { signals: string[]; options?: any }): void;
|
|
99
|
+
export declare function unregisterComponent(tag: string): void;
|
|
100
|
+
export declare function getComponentCapabilities(tag: string): any;
|
|
101
|
+
export declare function getRegisteredComponents(): Record<string, any>;
|
|
102
|
+
export declare function getComponentsForSignal(signal: string): string[];
|
|
103
|
+
|
|
71
104
|
// ============================================
|
|
72
105
|
// SIGNALS
|
|
73
106
|
// ============================================
|
|
@@ -157,6 +190,12 @@ export declare class HttpError extends Error {
|
|
|
157
190
|
body: string;
|
|
158
191
|
}
|
|
159
192
|
|
|
193
|
+
// ============================================
|
|
194
|
+
// FORM UTILITIES
|
|
195
|
+
// ============================================
|
|
196
|
+
export declare function createFormState(initialValues: Record<string, any>): any;
|
|
197
|
+
export declare function getFormValues(form: HTMLElement): Record<string, any>;
|
|
198
|
+
|
|
160
199
|
// ============================================
|
|
161
200
|
// THEME
|
|
162
201
|
// ============================================
|
|
@@ -170,39 +209,64 @@ export interface Theme {
|
|
|
170
209
|
export declare const Theme: Theme;
|
|
171
210
|
|
|
172
211
|
// ============================================
|
|
173
|
-
//
|
|
212
|
+
// AGENT API
|
|
213
|
+
// ============================================
|
|
214
|
+
export declare function getAuComponentTree(): any;
|
|
215
|
+
export declare function findByLabel(label: string): HTMLElement | null;
|
|
216
|
+
export declare function enableVisualMarkers(): void;
|
|
217
|
+
export declare function disableVisualMarkers(): void;
|
|
218
|
+
export declare function getMarkerMap(): Map<string, HTMLElement>;
|
|
219
|
+
export declare function getMarkerElement(id: string): HTMLElement | null;
|
|
220
|
+
export declare function getMCPActions(): any[];
|
|
221
|
+
export declare function getErrors(): any[];
|
|
222
|
+
export declare function clearErrors(): void;
|
|
223
|
+
|
|
224
|
+
// ============================================
|
|
225
|
+
// COMPONENTS — Layout
|
|
174
226
|
// ============================================
|
|
175
|
-
// Layout
|
|
176
227
|
export declare class AuStack extends AuElement { }
|
|
177
228
|
export declare class AuGrid extends AuElement { }
|
|
178
229
|
export declare class AuContainer extends AuElement { }
|
|
230
|
+
export declare class AuLayout extends AuElement { }
|
|
231
|
+
export declare class AuPage extends AuElement { }
|
|
179
232
|
export declare class AuNavbar extends AuElement { }
|
|
180
233
|
export declare class AuNavbarBrand extends AuElement { }
|
|
181
234
|
export declare class AuNavbarLinks extends AuElement { }
|
|
182
235
|
export declare class AuNavbarActions extends AuElement { }
|
|
236
|
+
export declare class AuNavItem extends AuElement { }
|
|
183
237
|
export declare class AuSidebar extends AuElement { open(): void; close(): void; toggle(): void; }
|
|
184
238
|
export declare class AuSidebarItem extends AuElement { }
|
|
239
|
+
export declare class AuDrawer extends AuElement { toggle(): void; }
|
|
240
|
+
export declare class AuDrawerItem extends AuElement { }
|
|
241
|
+
export declare class AuBottomNav extends AuElement { }
|
|
185
242
|
export declare class AuDivider extends AuElement { }
|
|
186
243
|
|
|
187
|
-
//
|
|
244
|
+
// ============================================
|
|
245
|
+
// COMPONENTS — Form
|
|
246
|
+
// ============================================
|
|
188
247
|
export declare class AuButton extends AuElement { }
|
|
189
248
|
export declare class AuInput extends AuElement { value: string; focus(): void; }
|
|
190
249
|
export declare class AuTextarea extends AuElement { value: string; }
|
|
191
|
-
export declare class AuForm extends AuElement { }
|
|
192
|
-
export declare class
|
|
250
|
+
export declare class AuForm extends AuElement { getValues(): Record<string, any>; getFormData(): FormData; validate(): boolean; reset(): void; }
|
|
251
|
+
export declare class AuSchemaForm extends AuElement { }
|
|
252
|
+
export declare class AuDropdown extends AuElement { value: string; open(): void; close(): void; toggle(): void; }
|
|
193
253
|
export declare class AuOption extends AuElement { }
|
|
194
254
|
export declare class AuCheckbox extends AuElement { checked: boolean; toggle(): void; }
|
|
195
255
|
export declare class AuSwitch extends AuElement { on: boolean; toggle(): void; }
|
|
196
256
|
export declare class AuRadioGroup extends AuElement { value: string; }
|
|
197
257
|
export declare class AuRadio extends AuElement { }
|
|
198
258
|
export declare class AuChip extends AuElement { selected: boolean; }
|
|
259
|
+
export declare class AuPromptInput extends AuElement { value: string; }
|
|
199
260
|
|
|
200
|
-
//
|
|
261
|
+
// ============================================
|
|
262
|
+
// COMPONENTS — Display
|
|
263
|
+
// ============================================
|
|
201
264
|
export declare class AuCard extends AuElement { }
|
|
202
265
|
export declare class AuTabs extends AuElement { }
|
|
203
266
|
export declare class AuTab extends AuElement { }
|
|
204
267
|
export declare class AuAlert extends AuElement { dismiss(): void; }
|
|
205
268
|
export declare class AuBadge extends AuElement { }
|
|
269
|
+
export declare class AuCallout extends AuElement { }
|
|
206
270
|
export declare class AuProgress extends AuElement { }
|
|
207
271
|
export declare class AuTable extends AuElement { }
|
|
208
272
|
export declare class AuThead extends AuElement { }
|
|
@@ -210,25 +274,59 @@ export declare class AuTbody extends AuElement { }
|
|
|
210
274
|
export declare class AuTr extends AuElement { }
|
|
211
275
|
export declare class AuTh extends AuElement { }
|
|
212
276
|
export declare class AuTd extends AuElement { }
|
|
277
|
+
export declare class AuDataTable extends AuElement { setData(data: any[]): void; getData(): any[]; sortBy(field: string, dir?: string): void; filter(query: string): void; goToPage(n: number): void; getSelectedRows(): any[]; }
|
|
213
278
|
export declare class AuAvatar extends AuElement { }
|
|
214
279
|
export declare class AuSkeleton extends AuElement { }
|
|
280
|
+
export declare class AuCode extends AuElement { }
|
|
281
|
+
export declare class AuCodeBlock extends AuElement { }
|
|
282
|
+
export declare class AuMessageBubble extends AuElement { }
|
|
215
283
|
|
|
216
|
-
//
|
|
284
|
+
// ============================================
|
|
285
|
+
// COMPONENTS — Feedback
|
|
286
|
+
// ============================================
|
|
217
287
|
export declare class AuSpinner extends AuElement { }
|
|
218
288
|
export declare class AuModal extends AuElement { open(): void; close(): void; }
|
|
289
|
+
export declare class AuConfirm extends AuElement { }
|
|
219
290
|
export declare class AuToast extends AuElement { dismiss(): void; }
|
|
291
|
+
export declare class AuToastContainer extends AuElement { }
|
|
220
292
|
export declare class AuTooltip extends AuElement { show(): void; hide(): void; }
|
|
293
|
+
export declare class AuErrorBoundary extends AuElement { }
|
|
294
|
+
export declare class AuSplash extends AuElement { }
|
|
221
295
|
|
|
222
|
-
//
|
|
296
|
+
// ============================================
|
|
297
|
+
// COMPONENTS — Utility
|
|
298
|
+
// ============================================
|
|
223
299
|
export declare class AuThemeToggle extends AuElement { }
|
|
224
300
|
export declare class AuIcon extends AuElement { }
|
|
225
|
-
export declare
|
|
226
|
-
|
|
227
|
-
// Performance
|
|
228
|
-
export declare class AuVirtualList extends AuElement { items: any[]; renderItem: (item: any, index: number) => string; scrollToIndex(index: number): void; }
|
|
301
|
+
export declare class AuFetch extends AuElement { }
|
|
229
302
|
export declare class AuLazy extends AuElement { load(): void; }
|
|
230
303
|
export declare class AuRepeat extends AuElement { items: any[]; keyFn: (item: any, index: number) => any; renderItem: (item: any, index: number) => string; refresh(): void; }
|
|
304
|
+
export declare class AuVirtualList extends AuElement { items: any[]; renderItem: (item: any, index: number) => string; scrollToIndex(index: number): void; }
|
|
305
|
+
export declare class AuRouter extends AuElement { }
|
|
306
|
+
export declare class AuComponentTree extends AuElement { }
|
|
307
|
+
export declare class AuAgentToolbar extends AuElement { }
|
|
308
|
+
|
|
309
|
+
// ============================================
|
|
310
|
+
// COMPONENTS — Documentation
|
|
311
|
+
// ============================================
|
|
312
|
+
export declare class AuDocPage extends AuElement { }
|
|
313
|
+
export declare class AuExample extends AuElement { }
|
|
314
|
+
export declare class AuApiTable extends AuElement { }
|
|
315
|
+
export declare class AuApiRow extends AuElement { }
|
|
316
|
+
|
|
317
|
+
export declare const IconNames: string[];
|
|
318
|
+
|
|
319
|
+
// ============================================
|
|
320
|
+
// PROGRAMMATIC DIALOGS
|
|
321
|
+
// ============================================
|
|
322
|
+
export declare function auConfirm(message: string, options?: {
|
|
323
|
+
title?: string;
|
|
324
|
+
confirmText?: string;
|
|
325
|
+
cancelText?: string;
|
|
326
|
+
variant?: 'primary' | 'danger' | 'warning';
|
|
327
|
+
size?: 'sm' | 'md' | 'lg';
|
|
328
|
+
}): Promise<boolean>;
|
|
231
329
|
|
|
232
330
|
export declare const Toast: {
|
|
233
|
-
show(message: string, options?: { severity?: string; duration?: number }): AuToast;
|
|
331
|
+
show(message: string, options?: { severity?: string; duration?: number; position?: string }): AuToast;
|
|
234
332
|
};
|