@helpway/react 0.5.1 → 0.6.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@helpway/react",
3
- "version": "0.5.1",
3
+ "version": "0.6.0",
4
4
  "description": "Official React SDK for Helpway — drop-in AI chat support widget with headless hooks for custom UIs.",
5
5
  "keywords": [
6
6
  "helpway",
@@ -842,7 +842,7 @@
842
842
  color: var(--hw-text);
843
843
  }
844
844
  .hw-recent-row--unread .hw-conv-card-time {
845
- color: var(--hw-accent);
845
+ color: var(--hw-primary);
846
846
  font-weight: 500;
847
847
  }
848
848
 
@@ -983,7 +983,7 @@
983
983
  color: var(--hw-text);
984
984
  }
985
985
  .hw-conv-card--unread .hw-conv-card-time {
986
- color: var(--hw-accent);
986
+ color: var(--hw-primary);
987
987
  font-weight: 500;
988
988
  }
989
989
 
@@ -1322,6 +1322,55 @@
1322
1322
  width: 100%;
1323
1323
  }
1324
1324
 
1325
+ /* Quick reply buttons — interactive workflow choices */
1326
+ .hw-quick-replies {
1327
+ display: flex;
1328
+ flex-wrap: wrap;
1329
+ gap: 6px;
1330
+ margin-top: 8px;
1331
+ }
1332
+
1333
+ .hw-quick-reply-btn {
1334
+ font: inherit;
1335
+ font-size: 13px;
1336
+ font-weight: 500;
1337
+ padding: 6px 14px;
1338
+ border-radius: 18px;
1339
+ border: 1px solid rgba(0, 0, 0, 0.12);
1340
+ background: var(--hw-bg, #fff);
1341
+ color: var(--hw-text-1, #1a1a1a);
1342
+ cursor: pointer;
1343
+ transition: background 120ms ease, border-color 120ms ease, box-shadow 120ms ease, transform 80ms ease;
1344
+ line-height: 1.3;
1345
+ }
1346
+
1347
+ .hw-quick-reply-btn:hover:not(:disabled) {
1348
+ border-color: var(--hw-primary);
1349
+ background: color-mix(in srgb, var(--hw-primary) 8%, transparent);
1350
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
1351
+ }
1352
+
1353
+ .hw-quick-reply-btn:active:not(:disabled) {
1354
+ transform: scale(0.97);
1355
+ }
1356
+
1357
+ .hw-quick-reply-btn:disabled {
1358
+ cursor: default;
1359
+ opacity: 0.4;
1360
+ }
1361
+
1362
+ .hw-quick-reply-btn[data-tapped="true"] {
1363
+ background: var(--hw-primary);
1364
+ color: white;
1365
+ border-color: var(--hw-primary);
1366
+ opacity: 1;
1367
+ }
1368
+
1369
+ .hw-quick-replies[data-cancelled="true"] .hw-quick-reply-btn {
1370
+ border-color: rgba(0, 0, 0, 0.08);
1371
+ color: var(--hw-text-muted, #9ca3af);
1372
+ }
1373
+
1325
1374
  .hw-msg--ai .hw-code {
1326
1375
  width: 100%;
1327
1376
  box-sizing: border-box;
@@ -2473,10 +2522,6 @@
2473
2522
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08);
2474
2523
  }
2475
2524
 
2476
- .hw-preview--closing {
2477
- animation: hw-preview-out 0.2s ease forwards;
2478
- }
2479
-
2480
2525
  @keyframes hw-preview-in {
2481
2526
  from {
2482
2527
  opacity: 0;
@@ -2558,14 +2603,52 @@
2558
2603
  }
2559
2604
 
2560
2605
  .hw-preview-body {
2561
- padding: 8px 14px 14px;
2606
+ padding: 4px 14px;
2562
2607
  font-size: 14px;
2563
2608
  line-height: 1.45;
2564
2609
  color: var(--hw-text-2);
2565
- display: -webkit-box;
2566
- -webkit-line-clamp: 3;
2567
- -webkit-box-orient: vertical;
2568
- overflow: hidden;
2610
+ }
2611
+
2612
+ .hw-preview-body:first-of-type {
2613
+ padding-top: 8px;
2614
+ }
2615
+
2616
+ .hw-preview-body:last-child {
2617
+ padding-bottom: 14px;
2618
+ }
2619
+
2620
+ .hw-preview-prompt {
2621
+ padding: 2px 14px 6px;
2622
+ font-size: 14px;
2623
+ font-weight: 500;
2624
+ color: var(--hw-text-1);
2625
+ }
2626
+
2627
+ .hw-preview-quick-replies {
2628
+ display: flex;
2629
+ flex-wrap: wrap;
2630
+ gap: 6px;
2631
+ padding: 0 14px 14px;
2632
+ }
2633
+
2634
+ .hw-preview-qr-btn {
2635
+ display: inline-flex;
2636
+ align-items: center;
2637
+ padding: 6px 14px;
2638
+ font-size: 13px;
2639
+ font-weight: 500;
2640
+ line-height: 1.3;
2641
+ color: var(--hw-brand, #000);
2642
+ background: transparent;
2643
+ border: 1px solid var(--hw-border, rgba(0, 0, 0, 0.1));
2644
+ border-radius: 18px;
2645
+ cursor: pointer;
2646
+ transition: background 0.15s, border-color 0.15s;
2647
+ }
2648
+
2649
+ .hw-preview-qr-btn:hover {
2650
+ background: var(--hw-hover, rgba(0, 0, 0, 0.04));
2651
+ border-color: var(--hw-brand, #000);
2569
2652
  }
2570
2653
 
2571
2654
  /* ═══════════════════════════════════════════════════════════