@zero-library/chat-copilot 3.1.14 → 3.1.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/dist/index.css CHANGED
@@ -212,18 +212,333 @@
212
212
  margin: 0 4px;
213
213
  }
214
214
 
215
+ /* src/ui/common/styles.module.less */
216
+ .styles_module_chatHeader {
217
+ padding: 8px 16px;
218
+ border-bottom: 1px solid #eee;
219
+ display: flex;
220
+ align-items: center;
221
+ justify-content: space-between;
222
+ }
223
+ .styles_module_chatHeader .styles_module_chatHeaderContent {
224
+ display: flex;
225
+ align-items: center;
226
+ gap: 4px;
227
+ }
228
+ .styles_module_chatHeader .styles_module_chatHeaderContent .styles_module_chatTitle {
229
+ font-size: 16px;
230
+ font-weight: bold;
231
+ }
232
+ .styles_module_chatHeader .styles_module_chatHeaderContent .styles_module_defaultLogo {
233
+ font-size: 22px;
234
+ }
235
+ .styles_module_chatHeader .styles_module_chatHeaderBtnGroup {
236
+ display: flex;
237
+ gap: 8px;
238
+ }
239
+ .styles_module_conversationListPanel {
240
+ width: 300px;
241
+ max-width: 100%;
242
+ border-right: 1px dashed #eee;
243
+ }
244
+ .styles_module_conversationListPanel .styles_module_defaultLogo {
245
+ font-size: 48px;
246
+ }
247
+ .styles_module_conversationListPanel .styles_module_conversationAvatar {
248
+ font-size: 38px;
249
+ }
250
+ .styles_module_conversationListPanel .styles_module_createConversationButton {
251
+ height: 38px;
252
+ background-color: var(--ant-color-primary-bg);
253
+ border-radius: var(--ant-border-radius-lg);
254
+ color: var(--ant-color-primary);
255
+ font-weight: bold;
256
+ }
257
+ .styles_module_conversations {
258
+ padding: 0;
259
+ height: 100%;
260
+ overflow: auto;
261
+ }
262
+ .styles_module_conversations .ant-conversations-group-title {
263
+ padding-left: 16px;
264
+ }
265
+ .styles_module_conversations .ant-conversations-group-title .ant-typography {
266
+ color: #878aab;
267
+ }
268
+ .styles_module_conversations .ant-conversations-list .ant-conversations-item {
269
+ padding-left: 16px;
270
+ touch-action: manipulation !important;
271
+ }
272
+ .styles_module_conversations .ant-conversations-list .ant-conversations-item .ant-conversations-label {
273
+ color: rgba(0, 0, 0, 0.88);
274
+ }
275
+ .styles_module_conversations .ant-conversations-list .ant-conversations-item.ant-conversations-item-active .ant-conversations-label {
276
+ color: var(--ant-color-primary);
277
+ }
278
+ .styles_module_conversationTabs {
279
+ height: 100%;
280
+ min-height: 0;
281
+ display: flex;
282
+ flex-direction: column;
283
+ scrollbar-width: thin;
284
+ scrollbar-color: transparent transparent;
285
+ }
286
+ .styles_module_conversationTabs::-webkit-scrollbar {
287
+ width: 8px;
288
+ height: 8px;
289
+ }
290
+ .styles_module_conversationTabs::-webkit-scrollbar-thumb {
291
+ background-color: rgba(0, 0, 0, 0);
292
+ border-radius: 4px;
293
+ transition: background-color 0.3s ease 0.3s;
294
+ }
295
+ .styles_module_conversationTabs::-webkit-scrollbar-track {
296
+ background: transparent;
297
+ }
298
+ .styles_module_conversationTabs:hover {
299
+ scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
300
+ }
301
+ .styles_module_conversationTabs:hover::-webkit-scrollbar-thumb {
302
+ background-color: rgba(0, 0, 0, 0.3);
303
+ transition-delay: 0s;
304
+ }
305
+ .styles_module_conversationTabs .ant-tabs {
306
+ height: 100%;
307
+ min-height: 0;
308
+ display: flex;
309
+ flex-direction: column;
310
+ }
311
+ .styles_module_conversationTabs .ant-tabs-nav {
312
+ margin-bottom: 8px;
313
+ flex-shrink: 0;
314
+ }
315
+ .styles_module_conversationTabs .ant-tabs-content-holder {
316
+ flex: 1;
317
+ min-height: 0;
318
+ overflow: hidden;
319
+ }
320
+ .styles_module_conversationTabs .ant-tabs-content,
321
+ .conversationTabs .ant-tabs-tabpane {
322
+ height: 100%;
323
+ min-height: 0;
324
+ }
325
+ .styles_module_conversationTabs .styles_module_conversationTabPane {
326
+ height: 100%;
327
+ min-height: 0;
328
+ overflow: hidden;
329
+ }
330
+ .styles_module_conversationTabs .styles_module_conversationEmpty {
331
+ height: 100%;
332
+ display: flex;
333
+ align-items: center;
334
+ justify-content: center;
335
+ }
336
+ .styles_module_conversationTabs .styles_module_ant-tabs-nav-list {
337
+ width: 100%;
338
+ }
339
+ .styles_module_conversationScrollArea {
340
+ height: 100%;
341
+ min-height: 0;
342
+ overflow-y: auto;
343
+ overflow-x: hidden;
344
+ }
345
+ .styles_module_chatWelcomeWrap {
346
+ height: 100%;
347
+ max-width: 1000px;
348
+ min-width: 320px;
349
+ width: calc(100% - 24px);
350
+ margin: 0 auto;
351
+ }
352
+ .styles_module_chatWelcomeWrap .ant-prompts .ant-prompts-list {
353
+ overflow: auto;
354
+ }
355
+ .styles_module_chatWelcomeWrap .styles_module_chatWelcome .styles_module_defaultLogo {
356
+ font-size: 48px;
357
+ }
358
+ .styles_module_chatWelcomeWrap .styles_module_chatWelcome .ant-welcome-icon > img {
359
+ border-radius: 10px;
360
+ max-width: initial;
361
+ }
362
+ .styles_module_promptItem {
363
+ width: 100%;
364
+ max-width: 100%;
365
+ }
366
+ .styles_module_promptItem .ant-prompts-item {
367
+ max-width: 100%;
368
+ white-space: normal;
369
+ height: auto;
370
+ }
371
+ .styles_module_bubbleList {
372
+ width: 100%;
373
+ }
374
+ .styles_module_bubbleList.ant-bubble-list {
375
+ width: 100%;
376
+ }
377
+ .styles_module_bubbleList.ant-bubble-list .ant-bubble-list-scroll-box .ant-bubble-list-scroll-content {
378
+ max-width: 1000px;
379
+ min-width: 320px;
380
+ width: calc(100% - 12px);
381
+ margin: 0 auto;
382
+ padding-right: 0;
383
+ padding-left: 10px;
384
+ }
385
+ .styles_module_bubbleList.ant-bubble-list .ant-bubble-list-scroll-box .ant-bubble-list-scroll-content > .ant-bubble > .ant-bubble-body {
386
+ width: 100%;
387
+ }
388
+ .styles_module_bubbleList.ant-bubble-list .ant-bubble {
389
+ padding-top: 8px;
390
+ padding-bottom: 0;
391
+ }
392
+ .styles_module_bubbleList.ant-bubble-list .ant-bubble:hover .message-actions {
393
+ opacity: 1;
394
+ pointer-events: auto;
395
+ }
396
+ .styles_module_bubbleList.ant-bubble-list .ant-bubble.ant-bubble-start {
397
+ padding-inline-end: 0% !important;
398
+ }
399
+ .styles_module_bubbleList.ant-bubble-list .ant-bubble.ant-bubble-start .ant-bubble-body {
400
+ width: 100%;
401
+ }
402
+ .styles_module_bubbleList.ant-bubble-list .ant-bubble.ant-bubble-start .ant-bubble-content {
403
+ background-color: transparent;
404
+ padding: 0;
405
+ padding-bottom: 0;
406
+ min-height: 0;
407
+ }
408
+ .styles_module_bubbleList.ant-bubble-list .ant-bubble.ant-bubble-end .ant-bubble-content {
409
+ background-color: var(--ant-color-primary-bg, #e6f4ff);
410
+ }
411
+ .styles_module_bubbleList.ant-bubble-list .ant-bubble.ant-bubble-end .ant-bubble-content-borderless {
412
+ background-color: transparent;
413
+ }
414
+ .styles_module_bubbleList.ant-bubble-list .ant-bubble.ant-bubble-end .ant-bubble-content-borderless .ant-file-card-list-content {
415
+ padding: 0;
416
+ }
417
+ .styles_module_messageActions {
418
+ opacity: 0;
419
+ pointer-events: none;
420
+ transition: opacity 0.2s ease;
421
+ }
422
+ .styles_module_userInputCollapse {
423
+ width: calc(100% - 24px);
424
+ max-width: 1000px;
425
+ min-width: 320px;
426
+ margin: 0 auto;
427
+ }
428
+ .styles_module_logoArea {
429
+ display: flex;
430
+ align-items: center;
431
+ justify-content: center;
432
+ text-align: center;
433
+ margin-top: 5rem;
434
+ flex-direction: column;
435
+ }
436
+ .styles_module_logoArea .styles_module_logoContainer {
437
+ position: relative;
438
+ margin-bottom: 2rem;
439
+ cursor: pointer;
440
+ }
441
+ .styles_module_logoArea .styles_module_logoContainer .styles_module_staticHalo {
442
+ position: absolute;
443
+ inset: 0;
444
+ background-color: var(--ant-color-primary);
445
+ filter: blur(24px);
446
+ opacity: 0.2;
447
+ transition: opacity 700ms;
448
+ border-radius: 9999px;
449
+ }
450
+ .styles_module_logoArea .styles_module_logoContainer .styles_module_logoHoverWrapper {
451
+ position: relative;
452
+ z-index: 10;
453
+ padding: 0.5rem;
454
+ transition: all 500ms ease-out;
455
+ transform: scale(1) translateY(0);
456
+ }
457
+ .styles_module_logoArea .styles_module_logoContainer .styles_module_logoHoverWrapper .styles_module_logoImage {
458
+ font-size: 80px;
459
+ filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
460
+ transition: all 500ms;
461
+ }
462
+ .styles_module_logoArea .styles_module_logoContainer:hover .styles_module_staticHalo {
463
+ opacity: 0.5;
464
+ }
465
+ .styles_module_logoArea .styles_module_logoContainer:hover .styles_module_logoHoverWrapper {
466
+ transform: scale(1.1) translateY(-0.5rem);
467
+ }
468
+ .styles_module_logoArea .styles_module_logoContainer:hover .styles_module_logoImage {
469
+ filter: drop-shadow(0 10px 20px rgba(18, 124, 183, 0.4));
470
+ }
471
+ .styles_module_logoArea .styles_module_greetingTitle {
472
+ margin-bottom: 0.75rem;
473
+ font-size: 2.25rem;
474
+ line-height: 2.5rem;
475
+ font-weight: 700;
476
+ letter-spacing: -0.025em;
477
+ color: #1e293b;
478
+ }
479
+ @media (width >= 768px) {
480
+ .styles_module_logoArea .styles_module_greetingTitle {
481
+ font-size: 3rem;
482
+ line-height: 1;
483
+ }
484
+ }
485
+ .styles_module_logoArea .styles_module_greetingTitle .styles_module_gradientText {
486
+ color: transparent;
487
+ background-clip: text;
488
+ background-image:
489
+ linear-gradient(
490
+ to right,
491
+ var(--ant-color-primary),
492
+ #3b82f6);
493
+ }
494
+ .styles_module_logoArea .styles_module_greetingSubtitle {
495
+ font-size: 1.125rem;
496
+ line-height: 1.75rem;
497
+ font-weight: 500;
498
+ color: #64748b;
499
+ }
500
+ @media (width >= 768px) {
501
+ .styles_module_logoArea .styles_module_greetingSubtitle {
502
+ font-size: 1.25rem;
503
+ line-height: 1.75rem;
504
+ }
505
+ }
506
+ .styles_module_senderReferenceHeaderTitle > .ant-sender-header-title {
507
+ overflow: hidden;
508
+ }
509
+ .styles_module_senderReferenceHeaderContent {
510
+ padding: 0 !important;
511
+ }
512
+
215
513
  /* src/ui/common/FeatureComponents/style.module.less */
216
514
  .style_module_popover {
515
+ height: 500px;
217
516
  max-height: 500px;
218
517
  width: 300px;
219
518
  display: flex;
220
519
  flex-direction: column;
221
- padding: 0 0 16px !important;
520
+ padding: 0 0 16px 0 !important;
521
+ overflow: hidden;
222
522
  }
223
523
  .style_module_popover .ant-popover-content {
524
+ height: 100%;
525
+ min-height: 0;
526
+ display: flex;
527
+ flex-direction: column;
528
+ }
529
+ .style_module_popover .ant-popover-inner {
530
+ height: 100%;
531
+ min-height: 0;
532
+ display: flex;
533
+ flex-direction: column;
534
+ overflow: hidden;
535
+ }
536
+ .style_module_popover .ant-popover-inner-content {
537
+ flex: 1;
224
538
  min-height: 0;
225
539
  display: flex;
226
540
  flex-direction: column;
541
+ overflow: hidden;
227
542
  }
228
543
  .style_module_resourceBtn {
229
544
  display: flex;
@@ -467,237 +782,6 @@
467
782
  margin-top: 4px;
468
783
  }
469
784
 
470
- /* src/ui/common/styles.module.less */
471
- .styles_module_chatHeader {
472
- padding: 8px 16px;
473
- border-bottom: 1px solid #eee;
474
- display: flex;
475
- align-items: center;
476
- justify-content: space-between;
477
- }
478
- .styles_module_chatHeader .styles_module_chatHeaderContent {
479
- display: flex;
480
- align-items: center;
481
- gap: 4px;
482
- }
483
- .styles_module_chatHeader .styles_module_chatHeaderContent .styles_module_chatTitle {
484
- font-size: 16px;
485
- font-weight: bold;
486
- }
487
- .styles_module_chatHeader .styles_module_chatHeaderContent .styles_module_defaultLogo {
488
- font-size: 22px;
489
- }
490
- .styles_module_chatHeader .styles_module_chatHeaderBtnGroup {
491
- display: flex;
492
- gap: 8px;
493
- }
494
- .styles_module_conversationListPanel {
495
- width: 300px;
496
- max-width: 100%;
497
- border-right: 1px dashed #eee;
498
- }
499
- .styles_module_conversationListPanel .styles_module_defaultLogo {
500
- font-size: 48px;
501
- }
502
- .styles_module_conversationListPanel .styles_module_conversationAvatar {
503
- font-size: 38px;
504
- }
505
- .styles_module_conversationListPanel .styles_module_createConversationButton {
506
- height: 38px;
507
- background-color: var(--ant-color-primary-bg);
508
- border-radius: var(--ant-border-radius-lg);
509
- color: var(--ant-color-primary);
510
- font-weight: bold;
511
- }
512
- .styles_module_conversations {
513
- padding: 0;
514
- height: 100%;
515
- overflow: auto;
516
- }
517
- .styles_module_conversations .ant-conversations-group-title {
518
- padding-left: 16px;
519
- }
520
- .styles_module_conversations .ant-conversations-group-title .ant-typography {
521
- color: #878aab;
522
- }
523
- .styles_module_conversations .ant-conversations-list .ant-conversations-item {
524
- padding-left: 16px;
525
- touch-action: manipulation !important;
526
- }
527
- .styles_module_conversations .ant-conversations-list .ant-conversations-item .ant-conversations-label {
528
- color: rgba(0, 0, 0, 0.88);
529
- }
530
- .styles_module_conversations .ant-conversations-list .ant-conversations-item.ant-conversations-item-active .ant-conversations-label {
531
- color: var(--ant-color-primary);
532
- }
533
- .styles_module_chatWelcomeWrap {
534
- height: 100%;
535
- max-width: 1000px;
536
- min-width: 320px;
537
- width: calc(100% - 24px);
538
- margin: 0 auto;
539
- }
540
- .styles_module_chatWelcomeWrap .ant-prompts .ant-prompts-list {
541
- overflow: auto;
542
- }
543
- .styles_module_chatWelcomeWrap .styles_module_chatWelcome .styles_module_defaultLogo {
544
- font-size: 48px;
545
- }
546
- .styles_module_chatWelcomeWrap .styles_module_chatWelcome .ant-welcome-icon > img {
547
- border-radius: 10px;
548
- max-width: initial;
549
- }
550
- .styles_module_promptItem {
551
- width: 100%;
552
- max-width: 100%;
553
- }
554
- .styles_module_promptItem .ant-prompts-item {
555
- max-width: 100%;
556
- white-space: normal;
557
- height: auto;
558
- }
559
- .styles_module_bubbleList {
560
- width: 100%;
561
- }
562
- .styles_module_bubbleList.ant-bubble-list {
563
- width: 100%;
564
- }
565
- .styles_module_bubbleList.ant-bubble-list .ant-bubble-list-scroll-box .ant-bubble-list-scroll-content {
566
- max-width: 1000px;
567
- min-width: 320px;
568
- width: calc(100% - 12px);
569
- margin: 0 auto;
570
- padding-right: 0;
571
- padding-left: 10px;
572
- }
573
- .styles_module_bubbleList.ant-bubble-list .ant-bubble-list-scroll-box .ant-bubble-list-scroll-content > .ant-bubble > .ant-bubble-body {
574
- width: 100%;
575
- }
576
- .styles_module_bubbleList.ant-bubble-list .ant-bubble {
577
- padding-top: 8px;
578
- padding-bottom: 0;
579
- }
580
- .styles_module_bubbleList.ant-bubble-list .ant-bubble:hover .message-actions {
581
- opacity: 1;
582
- pointer-events: auto;
583
- }
584
- .styles_module_bubbleList.ant-bubble-list .ant-bubble.ant-bubble-start {
585
- padding-inline-end: 0% !important;
586
- }
587
- .styles_module_bubbleList.ant-bubble-list .ant-bubble.ant-bubble-start .ant-bubble-body {
588
- width: 100%;
589
- }
590
- .styles_module_bubbleList.ant-bubble-list .ant-bubble.ant-bubble-start .ant-bubble-content {
591
- background-color: transparent;
592
- padding: 0;
593
- padding-bottom: 0;
594
- min-height: 0;
595
- }
596
- .styles_module_bubbleList.ant-bubble-list .ant-bubble.ant-bubble-end .ant-bubble-content {
597
- background-color: var(--ant-color-primary-bg, #e6f4ff);
598
- }
599
- .styles_module_bubbleList.ant-bubble-list .ant-bubble.ant-bubble-end .ant-bubble-content-borderless {
600
- background-color: transparent;
601
- }
602
- .styles_module_bubbleList.ant-bubble-list .ant-bubble.ant-bubble-end .ant-bubble-content-borderless .ant-file-card-list-content {
603
- padding: 0;
604
- }
605
- .styles_module_messageActions {
606
- opacity: 0;
607
- pointer-events: none;
608
- transition: opacity 0.2s ease;
609
- }
610
- .styles_module_userInputCollapse {
611
- width: calc(100% - 24px);
612
- max-width: 1000px;
613
- min-width: 320px;
614
- margin: 0 auto;
615
- }
616
- .styles_module_logoArea {
617
- display: flex;
618
- align-items: center;
619
- justify-content: center;
620
- text-align: center;
621
- margin-top: 5rem;
622
- flex-direction: column;
623
- }
624
- .styles_module_logoArea .styles_module_logoContainer {
625
- position: relative;
626
- margin-bottom: 2rem;
627
- cursor: pointer;
628
- }
629
- .styles_module_logoArea .styles_module_logoContainer .styles_module_staticHalo {
630
- position: absolute;
631
- inset: 0;
632
- background-color: var(--ant-color-primary);
633
- filter: blur(24px);
634
- opacity: 0.2;
635
- transition: opacity 700ms;
636
- border-radius: 9999px;
637
- }
638
- .styles_module_logoArea .styles_module_logoContainer .styles_module_logoHoverWrapper {
639
- position: relative;
640
- z-index: 10;
641
- padding: 0.5rem;
642
- transition: all 500ms ease-out;
643
- transform: scale(1) translateY(0);
644
- }
645
- .styles_module_logoArea .styles_module_logoContainer .styles_module_logoHoverWrapper .styles_module_logoImage {
646
- font-size: 80px;
647
- filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
648
- transition: all 500ms;
649
- }
650
- .styles_module_logoArea .styles_module_logoContainer:hover .styles_module_staticHalo {
651
- opacity: 0.5;
652
- }
653
- .styles_module_logoArea .styles_module_logoContainer:hover .styles_module_logoHoverWrapper {
654
- transform: scale(1.1) translateY(-0.5rem);
655
- }
656
- .styles_module_logoArea .styles_module_logoContainer:hover .styles_module_logoImage {
657
- filter: drop-shadow(0 10px 20px rgba(18, 124, 183, 0.4));
658
- }
659
- .styles_module_logoArea .styles_module_greetingTitle {
660
- margin-bottom: 0.75rem;
661
- font-size: 2.25rem;
662
- line-height: 2.5rem;
663
- font-weight: 700;
664
- letter-spacing: -0.025em;
665
- color: #1e293b;
666
- }
667
- @media (width >= 768px) {
668
- .styles_module_logoArea .styles_module_greetingTitle {
669
- font-size: 3rem;
670
- line-height: 1;
671
- }
672
- }
673
- .styles_module_logoArea .styles_module_greetingTitle .styles_module_gradientText {
674
- color: transparent;
675
- background-clip: text;
676
- background-image:
677
- linear-gradient(
678
- to right,
679
- var(--ant-color-primary),
680
- #3b82f6);
681
- }
682
- .styles_module_logoArea .styles_module_greetingSubtitle {
683
- font-size: 1.125rem;
684
- line-height: 1.75rem;
685
- font-weight: 500;
686
- color: #64748b;
687
- }
688
- @media (width >= 768px) {
689
- .styles_module_logoArea .styles_module_greetingSubtitle {
690
- font-size: 1.25rem;
691
- line-height: 1.75rem;
692
- }
693
- }
694
- .styles_module_senderReferenceHeaderTitle > .ant-sender-header-title {
695
- overflow: hidden;
696
- }
697
- .styles_module_senderReferenceHeaderContent {
698
- padding: 0 !important;
699
- }
700
-
701
785
  /* src/components/CustomComponents/XMarkdown/styles.module.less */
702
786
  .styles_module_appCard {
703
787
  width: 180px;