orbital-ds 0.39.0 → 0.41.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/AGENTS.md +2 -2
- package/components.manifest.json +309 -6
- package/dist/hooks/use-ds-messages.d.ts +95 -0
- package/dist/hooks/use-in-view.d.ts +9 -0
- package/dist/hooks/use-in-view.js +33 -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/i18n.d.ts +95 -0
- package/dist/lib/i18n.js +285 -0
- package/dist/styles.css +34 -0
- package/dist/themes/lagoon.css +4 -1
- package/dist/themes/lagoon.scoped.css +4 -1
- package/dist/ui/a2ui-renderer.d.ts +33 -0
- package/dist/ui/a2ui-renderer.js +793 -0
- package/dist/ui/agent-events.d.ts +32 -0
- package/dist/ui/agent-events.js +108 -0
- package/dist/ui/alert.d.ts +1 -1
- package/dist/ui/attachment.d.ts +2 -2
- package/dist/ui/auth-form.d.ts +3 -1
- package/dist/ui/auth-form.js +34 -6
- package/dist/ui/badge.d.ts +1 -1
- package/dist/ui/banner.d.ts +1 -1
- package/dist/ui/bubble.d.ts +1 -1
- package/dist/ui/button-group.d.ts +1 -1
- package/dist/ui/button.d.ts +2 -2
- package/dist/ui/card.d.ts +14 -1
- package/dist/ui/card.js +32 -3
- package/dist/ui/chain-of-thought.d.ts +19 -0
- package/dist/ui/chain-of-thought.js +90 -0
- package/dist/ui/chat-composer.d.ts +39 -0
- package/dist/ui/chat-composer.js +192 -0
- package/dist/ui/checkbox.js +1 -1
- package/dist/ui/choice-card.js +1 -1
- package/dist/ui/combobox.js +1 -1
- package/dist/ui/content-card.d.ts +20 -3
- package/dist/ui/content-card.js +66 -38
- package/dist/ui/conversation-list.d.ts +24 -0
- package/dist/ui/conversation-list.js +141 -0
- package/dist/ui/empty.d.ts +1 -1
- package/dist/ui/field.d.ts +1 -1
- package/dist/ui/generated-image.d.ts +14 -0
- package/dist/ui/generated-image.js +65 -0
- package/dist/ui/generated-table.d.ts +11 -0
- package/dist/ui/generated-table.js +59 -0
- package/dist/ui/icon-tile.d.ts +2 -2
- package/dist/ui/input-group.js +1 -1
- package/dist/ui/input-otp.js +1 -1
- package/dist/ui/input.js +1 -1
- package/dist/ui/item.d.ts +2 -2
- package/dist/ui/load-more.d.ts +19 -0
- package/dist/ui/load-more.js +72 -0
- package/dist/ui/markdown.d.ts +14 -0
- package/dist/ui/markdown.js +123 -0
- package/dist/ui/marker.d.ts +1 -1
- package/dist/ui/message-actions.d.ts +12 -0
- package/dist/ui/message-actions.js +79 -0
- package/dist/ui/mosaic.d.ts +4 -2
- package/dist/ui/mosaic.js +13 -2
- package/dist/ui/native-select.js +1 -1
- package/dist/ui/panel.d.ts +1 -1
- package/dist/ui/questionnaire.js +4 -4
- package/dist/ui/radio-group.js +1 -1
- package/dist/ui/reasoning.d.ts +10 -0
- package/dist/ui/reasoning.js +62 -0
- package/dist/ui/reveal.d.ts +11 -0
- package/dist/ui/reveal.js +39 -0
- package/dist/ui/scroll-area.js +1 -1
- package/dist/ui/search-box.d.ts +32 -0
- package/dist/ui/search-box.js +238 -0
- package/dist/ui/select.js +1 -1
- package/dist/ui/show-more.d.ts +12 -0
- package/dist/ui/show-more.js +66 -0
- package/dist/ui/sidebar.d.ts +1 -1
- package/dist/ui/sparkline.d.ts +1 -1
- package/dist/ui/stat.d.ts +1 -1
- package/dist/ui/status-badge.d.ts +3 -3
- package/dist/ui/suggestions.d.ts +8 -0
- package/dist/ui/suggestions.js +39 -0
- package/dist/ui/tabs.d.ts +1 -1
- package/dist/ui/textarea.js +1 -1
- package/dist/ui/toggle.d.ts +1 -1
- package/dist/ui/tool-call.d.ts +15 -0
- package/dist/ui/tool-call.js +74 -0
- package/dist/ui/workflow-run.d.ts +23 -0
- package/dist/ui/workflow-run.js +185 -0
- package/docs/designer/criterio.md +87 -0
- package/docs/designer/patrones.md +3 -1
- package/docs/designer/revision.md +11 -0
- package/package.json +238 -228
- package/scripts/cli.mjs +1 -0
- package/skill/SKILL.md +7 -3
package/AGENTS.md
CHANGED
|
@@ -151,7 +151,7 @@ la app (bloque de imports en orden), anota DESIGN.md, instala Motion y pasa el d
|
|
|
151
151
|
|
|
152
152
|
Para crear o revisar pantallas y flujos, sigue `docs/designer/`: **flujo.md** (contexto real, modo, mapa del flujo y
|
|
153
153
|
modelo mental de la persona, orden de autoridad), **patrones.md** (P1–P12: página, lista de entidades, detalle, tabla,
|
|
154
|
-
formulario, asistente, panel de datos, destructiva, estados, avisos, búsqueda, ajustes), **ux.md** (heurísticas,
|
|
154
|
+
formulario, asistente, panel de datos, destructiva, estados, avisos, búsqueda, ajustes), **criterio.md** (análisis visual en 8 pasos con puntuación, árbol «¿tarjeta, ítem, bento, imagen, efecto?», armonía, referentes Apple/Material/Nielsen/Polaris), **ux.md** (heurísticas,
|
|
155
155
|
carga cognitiva, formularios, textos, WCAG 2.2 AA, responsivo) y **revision.md** (lista observable y anti-patrones).
|
|
156
156
|
Regla de oro: **nunca te sales del sistema**; si algo no se puede hacer con componentes y variables, se anota como hueco.
|
|
157
157
|
|
|
@@ -181,7 +181,7 @@ en cualquier proyecto. Vocabulario común en `src/lib/presets.ts` (`DsDensity`,
|
|
|
181
181
|
`AuthForm` (sign-in · social · sign-up · magic-link · email-code · sso · forgot-password · reset-password),
|
|
182
182
|
`MfaChallenge` (totp · sms · email · backup-code · passkey), `MfaSetup` (totp · sms · backup-codes), `OAuthConsent`
|
|
183
183
|
(authorize · mcp · device), `ConnectedAccounts` (social · integrations) y el flujo entero con `defineAuthFlow`
|
|
184
|
-
(standard · social · passwordless · partner · enterprise · hybrid · sso-only).
|
|
184
|
+
(standard · social · passwordless · partner · enterprise · hybrid · sso-staff · sso-only).
|
|
185
185
|
`ErrorPage` y `EmptyState` aceptan además `backdrop` (+ `backdropMedia`, `backdropGlass`) y `animated`.
|
|
186
186
|
|
|
187
187
|
**Densidad global.** `--ds-density` (1 por defecto; 0.8 más denso, 1.2 más aireado) escala el relleno de celdas y la separación de secciones y listas; la app lo ajusta en `brand.css`.
|
package/components.manifest.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"package": "orbital-ds",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.41.0",
|
|
4
4
|
"engine": "@base-ui/react",
|
|
5
5
|
"docs": [
|
|
6
6
|
"README.md",
|
|
@@ -9,6 +9,50 @@
|
|
|
9
9
|
"contract.json"
|
|
10
10
|
],
|
|
11
11
|
"components": {
|
|
12
|
+
"a2ui-renderer": {
|
|
13
|
+
"import": "orbital-ds/ui/a2ui-renderer",
|
|
14
|
+
"exports": [
|
|
15
|
+
"A2UIRenderer"
|
|
16
|
+
],
|
|
17
|
+
"slots": [
|
|
18
|
+
"a2ui",
|
|
19
|
+
"a2ui-alert",
|
|
20
|
+
"a2ui-audio",
|
|
21
|
+
"a2ui-badge",
|
|
22
|
+
"a2ui-button",
|
|
23
|
+
"a2ui-card",
|
|
24
|
+
"a2ui-chart",
|
|
25
|
+
"a2ui-checkbox",
|
|
26
|
+
"a2ui-checks",
|
|
27
|
+
"a2ui-choice-picker",
|
|
28
|
+
"a2ui-column",
|
|
29
|
+
"a2ui-date-time",
|
|
30
|
+
"a2ui-heading",
|
|
31
|
+
"a2ui-icon",
|
|
32
|
+
"a2ui-icon-tile",
|
|
33
|
+
"a2ui-image",
|
|
34
|
+
"a2ui-list",
|
|
35
|
+
"a2ui-list-item",
|
|
36
|
+
"a2ui-modal",
|
|
37
|
+
"a2ui-modal-trigger",
|
|
38
|
+
"a2ui-panel",
|
|
39
|
+
"a2ui-progress",
|
|
40
|
+
"a2ui-row",
|
|
41
|
+
"a2ui-slider",
|
|
42
|
+
"a2ui-stat",
|
|
43
|
+
"a2ui-surface",
|
|
44
|
+
"a2ui-tabs",
|
|
45
|
+
"a2ui-text",
|
|
46
|
+
"a2ui-text-field",
|
|
47
|
+
"a2ui-unknown",
|
|
48
|
+
"a2ui-video",
|
|
49
|
+
"a2ui-weighted"
|
|
50
|
+
],
|
|
51
|
+
"optionalPeers": [],
|
|
52
|
+
"notes": [
|
|
53
|
+
"Para respuestas de agente con interfaz (formularios, paneles, listas, confirmaciones). Describe el catálogo al"
|
|
54
|
+
]
|
|
55
|
+
},
|
|
12
56
|
"accordion": {
|
|
13
57
|
"import": "orbital-ds/ui/accordion",
|
|
14
58
|
"exports": [
|
|
@@ -27,6 +71,21 @@
|
|
|
27
71
|
],
|
|
28
72
|
"optionalPeers": []
|
|
29
73
|
},
|
|
74
|
+
"agent-events": {
|
|
75
|
+
"import": "orbital-ds/ui/agent-events",
|
|
76
|
+
"exports": [
|
|
77
|
+
"AgentEvents"
|
|
78
|
+
],
|
|
79
|
+
"slots": [
|
|
80
|
+
"agent-event",
|
|
81
|
+
"agent-event-title",
|
|
82
|
+
"agent-events"
|
|
83
|
+
],
|
|
84
|
+
"optionalPeers": [],
|
|
85
|
+
"notes": [
|
|
86
|
+
"Para seguir a un agente en vivo o auditarlo después; la app mapea sus eventos (streaming, trazas) a `AgentEvent`."
|
|
87
|
+
]
|
|
88
|
+
},
|
|
30
89
|
"ai-tag": {
|
|
31
90
|
"import": "orbital-ds/ui/ai-tag",
|
|
32
91
|
"exports": [
|
|
@@ -209,6 +268,7 @@
|
|
|
209
268
|
"auth-form-access",
|
|
210
269
|
"auth-form-audience",
|
|
211
270
|
"auth-form-code",
|
|
271
|
+
"auth-form-doors",
|
|
212
272
|
"auth-form-field",
|
|
213
273
|
"auth-form-field-error",
|
|
214
274
|
"auth-form-footer",
|
|
@@ -244,6 +304,7 @@
|
|
|
244
304
|
"notes": [
|
|
245
305
|
"Presets: `sign-in` (por defecto), `social` (solo botones: lo más sencillo para el público general), `sign-up`, `magic-link` y `email-code` (sin contraseña), `sso` (empresa), `forgot-password` y `reset-password`. Combínalos con AuthLayout para la maqueta y con AuthFlow para el recorrido completo.",
|
|
246
306
|
"Empresa con SSO: `identifierFirst` + `onIdentify` (dominio del correo → { method: \"sso\" }) lleva a cada persona a su proveedor sin que elija; `onSso` añade además el enlace «usar SSO» y el preset `sso`.",
|
|
307
|
+
"Acceso mixto sin escribir el correo: `entry=\"doors\"` (necesita `onSso`; no usa `identifierFirst`) muestra primero «Continuar con SSO» (personal, directo al proveedor de identidad) y, aparte, «Acceso para personas externas» (correo y contraseña, passkey). El preset `sso-staff` de `defineAuthFlow` lo trae (`entry={flow.entry}`).",
|
|
247
308
|
"Nunca reveles si una cuenta existe: devuelve \"invalid-credentials\" para usuario o contraseña, y `forgot-password` responde igual exista o no.",
|
|
248
309
|
"Passkeys: con `onPasskey`, el campo del identificador ofrece las passkeys guardadas (autocomplete «webauthn») y aparece el botón. Guarda `lastUsed` en la app para destacar el método de la última vez."
|
|
249
310
|
]
|
|
@@ -557,7 +618,11 @@
|
|
|
557
618
|
"card-header",
|
|
558
619
|
"card-title"
|
|
559
620
|
],
|
|
560
|
-
"optionalPeers": []
|
|
621
|
+
"optionalPeers": [],
|
|
622
|
+
"notes": [
|
|
623
|
+
"`hoverable` eleva la tarjeta al señalarla; `spotlight` añade un foco de luz que sigue al ratón (solo puntero fino, quieto con movimiento reducido); `glow` un resplandor de marca. Valores en `--ds-card-hover-*`, `--ds-card-spotlight*` y `--ds-card-glow`.",
|
|
624
|
+
"`backdrop` (mesh · aurora · image · dots · grid…) pone un fondo de AuthBackdrop detrás del contenido; con `backdropGlass` suma cristal. Con texto sobre imagen o mesh, usa ContentCard preset=\"cover\" (lleva velo para el contraste) o pon el texto sobre una placa; no confíes en el color del fondo."
|
|
625
|
+
]
|
|
561
626
|
},
|
|
562
627
|
"carousel": {
|
|
563
628
|
"import": "orbital-ds/ui/carousel",
|
|
@@ -581,6 +646,20 @@
|
|
|
581
646
|
"embla-carousel-react"
|
|
582
647
|
]
|
|
583
648
|
},
|
|
649
|
+
"chain-of-thought": {
|
|
650
|
+
"import": "orbital-ds/ui/chain-of-thought",
|
|
651
|
+
"exports": [
|
|
652
|
+
"ChainOfThought"
|
|
653
|
+
],
|
|
654
|
+
"slots": [
|
|
655
|
+
"chain-of-thought",
|
|
656
|
+
"chain-step"
|
|
657
|
+
],
|
|
658
|
+
"optionalPeers": [],
|
|
659
|
+
"notes": [
|
|
660
|
+
"Para mostrar de forma compacta cómo llegó el agente a su respuesta; si necesitas la traza completa con"
|
|
661
|
+
]
|
|
662
|
+
},
|
|
584
663
|
"chart-card": {
|
|
585
664
|
"import": "orbital-ds/ui/chart-card",
|
|
586
665
|
"exports": [
|
|
@@ -632,6 +711,21 @@
|
|
|
632
711
|
"recharts"
|
|
633
712
|
]
|
|
634
713
|
},
|
|
714
|
+
"chat-composer": {
|
|
715
|
+
"import": "orbital-ds/ui/chat-composer",
|
|
716
|
+
"exports": [
|
|
717
|
+
"ChatComposer"
|
|
718
|
+
],
|
|
719
|
+
"slots": [
|
|
720
|
+
"chat-composer",
|
|
721
|
+
"chat-composer-attachment",
|
|
722
|
+
"chat-composer-voice"
|
|
723
|
+
],
|
|
724
|
+
"optionalPeers": [],
|
|
725
|
+
"notes": [
|
|
726
|
+
"Al pie de la conversación; combínalo con `Suggestions` en el estado vacío. No sube ni graba: eso lo hace la app."
|
|
727
|
+
]
|
|
728
|
+
},
|
|
635
729
|
"checkbox": {
|
|
636
730
|
"import": "orbital-ds/ui/checkbox",
|
|
637
731
|
"exports": [
|
|
@@ -877,8 +971,12 @@
|
|
|
877
971
|
],
|
|
878
972
|
"slots": [
|
|
879
973
|
"content-card",
|
|
974
|
+
"content-card-body",
|
|
975
|
+
"content-card-cover",
|
|
880
976
|
"content-card-dot",
|
|
977
|
+
"content-card-layout",
|
|
881
978
|
"content-card-media",
|
|
979
|
+
"content-card-scrim",
|
|
882
980
|
"content-card-value"
|
|
883
981
|
],
|
|
884
982
|
"optionalPeers": [],
|
|
@@ -889,7 +987,8 @@
|
|
|
889
987
|
"media",
|
|
890
988
|
"horizontal",
|
|
891
989
|
"metric",
|
|
892
|
-
"status"
|
|
990
|
+
"status",
|
|
991
|
+
"cover"
|
|
893
992
|
],
|
|
894
993
|
"default": "basic",
|
|
895
994
|
"intent": {
|
|
@@ -902,7 +1001,9 @@
|
|
|
902
1001
|
}
|
|
903
1002
|
},
|
|
904
1003
|
"notes": [
|
|
905
|
-
"
|
|
1004
|
+
"Tipografía y relleno: `titleSize` `lg`/`xl` (`--ds-card-title-lg/-xl`, en rem) para titulares que mandan; `plate=\"blur\"` (solo `cover`) pone el texto sobre una placa de imagen desenfocada (`--ds-card-cover-blur`, `--ds-card-cover-plate`) y mantiene el contraste; `padding=\"none\"` deja el contenido (`children`) a sangre, para gráficos o tablas; cabecera y pie conservan su margen. Un titular grande por vista.",
|
|
1005
|
+
"Fondos y efectos: `backdrop` (mesh · aurora · image…), `backdropGlass`, `spotlight` y `glow` pasan a Card. `cover` es la forma segura de poner texto sobre una foto: el velo es obligatorio y sale de `--ds-card-scrim` (ajústalo en brand.css, mide su contraste).",
|
|
1006
|
+
"Tarjeta de contenido para rejillas: `basic` (texto), `feature` (icono + capacidad), `media` (portada arriba), `horizontal` (portada al lado), `metric` (un dato grande: `value` y `delta`), `status` (punto de estado con `tone` + texto), `cover` (la portada `media` a sangre con velo `--ds-card-scrim` para que el texto se lea: la celda destacada de un bento). El énfasis (`elevated`, `outlined`, `filled`, `ghost`) cambia la prominencia, no la estructura.",
|
|
906
1007
|
"Interactiva con `href` (navega) o `onSelect` (acción): toda la tarjeta es el objetivo y el título el enlace; no metas botones dentro de un enlace ni tarjetas dentro de tarjetas. Para filas de entidades usa Item variant=\"card\"; para cifras, Stat.",
|
|
907
1008
|
"Para disponer varias, Mosaic (even · bento · trio)."
|
|
908
1009
|
]
|
|
@@ -945,6 +1046,20 @@
|
|
|
945
1046
|
],
|
|
946
1047
|
"optionalPeers": []
|
|
947
1048
|
},
|
|
1049
|
+
"conversation-list": {
|
|
1050
|
+
"import": "orbital-ds/ui/conversation-list",
|
|
1051
|
+
"exports": [
|
|
1052
|
+
"ConversationList"
|
|
1053
|
+
],
|
|
1054
|
+
"slots": [
|
|
1055
|
+
"conversation-item",
|
|
1056
|
+
"conversation-list"
|
|
1057
|
+
],
|
|
1058
|
+
"optionalPeers": [],
|
|
1059
|
+
"notes": [
|
|
1060
|
+
"Dentro del `Sidebar` o de un panel lateral del chat; el hilo y el campo son `Message` y `ChatComposer`."
|
|
1061
|
+
]
|
|
1062
|
+
},
|
|
948
1063
|
"copy-button": {
|
|
949
1064
|
"import": "orbital-ds/ui/copy-button",
|
|
950
1065
|
"exports": [
|
|
@@ -1544,6 +1659,33 @@
|
|
|
1544
1659
|
"Tono del vocabulario común (DsDataTone): la app traduce su dominio (riesgo bajo → success, medio → warning, alto → danger, analizando → neutral). Siempre con label."
|
|
1545
1660
|
]
|
|
1546
1661
|
},
|
|
1662
|
+
"generated-image": {
|
|
1663
|
+
"import": "orbital-ds/ui/generated-image",
|
|
1664
|
+
"exports": [
|
|
1665
|
+
"GeneratedImage"
|
|
1666
|
+
],
|
|
1667
|
+
"slots": [
|
|
1668
|
+
"generated-image"
|
|
1669
|
+
],
|
|
1670
|
+
"optionalPeers": [],
|
|
1671
|
+
"notes": [
|
|
1672
|
+
"Dentro de `Message` como resultado de una herramienta de imagen; el modelo y el envío son de la app."
|
|
1673
|
+
]
|
|
1674
|
+
},
|
|
1675
|
+
"generated-table": {
|
|
1676
|
+
"import": "orbital-ds/ui/generated-table",
|
|
1677
|
+
"exports": [
|
|
1678
|
+
"GeneratedTable"
|
|
1679
|
+
],
|
|
1680
|
+
"slots": [
|
|
1681
|
+
"generated-table",
|
|
1682
|
+
"generated-table-download"
|
|
1683
|
+
],
|
|
1684
|
+
"optionalPeers": [],
|
|
1685
|
+
"notes": [
|
|
1686
|
+
"Resultado de una herramienta tipo `generateTable` en el hilo del chat; `caption` describe qué contiene."
|
|
1687
|
+
]
|
|
1688
|
+
},
|
|
1547
1689
|
"heatmap-grid": {
|
|
1548
1690
|
"import": "orbital-ds/ui/heatmap-grid",
|
|
1549
1691
|
"exports": [
|
|
@@ -1786,6 +1928,22 @@
|
|
|
1786
1928
|
],
|
|
1787
1929
|
"optionalPeers": []
|
|
1788
1930
|
},
|
|
1931
|
+
"load-more": {
|
|
1932
|
+
"import": "orbital-ds/ui/load-more",
|
|
1933
|
+
"exports": [
|
|
1934
|
+
"LoadMore"
|
|
1935
|
+
],
|
|
1936
|
+
"slots": [
|
|
1937
|
+
"load-more",
|
|
1938
|
+
"load-more-button",
|
|
1939
|
+
"load-more-status"
|
|
1940
|
+
],
|
|
1941
|
+
"optionalPeers": [],
|
|
1942
|
+
"notes": [
|
|
1943
|
+
"Para listas largas que se piden por tramos: el botón es lo principal y `auto` solo un extra (hasta `autoLimit` cargas). La lista debe conservar el foco y la posición; añade los elementos nuevos al final y pasa `loadedCount`. Para saltar a una página concreta o datos de trabajo (tablas), usa Pagination.",
|
|
1944
|
+
"Con error no reintenta solo: el botón pasa a «Reintentar»."
|
|
1945
|
+
]
|
|
1946
|
+
},
|
|
1789
1947
|
"loading-state": {
|
|
1790
1948
|
"import": "orbital-ds/ui/loading-state",
|
|
1791
1949
|
"exports": [
|
|
@@ -1841,6 +1999,23 @@
|
|
|
1841
1999
|
"Siempre visible en la barra superior, junto a ThemeToggle; el nombre de cada idioma se escribe en ese idioma, no traducido."
|
|
1842
2000
|
]
|
|
1843
2001
|
},
|
|
2002
|
+
"markdown": {
|
|
2003
|
+
"import": "orbital-ds/ui/markdown",
|
|
2004
|
+
"exports": [
|
|
2005
|
+
"Markdown",
|
|
2006
|
+
"closeOpenMarkdown"
|
|
2007
|
+
],
|
|
2008
|
+
"slots": [
|
|
2009
|
+
"markdown"
|
|
2010
|
+
],
|
|
2011
|
+
"optionalPeers": [
|
|
2012
|
+
"react-markdown",
|
|
2013
|
+
"remark-gfm"
|
|
2014
|
+
],
|
|
2015
|
+
"notes": [
|
|
2016
|
+
"Necesita los peers opcionales `react-markdown` y `remark-gfm`. Para el cuerpo de un `Message` del asistente."
|
|
2017
|
+
]
|
|
2018
|
+
},
|
|
1844
2019
|
"marker": {
|
|
1845
2020
|
"import": "orbital-ds/ui/marker",
|
|
1846
2021
|
"exports": [
|
|
@@ -1915,6 +2090,19 @@
|
|
|
1915
2090
|
],
|
|
1916
2091
|
"optionalPeers": []
|
|
1917
2092
|
},
|
|
2093
|
+
"message-actions": {
|
|
2094
|
+
"import": "orbital-ds/ui/message-actions",
|
|
2095
|
+
"exports": [
|
|
2096
|
+
"MessageActions"
|
|
2097
|
+
],
|
|
2098
|
+
"slots": [
|
|
2099
|
+
"message-actions"
|
|
2100
|
+
],
|
|
2101
|
+
"optionalPeers": [],
|
|
2102
|
+
"notes": [
|
|
2103
|
+
"Bajo el último mensaje del asistente (o de todos, al pasar el cursor); el envío de la valoración lo hace la app."
|
|
2104
|
+
]
|
|
2105
|
+
},
|
|
1918
2106
|
"message-scroller": {
|
|
1919
2107
|
"import": "orbital-ds/ui/message-scroller",
|
|
1920
2108
|
"exports": [
|
|
@@ -2029,17 +2217,22 @@
|
|
|
2029
2217
|
"values": [
|
|
2030
2218
|
"even",
|
|
2031
2219
|
"bento",
|
|
2032
|
-
"trio"
|
|
2220
|
+
"trio",
|
|
2221
|
+
"hero",
|
|
2222
|
+
"showcase"
|
|
2033
2223
|
],
|
|
2034
2224
|
"default": "even",
|
|
2035
2225
|
"intent": {
|
|
2036
2226
|
"even": "columnas iguales (1 → 2 → 3), sin jerarquía",
|
|
2037
2227
|
"bento": "4 columnas anchas; el primer hijo ocupa 2×2 (lo más importante, más grande)",
|
|
2038
|
-
"trio": "exactamente 3 en fila ancha, 1 en estrecho (tres capacidades, tres pasos)"
|
|
2228
|
+
"trio": "exactamente 3 en fila ancha, 1 en estrecho (tres capacidades, tres pasos)",
|
|
2229
|
+
"hero": "3 columnas; el primero ocupa 2×2 y a su lado una columna de pequeños (portada + resumen)",
|
|
2230
|
+
"showcase": "6 columnas; un grande 4×2, dos a su lado y el resto de a 2 (escaparate de producto)"
|
|
2039
2231
|
}
|
|
2040
2232
|
},
|
|
2041
2233
|
"notes": [
|
|
2042
2234
|
"Rejilla de tarjetas con jerarquía: `bento` para destacar lo primero, `trio` para tres iguales, `even` sin jerarquía. Si todo pesa lo mismo, usa `even` (o EntityList grid), no bento. Para spans manuales envuelve en MosaicItem.",
|
|
2235
|
+
"`hero` y `showcase` para portadas y escaparates; `MosaicItem tone` (`muted`, `brand`) alterna el ritmo: una celda de marca por rejilla, no más. Un solo destacado; celdas con gráficos (Sparkline, ChartCard glance) en 1×1 o 2×1, un mensaje por celda.",
|
|
2043
2236
|
"El destacado va el primero del DOM (orden de lectura); no reordenes con CSS."
|
|
2044
2237
|
]
|
|
2045
2238
|
},
|
|
@@ -2522,6 +2715,21 @@
|
|
|
2522
2715
|
],
|
|
2523
2716
|
"optionalPeers": []
|
|
2524
2717
|
},
|
|
2718
|
+
"reasoning": {
|
|
2719
|
+
"import": "orbital-ds/ui/reasoning",
|
|
2720
|
+
"exports": [
|
|
2721
|
+
"Reasoning"
|
|
2722
|
+
],
|
|
2723
|
+
"slots": [
|
|
2724
|
+
"reasoning",
|
|
2725
|
+
"reasoning-content",
|
|
2726
|
+
"reasoning-trigger"
|
|
2727
|
+
],
|
|
2728
|
+
"optionalPeers": [],
|
|
2729
|
+
"notes": [
|
|
2730
|
+
"Úsalo dentro de `Message` antes de la respuesta; el texto del razonamiento lo pone la app."
|
|
2731
|
+
]
|
|
2732
|
+
},
|
|
2525
2733
|
"resizable": {
|
|
2526
2734
|
"import": "orbital-ds/ui/resizable",
|
|
2527
2735
|
"exports": [
|
|
@@ -2539,6 +2747,21 @@
|
|
|
2539
2747
|
"react-resizable-panels"
|
|
2540
2748
|
]
|
|
2541
2749
|
},
|
|
2750
|
+
"reveal": {
|
|
2751
|
+
"import": "orbital-ds/ui/reveal",
|
|
2752
|
+
"exports": [
|
|
2753
|
+
"Reveal",
|
|
2754
|
+
"type RevealEffect"
|
|
2755
|
+
],
|
|
2756
|
+
"slots": [
|
|
2757
|
+
"reveal"
|
|
2758
|
+
],
|
|
2759
|
+
"optionalPeers": [],
|
|
2760
|
+
"notes": [
|
|
2761
|
+
"Para tarjetas y bloques que quedan fuera de la primera pantalla; lo que ya se ve al cargar no necesita Reveal. En listas, `index` da la cascada; no lo uses en listas que se filtran o reordenan (reanimarían).",
|
|
2762
|
+
"Es CSS con IntersectionObserver: no necesita Motion. Para salidas, gestos o animar el layout, `useDsMotion()` con Motion."
|
|
2763
|
+
]
|
|
2764
|
+
},
|
|
2542
2765
|
"scroll-area": {
|
|
2543
2766
|
"import": "orbital-ds/ui/scroll-area",
|
|
2544
2767
|
"exports": [
|
|
@@ -2554,6 +2777,27 @@
|
|
|
2554
2777
|
],
|
|
2555
2778
|
"optionalPeers": []
|
|
2556
2779
|
},
|
|
2780
|
+
"search-box": {
|
|
2781
|
+
"import": "orbital-ds/ui/search-box",
|
|
2782
|
+
"exports": [
|
|
2783
|
+
"SearchBox",
|
|
2784
|
+
"type SearchQueryOptions",
|
|
2785
|
+
"type SearchSuggestion"
|
|
2786
|
+
],
|
|
2787
|
+
"slots": [
|
|
2788
|
+
"search-box",
|
|
2789
|
+
"search-box-group",
|
|
2790
|
+
"search-box-input",
|
|
2791
|
+
"search-box-list",
|
|
2792
|
+
"search-box-option",
|
|
2793
|
+
"search-box-status"
|
|
2794
|
+
],
|
|
2795
|
+
"optionalPeers": [],
|
|
2796
|
+
"notes": [
|
|
2797
|
+
"Para buscar mientras se escribe (navegación, catálogo, ayuda): la app aporta `onQuery` (con `signal`) y recientes/populares; el componente pone el combobox accesible, la espera, el resaltado y los estados. Para elegir un valor de una lista cerrada → Combobox; para ir a una pantalla con ⌘K → CommandPalette.",
|
|
2798
|
+
"Guarda los «recientes» en la app y no pongas en las sugerencias datos que la persona no puede ver. No reveles si algo existe si la búsqueda es de cuentas."
|
|
2799
|
+
]
|
|
2800
|
+
},
|
|
2557
2801
|
"select": {
|
|
2558
2802
|
"import": "orbital-ds/ui/select",
|
|
2559
2803
|
"exports": [
|
|
@@ -2678,6 +2922,21 @@
|
|
|
2678
2922
|
"Nivel de protección 0–1; con decorative si solo adorna. ShieldRadar para protegido/alerta con latido del tema."
|
|
2679
2923
|
]
|
|
2680
2924
|
},
|
|
2925
|
+
"show-more": {
|
|
2926
|
+
"import": "orbital-ds/ui/show-more",
|
|
2927
|
+
"exports": [
|
|
2928
|
+
"ShowMore"
|
|
2929
|
+
],
|
|
2930
|
+
"slots": [
|
|
2931
|
+
"show-more",
|
|
2932
|
+
"show-more-content",
|
|
2933
|
+
"show-more-toggle"
|
|
2934
|
+
],
|
|
2935
|
+
"optionalPeers": [],
|
|
2936
|
+
"notes": [
|
|
2937
|
+
"Para descripciones, reseñas o notas largas dentro de una tarjeta: se recorta y se expande en el sitio. Si el texto cabe, no hay botón. Para un bloque que se pliega con más contenido (formularios, filtros) usa Collapsible."
|
|
2938
|
+
]
|
|
2939
|
+
},
|
|
2681
2940
|
"sidebar": {
|
|
2682
2941
|
"import": "orbital-ds/ui/sidebar",
|
|
2683
2942
|
"exports": [
|
|
@@ -3027,6 +3286,20 @@
|
|
|
3027
3286
|
],
|
|
3028
3287
|
"optionalPeers": []
|
|
3029
3288
|
},
|
|
3289
|
+
"suggestions": {
|
|
3290
|
+
"import": "orbital-ds/ui/suggestions",
|
|
3291
|
+
"exports": [
|
|
3292
|
+
"Suggestions"
|
|
3293
|
+
],
|
|
3294
|
+
"slots": [
|
|
3295
|
+
"suggestions",
|
|
3296
|
+
"suggestions-item"
|
|
3297
|
+
],
|
|
3298
|
+
"optionalPeers": [],
|
|
3299
|
+
"notes": [
|
|
3300
|
+
"Bajo el compositor o en el estado vacío del chat; al elegir una, la app la envía o la pone en el campo."
|
|
3301
|
+
]
|
|
3302
|
+
},
|
|
3030
3303
|
"switch": {
|
|
3031
3304
|
"import": "orbital-ds/ui/switch",
|
|
3032
3305
|
"exports": [
|
|
@@ -3229,6 +3502,21 @@
|
|
|
3229
3502
|
],
|
|
3230
3503
|
"optionalPeers": []
|
|
3231
3504
|
},
|
|
3505
|
+
"tool-call": {
|
|
3506
|
+
"import": "orbital-ds/ui/tool-call",
|
|
3507
|
+
"exports": [
|
|
3508
|
+
"ToolCall"
|
|
3509
|
+
],
|
|
3510
|
+
"slots": [
|
|
3511
|
+
"tool-call",
|
|
3512
|
+
"tool-call-content",
|
|
3513
|
+
"tool-call-trigger"
|
|
3514
|
+
],
|
|
3515
|
+
"optionalPeers": [],
|
|
3516
|
+
"notes": [
|
|
3517
|
+
"Una por herramienta usada, dentro de `Message`; el estado lo da la app según los eventos del agente."
|
|
3518
|
+
]
|
|
3519
|
+
},
|
|
3232
3520
|
"tooltip": {
|
|
3233
3521
|
"import": "orbital-ds/ui/tooltip",
|
|
3234
3522
|
"exports": [
|
|
@@ -3261,6 +3549,21 @@
|
|
|
3261
3549
|
"Para elegir UN día cercano; para fechas lejanas o rangos usa Calendar o DatePicker.",
|
|
3262
3550
|
"`marked` solo señala que hay algo ese día; el detalle va debajo, en una lista."
|
|
3263
3551
|
]
|
|
3552
|
+
},
|
|
3553
|
+
"workflow-run": {
|
|
3554
|
+
"import": "orbital-ds/ui/workflow-run",
|
|
3555
|
+
"exports": [
|
|
3556
|
+
"WorkflowRun"
|
|
3557
|
+
],
|
|
3558
|
+
"slots": [
|
|
3559
|
+
"workflow-branch",
|
|
3560
|
+
"workflow-node",
|
|
3561
|
+
"workflow-run"
|
|
3562
|
+
],
|
|
3563
|
+
"optionalPeers": [],
|
|
3564
|
+
"notes": [
|
|
3565
|
+
"Para ver cómo avanza un agente o una automatización; la app traduce su motor (Workflows, colas…) a `WorkflowNode`."
|
|
3566
|
+
]
|
|
3264
3567
|
}
|
|
3265
3568
|
}
|
|
3266
3569
|
}
|
|
@@ -128,6 +128,97 @@ declare const DsMessagesContext: React.Context<{
|
|
|
128
128
|
noticeStateAcknowledged: string;
|
|
129
129
|
noticeStateResolved: string;
|
|
130
130
|
entityRetry: string;
|
|
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
|
+
composerCounter: string;
|
|
160
|
+
composerDrop: string;
|
|
161
|
+
composerUploading: string;
|
|
162
|
+
composerFileError: string;
|
|
163
|
+
conversationNew: string;
|
|
164
|
+
conversationSearch: string;
|
|
165
|
+
conversationPinned: string;
|
|
166
|
+
conversationToday: string;
|
|
167
|
+
conversationYesterday: string;
|
|
168
|
+
conversationWeek: string;
|
|
169
|
+
conversationOlder: string;
|
|
170
|
+
conversationRename: string;
|
|
171
|
+
conversationDelete: string;
|
|
172
|
+
conversationPin: string;
|
|
173
|
+
conversationUnpin: string;
|
|
174
|
+
conversationEmpty: string;
|
|
175
|
+
conversationListLabel: string;
|
|
176
|
+
conversationActions: string;
|
|
177
|
+
messageCopy: string;
|
|
178
|
+
messageRetry: string;
|
|
179
|
+
messageGood: string;
|
|
180
|
+
messageBad: string;
|
|
181
|
+
messageActionsLabel: string;
|
|
182
|
+
chainWorking: string;
|
|
183
|
+
chainDone: string;
|
|
184
|
+
workflowRunning: string;
|
|
185
|
+
workflowSucceeded: string;
|
|
186
|
+
workflowFailed: string;
|
|
187
|
+
workflowCancelled: string;
|
|
188
|
+
workflowCancel: string;
|
|
189
|
+
workflowRetry: string;
|
|
190
|
+
workflowProgress: string;
|
|
191
|
+
workflowParallel: string;
|
|
192
|
+
workflowSkipped: string;
|
|
193
|
+
workflowWaiting: string;
|
|
194
|
+
toolApprove: string;
|
|
195
|
+
toolDeny: string;
|
|
196
|
+
toolAwaiting: string;
|
|
197
|
+
imageGenerating: string;
|
|
198
|
+
imageError: string;
|
|
199
|
+
imageDownload: string;
|
|
200
|
+
tableEmpty: string;
|
|
201
|
+
tableDownload: string;
|
|
202
|
+
calloutNote: string;
|
|
203
|
+
calloutTip: string;
|
|
204
|
+
calloutImportant: string;
|
|
205
|
+
calloutWarning: string;
|
|
206
|
+
calloutCaution: string;
|
|
207
|
+
markdownLinkExternal: string;
|
|
208
|
+
a2uiUnknown: string;
|
|
209
|
+
a2uiModalTitle: string;
|
|
210
|
+
showLess: string;
|
|
211
|
+
loadMore: string;
|
|
212
|
+
loadMoreDone: string;
|
|
213
|
+
loadMoreEnd: string;
|
|
214
|
+
searchPlaceholder: string;
|
|
215
|
+
searchClear: string;
|
|
216
|
+
searchRecent: string;
|
|
217
|
+
searchPopular: string;
|
|
218
|
+
searchResults: string;
|
|
219
|
+
searchNoResults: string;
|
|
220
|
+
searchCount: string;
|
|
221
|
+
searchError: string;
|
|
131
222
|
statIncrease: string;
|
|
132
223
|
statDecrease: string;
|
|
133
224
|
statNoChange: string;
|
|
@@ -302,6 +393,10 @@ declare const DsMessagesContext: React.Context<{
|
|
|
302
393
|
authSsoRedirecting: string;
|
|
303
394
|
authChange: string;
|
|
304
395
|
authUseSso: string;
|
|
396
|
+
authContinueSso: string;
|
|
397
|
+
authDoorStaffHint: string;
|
|
398
|
+
authDoorExternalHint: string;
|
|
399
|
+
authDoorExternal: string;
|
|
305
400
|
authBackToSignIn: string;
|
|
306
401
|
authNoAccount: string;
|
|
307
402
|
authSignUpLink: string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
declare function useInView<T extends Element = HTMLElement>({ once, threshold, rootMargin, }?: {
|
|
4
|
+
once?: boolean;
|
|
5
|
+
threshold?: number;
|
|
6
|
+
rootMargin?: string;
|
|
7
|
+
}): readonly [React.Dispatch<React.SetStateAction<T | null>>, boolean];
|
|
8
|
+
|
|
9
|
+
export { useInView };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
function useInView({
|
|
4
|
+
once = true,
|
|
5
|
+
threshold = 0.15,
|
|
6
|
+
rootMargin = "0px 0px -8% 0px"
|
|
7
|
+
} = {}) {
|
|
8
|
+
const [node, setNode] = React.useState(null);
|
|
9
|
+
const [inView, setInView] = React.useState(false);
|
|
10
|
+
React.useEffect(() => {
|
|
11
|
+
if (!node) return;
|
|
12
|
+
if (typeof IntersectionObserver === "undefined") {
|
|
13
|
+
setInView(true);
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
const io = new IntersectionObserver(
|
|
17
|
+
([entry]) => {
|
|
18
|
+
if (!entry) return;
|
|
19
|
+
if (entry.isIntersecting) {
|
|
20
|
+
setInView(true);
|
|
21
|
+
if (once) io.disconnect();
|
|
22
|
+
} else if (!once) setInView(false);
|
|
23
|
+
},
|
|
24
|
+
{ threshold, rootMargin }
|
|
25
|
+
);
|
|
26
|
+
io.observe(node);
|
|
27
|
+
return () => io.disconnect();
|
|
28
|
+
}, [node, once, threshold, rootMargin]);
|
|
29
|
+
return [setNode, inView];
|
|
30
|
+
}
|
|
31
|
+
export {
|
|
32
|
+
useInView
|
|
33
|
+
};
|