@smart-cloud/ai-kit-ui 1.5.23 → 1.5.25
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-chatbot/AiChatbot.d.ts +2 -0
- package/dist/ai-chatbot/welcome.d.ts +4 -0
- package/dist/ai-kit-ui.css +69 -62
- package/dist/index.cjs +11 -11
- package/dist/index.js +11 -11
- package/package.json +2 -2
|
@@ -4,6 +4,8 @@ export declare const DEFAULT_CHATBOT_LABELS: Required<AiChatbotLabels>;
|
|
|
4
4
|
export declare const AiChatbot: React.FC<import("@smart-cloud/ai-kit-core").AiWorkerProps & {
|
|
5
5
|
context?: import("@smart-cloud/ai-kit-core").ContextKind;
|
|
6
6
|
placeholder?: string;
|
|
7
|
+
greeting?: string;
|
|
8
|
+
starterQuestions?: string[];
|
|
7
9
|
maxImages?: number;
|
|
8
10
|
maxImageBytes?: number;
|
|
9
11
|
maxTokens?: number;
|
package/dist/ai-kit-ui.css
CHANGED
|
@@ -86,6 +86,9 @@
|
|
|
86
86
|
--ai-kit-text-color: var(--ai-kit-color-text);
|
|
87
87
|
--ai-kit-background-color: var(--ai-kit-color-surface);
|
|
88
88
|
--ai-kit-options-background-color: var(--ai-kit-color-surface-2);
|
|
89
|
+
--ai-kit-options-toggle-color: var(--ai-kit-color-text);
|
|
90
|
+
--ai-kit-options-toggle-bg-hover: rgba(0, 0, 0, 0.07);
|
|
91
|
+
--ai-kit-options-toggle-border-hover: rgba(0, 0, 0, 0.24);
|
|
89
92
|
|
|
90
93
|
--ai-kit-color-text-light: var(--ai-kit-color-text-muted);
|
|
91
94
|
--ai-kit-color-border-light: rgba(0, 0, 0, 0.1);
|
|
@@ -194,6 +197,8 @@
|
|
|
194
197
|
#ai-kit-portal-root[data-mantine-color-scheme="dark"],
|
|
195
198
|
[data-ai-kit-theme="dark"] {
|
|
196
199
|
--ai-kit-color-text-muted: rgba(235, 240, 248, 0.72);
|
|
200
|
+
--ai-kit-options-toggle-bg-hover: rgba(255, 255, 255, 0.1);
|
|
201
|
+
--ai-kit-options-toggle-border-hover: rgba(255, 255, 255, 0.28);
|
|
197
202
|
}
|
|
198
203
|
|
|
199
204
|
/* Variation defaults */
|
|
@@ -272,6 +277,30 @@
|
|
|
272
277
|
--group-wrap: nowrap !important;
|
|
273
278
|
}
|
|
274
279
|
|
|
280
|
+
.ai-feature-options-summary .ai-feature-options-toggle {
|
|
281
|
+
--button-bg: transparent;
|
|
282
|
+
--button-hover: var(--ai-kit-options-toggle-bg-hover);
|
|
283
|
+
--button-color: var(--ai-kit-options-toggle-color);
|
|
284
|
+
color: var(--ai-kit-options-toggle-color);
|
|
285
|
+
background-color: transparent;
|
|
286
|
+
border: 1px solid var(--ai-kit-color-border);
|
|
287
|
+
border-radius: var(--ai-kit-radius-pill);
|
|
288
|
+
min-height: 32px;
|
|
289
|
+
padding-inline: var(--ai-kit-space-3);
|
|
290
|
+
transition: var(--ai-kit-action-transition);
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.ai-feature-options-summary .ai-feature-options-toggle:hover {
|
|
294
|
+
color: var(--ai-kit-options-toggle-color);
|
|
295
|
+
background-color: var(--ai-kit-options-toggle-bg-hover);
|
|
296
|
+
border-color: var(--ai-kit-options-toggle-border-hover);
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.ai-feature-options-summary .ai-feature-options-toggle:focus-visible {
|
|
300
|
+
outline: 2px solid var(--ai-kit-action-focus-ring);
|
|
301
|
+
outline-offset: 2px;
|
|
302
|
+
}
|
|
303
|
+
|
|
275
304
|
.ai-feature-status-text {
|
|
276
305
|
font-size: var(--ai-kit-font-size-xs);
|
|
277
306
|
opacity: 0.85;
|
|
@@ -769,18 +798,44 @@
|
|
|
769
798
|
margin: 0;
|
|
770
799
|
}
|
|
771
800
|
|
|
772
|
-
.ai-chat-
|
|
773
|
-
|
|
801
|
+
.ai-chat-starters {
|
|
802
|
+
width: 100%;
|
|
774
803
|
}
|
|
775
804
|
|
|
776
|
-
.ai-chat-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
805
|
+
.ai-chat-starter {
|
|
806
|
+
height: auto;
|
|
807
|
+
min-height: 44px;
|
|
808
|
+
min-width: min(220px, 100%);
|
|
809
|
+
max-width: min(100%, 340px);
|
|
810
|
+
padding: 8px 14px;
|
|
811
|
+
text-align: start;
|
|
812
|
+
white-space: normal;
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
.ai-chat-starter .mantine-Button-inner {
|
|
816
|
+
min-width: 0;
|
|
817
|
+
height: auto;
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
.ai-chat-starter .mantine-Button-label {
|
|
780
821
|
max-width: 100%;
|
|
781
|
-
|
|
782
|
-
overflow:
|
|
783
|
-
|
|
822
|
+
overflow: visible;
|
|
823
|
+
text-overflow: clip;
|
|
824
|
+
white-space: normal;
|
|
825
|
+
overflow-wrap: anywhere;
|
|
826
|
+
line-height: 1.35;
|
|
827
|
+
text-align: start;
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
.ai-chat-progress {
|
|
831
|
+
max-width: 100%;
|
|
832
|
+
margin: var(--ai-kit-space-2) 0;
|
|
833
|
+
color: var(--ai-kit-color-text-muted, var(--ai-kit-color-text));
|
|
834
|
+
overflow-wrap: anywhere;
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
.ai-chat-progress [data-status="failed"] {
|
|
838
|
+
color: var(--ai-kit-color-danger);
|
|
784
839
|
}
|
|
785
840
|
|
|
786
841
|
.ai-chat-row.user .ai-chat-bubble {
|
|
@@ -873,70 +928,22 @@
|
|
|
873
928
|
|
|
874
929
|
/* Citations / status / feedback */
|
|
875
930
|
.ai-citations {
|
|
931
|
+
max-width: 100%;
|
|
876
932
|
margin-top: var(--ai-kit-space-2);
|
|
877
933
|
font-size: 0.8rem;
|
|
878
934
|
}
|
|
879
935
|
|
|
880
|
-
.ai-citations
|
|
881
|
-
padding-left: 16px;
|
|
882
|
-
margin: 4px 0 0;
|
|
883
|
-
}
|
|
884
|
-
|
|
885
|
-
.ai-chat-activity-trace {
|
|
886
|
-
max-width: min(600px, 100%);
|
|
887
|
-
margin-top: var(--ai-kit-space-2);
|
|
888
|
-
padding: 6px 10px;
|
|
889
|
-
border: 1px solid var(--ai-kit-color-border, #d7dce3);
|
|
890
|
-
border-radius: 10px;
|
|
891
|
-
color: var(--ai-kit-color-text-muted, var(--ai-kit-color-text));
|
|
892
|
-
font-size: 0.8rem;
|
|
893
|
-
}
|
|
894
|
-
|
|
895
|
-
.ai-chat-activity-trace summary {
|
|
936
|
+
.ai-citations summary {
|
|
896
937
|
cursor: pointer;
|
|
938
|
+
font-weight: 600;
|
|
897
939
|
overflow-wrap: anywhere;
|
|
898
940
|
}
|
|
899
941
|
|
|
900
|
-
.ai-
|
|
901
|
-
|
|
902
|
-
margin-right: 6px;
|
|
903
|
-
vertical-align: text-bottom;
|
|
904
|
-
}
|
|
905
|
-
|
|
906
|
-
.ai-chat-activity-detail,
|
|
907
|
-
.ai-chat-activity-urls {
|
|
908
|
-
margin-top: 4px;
|
|
909
|
-
overflow-wrap: anywhere;
|
|
910
|
-
}
|
|
911
|
-
|
|
912
|
-
.ai-chat-activity-detail:empty {
|
|
913
|
-
display: none;
|
|
914
|
-
}
|
|
915
|
-
|
|
916
|
-
.ai-chat-activity-urls {
|
|
917
|
-
padding-left: 18px;
|
|
918
|
-
}
|
|
919
|
-
|
|
920
|
-
.ai-chat-activity-trace ol {
|
|
921
|
-
display: grid;
|
|
922
|
-
gap: 5px;
|
|
923
|
-
padding-left: 18px;
|
|
942
|
+
.ai-citations ul {
|
|
943
|
+
padding-left: 16px;
|
|
924
944
|
margin: 6px 0 0;
|
|
925
945
|
}
|
|
926
946
|
|
|
927
|
-
.ai-chat-activity-trace li {
|
|
928
|
-
padding-left: 2px;
|
|
929
|
-
}
|
|
930
|
-
|
|
931
|
-
.ai-chat-activity-trace li svg {
|
|
932
|
-
margin-right: 6px;
|
|
933
|
-
vertical-align: text-bottom;
|
|
934
|
-
}
|
|
935
|
-
|
|
936
|
-
.ai-chat-activity-trace li[data-status="failed"] {
|
|
937
|
-
color: var(--ai-kit-color-danger);
|
|
938
|
-
}
|
|
939
|
-
|
|
940
947
|
.ai-chat-site-icons {
|
|
941
948
|
display: inline-flex;
|
|
942
949
|
gap: 3px;
|