vpschatbotwidget 1.2.4 → 1.2.6
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/README.md +13 -0
- package/dist-lib/types/chatbot/api/chatbot-api.d.ts +2 -0
- package/dist-lib/types/chatbot/api/chatbot-types.d.ts +9 -2
- package/dist-lib/types/chatbot/config/roles.d.ts +92 -0
- package/dist-lib/types/chatbot/core/ChatProvider.d.ts +4 -2
- package/dist-lib/types/chatbot/embedded/EmbeddedChatbot.d.ts +3 -2
- package/dist-lib/types/chatbot/index.d.ts +2 -1
- package/dist-lib/types/chatbot/widget/ChatbotWidget.d.ts +3 -2
- package/dist-lib/vps-chatbot.cjs +45 -45
- package/dist-lib/vps-chatbot.js +3962 -3857
- package/package.json +1 -1
- package/src/chatbot/api/chatbot-api.ts +9 -1
- package/src/chatbot/api/chatbot-types.ts +10 -2
- package/src/chatbot/chatbot.test.tsx +52 -0
- package/src/chatbot/config/roles.ts +99 -0
- package/src/chatbot/core/ChatHeader.tsx +5 -2
- package/src/chatbot/core/ChatMessage.tsx +3 -1
- package/src/chatbot/core/ChatProvider.tsx +42 -10
- package/src/chatbot/embedded/EmbeddedChatbot.tsx +24 -3
- package/src/chatbot/embedded/EmbeddedChatbotTrigger.tsx +2 -2
- package/src/chatbot/index.ts +2 -0
- package/src/chatbot/widget/ChatbotWidget.tsx +6 -2
- package/src/index.css +17 -2
package/src/index.css
CHANGED
|
@@ -690,6 +690,14 @@ button {
|
|
|
690
690
|
gap: 6px;
|
|
691
691
|
}
|
|
692
692
|
|
|
693
|
+
.app-role-select {
|
|
694
|
+
display: flex;
|
|
695
|
+
align-items: center;
|
|
696
|
+
gap: 6px;
|
|
697
|
+
font-size: 0.75rem;
|
|
698
|
+
color: var(--text-muted);
|
|
699
|
+
}
|
|
700
|
+
|
|
693
701
|
/* Mode toggle buttons (Widget / Slide-out) */
|
|
694
702
|
.mode-btn {
|
|
695
703
|
display: inline-flex;
|
|
@@ -784,7 +792,7 @@ button {
|
|
|
784
792
|
align-items: center;
|
|
785
793
|
justify-content: center;
|
|
786
794
|
border-radius: 50%;
|
|
787
|
-
background-color: var(--
|
|
795
|
+
background-color: var(--action);
|
|
788
796
|
color: var(--text-on-action);
|
|
789
797
|
flex-shrink: 0;
|
|
790
798
|
}
|
|
@@ -1959,9 +1967,10 @@ button {
|
|
|
1959
1967
|
pointer-events: none;
|
|
1960
1968
|
}
|
|
1961
1969
|
|
|
1970
|
+
/* On desktop: keep overlay for outside-click detection but hide the dim */
|
|
1962
1971
|
@media (min-width: 640px) {
|
|
1963
1972
|
.embedded-overlay {
|
|
1964
|
-
|
|
1973
|
+
background-color: transparent;
|
|
1965
1974
|
}
|
|
1966
1975
|
}
|
|
1967
1976
|
|
|
@@ -2060,6 +2069,12 @@ button {
|
|
|
2060
2069
|
cursor: grabbing;
|
|
2061
2070
|
}
|
|
2062
2071
|
|
|
2072
|
+
.embedded-trigger-icon {
|
|
2073
|
+
width: 22px;
|
|
2074
|
+
height: 24px;
|
|
2075
|
+
flex-shrink: 0;
|
|
2076
|
+
}
|
|
2077
|
+
|
|
2063
2078
|
/* ── MessageScroller ─────────────────────────────────────────── */
|
|
2064
2079
|
.msg-scroller-root {
|
|
2065
2080
|
position: relative;
|