orbital-ds 0.40.0 → 0.44.1
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 +29 -10
- package/components.manifest.json +6469 -3349
- package/dist/auth-form-B1hgbXkI.d.ts +144 -0
- package/dist/hooks/use-ds-messages.d.ts +89 -0
- package/dist/lib/a2ui-catalog.d.ts +42 -0
- package/dist/lib/a2ui-catalog.js +558 -0
- package/dist/lib/a2ui.d.ts +289 -0
- package/dist/lib/a2ui.js +215 -0
- package/dist/lib/ai-events.d.ts +15 -0
- package/dist/lib/ai-events.js +202 -0
- package/dist/lib/auth-flow.d.ts +3 -1
- package/dist/lib/auth-flow.js +24 -3
- package/dist/lib/format.d.ts +57 -0
- package/dist/lib/format.js +177 -0
- package/dist/lib/i18n.d.ts +96 -2
- package/dist/lib/i18n.js +278 -2
- package/dist/lib/locales/de.d.ts +7 -0
- package/dist/lib/locales/de.js +535 -0
- package/dist/lib/locales/fr.d.ts +7 -0
- package/dist/lib/locales/fr.js +535 -0
- package/dist/lib/locales/he.d.ts +7 -0
- package/dist/lib/locales/he.js +535 -0
- package/dist/lib/locales/it.d.ts +7 -0
- package/dist/lib/locales/it.js +535 -0
- package/dist/styles.css +62 -2
- package/dist/ui/a2ui-renderer.d.ts +44 -0
- package/dist/ui/a2ui-renderer.js +793 -0
- package/dist/ui/agent-events.d.ts +49 -0
- package/dist/ui/agent-events.js +108 -0
- package/dist/ui/ai-tag.d.ts +16 -0
- package/dist/ui/alert-dialog.d.ts +37 -0
- package/dist/ui/alert.d.ts +1 -1
- package/dist/ui/animated-number.d.ts +11 -0
- package/dist/ui/app-bar.d.ts +22 -0
- package/dist/ui/attachment.d.ts +1 -1
- package/dist/ui/auth-backdrop.d.ts +17 -0
- package/dist/ui/auth-form.d.ts +3 -110
- package/dist/ui/auth-form.js +46 -11
- package/dist/ui/auth-layout.d.ts +38 -0
- package/dist/ui/avatar.d.ts +27 -0
- package/dist/ui/ayuda.d.ts +1 -1
- package/dist/ui/ayuda.js +4 -1
- package/dist/ui/badge.d.ts +1 -1
- package/dist/ui/banner.d.ts +1 -1
- package/dist/ui/bottom-nav.d.ts +22 -0
- package/dist/ui/breadcrumb.d.ts +22 -0
- package/dist/ui/breadcrumb.js +1 -1
- package/dist/ui/bubble.d.ts +1 -1
- package/dist/ui/button.d.ts +2 -2
- package/dist/ui/calendar.d.ts +13 -0
- package/dist/ui/calendar.js +3 -0
- package/dist/ui/card-stack.d.ts +27 -0
- package/dist/ui/card.d.ts +33 -0
- package/dist/ui/carousel.d.ts +35 -0
- package/dist/ui/carousel.js +10 -5
- package/dist/ui/chain-of-thought.d.ts +34 -0
- package/dist/ui/chain-of-thought.js +90 -0
- package/dist/ui/chart-card.d.ts +19 -0
- package/dist/ui/chart.d.ts +19 -0
- package/dist/ui/chat-composer.d.ts +58 -0
- package/dist/ui/chat-composer.js +192 -0
- package/dist/ui/choice-card.d.ts +33 -0
- package/dist/ui/code-block.d.ts +15 -0
- package/dist/ui/combobox.d.ts +48 -0
- package/dist/ui/command-palette.d.ts +18 -0
- package/dist/ui/command.d.ts +34 -0
- package/dist/ui/confirm-action.d.ts +30 -0
- package/dist/ui/confirm-dialog.d.ts +23 -0
- package/dist/ui/content-card.d.ts +14 -0
- package/dist/ui/context-menu.d.ts +35 -0
- package/dist/ui/context-menu.js +1 -1
- package/dist/ui/conversation-list.d.ts +44 -0
- package/dist/ui/conversation-list.js +141 -0
- package/dist/ui/copy-button.d.ts +11 -0
- package/dist/ui/date-time.d.ts +40 -0
- package/dist/ui/date-time.js +55 -0
- package/dist/ui/description-list.d.ts +49 -0
- package/dist/ui/description-list.js +86 -0
- package/dist/ui/detail-panel.d.ts +22 -0
- package/dist/ui/dialog.d.ts +35 -0
- package/dist/ui/dock.d.ts +17 -0
- package/dist/ui/drawer.d.ts +41 -0
- package/dist/ui/dropdown-menu.d.ts +32 -0
- package/dist/ui/dropdown-menu.js +1 -1
- package/dist/ui/echart.d.ts +15 -0
- package/dist/ui/empty.d.ts +1 -1
- package/dist/ui/entity-list.d.ts +32 -0
- package/dist/ui/form-layout.d.ts +24 -0
- package/dist/ui/gauge.d.ts +26 -0
- package/dist/ui/generated-image.d.ts +33 -0
- package/dist/ui/generated-image.js +65 -0
- package/dist/ui/generated-table.d.ts +29 -0
- package/dist/ui/generated-table.js +59 -0
- package/dist/ui/heatmap-grid.d.ts +20 -0
- package/dist/ui/hero.d.ts +58 -0
- package/dist/ui/hero.js +145 -0
- package/dist/ui/i18n-provider.d.ts +16 -0
- package/dist/ui/icon-tile.d.ts +2 -2
- package/dist/ui/input-group.d.ts +1 -1
- package/dist/ui/input-otp.d.ts +23 -0
- package/dist/ui/input.d.ts +16 -0
- package/dist/ui/instruction-editor.d.ts +17 -0
- package/dist/ui/item.d.ts +3 -3
- package/dist/ui/label.d.ts +17 -0
- package/dist/ui/legend.d.ts +25 -0
- package/dist/ui/level-meter.d.ts +12 -0
- package/dist/ui/load-more.d.ts +17 -0
- package/dist/ui/loading-state.d.ts +12 -0
- package/dist/ui/markdown.d.ts +29 -0
- package/dist/ui/markdown.js +123 -0
- package/dist/ui/media-card.d.ts +16 -0
- package/dist/ui/menubar.d.ts +39 -0
- package/dist/ui/message-actions.d.ts +21 -0
- package/dist/ui/message-actions.js +79 -0
- package/dist/ui/message-scroller.d.ts +30 -0
- package/dist/ui/message.d.ts +33 -0
- package/dist/ui/mfa-challenge.d.ts +3 -32
- package/dist/ui/mfa-challenge.js +1 -1
- package/dist/ui/mfa-setup.d.ts +1 -1
- package/dist/ui/mosaic.d.ts +23 -0
- package/dist/ui/motion-provider.d.ts +17 -0
- package/dist/ui/native-select.d.ts +22 -0
- package/dist/ui/next-step-card.d.ts +55 -0
- package/dist/ui/next-step-card.js +92 -0
- package/dist/ui/notice-review.d.ts +32 -0
- package/dist/ui/oauth-consent.d.ts +1 -1
- package/dist/ui/page-header.d.ts +46 -4
- package/dist/ui/page-header.js +20 -11
- package/dist/ui/page-loader.d.ts +17 -0
- package/dist/ui/page-shell.d.ts +17 -0
- package/dist/ui/pagination.d.ts +20 -0
- package/dist/ui/pagination.js +2 -2
- package/dist/ui/panel.d.ts +1 -1
- package/dist/ui/password-strength.d.ts +14 -0
- package/dist/ui/popover.d.ts +32 -0
- package/dist/ui/proportion-bar.d.ts +25 -0
- package/dist/ui/quantity.d.ts +25 -0
- package/dist/ui/quantity.js +27 -0
- package/dist/ui/questionnaire.d.ts +38 -0
- package/dist/ui/reasoning.d.ts +24 -0
- package/dist/ui/reasoning.js +62 -0
- package/dist/ui/reveal.d.ts +17 -0
- package/dist/ui/sheet.d.ts +39 -2
- package/dist/ui/sheet.js +6 -2
- package/dist/ui/shield.d.ts +14 -0
- package/dist/ui/show-more.d.ts +14 -0
- package/dist/ui/sidebar.d.ts +4 -2
- package/dist/ui/sidebar.js +7 -3
- package/dist/ui/sparkline.d.ts +1 -1
- package/dist/ui/stat-group.d.ts +32 -0
- package/dist/ui/stat.d.ts +1 -1
- package/dist/ui/status-badge.d.ts +3 -3
- package/dist/ui/status-hero.d.ts +18 -0
- package/dist/ui/step-dots.d.ts +12 -0
- package/dist/ui/step-ring.d.ts +14 -0
- package/dist/ui/suggestions.d.ts +17 -0
- package/dist/ui/suggestions.js +39 -0
- package/dist/ui/table.d.ts +26 -0
- package/dist/ui/tag-input.d.ts +21 -0
- package/dist/ui/tag-input.js +169 -0
- package/dist/ui/task-loader.d.ts +15 -0
- package/dist/ui/task-progress.d.ts +14 -0
- package/dist/ui/textarea.d.ts +22 -1
- package/dist/ui/textarea.js +7 -1
- package/dist/ui/timeline.d.ts +26 -0
- package/dist/ui/toggle-group.d.ts +24 -0
- package/dist/ui/tool-call.d.ts +27 -0
- package/dist/ui/tool-call.js +74 -0
- package/dist/ui/usage-meter.d.ts +42 -0
- package/dist/ui/usage-meter.js +116 -0
- package/dist/ui/week-strip.d.ts +11 -0
- package/dist/ui/week-strip.js +2 -2
- package/dist/ui/workflow-run.d.ts +51 -0
- package/dist/ui/workflow-run.js +185 -0
- package/docs/adr/0001-rtl-clases-logicas.md +14 -1
- package/docs/designer/criterio.md +87 -87
- package/docs/designer/flujo.md +1 -1
- package/docs/designer/patrones.md +43 -2
- package/manifest/actions.json +364 -0
- package/manifest/agents.json +399 -0
- package/manifest/ai.json +128 -0
- package/manifest/auth.json +1547 -0
- package/manifest/chat.json +612 -0
- package/manifest/content.json +2298 -0
- package/manifest/data.json +2904 -0
- package/manifest/feedback.json +1005 -0
- package/manifest/forms.json +1954 -0
- package/manifest/motion.json +196 -0
- package/manifest/navigation.json +1792 -0
- package/manifest/overlays.json +931 -0
- package/package.json +35 -21
- package/scripts/cli.mjs +105 -8
- package/scripts/doctor.mjs +126 -1
- package/scripts/eslint-plugin.mjs +93 -0
- package/scripts/i18n.mjs +1 -1
- package/scripts/manifest.mjs +159 -7
- package/skill/SKILL.md +8 -3
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { MfaMethod, AuthErrorCode, AuthField, PasswordRules, AuthProviderOption, AuthLink } from './lib/auth.js';
|
|
3
|
+
|
|
4
|
+
type MfaChallengePreset = "totp" | "sms" | "email" | "backup-code" | "passkey";
|
|
5
|
+
declare function MfaChallenge({ preset, methods, destination, codeLength, trustDevice, onVerify, onPasskey, onResend, onMethodChange, resendAfter, onCancel, error: errorProp, title, description, className, ...props }: Omit<React.ComponentProps<"div">, "title"> & {
|
|
6
|
+
preset?: MfaChallengePreset;
|
|
7
|
+
/** Métodos activos de la persona (el primero no hace falta repetirlo). */
|
|
8
|
+
methods?: MfaMethod[];
|
|
9
|
+
/** Número o correo ya enmascarado («•••• 4821», «f•••@empresa.com»). */
|
|
10
|
+
destination?: string;
|
|
11
|
+
codeLength?: number;
|
|
12
|
+
/** Casilla «no volver a preguntar en este dispositivo». */
|
|
13
|
+
trustDevice?: boolean;
|
|
14
|
+
onVerify?: (code: string, options: {
|
|
15
|
+
method: MfaMethod;
|
|
16
|
+
trustDevice: boolean;
|
|
17
|
+
}) => AuthResult | Promise<AuthResult>;
|
|
18
|
+
onPasskey?: () => AuthResult | Promise<AuthResult>;
|
|
19
|
+
/** sms y email: reenviar el código. */
|
|
20
|
+
onResend?: (method: MfaMethod) => void | Promise<void>;
|
|
21
|
+
/** Se ha cambiado de método (p. ej. para pedir al servidor que envíe el SMS). */
|
|
22
|
+
onMethodChange?: (method: MfaMethod) => void;
|
|
23
|
+
resendAfter?: number;
|
|
24
|
+
/** Volver (cerrar sesión parcial, volver al inicio). */
|
|
25
|
+
onCancel?: () => void;
|
|
26
|
+
error?: React.ReactNode;
|
|
27
|
+
title?: React.ReactNode;
|
|
28
|
+
description?: React.ReactNode;
|
|
29
|
+
}): React.JSX.Element;
|
|
30
|
+
|
|
31
|
+
type AuthFormPreset = "sign-in" | "social" | "sign-up" | "magic-link" | "email-code" | "sso" | "forgot-password" | "reset-password";
|
|
32
|
+
type AuthIdentifierKind = "email" | "username" | "email-or-username";
|
|
33
|
+
type AuthMessage = AuthErrorCode | React.ReactNode;
|
|
34
|
+
type AuthFormValues = {
|
|
35
|
+
identifier: string;
|
|
36
|
+
password: string;
|
|
37
|
+
name: string;
|
|
38
|
+
confirmPassword: string;
|
|
39
|
+
remember: boolean;
|
|
40
|
+
terms: boolean;
|
|
41
|
+
/** Campos extra (`extraFields`) y todo lo demás del formulario. */
|
|
42
|
+
formData: FormData;
|
|
43
|
+
};
|
|
44
|
+
type AuthOrganization = {
|
|
45
|
+
id: string;
|
|
46
|
+
label: React.ReactNode;
|
|
47
|
+
description?: React.ReactNode;
|
|
48
|
+
icon?: React.ReactNode;
|
|
49
|
+
};
|
|
50
|
+
/** Lo que devuelve un callback: error general, errores por campo o la vista siguiente. */
|
|
51
|
+
type AuthResult = void | undefined | {
|
|
52
|
+
error?: AuthMessage;
|
|
53
|
+
fieldErrors?: Partial<Record<AuthField, AuthMessage>>;
|
|
54
|
+
next?: "password" | "code" | "sent" | "sso" | "redirecting" | "mfa";
|
|
55
|
+
};
|
|
56
|
+
/** Ruta que decide la app para un identificador (home realm discovery). */
|
|
57
|
+
type AuthRoute = void | undefined | {
|
|
58
|
+
method: "password" | "sso" | "passkey" | "email-code" | "magic-link";
|
|
59
|
+
/** Puerta por la que entra: plantilla o gente de fuera (se muestra junto al correo). */
|
|
60
|
+
access?: "internal" | "external";
|
|
61
|
+
/** SSO con varias organizaciones para el mismo dominio: se deja elegir. */
|
|
62
|
+
organizations?: AuthOrganization[];
|
|
63
|
+
error?: AuthMessage;
|
|
64
|
+
};
|
|
65
|
+
declare function AuthForm({ preset, title, description, icon, identifier, defaultIdentifier, identifierFirst, onIdentify, audience, entry, fields, extraFields, passwordRules, showStrength, remember, providers, onProvider, providersPlacement, providersLayout, onPasskey, onSso, ssoBy, lastUsed, mfa, onSubmit, onVerifyCode, onResend, resendAfter, codeLength, error: errorProp, fieldErrors: fieldErrorsProp, links, submitLabel, footer, className, ...props }: Omit<React.ComponentProps<"div">, "title" | "onSubmit"> & {
|
|
66
|
+
preset?: AuthFormPreset;
|
|
67
|
+
title?: React.ReactNode;
|
|
68
|
+
description?: React.ReactNode;
|
|
69
|
+
/** Icono sobre el título (IconTile, logo de la app…). */
|
|
70
|
+
icon?: React.ReactNode;
|
|
71
|
+
/** Qué identifica a la persona. */
|
|
72
|
+
identifier?: AuthIdentifierKind;
|
|
73
|
+
defaultIdentifier?: string;
|
|
74
|
+
/** sign-in: primero el identificador; luego el método que toque. */
|
|
75
|
+
identifierFirst?: boolean;
|
|
76
|
+
/** Home realm discovery: la app dice qué método le toca a ese identificador. */
|
|
77
|
+
onIdentify?: (identifier: string) => AuthRoute | Promise<AuthRoute>;
|
|
78
|
+
/** Quién puede entrar: explica en pantalla, antes de escribir el correo, qué puerta le toca a cada persona. */
|
|
79
|
+
audience?: "internal" | "external" | "mixed";
|
|
80
|
+
/** Inicio del acceso mixto: `identifier` pide el correo y el dominio decide; `doors` ofrece dos puertas sin escribir: «Continuar con SSO» para el personal y «Acceso para personas externas», que abre el formulario de cuenta propia (correo y contraseña, passkey). Necesita `onSso`. */
|
|
81
|
+
entry?: "identifier" | "doors";
|
|
82
|
+
/** Campos y orden (sign-up y reset-password). */
|
|
83
|
+
fields?: AuthField[];
|
|
84
|
+
/** Campos propios de la app, antes del botón (llegan en `formData`). */
|
|
85
|
+
extraFields?: React.ReactNode;
|
|
86
|
+
passwordRules?: PasswordRules;
|
|
87
|
+
/** Barra de fuerza de la contraseña (sign-up y reset-password por defecto). */
|
|
88
|
+
showStrength?: boolean;
|
|
89
|
+
/** Casilla «mantener la sesión iniciada». */
|
|
90
|
+
remember?: boolean;
|
|
91
|
+
/** SSO o redes sociales (la app pone nombre e icono). */
|
|
92
|
+
providers?: AuthProviderOption[];
|
|
93
|
+
onProvider?: (id: string) => void | Promise<AuthResult>;
|
|
94
|
+
providersPlacement?: "top" | "bottom";
|
|
95
|
+
providersLayout?: "stack" | "grid" | "icons";
|
|
96
|
+
/** Entrar con passkey (y autocompletado de passkeys en el campo del identificador). */
|
|
97
|
+
onPasskey?: () => void | Promise<AuthResult>;
|
|
98
|
+
/** SSO de empresa: enlace «usar SSO» en sign-in y envío del preset sso. */
|
|
99
|
+
onSso?: (input: {
|
|
100
|
+
identifier: string;
|
|
101
|
+
organization?: string;
|
|
102
|
+
}) => AuthResult | Promise<AuthResult | {
|
|
103
|
+
organizations: AuthOrganization[];
|
|
104
|
+
}>;
|
|
105
|
+
/** sso: se identifica por correo de trabajo o por organización. */
|
|
106
|
+
ssoBy?: "email" | "organization";
|
|
107
|
+
/**
|
|
108
|
+
* Segundo factor dentro del mismo flujo: cuando un callback devuelve `{ next: "mfa" }` se muestra `MfaChallenge`
|
|
109
|
+
* con estas props (`preset`, `methods`, `destination`, `onVerify`, `onPasskey`…). Sin ella, la app lo pinta aparte.
|
|
110
|
+
*/
|
|
111
|
+
mfa?: Omit<React.ComponentProps<typeof MfaChallenge>, "onCancel">;
|
|
112
|
+
/** Último método usado en este dispositivo: id de proveedor, "passkey", "sso" o "password". */
|
|
113
|
+
lastUsed?: string | null;
|
|
114
|
+
onSubmit?: (values: AuthFormValues) => AuthResult | Promise<AuthResult>;
|
|
115
|
+
/** email-code: verifica el código (se llama al completarse). */
|
|
116
|
+
onVerifyCode?: (code: string, values: {
|
|
117
|
+
identifier: string;
|
|
118
|
+
}) => AuthResult | Promise<AuthResult>;
|
|
119
|
+
/** Reenviar enlace o código. */
|
|
120
|
+
onResend?: (values: {
|
|
121
|
+
identifier: string;
|
|
122
|
+
}) => void | Promise<void>;
|
|
123
|
+
/** Segundos hasta poder reenviar. */
|
|
124
|
+
resendAfter?: number;
|
|
125
|
+
codeLength?: number;
|
|
126
|
+
/** Error controlado por la app. */
|
|
127
|
+
error?: AuthMessage;
|
|
128
|
+
fieldErrors?: Partial<Record<AuthField, AuthMessage>>;
|
|
129
|
+
/** Enlaces: URL o función del router. */
|
|
130
|
+
links?: {
|
|
131
|
+
signIn?: AuthLink;
|
|
132
|
+
email?: AuthLink;
|
|
133
|
+
signUp?: AuthLink;
|
|
134
|
+
requestAccess?: AuthLink;
|
|
135
|
+
forgotPassword?: AuthLink;
|
|
136
|
+
terms?: AuthLink;
|
|
137
|
+
privacy?: AuthLink;
|
|
138
|
+
};
|
|
139
|
+
submitLabel?: React.ReactNode;
|
|
140
|
+
/** Sustituye el pie de enlaces. */
|
|
141
|
+
footer?: React.ReactNode;
|
|
142
|
+
}): React.JSX.Element;
|
|
143
|
+
|
|
144
|
+
export { type AuthResult as A, MfaChallenge as M, type MfaChallengePreset as a, AuthForm as b, type AuthFormPreset as c, type AuthFormValues as d, type AuthOrganization as e, type AuthRoute as f };
|
|
@@ -129,6 +129,86 @@ declare const DsMessagesContext: React.Context<{
|
|
|
129
129
|
noticeStateResolved: string;
|
|
130
130
|
entityRetry: string;
|
|
131
131
|
showMore: string;
|
|
132
|
+
reasoningTitle: string;
|
|
133
|
+
reasoningThinking: string;
|
|
134
|
+
reasoningDone: string;
|
|
135
|
+
toolRunning: string;
|
|
136
|
+
toolDone: string;
|
|
137
|
+
toolError: string;
|
|
138
|
+
toolInput: string;
|
|
139
|
+
toolOutput: string;
|
|
140
|
+
composerPlaceholder: string;
|
|
141
|
+
composerSend: string;
|
|
142
|
+
composerStop: string;
|
|
143
|
+
composerAttach: string;
|
|
144
|
+
suggestionsLabel: string;
|
|
145
|
+
eventThinking: string;
|
|
146
|
+
eventTool: string;
|
|
147
|
+
eventMessage: string;
|
|
148
|
+
eventHandoff: string;
|
|
149
|
+
eventError: string;
|
|
150
|
+
eventDone: string;
|
|
151
|
+
composerVoice: string;
|
|
152
|
+
voiceRecording: string;
|
|
153
|
+
voiceCancel: string;
|
|
154
|
+
voiceConfirm: string;
|
|
155
|
+
voiceTranscribing: string;
|
|
156
|
+
voiceError: string;
|
|
157
|
+
voiceRetry: string;
|
|
158
|
+
composerRemoveFile: string;
|
|
159
|
+
tagRemove: string;
|
|
160
|
+
tagAdd: string;
|
|
161
|
+
composerCounter: string;
|
|
162
|
+
composerDrop: string;
|
|
163
|
+
composerUploading: string;
|
|
164
|
+
composerFileError: string;
|
|
165
|
+
conversationNew: string;
|
|
166
|
+
conversationSearch: string;
|
|
167
|
+
conversationPinned: string;
|
|
168
|
+
conversationToday: string;
|
|
169
|
+
conversationYesterday: string;
|
|
170
|
+
conversationWeek: string;
|
|
171
|
+
conversationOlder: string;
|
|
172
|
+
conversationRename: string;
|
|
173
|
+
conversationDelete: string;
|
|
174
|
+
conversationPin: string;
|
|
175
|
+
conversationUnpin: string;
|
|
176
|
+
conversationEmpty: string;
|
|
177
|
+
conversationListLabel: string;
|
|
178
|
+
conversationActions: string;
|
|
179
|
+
messageCopy: string;
|
|
180
|
+
messageRetry: string;
|
|
181
|
+
messageGood: string;
|
|
182
|
+
messageBad: string;
|
|
183
|
+
messageActionsLabel: string;
|
|
184
|
+
chainWorking: string;
|
|
185
|
+
chainDone: string;
|
|
186
|
+
workflowRunning: string;
|
|
187
|
+
workflowSucceeded: string;
|
|
188
|
+
workflowFailed: string;
|
|
189
|
+
workflowCancelled: string;
|
|
190
|
+
workflowCancel: string;
|
|
191
|
+
workflowRetry: string;
|
|
192
|
+
workflowProgress: string;
|
|
193
|
+
workflowParallel: string;
|
|
194
|
+
workflowSkipped: string;
|
|
195
|
+
workflowWaiting: string;
|
|
196
|
+
toolApprove: string;
|
|
197
|
+
toolDeny: string;
|
|
198
|
+
toolAwaiting: string;
|
|
199
|
+
imageGenerating: string;
|
|
200
|
+
imageError: string;
|
|
201
|
+
imageDownload: string;
|
|
202
|
+
tableEmpty: string;
|
|
203
|
+
tableDownload: string;
|
|
204
|
+
calloutNote: string;
|
|
205
|
+
calloutTip: string;
|
|
206
|
+
calloutImportant: string;
|
|
207
|
+
calloutWarning: string;
|
|
208
|
+
calloutCaution: string;
|
|
209
|
+
markdownLinkExternal: string;
|
|
210
|
+
a2uiUnknown: string;
|
|
211
|
+
a2uiModalTitle: string;
|
|
132
212
|
showLess: string;
|
|
133
213
|
loadMore: string;
|
|
134
214
|
loadMoreDone: string;
|
|
@@ -157,6 +237,10 @@ declare const DsMessagesContext: React.Context<{
|
|
|
157
237
|
filterAll: string;
|
|
158
238
|
filterClear: string;
|
|
159
239
|
statNoData: string;
|
|
240
|
+
usageOf: string;
|
|
241
|
+
usageUnlimited: string;
|
|
242
|
+
usageRemaining: string;
|
|
243
|
+
usageOver: string;
|
|
160
244
|
heatmapLow: string;
|
|
161
245
|
heatmapHigh: string;
|
|
162
246
|
dataTableFilter: string;
|
|
@@ -239,6 +323,7 @@ declare const DsMessagesContext: React.Context<{
|
|
|
239
323
|
copy: string;
|
|
240
324
|
copied: string;
|
|
241
325
|
copyValue: string;
|
|
326
|
+
helpAbout: string;
|
|
242
327
|
aiGenerated: string;
|
|
243
328
|
bottomNav: string;
|
|
244
329
|
dockLabel: string;
|
|
@@ -315,6 +400,10 @@ declare const DsMessagesContext: React.Context<{
|
|
|
315
400
|
authSsoRedirecting: string;
|
|
316
401
|
authChange: string;
|
|
317
402
|
authUseSso: string;
|
|
403
|
+
authContinueSso: string;
|
|
404
|
+
authDoorStaffHint: string;
|
|
405
|
+
authDoorExternalHint: string;
|
|
406
|
+
authDoorExternal: string;
|
|
318
407
|
authBackToSignIn: string;
|
|
319
408
|
authNoAccount: string;
|
|
320
409
|
authSignUpLink: string;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { A2UIMessage } from './a2ui.js';
|
|
2
|
+
|
|
3
|
+
interface A2UIPropSpec {
|
|
4
|
+
/** `string` | `number` | `boolean` | `dynamic-string` | `dynamic-number` | `dynamic-boolean` | `id` | `children` | `action` | `object[]`… */
|
|
5
|
+
type: string;
|
|
6
|
+
required?: boolean;
|
|
7
|
+
/** Valores admitidos (lista cerrada). */
|
|
8
|
+
values?: readonly string[];
|
|
9
|
+
description: string;
|
|
10
|
+
}
|
|
11
|
+
interface A2UIComponentSpec {
|
|
12
|
+
name: string;
|
|
13
|
+
/** `basic` = catálogo básico de A2UI; `orbital` = pieza del sistema de diseño (solo con este catálogo). */
|
|
14
|
+
origin: "basic" | "orbital";
|
|
15
|
+
description: string;
|
|
16
|
+
/** Cuándo usarlo (criterio de diseño). */
|
|
17
|
+
use: string;
|
|
18
|
+
props: Record<string, A2UIPropSpec>;
|
|
19
|
+
}
|
|
20
|
+
/** Iconos admitidos (nombre → lo pinta el renderizador; uno desconocido se ve como interrogación). */
|
|
21
|
+
declare const A2UI_ICON_NAMES: readonly ["accountCircle", "add", "arrowBack", "arrowForward", "attachFile", "calendarToday", "call", "camera", "check", "close", "delete", "download", "edit", "event", "error", "favorite", "favoriteOff", "folder", "help", "home", "info", "locationOn", "lock", "lockOpen", "mail", "menu", "moreVert", "moreHoriz", "notifications", "notificationsOff", "pause", "payment", "person", "phone", "photo", "play", "print", "refresh", "search", "send", "settings", "share", "shoppingCart", "star", "starOff", "upload", "visibility", "visibilityOff", "warning", "volumeUp", "volumeOff", "file", "clock", "shield", "sparkles", "bolt", "bot", "trendingUp", "activity", "wrench", "users"];
|
|
22
|
+
declare const A2UI_CATALOG: readonly A2UIComponentSpec[];
|
|
23
|
+
declare const A2UI_DESIGN_RULES: readonly string[];
|
|
24
|
+
/**
|
|
25
|
+
* Instrucciones para el agente: formato de mensajes, catálogo y reglas de diseño.
|
|
26
|
+
* `catalog`: `orbital` (por defecto, con las piezas de Orbital) o `basic` (solo el catálogo básico de A2UI).
|
|
27
|
+
*/
|
|
28
|
+
declare function a2uiAgentPrompt(options?: {
|
|
29
|
+
catalog?: "orbital" | "basic";
|
|
30
|
+
}): string;
|
|
31
|
+
interface A2UIIssue {
|
|
32
|
+
level: "error" | "warning";
|
|
33
|
+
surfaceId?: string;
|
|
34
|
+
componentId?: string;
|
|
35
|
+
message: string;
|
|
36
|
+
}
|
|
37
|
+
/** Comprueba mensajes A2UI contra el catálogo de Orbital. Devuelve los problemas (vacío = correcto). */
|
|
38
|
+
declare function validateA2UI(messages: readonly A2UIMessage[] | readonly unknown[], options?: {
|
|
39
|
+
catalog?: "orbital" | "basic";
|
|
40
|
+
}): A2UIIssue[];
|
|
41
|
+
|
|
42
|
+
export { type A2UIComponentSpec, type A2UIIssue, type A2UIPropSpec, A2UI_CATALOG, A2UI_DESIGN_RULES, A2UI_ICON_NAMES, a2uiAgentPrompt, validateA2UI };
|