@contenify/chatbot 1.0.0 → 3.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
@@ -356,15 +356,34 @@
356
356
  }
357
357
 
358
358
  .cnfy-chat-area {
359
- flex: 1;
360
- padding: 1rem 1rem 1.5rem;
359
+ flex: 1;
360
+ padding: 0rem 1.5rem;
361
361
  }
362
362
 
363
363
  .cnfy-chat-scroll {
364
- max-width: 48rem;
365
- overflow-y: auto;
366
- height: 73vh;
367
- margin: 0 auto;
364
+ max-width: 48rem;
365
+ height: 80vh;
366
+ margin: 0 auto;
367
+ padding-left: 1rem;
368
+ padding-right: 1rem;
369
+ overflow-y: auto;
370
+ }
371
+
372
+ .cnfy-chat-scroll::-webkit-scrollbar {
373
+ width: 1px;
374
+ }
375
+
376
+ .cnfy-chat-scroll::-webkit-scrollbar-track {
377
+ background: transparent;
378
+ }
379
+
380
+ .cnfy-chat-scroll::-webkit-scrollbar-thumb {
381
+ background: rgba(0,0,0,0.25);
382
+ border-radius: 10px;
383
+ }
384
+
385
+ .cnfy-chat-scroll::-webkit-scrollbar-thumb:hover {
386
+ background: rgba(0,0,0,0.45);
368
387
  }
369
388
 
370
389
  .cnfy-chat-scroll > * + * {
@@ -398,10 +417,48 @@
398
417
  line-height: 1.625;
399
418
  }
400
419
 
420
+ .cnfy-msg-body.you {
421
+ margin-top: 15px;
422
+ background: #efefef;
423
+ text-align: right;
424
+ word-break: break-word;
425
+ border-radius: 11px;
426
+ width: fit-content;
427
+ min-width: 60px;
428
+ max-width: 80%;
429
+ margin-left: auto;
430
+ margin-right: 0;
431
+ padding: 8px 12px;
432
+ font-size: .875rem;
433
+ line-height: 1.625;
434
+ display: block;
435
+ }
436
+
437
+ .cnfy-copy-btn{
438
+ border: 0px;
439
+ padding: 0.5rem 0.5rem 0.3rem;
440
+ border-radius: 5px;
441
+ }
442
+
443
+
444
+
401
445
  .cnfy-msg-body > * + * {
402
446
  margin-top: 0.75rem;
403
447
  }
404
448
 
449
+ .cnfy-msg-row {
450
+ display: flex;
451
+ width: 100%;
452
+ }
453
+
454
+ .cnfy-msg-row.you {
455
+ justify-content: flex-end;
456
+ }
457
+
458
+ .cnfy-msg-row.bot {
459
+ justify-content: flex-start;
460
+ }
461
+
405
462
  .cnfy-msg-copy-row {
406
463
  display: flex;
407
464
  justify-content: flex-end;
@@ -447,24 +504,58 @@
447
504
  margin: 0;
448
505
  }
449
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
+
450
531
  .cnfy-msg-keywords {
451
- padding-top: 1rem;
532
+ padding-top: 0.75rem;
452
533
  border-top: 1px solid var(--cnfy-gray-200);
453
- 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;
454
544
  }
455
545
 
456
546
  .cnfy-msg-keywords-list {
457
547
  display: flex;
458
548
  flex-wrap: wrap;
459
- gap: 0.5rem;
549
+ gap: 0.4rem;
460
550
  }
461
551
 
462
552
  .cnfy-msg-keyword-tag {
463
- font-size: 0.75rem;
464
- padding: 0.25rem 0.75rem;
553
+ font-size: 0.7rem;
554
+ padding: 0.2rem 0.6rem;
465
555
  border-radius: 9999px;
466
556
  background-color: var(--cnfy-gray-100);
467
557
  color: var(--cnfy-gray-700);
558
+ border: 1px solid var(--cnfy-gray-200);
468
559
  }
469
560
 
470
561
  .cnfy-msg-actions {
@@ -902,6 +993,48 @@
902
993
  margin-bottom: 0.5rem;
903
994
  }
904
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
+
905
1038
  .cnfy-keyword-list {
906
1039
  display: flex;
907
1040
  flex-wrap: wrap;
@@ -1546,12 +1679,12 @@
1546
1679
  }
1547
1680
 
1548
1681
  .cnfy-dash-card-title {
1549
- font-size: 1.125rem;
1550
- font-weight: 600;
1551
- color: var(--cnfy-gray-900);
1552
- border-bottom: 1px solid var(--cnfy-gray-200);
1553
- padding-bottom: 0.5rem;
1554
- margin: 0;
1682
+ color: var(--cnfy-gray-900);
1683
+ border-bottom: 1px solid var(--cnfy-gray-200);
1684
+ margin: 0;
1685
+ padding-bottom: .5rem;
1686
+ font-size: 0.9rem;
1687
+ font-weight: 800;
1555
1688
  }
1556
1689
 
1557
1690
  .cnfy-dash-card-header {
@@ -1797,13 +1930,46 @@
1797
1930
  transition: all 0.15s;
1798
1931
  }
1799
1932
 
1800
- .cnfy-news-dropdown-source{
1801
- display: flex;
1802
- justify-content: space-around;
1803
- padding-left: 15px;
1804
- padding-right: 15px;
1933
+ .cnfy-news-dropdown-source {
1805
1934
  background-color: #fff;
1806
- padding-bottom: 5px;
1807
- padding-top: 5px;
1808
- box-shadow: 0px 2px 4px #0003;
1809
- }
1935
+ justify-content: space-around;
1936
+ padding: 5px 15px;
1937
+ display: flex;
1938
+ box-shadow: 0 2px 4px #0003;
1939
+ z-index: 99;
1940
+ position: relative;
1941
+ }
1942
+
1943
+ .cnfy-news-dropdown-msg{
1944
+ text-align: center;
1945
+ padding: 1rem;
1946
+ }
1947
+
1948
+ .cnfy-block-h1{
1949
+ font-size: 1.5rem;
1950
+ }
1951
+
1952
+
1953
+ .cnfy-block-h2{
1954
+ font-size: 1rem;
1955
+ }
1956
+
1957
+ .cnfy-creating-indicator {
1958
+ display: flex;
1959
+ align-items: center;
1960
+ gap: 0.5rem;
1961
+ padding: 0.5rem 0;
1962
+ font-size: 0.85rem;
1963
+ color: var(--cnfy-gray-500);
1964
+ }
1965
+
1966
+ @keyframes cnfy-blink {
1967
+ 0%, 100% { opacity: 1; }
1968
+ 50% { opacity: 0; }
1969
+ }
1970
+
1971
+ .cnfy-cursor-blink {
1972
+ animation: cnfy-blink 1s step-end infinite;
1973
+ font-weight: bold;
1974
+ }
1975
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contenify/chatbot",
3
- "version": "1.0.0",
3
+ "version": "3.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",