@contenify/chatbot 2.0.0 → 4.0.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/dist/styles.css CHANGED
@@ -243,10 +243,10 @@
243
243
  }
244
244
 
245
245
  .cnfy-header-logo-img {
246
- height: 2rem;
247
- width: 2rem;
248
- border-radius: 0.375rem;
249
- object-fit: cover;
246
+ object-fit: cover;
247
+ border-radius: .375rem;
248
+ width: 131px;
249
+ height: 2rem;
250
250
  }
251
251
 
252
252
  .cnfy-header-logo-fallback {
@@ -418,18 +418,20 @@
418
418
  }
419
419
 
420
420
  .cnfy-msg-body.you {
421
+ margin-top: 15px;
422
+ background: #efefef;
423
+ text-align: right;
424
+ word-break: break-word;
421
425
  border-radius: 11px;
422
- display: block;
423
- width: fit-content;
424
- max-width: 80%;
426
+ width: fit-content;
425
427
  min-width: 60px;
426
- margin-left: auto;
428
+ max-width: 80%;
429
+ margin-left: auto;
427
430
  margin-right: 0;
428
- text-align: right;
429
431
  padding: 8px 12px;
430
432
  font-size: .875rem;
431
433
  line-height: 1.625;
432
- word-break: break-word;
434
+ display: block;
433
435
  }
434
436
 
435
437
  .cnfy-copy-btn{
@@ -502,24 +504,58 @@
502
504
  margin: 0;
503
505
  }
504
506
 
507
+ .cnfy-article-content {
508
+ font-size: 0.875rem;
509
+ line-height: 1.7;
510
+ color: var(--cnfy-gray-800);
511
+ }
512
+
513
+ .cnfy-article-content h1 {
514
+ font-size: 1.05rem;
515
+ font-weight: 700;
516
+ margin: 0 0 0.5rem;
517
+ color: var(--cnfy-gray-900);
518
+ }
519
+
520
+ .cnfy-article-content h2 {
521
+ font-size: 0.95rem;
522
+ font-weight: 600;
523
+ margin: 1rem 0 0.4rem;
524
+ color: var(--cnfy-gray-900);
525
+ }
526
+
527
+ .cnfy-article-content p {
528
+ margin: 0.4rem 0;
529
+ }
530
+
505
531
  .cnfy-msg-keywords {
506
- padding-top: 1rem;
532
+ padding-top: 0.75rem;
507
533
  border-top: 1px solid var(--cnfy-gray-200);
508
- margin-top: 1.5rem;
534
+ margin-top: 1rem;
535
+ }
536
+
537
+ .cnfy-msg-keywords-label {
538
+ font-size: 0.7rem;
539
+ font-weight: 600;
540
+ text-transform: uppercase;
541
+ letter-spacing: 0.05em;
542
+ color: var(--cnfy-gray-500);
543
+ margin-bottom: 0.5rem;
509
544
  }
510
545
 
511
546
  .cnfy-msg-keywords-list {
512
547
  display: flex;
513
548
  flex-wrap: wrap;
514
- gap: 0.5rem;
549
+ gap: 0.4rem;
515
550
  }
516
551
 
517
552
  .cnfy-msg-keyword-tag {
518
- font-size: 0.75rem;
519
- padding: 0.25rem 0.75rem;
553
+ font-size: 0.7rem;
554
+ padding: 0.2rem 0.6rem;
520
555
  border-radius: 9999px;
521
556
  background-color: var(--cnfy-gray-100);
522
557
  color: var(--cnfy-gray-700);
558
+ border: 1px solid var(--cnfy-gray-200);
523
559
  }
524
560
 
525
561
  .cnfy-msg-actions {
@@ -957,6 +993,48 @@
957
993
  margin-bottom: 0.5rem;
958
994
  }
959
995
 
