@hef2024/llmasaservice-ui 0.20.0 → 0.20.2

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.
@@ -828,3 +828,4 @@ Port is complete when:
828
828
  ---
829
829
 
830
830
  **End of Inventory**
831
+
@@ -128,3 +128,4 @@ If after this fix it still doesn't work, the issue might be:
128
128
  3. **Version issue**: Different version of llmasaservice-client
129
129
 
130
130
  **Next Step**: Check if we need to add error callbacks to the `send()` function instead of relying on the error state.
131
+
package/FIX-APPLIED.md CHANGED
@@ -232,3 +232,4 @@ If after refreshing and testing again the error banner still doesn't appear:
232
232
  **Date:** December 15, 2025
233
233
  **Components:** AIChatPanel, ChatPanel
234
234
  **Breaking Changes:** None
235
+
@@ -244,3 +244,4 @@ All files modified, tested, and documented. Ready for:
244
244
  **Lines Changed:** ~500 (including docs)
245
245
  **Breaking Changes:** 0
246
246
  **User Impact:** Significantly improved error handling UX
247
+
package/dist/index.css CHANGED
@@ -3371,6 +3371,72 @@ button[data-pending=true]::after {
3371
3371
  font-family: "SF Mono", monospace;
3372
3372
  font-size: 10px;
3373
3373
  }
3374
+ .ai-chat-context-popover__detail-section-title-row {
3375
+ display: flex;
3376
+ align-items: center;
3377
+ gap: 12px;
3378
+ flex: 1;
3379
+ min-width: 0;
3380
+ }
3381
+ .ai-chat-context-popover__detail-section--disabled {
3382
+ opacity: 0.6;
3383
+ }
3384
+ .ai-chat-context-popover__detail-section--disabled .ai-chat-context-popover__detail-section-title {
3385
+ text-decoration: line-through;
3386
+ opacity: 0.7;
3387
+ }
3388
+ .ai-chat-context-toggle {
3389
+ position: relative;
3390
+ display: inline-flex;
3391
+ width: 36px;
3392
+ height: 20px;
3393
+ cursor: pointer;
3394
+ user-select: none;
3395
+ flex-shrink: 0;
3396
+ }
3397
+ .ai-chat-context-toggle__input {
3398
+ opacity: 0;
3399
+ width: 0;
3400
+ height: 0;
3401
+ position: absolute;
3402
+ }
3403
+ .ai-chat-context-toggle__slider {
3404
+ position: absolute;
3405
+ top: 0;
3406
+ left: 0;
3407
+ right: 0;
3408
+ bottom: 0;
3409
+ background-color: #cbd5e1;
3410
+ transition: background-color 0.2s ease;
3411
+ border-radius: 20px;
3412
+ }
3413
+ .ai-chat-context-toggle__slider:before {
3414
+ position: absolute;
3415
+ content: "";
3416
+ height: 16px;
3417
+ width: 16px;
3418
+ left: 2px;
3419
+ bottom: 2px;
3420
+ background-color: white;
3421
+ transition: transform 0.2s ease;
3422
+ border-radius: 50%;
3423
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
3424
+ }
3425
+ .ai-chat-context-toggle__input:checked + .ai-chat-context-toggle__slider {
3426
+ background-color: #3b82f6;
3427
+ }
3428
+ .ai-chat-context-toggle__input:checked + .ai-chat-context-toggle__slider:before {
3429
+ transform: translateX(16px);
3430
+ }
3431
+ .ai-chat-context-toggle:hover .ai-chat-context-toggle__slider {
3432
+ opacity: 0.9;
3433
+ }
3434
+ .dark-theme .ai-chat-context-toggle__slider {
3435
+ background-color: #4b5563;
3436
+ }
3437
+ .dark-theme .ai-chat-context-toggle__input:checked + .ai-chat-context-toggle__slider {
3438
+ background-color: #60a5fa;
3439
+ }
3374
3440
  .ai-chat-context-popover__detail-content {
3375
3441
  margin: 0;
3376
3442
  padding: 12px 14px;
@@ -3505,3 +3571,448 @@ button[data-pending=true]::after {
3505
3571
  transform: translateY(0);
3506
3572
  }
3507
3573
  }
