bunnyquery 1.21.13 → 1.21.15

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/src/widget.css CHANGED
@@ -9,29 +9,38 @@
9
9
  * ==========================================================================*/
10
10
 
11
11
  /* ---- Tokens: light (default) ---------------------------------------------*/
12
+ /* Same values as the BunnyQuery dashboard chat (web-bunnyquery bq-tokens.less +
13
+ agent.vue), so an embedded chat and the dashboard's chat look the same. The
14
+ widget is one card, so --bq-paper here is the dashboard's chat card colour
15
+ (its --bq-surface), not its page canvas. --bq-bubble is the reply bubble one
16
+ step above it (the dashboard's --bq-chat-bubble), --bq-field the text boxes. */
12
17
  .bq-agent,
13
18
  .bq-modal-root {
14
19
  --bq-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
15
- --bq-ink: #111;
16
- --bq-paper: #fff;
17
- --bq-muted: #666;
18
- --bq-line: #c8c8c8;
19
- --bq-hover-bg: #ebebeb;
20
+ --bq-ink: #111113;
21
+ --bq-paper: #ffffff;
22
+ --bq-bubble: #ffffff;
23
+ --bq-field: #ffffff;
24
+ --bq-muted: #5e5e66;
25
+ --bq-line: #d6d6db;
26
+ /* control edges (text boxes); dividers stay on --bq-line */
27
+ --bq-input-line: #8a8a93;
28
+ --bq-hover-bg: #ececef;
20
29
  --bq-main: #c2185b;
21
30
  --bq-light-main: #f06292;
22
- --bq-danger: #c44;
23
- --bq-danger-bg: #fff5f5;
24
- --bq-main-bg: #fff8fa;
25
- --bq-success: #2a7d29;
26
- --bq-success-bg: #eef9f0;
27
- --bq-success-border: #b8dcbc;
28
- --bq-warning: #8a6d00;
29
- --bq-warning-bg: #fff8e1;
30
- --bq-warning-border: #e2a300;
31
+ --bq-danger: #c03b3b;
32
+ --bq-danger-bg: #fdf1f1;
33
+ --bq-main-bg: #fcf0f5;
34
+ --bq-success: #25722a;
35
+ --bq-success-bg: #edf8ef;
36
+ --bq-success-border: #a9d4ae;
37
+ --bq-warning: #7a5f00;
38
+ --bq-warning-bg: #fff7de;
39
+ --bq-warning-border: #d99a00;
31
40
  --bq-info: #1a5bb5;
32
41
  --bq-info-bg: #e8f0fb;
33
- --bq-info-border: #3c94ff;
34
- --bq-placeholder: #aaaaaa;
42
+ --bq-info-border: #6aa5f0;
43
+ --bq-placeholder: #909098;
35
44
  /* hard offset shadow for bubbles; swapped for a light edge in dark */
36
45
  --bq-shadow: rgba(0, 0, 0, 0.12);
37
46
  --bq-code-bg: #1e1e1e;
@@ -40,31 +49,35 @@
40
49
  }
41
50
 
42
51
  /* ---- Tokens: dark --------------------------------------------------------*/
52
+ /* Not #000: the dashboard's dark chat card (#161618), replies one step lighter
53
+ (#1f1f23) and text boxes recessed below the card (#101012). */
43
54
  .bq-agent[data-bq-theme="dark"],
44
55
  .bq-modal-root[data-bq-theme="dark"] {
45
- --bq-ink: #ebebeb;
46
- --bq-paper: #000;
47
- --bq-muted: #a0a0a0;
48
- /* was #3d3d3d — brighter edges, matching the admin's dark tokens */
49
- --bq-line: #484848;
50
- --bq-hover-bg: #252525;
51
- --bq-main: #f06292;
52
- --bq-light-main: #f48fb1;
53
- --bq-danger: #ef5350;
54
- --bq-danger-bg: #2d1616;
55
- --bq-main-bg: #2b1520;
56
- --bq-success: #6abf66;
57
- --bq-success-bg: #192e1e;
58
- --bq-success-border: #4caf50;
59
- --bq-warning: #ffca28;
60
- --bq-warning-bg: #2d2516;
61
- --bq-warning-border: #f9a825;
62
- --bq-info: #64b5f6;
63
- --bq-info-bg: #162230;
64
- --bq-info-border: #42a5f5;
65
- --bq-placeholder: #787878;
66
- /* light edge — a black hard shadow is invisible on the dark paper */
67
- --bq-shadow: rgba(255, 255, 255, 0.16);
56
+ --bq-ink: #ececef;
57
+ --bq-paper: #161618;
58
+ --bq-bubble: #1f1f23;
59
+ --bq-field: #101012;
60
+ --bq-muted: #a9a9b2;
61
+ --bq-line: #333338;
62
+ --bq-input-line: #74747e;
63
+ --bq-hover-bg: #26262a;
64
+ --bq-main: #f2709c;
65
+ --bq-light-main: #f7a1bf;
66
+ --bq-danger: #f0706d;
67
+ --bq-danger-bg: #2a1617;
68
+ --bq-main-bg: #2a1620;
69
+ --bq-success: #6cc068;
70
+ --bq-success-bg: #142318;
71
+ --bq-success-border: #3f8a45;
72
+ --bq-warning: #f2c14e;
73
+ --bq-warning-bg: #29220f;
74
+ --bq-warning-border: #b8892a;
75
+ --bq-info: #6cb4f5;
76
+ --bq-info-bg: #131d29;
77
+ --bq-info-border: #3a7cc4;
78
+ --bq-placeholder: #6c6c75;
79
+ /* light edge: a black hard shadow is invisible on the dark card */
80
+ --bq-shadow: rgba(255, 255, 255, 0.11);
68
81
  --bq-icon-invert: 1;
69
82
  }