996
+ .cnfy-edit-input {
997
+ width: 100%;
998
+ padding: 0.5rem 0.75rem;
999
+ font-size: 0.875rem;
1000
+ border: 1px solid var(--cnfy-gray-300);
1001
+ border-radius: 0.375rem;
1002
+ outline: none;
1003
+ background: #fff;
1004
+ color: var(--cnfy-gray-900);
1005
+ box-sizing: border-box;
1006
+ }
1007
+
1008
+ .cnfy-edit-input:focus {
1009
+ border-color: var(--cnfy-primary, #6366f1);
1010
+ box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
1011
+ }
1012
+
1013
+ .cnfy-edit-input--mono {
1014
+ font-family: ui-monospace, monospace;
1015
+ font-size: 0.8125rem;
1016
+ color: var(--cnfy-gray-600);
1017
+ }
1018
+
1019
+ .cnfy-edit-textarea {
1020
+ width: 100%;
1021
+ padding: 0.5rem 0.75rem;
1022
+ font-size: 0.875rem;
1023
+ border: 1px solid var(--cnfy-gray-300);
1024
+ border-radius: 0.375rem;
1025
+ outline: none;
1026
+ background: #fff;
1027
+ color: var(--cnfy-gray-900);
1028
+ resize: vertical;
1029
+ box-sizing: border-box;
1030
+ line-height: 1.5;
1031
+ }
1032
+
1033
+ .cnfy-edit-textarea:focus {
1034
+ border-color: var(--cnfy-primary, #6366f1);
1035
+ box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
1036
+ }
1037
+
960
1038
  .cnfy-keyword-list {
961
1039
  display: flex;
962
1040
  flex-wrap: wrap;
@@ -1373,39 +1451,81 @@
1373
1451
  /* ========================================
1374
1452
  SourceSelector.tsx
1375
1453
  ======================================== */
1376
- .cnfy-source-selector {
1377
- padding: 0.5rem 0.75rem;
1378
- border-bottom: 1px solid var(--cnfy-gray-100);
1454
+ /* Source pills row */
1455
+ .cnfy-source-pills-wrap {
1379
1456
  display: flex;
1380
1457
  align-items: center;
1381
1458
  gap: 0.5rem;
1459
+ padding: 0.5rem 0.75rem;
1460
+ border-bottom: 1px solid var(--cnfy-gray-100);
1382
1461
  }
1383
1462
 
1384
- .cnfy-source-select-wrap {
1463
+ .cnfy-source-pills {
1464
+ display: flex;
1385
1465
  flex: 1;
1386
- min-width: 180px;
1466
+ flex-direction: row;
1467
+ gap: 0.375rem;
1468
+ overflow-x: auto;
1469
+ scrollbar-width: none;
1387
1470
  }
1388
1471
 
1389
- .cnfy-scrape-btn {
1472
+ .cnfy-source-pills::-webkit-scrollbar {
1473
+ display: none;
1474
+ }
1475
+
1476
+ .cnfy-source-pill {
1477
+ flex-shrink: 0;
1478
+ padding: 0.25rem 0.75rem;
1479
+ border-radius: 9999px;
1480
+ border: 1px solid var(--cnfy-gray-200);
1481
+ background: var(--cnfy-white);
1482
+ color: var(--cnfy-gray-600);
1483
+ font-size: 0.8125rem;
1484
+ font-weight: 500;
1485
+ cursor: pointer;
1486
+ white-space: nowrap;
1487
+ transition: background 0.15s, border-color 0.15s, color 0.15s;
1488
+ }
1489
+
1490
+ .cnfy-source-pill:hover {
1491
+ border-color: var(--cnfy-primary);
1492
+ color: var(--cnfy-primary);
1493
+ }
1494
+
1495
+ .cnfy-source-pill--active {
1496
+ color: var(--cnfy-white) !important;
1497
+ }
1498
+
1499
+ .cnfy-source-pills-loading {
1390
1500
  display: flex;
1391
1501
  align-items: center;
1392
1502
  gap: 0.375rem;
1393
- padding: 0.5rem 0.75rem;
1394
- background-color: var(--cnfy-emerald-600);
1395
- color: var(--cnfy-white);
1396
- border-radius: 0.5rem;
1397
- font-size: 0.875rem;
1398
- font-weight: 500;
1399
- border: none;
1503
+ font-size: 0.8125rem;
1504
+ color: var(--cnfy-gray-400);
1505
+ flex: 1;
1506
+ }
1507
+
1508
+ .cnfy-source-refresh-btn {
1509
+ flex-shrink: 0;
1510
+ display: flex;
1511
+ align-items: center;
1512
+ justify-content: center;
1513
+ width: 28px;
1514
+ height: 28px;
1515
+ border-radius: 50%;
1516
+ border: 1px solid var(--cnfy-gray-200);
1517
+ background: var(--cnfy-white);
1518
+ color: var(--cnfy-gray-500);
1400
1519
  cursor: pointer;
1401
- transition: background-color 0.15s;
1520
+ transition: border-color 0.15s, color 0.15s;
1402
1521
  }
1403
1522
 
1404
- .cnfy-scrape-btn:hover {
1405
- background-color: var(--cnfy-emerald-700);
1523
+ .cnfy-source-refresh-btn:hover {
1524
+ border-color: var(--cnfy-primary);
1525
+ color: var(--cnfy-primary);
1406
1526
  }
1407
1527
 
1408
- .cnfy-scrape-btn:disabled {
1528
+ .cnfy-source-refresh-btn:disabled {
1409
1529
  opacity: 0.5;
1410
1530
  cursor: not-allowed;
1411
1531
  }
@@ -1868,10 +1988,81 @@
1868
1988
  }
1869
1989
 
1870
1990
  .cnfy-block-h1{
1871
- font-size: 0.9rem;
1991
+ font-size: 1.5rem;
1872
1992
  }
1873
1993
 
1994
+
1874
1995
  .cnfy-block-h2{
1875
1996
  font-size: 1rem;
1876
1997
  }
1877
1998
 
1999
+ .cnfy-creating-indicator {
2000
+ display: flex;
2001
+ align-items: center;
2002
+ gap: 0.5rem;
2003
+ padding: 0.5rem 0;
2004
+ font-size: 0.85rem;
2005
+ color: var(--cnfy-gray-500);
2006
+ }
2007
+
2008
+ @keyframes cnfy-blink {
2009
+ 0%, 100% { opacity: 1; }
2010
+ 50% { opacity: 0; }
2011
+ }
2012
+
2013
+ .cnfy-cursor-blink {
2014
+ animation: cnfy-blink 1s step-end infinite;
2015
+ font-weight: bold;
2016
+ }
2017
+
2018
+
2019
+ /* responsive */
2020
+
2021
+ @media screen and (max-width: 768px) {
2022
+ .cnfy-news-dropdown {
2023
+ width: 100%;
2024
+ left: 0%;
2025
+ }
2026
+
2027
+ .cnfy-input-area {
2028
+ background-color: var(--cnfy-white);
2029
+ flex-shrink: 0;
2030
+ margin-bottom: 18px;
2031
+ padding: .75rem 1rem;
2032
+ }
2033
+
2034
+ .cnfy-news-dropdown-list {
2035
+ max-height: 450px;
2036
+ overflow-y: auto;
2037
+ }
2038
+
2039
+ .cnfy-news-dropdown-header {
2040
+ padding: 0.8rem .75rem;
2041
+ display: flex;
2042
+ }
2043
+
2044
+ .cnfy-news-card-actions {
2045
+ gap: .5rem;
2046
+ display: flex;
2047
+ justify-content: space-between;
2048
+ height: 83px;
2049
+ }
2050
+
2051
+ .cnfy-news-action-btn svg {
2052
+ width: 18;
2053
+ height: 18;
2054
+
2055
+ }
2056
+
2057
+ .cnfy-news-action-btn {
2058
+ color: var(--cnfy-gray-400);
2059
+ padding: 0.5rem 0.5rem;
2060
+ }
2061
+
2062
+ .cnfy-msg-body.you {
2063
+ min-width: 60px;
2064
+ max-width: 100%;
2065
+ }
2066
+
2067
+ }
2068
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contenify/chatbot",
3
- "version": "2.0.0",
3
+ "version": "4.0.0",
4
4
  "description": "AI-powered news chatbot widget for content creation",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",