@tagit/ai-client-react 0.8.0-beta.20.1 → 0.8.0-beta.21.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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/chat-widget.css +22 -21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tagit/ai-client-react",
3
- "version": "0.8.0-beta.20.1",
3
+ "version": "0.8.0-beta.21.1",
4
4
  "description": "Self-contained React chat widget and hooks for TagIt AI client",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -37,7 +37,7 @@
37
37
  }
38
38
  },
39
39
  "dependencies": {
40
- "@tagit/ai-client-core": "0.8.0-beta.20.1",
40
+ "@tagit/ai-client-core": "0.8.0-beta.21.1",
41
41
  "highlight.js": "^11.11.1",
42
42
  "lucide-react": "^0.539.0",
43
43
  "react-markdown": "^10.1.0",
@@ -942,9 +942,9 @@
942
942
  background: var(--tagIt-chat-user-bubble-bg);
943
943
  color: var(--tagIt-chat-primary-contrast);
944
944
  border-radius: 18px 18px 4px 18px;
945
- padding: 8px 14px;
945
+ padding: 7px 13px;
946
946
  font-size: 14px;
947
- line-height: 1.5;
947
+ line-height: 1.42;
948
948
  word-break: break-word;
949
949
  white-space: pre-wrap;
950
950
  }
@@ -955,7 +955,7 @@
955
955
 
956
956
  .tagIt-chat-assistant-content {
957
957
  font-size: 14px;
958
- line-height: 1.6;
958
+ line-height: 1.48;
959
959
  white-space: pre-wrap;
960
960
  word-break: break-word;
961
961
  color: var(--tagIt-chat-text);
@@ -968,7 +968,7 @@
968
968
  .tagIt-chat-md-streaming {
969
969
  white-space: pre-wrap;
970
970
  word-break: break-word;
971
- line-height: 1.65;
971
+ line-height: 1.5;
972
972
  }
973
973
 
974
974
  .tagIt-chat-md-root > *:first-child {
@@ -980,16 +980,16 @@
980
980
  }
981
981
 
982
982
  .tagIt-chat-md-root p {
983
- margin: 0 0 3px;
984
- line-height: 1.5;
983
+ margin: 0 0 2px;
984
+ line-height: 1.42;
985
985
  }
986
986
 
987
987
  .tagIt-chat-md-root h1,
988
988
  .tagIt-chat-md-root h2,
989
989
  .tagIt-chat-md-root h3,
990
990
  .tagIt-chat-md-root h4 {
991
- margin: 6px 0 2px;
992
- line-height: 1.2;
991
+ margin: 5px 0 1px;
992
+ line-height: 1.18;
993
993
  color: var(--tagIt-chat-text);
994
994
  }
995
995
 
@@ -1000,12 +1000,13 @@
1000
1000
 
1001
1001
  .tagIt-chat-md-root ul,
1002
1002
  .tagIt-chat-md-root ol {
1003
- margin: 0 0 3px 16px;
1003
+ margin: 0 0 2px 15px;
1004
1004
  padding: 0;
1005
1005
  }
1006
1006
 
1007
1007
  .tagIt-chat-md-root li {
1008
- margin-bottom: 1px;
1008
+ margin-bottom: 0;
1009
+ line-height: 1.38;
1009
1010
  }
1010
1011
 
1011
1012
  .tagIt-chat-md-root li > p {
@@ -1020,8 +1021,8 @@
1020
1021
  }
1021
1022
 
1022
1023
  .tagIt-chat-md-root blockquote {
1023
- margin: 4px 0;
1024
- padding: 4px 10px;
1024
+ margin: 3px 0;
1025
+ padding: 3px 9px;
1025
1026
  border-left: 3px solid color-mix(in srgb, var(--tagIt-chat-primary) 50%, transparent);
1026
1027
  background: color-mix(in srgb, var(--tagIt-chat-border) 30%, transparent);
1027
1028
  border-radius: 8px;
@@ -1030,7 +1031,7 @@
1030
1031
  .tagIt-chat-md-root table {
1031
1032
  width: 100%;
1032
1033
  border-collapse: collapse;
1033
- margin: 4px 0;
1034
+ margin: 3px 0;
1034
1035
  font-size: 13px;
1035
1036
  }
1036
1037
 
@@ -1061,8 +1062,8 @@
1061
1062
 
1062
1063
  .tagIt-chat-md-code-block {
1063
1064
  position: relative;
1064
- margin: 6px 0;
1065
- padding: 8px 12px;
1065
+ margin: 5px 0;
1066
+ padding: 7px 11px;
1066
1067
  border-radius: 10px;
1067
1068
  background: color-mix(in srgb, var(--tagIt-chat-border) 30%, transparent);
1068
1069
  overflow-x: auto;
@@ -1109,8 +1110,8 @@
1109
1110
  }
1110
1111
 
1111
1112
  .tagIt-chat-chart-wrap {
1112
- margin: 12px 0;
1113
- padding: 10px;
1113
+ margin: 8px 0;
1114
+ padding: 8px;
1114
1115
  border-radius: 10px;
1115
1116
  border: 1px solid color-mix(in srgb, var(--tagIt-chat-border) 70%, transparent);
1116
1117
  background: color-mix(in srgb, var(--tagIt-chat-bg) 70%, var(--tagIt-chat-border));
@@ -1148,12 +1149,12 @@
1148
1149
  }
1149
1150
 
1150
1151
  .tagIt-chat-tool-calls {
1151
- margin-top: 10px;
1152
- padding-top: 8px;
1152
+ margin-top: 8px;
1153
+ padding-top: 6px;
1153
1154
  border-top: 1px solid color-mix(in srgb, var(--tagIt-chat-border) 75%, transparent);
1154
1155
  display: flex;
1155
1156
  flex-direction: column;
1156
- gap: 4px;
1157
+ gap: 3px;
1157
1158
  }
1158
1159
 
1159
1160
  .tagIt-chat-tool-call {
@@ -1404,7 +1405,7 @@
1404
1405
  .tagIt-chat-message-actions {
1405
1406
  display: flex;
1406
1407
  gap: 4px;
1407
- margin-top: 6px;
1408
+ margin-top: 4px;
1408
1409
  opacity: 0;
1409
1410
  transition: opacity 0.15s;
1410
1411
  }