3574
+ .ai-chat-modal-overlay {
3575
+ position: fixed;
3576
+ top: 0;
3577
+ left: 0;
3578
+ right: 0;
3579
+ bottom: 0;
3580
+ background: rgba(0, 0, 0, 0.5);
3581
+ display: flex;
3582
+ align-items: center;
3583
+ justify-content: center;
3584
+ z-index: 10000;
3585
+ animation: fadeIn 0.15s ease-out;
3586
+ }
3587
+ @keyframes fadeIn {
3588
+ from {
3589
+ opacity: 0;
3590
+ }
3591
+ to {
3592
+ opacity: 1;
3593
+ }
3594
+ }
3595
+ .ai-chat-modal-content {
3596
+ background: white;
3597
+ border-radius: 12px;
3598
+ padding: 24px;
3599
+ max-width: 500px;
3600
+ width: 90%;
3601
+ max-height: 80vh;
3602
+ overflow: auto;
3603
+ box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
3604
+ animation: slideUp 0.2s ease-out;
3605
+ }
3606
+ .dark-theme .ai-chat-modal-content {
3607
+ background: #1f2937;
3608
+ color: #f9fafb;
3609
+ }
3610
+ @keyframes slideUp {
3611
+ from {
3612
+ opacity: 0;
3613
+ transform: translateY(10px);
3614
+ }
3615
+ to {
3616
+ opacity: 1;
3617
+ transform: translateY(0);
3618
+ }
3619
+ }
3620
+ .ai-chat-modal-header {
3621
+ display: flex;
3622
+ align-items: center;
3623
+ justify-content: space-between;
3624
+ margin-bottom: 16px;
3625
+ }
3626
+ .ai-chat-modal-header h3 {
3627
+ margin: 0;
3628
+ font-size: 18px;
3629
+ font-weight: 600;
3630
+ color: #1f2937;
3631
+ }
3632
+ .dark-theme .ai-chat-modal-header h3 {
3633
+ color: #f9fafb;
3634
+ }
3635
+ .ai-chat-modal-close {
3636
+ background: none;
3637
+ border: none;
3638
+ font-size: 24px;
3639
+ line-height: 1;
3640
+ padding: 0;
3641
+ width: 28px;
3642
+ height: 28px;
3643
+ border-radius: 6px;
3644
+ cursor: pointer;
3645
+ color: #6b7280;
3646
+ transition: all 0.15s;
3647
+ }
3648
+ .ai-chat-modal-close:hover {
3649
+ background: #f3f4f6;
3650
+ color: #1f2937;
3651
+ }
3652
+ .dark-theme .ai-chat-modal-close {
3653
+ color: #9ca3af;
3654
+ }
3655
+ .dark-theme .ai-chat-modal-close:hover {
3656
+ background: #374151;
3657
+ color: #f9fafb;
3658
+ }
3659
+ .ai-chat-modal-body {
3660
+ margin-bottom: 20px;
3661
+ }
3662
+ .ai-chat-modal-text {
3663
+ color: #6b7280;
3664
+ font-size: 14px;
3665
+ margin-bottom: 16px;
3666
+ line-height: 1.5;
3667
+ }
3668
+ .dark-theme .ai-chat-modal-text {
3669
+ color: #9ca3af;
3670
+ }
3671
+ .ai-chat-modal-field {
3672
+ margin-bottom: 16px;
3673
+ }
3674
+ .ai-chat-modal-field label {
3675
+ display: block;
3676
+ font-size: 13px;
3677
+ font-weight: 500;
3678
+ color: #374151;
3679
+ margin-bottom: 6px;
3680
+ }
3681
+ .dark-theme .ai-chat-modal-field label {
3682
+ color: #e5e7eb;
3683
+ }
3684
+ .ai-chat-modal-input {
3685
+ width: 100%;
3686
+ padding: 10px 12px;
3687
+ border: 1px solid #d1d5db;
3688
+ border-radius: 8px;
3689
+ font-size: 14px;
3690
+ color: #1f2937;
3691
+ background: white;
3692
+ transition: all 0.15s;
3693
+ box-sizing: border-box;
3694
+ }
3695
+ .ai-chat-modal-input:focus {
3696
+ outline: none;
3697
+ border-color: #3b82f6;
3698
+ box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
3699
+ }
3700
+ .dark-theme .ai-chat-modal-input {
3701
+ background: #111827;
3702
+ border-color: #374151;
3703
+ color: #f9fafb;
3704
+ }
3705
+ .dark-theme .ai-chat-modal-input:focus {
3706
+ border-color: #60a5fa;
3707
+ box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
3708
+ }
3709
+ .ai-chat-modal-footer {
3710
+ display: flex;
3711
+ gap: 12px;
3712
+ justify-content: flex-end;
3713
+ }
3714
+ .ai-chat-modal-button {
3715
+ padding: 10px 20px;
3716
+ border-radius: 8px;
3717
+ font-size: 14px;
3718
+ font-weight: 500;
3719
+ cursor: pointer;
3720
+ transition: all 0.15s;
3721
+ border: none;
3722
+ }
3723
+ .ai-chat-modal-button--primary {
3724
+ background: #3b82f6;
3725
+ color: white;
3726
+ }
3727
+ .ai-chat-modal-button--primary:hover:not(:disabled) {
3728
+ background: #2563eb;
3729
+ }
3730
+ .ai-chat-modal-button--primary:disabled {
3731
+ opacity: 0.5;
3732
+ cursor: not-allowed;
3733
+ }
3734
+ .ai-chat-modal-button--secondary {
3735
+ background: #f3f4f6;
3736
+ color: #374151;
3737
+ }
3738
+ .ai-chat-modal-button--secondary:hover {
3739
+ background: #e5e7eb;
3740
+ }
3741
+ .dark-theme .ai-chat-modal-button--secondary {
3742
+ background: #374151;
3743
+ color: #e5e7eb;
3744
+ }
3745
+ .dark-theme .ai-chat-modal-button--secondary:hover {
3746
+ background: #4b5563;
3747
+ }
3748
+ .ai-chat-tool-info-modal {
3749
+ max-width: 800px;
3750
+ width: 95%;
3751
+ }
3752
+ .ai-chat-tool-info-container {
3753
+ display: flex;
3754
+ gap: 16px;
3755
+ margin-bottom: 20px;
3756
+ }
3757
+ .ai-chat-tool-info-section {
3758
+ flex: 1;
3759
+ }
3760
+ .ai-chat-tool-info-section h4 {
3761
+ font-size: 14px;
3762
+ font-weight: 600;
3763
+ margin: 0 0 8px 0;
3764
+ color: #374151;
3765
+ }
3766
+ .dark-theme .ai-chat-tool-info-section h4 {
3767
+ color: #e5e7eb;
3768
+ }
3769
+ .ai-chat-tool-info-json {
3770
+ width: 100%;
3771
+ min-height: 300px;
3772
+ max-height: 400px;
3773
+ padding: 12px;
3774
+ border: 1px solid #d1d5db;
3775
+ border-radius: 8px;
3776
+ font-family:
3777
+ "Monaco",
3778
+ "Courier New",
3779
+ monospace;
3780
+ font-size: 12px;
3781
+ background: #f9fafb;
3782
+ color: #1f2937;
3783
+ resize: vertical;
3784
+ box-sizing: border-box;
3785
+ }
3786
+ .dark-theme .ai-chat-tool-info-json {
3787
+ background: #111827;
3788
+ border-color: #374151;
3789
+ color: #e5e7eb;
3790
+ }
3791
+ .ai-chat-button-container {
3792
+ display: flex;
3793
+ gap: 8px;
3794
+ padding: 12px 16px;
3795
+ border-top: 1px solid #e5e7eb;
3796
+ background: #f9fafb;
3797
+ }
3798
+ .dark-theme .ai-chat-button-container {
3799
+ border-top-color: #374151;
3800
+ background: #111827;
3801
+ }
3802
+ .ai-chat-save-button,
3803
+ .ai-chat-email-button,
3804
+ .ai-chat-cta-button {
3805
+ flex: 1;
3806
+ min-width: 0;
3807
+ }
3808
+ .ai-chat-customer-email-panel {
3809
+ display: flex;
3810
+ flex-wrap: wrap;
3811
+ align-items: center;
3812
+ gap: 8px;
3813
+ padding: 12px 16px;
3814
+ border-top: 1px solid #e5e7eb;
3815
+ background: #fffbeb;
3816
+ }
3817
+ .dark-theme .ai-chat-customer-email-panel {
3818
+ background: #422006;
3819
+ border-top-color: #78350f;
3820
+ }
3821
+ .ai-chat-customer-email-input {
3822
+ flex: 1;
3823
+ min-width: 200px;
3824
+ padding: 8px 12px;
3825
+ border: 1px solid #d1d5db;
3826
+ border-radius: 8px;
3827
+ font-size: 14px;
3828
+ color: #1f2937;
3829
+ background: white;
3830
+ transition: all 0.15s;
3831
+ }
3832
+ .ai-chat-customer-email-input:focus {
3833
+ outline: none;
3834
+ border-color: #3b82f6;
3835
+ box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
3836
+ }
3837
+ .ai-chat-customer-email-input--error {
3838
+ border-color: #ef4444;
3839
+ }
3840
+ .ai-chat-customer-email-input--error:focus {
3841
+ box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
3842
+ }
3843
+ .dark-theme .ai-chat-customer-email-input {
3844
+ background: #111827;
3845
+ border-color: #78350f;
3846
+ color: #f9fafb;
3847
+ }
3848
+ .dark-theme .ai-chat-customer-email-input:focus {
3849
+ border-color: #60a5fa;
3850
+ box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
3851
+ }
3852
+ .ai-chat-email-set-button {
3853
+ flex-shrink: 0;
3854
+ }
3855
+ .ai-chat-email-error-message {
3856
+ width: 100%;
3857
+ color: #dc2626;
3858
+ font-size: 13px;
3859
+ margin-top: -4px;
3860
+ }
3861
+ .dark-theme .ai-chat-email-error-message {
3862
+ color: #fca5a5;
3863
+ }
3864
+ .ai-chat-approve-tools-panel {
3865
+ padding: 16px;
3866
+ border-top: 1px solid #e5e7eb;
3867
+ border-bottom: 1px solid #e5e7eb;
3868
+ background: #fef3c7;
3869
+ }
3870
+ .dark-theme .ai-chat-approve-tools-panel {
3871
+ background: #78350f;
3872
+ border-top-color: #92400e;
3873
+ border-bottom-color: #92400e;
3874
+ }
3875
+ .ai-chat-approve-tools-header {
3876
+ font-size: 14px;
3877
+ font-weight: 600;
3878
+ color: #92400e;
3879
+ margin-bottom: 4px;
3880
+ }
3881
+ .dark-theme .ai-chat-approve-tools-header {
3882
+ color: #fef3c7;
3883
+ }
3884
+ .ai-chat-approve-tools-description {
3885
+ font-size: 13px;
3886
+ color: #78350f;
3887
+ margin-bottom: 12px;
3888
+ }
3889
+ .dark-theme .ai-chat-approve-tools-description {
3890
+ color: #fde68a;
3891
+ }
3892
+ .ai-chat-approve-tool-item {
3893
+ margin-bottom: 12px;
3894
+ }
3895
+ .ai-chat-approve-tool-item:last-child {
3896
+ margin-bottom: 0;
3897
+ }
3898
+ .ai-chat-approve-tool-name {
3899
+ font-size: 13px;
3900
+ font-weight: 600;
3901
+ color: #92400e;
3902
+ margin-bottom: 6px;
3903
+ font-family:
3904
+ "Monaco",
3905
+ "Courier New",
3906
+ monospace;
3907
+ }
3908
+ .dark-theme .ai-chat-approve-tool-name {
3909
+ color: #fef3c7;
3910
+ }
3911
+ .ai-chat-approve-tools-buttons {
3912
+ display: flex;
3913
+ gap: 6px;
3914
+ flex-wrap: wrap;
3915
+ }
3916
+ .ai-chat-approve-tools-button {
3917
+ flex: 1;
3918
+ min-width: 80px;
3919
+ }
3920
+ .ai-chat-email-input-message {
3921
+ color: #991b1b;
3922
+ font-size: 0.8em;
3923
+ margin-top: 8px;
3924
+ margin-bottom: 8px;
3925
+ padding-left: 8px;
3926
+ }
3927
+ .dark-theme .ai-chat-email-input-message {
3928
+ color: #fca5a5;
3929
+ }
3930
+ .ai-chat-email-input-container {
3931
+ display: flex;
3932
+ flex-direction: row;
3933
+ width: 100%;
3934
+ gap: 8px;
3935
+ margin-top: 8px;
3936
+ margin-bottom: 8px;
3937
+ }
3938
+ .ai-chat-email-input {
3939
+ flex: 1;
3940
+ color: #1f2937;
3941
+ padding: 8px 12px;
3942
+ background-color: white;
3943
+ border: 1px solid #d1d5db;
3944
+ border-radius: 4px;
3945
+ font-size: 14px;
3946
+ }
3947
+ .dark-theme .ai-chat-email-input {
3948
+ color: #f9fafb;
3949
+ background-color: #1f2937;
3950
+ border-color: #374151;
3951
+ }
3952
+ .ai-chat-email-input:focus {
3953
+ outline: none;
3954
+ border-color: #3b82f6;
3955
+ }
3956
+ .ai-chat-email-input-invalid {
3957
+ flex: 1;
3958
+ color: #1f2937;
3959
+ padding: 8px 12px;
3960
+ background-color: #fef2f2;
3961
+ border: 1px solid #ef4444;
3962
+ border-radius: 4px;
3963
+ font-size: 14px;
3964
+ }
3965
+ .dark-theme .ai-chat-email-input-invalid {
3966
+ color: #f9fafb;
3967
+ background-color: #7f1d1d;
3968
+ border-color: #991b1b;
3969
+ }
3970
+ .ai-chat-email-input-invalid::placeholder {
3971
+ color: #991b1b;
3972
+ }
3973
+ .dark-theme .ai-chat-email-input-invalid::placeholder {
3974
+ color: #fca5a5;
3975
+ }
3976
+ .ai-chat-email-input-invalid:focus {
3977
+ outline: none;
3978
+ border-color: #dc2626;
3979
+ }
3980
+ .ai-chat-email-input-set {
3981
+ flex: 1;
3982
+ color: #1f2937;
3983
+ padding: 8px 12px;
3984
+ background-color: white;
3985
+ border: 0px solid white;
3986
+ opacity: 0.7;
3987
+ user-select: none;
3988
+ border-radius: 4px;
3989
+ font-size: 14px;
3990
+ }
3991
+ .dark-theme .ai-chat-email-input-set {
3992
+ color: #f9fafb;
3993
+ background-color: #1f2937;
3994
+ border-color: #1f2937;
3995
+ }
3996
+ .ai-chat-email-edit-button {
3997
+ padding: 8px 12px;
3998
+ background: transparent;
3999
+ border: 1px solid #d1d5db;
4000
+ border-radius: 4px;
4001
+ cursor: pointer;
4002
+ color: #374151;
4003
+ font-size: 16px;
4004
+ display: flex;
4005
+ align-items: center;
4006
+ justify-content: center;
4007
+ transition: background-color 0.15s;
4008
+ }
4009
+ .ai-chat-email-edit-button:hover {
4010
+ background-color: #f3f4f6;
4011
+ }
4012
+ .dark-theme .ai-chat-email-edit-button {
4013
+ border-color: #374151;
4014
+ color: #9ca3af;
4015
+ }
4016
+ .dark-theme .ai-chat-email-edit-button:hover {
4017
+ background-color: #374151;
4018
+ }
package/dist/index.d.mts CHANGED
@@ -182,6 +182,7 @@ interface AIAgentPanelHandle {
182
182
  interface AIAgentPanelProps {
183
183
  agents: (string | AgentConfig)[];
184
184
  defaultAgent?: string;
185
+ selectedAgent?: string;
185
186
  customerId: string;
186
187
  apiKey?: string;
187
188
  context?: AgentContext | null;
@@ -232,6 +233,24 @@ interface AIAgentPanelProps {
232
233
  followOnPrompt?: string;
233
234
  historyListLimit?: number;
234
235
  showConversationHistory?: boolean;
236
+ cssUrl?: string;
237
+ markdownClass?: string;
238
+ width?: string;
239
+ height?: string;
240
+ scrollToEnd?: boolean;
241
+ prismStyle?: any;
242
+ showSaveButton?: boolean;
243
+ showEmailButton?: boolean;
244
+ messages?: {
245
+ role: "user" | "assistant";
246
+ content: string;
247
+ }[];
248
+ showCallToAction?: boolean;
249
+ callToActionButtonText?: string;
250
+ callToActionEmailAddress?: string;
251
+ callToActionEmailSubject?: string;
252
+ customerEmailCaptureMode?: "HIDE" | "OPTIONAL" | "REQUIRED";
253
+ customerEmailCapturePlaceholder?: string;
235
254
  }
236
255
  declare const AIAgentPanel: React__default.ForwardRefExoticComponent<AIAgentPanelProps & React__default.RefAttributes<AIAgentPanelHandle>>;
237
256
 
@@ -307,7 +326,27 @@ interface AIChatPanelProps {
307
326
  totalContextTokens?: number;
308
327
  maxContextTokens?: number;
309
328
  enableContextDetailView?: boolean;
329
+ disabledSectionIds?: Set<string>;
330
+ onToggleSection?: (sectionId: string, enabled: boolean) => void;
310
331
  onConversationCreated?: (conversationId: string) => void;
332
+ cssUrl?: string;
333
+ markdownClass?: string;
334
+ width?: string;
335
+ height?: string;
336
+ scrollToEnd?: boolean;
337
+ prismStyle?: any;
338
+ showSaveButton?: boolean;
339
+ showEmailButton?: boolean;
340
+ messages?: {
341
+ role: "user" | "assistant";
342
+ content: string;
343
+ }[];
344
+ showCallToAction?: boolean;
345
+ callToActionButtonText?: string;
346
+ callToActionEmailAddress?: string;
347
+ callToActionEmailSubject?: string;
348
+ customerEmailCaptureMode?: "HIDE" | "OPTIONAL" | "REQUIRED";
349
+ customerEmailCapturePlaceholder?: string;
311
350
  }
312
351
  /**
313
352
  * Context section for the context viewer
package/dist/index.d.ts CHANGED
@@ -182,6 +182,7 @@ interface AIAgentPanelHandle {
182
182
  interface AIAgentPanelProps {
183
183
  agents: (string | AgentConfig)[];
184
184
  defaultAgent?: string;
185
+ selectedAgent?: string;
185
186
  customerId: string;
186
187
  apiKey?: string;
187
188
  context?: AgentContext | null;
@@ -232,6 +233,24 @@ interface AIAgentPanelProps {
232
233
  followOnPrompt?: string;
233
234
  historyListLimit?: number;
234
235
  showConversationHistory?: boolean;
236
+ cssUrl?: string;
237
+ markdownClass?: string;
238
+ width?: string;
239
+ height?: string;
240
+ scrollToEnd?: boolean;
241
+ prismStyle?: any;
242
+ showSaveButton?: boolean;
243
+ showEmailButton?: boolean;
244
+ messages?: {
245
+ role: "user" | "assistant";
246
+ content: string;
247
+ }[];
248
+ showCallToAction?: boolean;
249
+ callToActionButtonText?: string;
250
+ callToActionEmailAddress?: string;
251
+ callToActionEmailSubject?: string;
252
+ customerEmailCaptureMode?: "HIDE" | "OPTIONAL" | "REQUIRED";
253
+ customerEmailCapturePlaceholder?: string;
235
254
  }
236
255
  declare const AIAgentPanel: React__default.ForwardRefExoticComponent<AIAgentPanelProps & React__default.RefAttributes<AIAgentPanelHandle>>;
237
256
 
@@ -307,7 +326,27 @@ interface AIChatPanelProps {
307
326
  totalContextTokens?: number;
308
327
  maxContextTokens?: number;
309
328
  enableContextDetailView?: boolean;
329
+ disabledSectionIds?: Set<string>;
330
+ onToggleSection?: (sectionId: string, enabled: boolean) => void;
310
331
  onConversationCreated?: (conversationId: string) => void;
332
+ cssUrl?: string;
333
+ markdownClass?: string;
334
+ width?: string;
335
+ height?: string;
336
+ scrollToEnd?: boolean;
337
+ prismStyle?: any;
338
+ showSaveButton?: boolean;
339
+ showEmailButton?: boolean;
340
+ messages?: {
341
+ role: "user" | "assistant";
342
+ content: string;
343
+ }[];
344
+ showCallToAction?: boolean;
345
+ callToActionButtonText?: string;
346
+ callToActionEmailAddress?: string;
347
+ callToActionEmailSubject?: string;
348
+ customerEmailCaptureMode?: "HIDE" | "OPTIONAL" | "REQUIRED";
349
+ customerEmailCapturePlaceholder?: string;
311
350
  }
312
351
  /**
313
352
  * Context section for the context viewer