70
83
 
@@ -325,8 +338,8 @@
325
338
  .bq-input-text {
326
339
  width: 100%;
327
340
  padding: 0.7rem 0.8rem;
328
- border: 1px solid var(--bq-line);
329
- background: var(--bq-paper);
341
+ border: 1px solid var(--bq-input-line);
342
+ background: var(--bq-field);
330
343
  color: var(--bq-ink);
331
344
  font-family: var(--bq-mono);
332
345
  font-size: 0.9rem;
@@ -835,8 +848,8 @@
835
848
  box-sizing: border-box;
836
849
  overflow-y: hidden; /* autoGrowInput switches to auto only at the max-height cap */
837
850
  resize: none;
838
- border: 1px solid var(--bq-line);
839
- background: var(--bq-paper);
851
+ border: 1px solid var(--bq-input-line);
852
+ background: var(--bq-field);
840
853
  color: var(--bq-ink);
841
854
  padding: 0.7rem 0.7rem 0.7rem var(--chat-control-height);
842
855
  font-family: var(--bq-mono);
@@ -1024,7 +1037,7 @@
1024
1037
  max-width: 100%;
1025
1038
  max-height: 90vh;
1026
1039
  overflow-y: auto;
1027
- background: var(--bq-paper);
1040
+ background: var(--bq-bubble);
1028
1041
  color: var(--bq-ink);
1029
1042
  border: 1px solid var(--bq-line);
1030
1043
  box-shadow: 4px 4px rgba(0, 0, 0, 0.2);
@@ -1145,3 +1158,17 @@
1145
1158
  .bq-modal-root[data-bq-theme="dark"] .bq-icon-invertible {
1146
1159
  filter: invert(var(--bq-icon-invert));
1147
1160
  }
1161
+
1162
+ /* ---- Reply bubbles one step above the conversation -----------------------*/
1163
+ /* chat.css paints replies on --bq-paper, the conversation colour, so in dark
1164
+ mode a reply was only a hairline on the card. Same rule as the dashboard
1165
+ (agent.vue): replies on --bq-bubble; the user, error, cancelled and retried
1166
+ variants keep their own chat.css colours, and the two "plain" notes stay on
1167
+ the conversation colour. */
1168
+ .bq-messages .bq-bubble {
1169
+ background: var(--bq-bubble);
1170
+ }
1171
+ .bq-messages .bq-message.is-error.is-retried .bq-bubble,
1172
+ .bq-messages .bq-message.bq-index-pass.is-user:not(.is-cancelled):not(.is-pending-older) .bq-bubble {
1173
+ background: var(--bq-paper);
1174
+ }
package/styles/chat.css CHANGED
@@ -83,6 +83,12 @@
83
83
  .bq-message.is-assistant:not(.is-error):not(.is-cancelled):not(.bq-index-pass) .bq-bubble:has(> .bq-loader) > .bq-loader {
84
84
  vertical-align: middle;
85
85
  }
86
+ /* The waiting turn's progress line ("Searching your files for ..."): a sentence
87
+ from the engine (chatActivityLine) sitting right before the dot trail, so the
88
+ dots read as its ending. Middle-aligned with the inline bunny like the dots. */
89
+ .bq-bubble > .bq-activity-text {
90
+ vertical-align: middle;
91
+ }
86
92
  /* The dot-trail cycles '.', '..', '...', so left to itself it is a box that
87
93
  changes width three times every 1.2s: the bubble pulsed with it, and the
88
94
  stop-waiting control that follows the dots moved each time, which made it hard