@crestapps/ai-chat-ui 2.0.0-preview.250 → 2.0.0-preview.257

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/ai-chat.css CHANGED
@@ -1,3 +1,98 @@
1
+ /* AG-UI: what the assistant did while answering (tool calls, reasoning, approvals), above the answer. */
2
+ .ai-chat-agui-activity {
3
+ display: flex;
4
+ flex-direction: column;
5
+ gap: 0.25rem;
6
+ margin-bottom: 0.5rem;
7
+ font-size: 0.8rem;
8
+ }
9
+
10
+ .ai-chat-agui-tool,
11
+ .ai-chat-agui-reasoning {
12
+ border: 1px solid var(--bs-border-color, #dee2e6);
13
+ border-radius: 0.375rem;
14
+ background: var(--bs-tertiary-bg, #f8f9fa);
15
+ color: var(--bs-secondary-color, #6c757d);
16
+ }
17
+
18
+ .ai-chat-agui-tool > details > summary,
19
+ .ai-chat-agui-tool-summary,
20
+ .ai-chat-agui-reasoning > summary {
21
+ padding: 0.25rem 0.5rem;
22
+ cursor: default;
23
+ list-style-position: inside;
24
+ }
25
+
26
+ .ai-chat-agui-tool > details > summary,
27
+ .ai-chat-agui-reasoning > summary {
28
+ cursor: pointer;
29
+ }
30
+
31
+ .ai-chat-agui-tool-name {
32
+ color: var(--bs-body-color, #212529);
33
+ }
34
+
35
+ .ai-chat-agui-tool-state {
36
+ margin-inline-start: 0.25rem;
37
+ font-style: italic;
38
+ }
39
+
40
+ .ai-chat-agui-tool-completed .fa-check,
41
+ .ai-chat-agui-tool-approved .fa-check {
42
+ color: var(--bs-success, #198754);
43
+ }
44
+
45
+ .ai-chat-agui-tool-rejected .fa-ban {
46
+ color: var(--bs-danger, #dc3545);
47
+ }
48
+
49
+ .ai-chat-agui-tool-awaitingApproval {
50
+ border-color: var(--bs-warning, #ffc107);
51
+ }
52
+
53
+ .ai-chat-agui-tool-awaitingApproval .fa-hand {
54
+ color: var(--bs-warning, #ffc107);
55
+ }
56
+
57
+ .ai-chat-agui-tool-section {
58
+ padding: 0 0.5rem 0.375rem;
59
+ }
60
+
61
+ .ai-chat-agui-tool-section-label {
62
+ font-weight: 600;
63
+ }
64
+
65
+ .ai-chat-agui-tool-section pre,
66
+ .ai-chat-agui-reasoning-text {
67
+ max-height: 12rem;
68
+ overflow: auto;
69
+ margin: 0;
70
+ padding: 0.25rem 0.375rem;
71
+ border-radius: 0.25rem;
72
+ background: var(--bs-body-bg, #fff);
73
+ white-space: pre-wrap;
74
+ word-break: break-word;
75
+ font-size: 0.75rem;
76
+ }
77
+
78
+ .ai-chat-agui-reasoning-text {
79
+ margin: 0 0.5rem 0.375rem;
80
+ }
81
+
82
+ .ai-chat-agui-approval {
83
+ display: flex;
84
+ flex-wrap: wrap;
85
+ align-items: center;
86
+ gap: 0.375rem;
87
+ padding: 0.375rem 0.5rem;
88
+ border-top: 1px solid var(--bs-border-color, #dee2e6);
89
+ color: var(--bs-body-color, #212529);
90
+ }
91
+
92
+ .ai-chat-agui-approval span {
93
+ margin-inline-end: auto;
94
+ }
95
+
1
96
  .ai-chat-message-heading {
2
97
  font-size: 0.75rem;
3
98
  margin-bottom: 0.35rem;
@@ -592,3 +687,4 @@ img.medium-zoom-image--opened {
592
687
  animation: none;
593
688
  }
594
689
  }
690
+