deep-chat-dev 9.0.55 → 9.0.57

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.
Files changed (2) hide show
  1. package/custom-elements.json +349 -349
  2. package/package.json +1 -1
@@ -23680,30 +23680,6 @@
23680
23680
  }
23681
23681
  ]
23682
23682
  },
23683
- {
23684
- "kind": "javascript-module",
23685
- "path": "src/utils/fileTypes/fileTypeButtonIcons.ts",
23686
- "declarations": [
23687
- {
23688
- "kind": "variable",
23689
- "name": "FILE_TYPE_BUTTON_ICONS",
23690
- "type": {
23691
- "text": "ServiceFileTypes"
23692
- },
23693
- "default": "{\n images: {id: 'upload-images-icon', svgString: IMAGE_ICON_STRING, dropupText: 'Image'},\n gifs: {id: 'upload-gifs-icon', svgString: GIF_ICON_STRING, dropupText: 'GIF'},\n audio: {id: 'upload-audio-icon', svgString: AUDIO_ICON_STRING, dropupText: 'Audio'},\n mixedFiles: {id: 'upload-mixed-files-icon', svgString: MIXED_FILES_ICON_STRING, dropupText: 'File'},\n}"
23694
- }
23695
- ],
23696
- "exports": [
23697
- {
23698
- "kind": "js",
23699
- "name": "FILE_TYPE_BUTTON_ICONS",
23700
- "declaration": {
23701
- "name": "FILE_TYPE_BUTTON_ICONS",
23702
- "module": "src/utils/fileTypes/fileTypeButtonIcons.ts"
23703
- }
23704
- }
23705
- ]
23706
- },
23707
23683
  {
23708
23684
  "kind": "javascript-module",
23709
23685
  "path": "src/utils/legacy/legacy.ts",
@@ -23789,6 +23765,30 @@
23789
23765
  }
23790
23766
  ]
23791
23767
  },
23768
+ {
23769
+ "kind": "javascript-module",
23770
+ "path": "src/utils/fileTypes/fileTypeButtonIcons.ts",
23771
+ "declarations": [
23772
+ {
23773
+ "kind": "variable",
23774
+ "name": "FILE_TYPE_BUTTON_ICONS",
23775
+ "type": {
23776
+ "text": "ServiceFileTypes"
23777
+ },
23778
+ "default": "{\n images: {id: 'upload-images-icon', svgString: IMAGE_ICON_STRING, dropupText: 'Image'},\n gifs: {id: 'upload-gifs-icon', svgString: GIF_ICON_STRING, dropupText: 'GIF'},\n audio: {id: 'upload-audio-icon', svgString: AUDIO_ICON_STRING, dropupText: 'Audio'},\n mixedFiles: {id: 'upload-mixed-files-icon', svgString: MIXED_FILES_ICON_STRING, dropupText: 'File'},\n}"
23779
+ }
23780
+ ],
23781
+ "exports": [
23782
+ {
23783
+ "kind": "js",
23784
+ "name": "FILE_TYPE_BUTTON_ICONS",
23785
+ "declaration": {
23786
+ "name": "FILE_TYPE_BUTTON_ICONS",
23787
+ "module": "src/utils/fileTypes/fileTypeButtonIcons.ts"
23788
+ }
23789
+ }
23790
+ ]
23791
+ },
23792
23792
  {
23793
23793
  "kind": "javascript-module",
23794
23794
  "path": "src/utils/svg/svgIconUtils.ts",
@@ -25414,6 +25414,110 @@
25414
25414
  }
25415
25415
  ]
25416
25416
  },
25417
+ {
25418
+ "kind": "javascript-module",
25419
+ "path": "src/views/chat/introPanel/introPanel.ts",
25420
+ "declarations": [
25421
+ {
25422
+ "kind": "class",
25423
+ "description": "",
25424
+ "name": "IntroPanel",
25425
+ "members": [
25426
+ {
25427
+ "kind": "field",
25428
+ "name": "_elementRef",
25429
+ "type": {
25430
+ "text": "HTMLElement | undefined"
25431
+ }
25432
+ },
25433
+ {
25434
+ "kind": "field",
25435
+ "name": "_isDisplayed",
25436
+ "type": {
25437
+ "text": "boolean"
25438
+ },
25439
+ "privacy": "private",
25440
+ "default": "false"
25441
+ },
25442
+ {
25443
+ "kind": "method",
25444
+ "name": "createIntroPanel",
25445
+ "privacy": "private",
25446
+ "static": true,
25447
+ "parameters": [
25448
+ {
25449
+ "name": "introPanelStyle",
25450
+ "optional": true,
25451
+ "type": {
25452
+ "text": "CustomStyle"
25453
+ }
25454
+ }
25455
+ ]
25456
+ },
25457
+ {
25458
+ "kind": "method",
25459
+ "name": "createIntroPanelWithChild",
25460
+ "privacy": "private",
25461
+ "parameters": [
25462
+ {
25463
+ "name": "childElement",
25464
+ "type": {
25465
+ "text": "HTMLElement"
25466
+ }
25467
+ },
25468
+ {
25469
+ "name": "introPanelStyle",
25470
+ "optional": true,
25471
+ "type": {
25472
+ "text": "CustomStyle"
25473
+ }
25474
+ }
25475
+ ]
25476
+ },
25477
+ {
25478
+ "kind": "method",
25479
+ "name": "createInternalIntroPanel",
25480
+ "privacy": "private",
25481
+ "parameters": [
25482
+ {
25483
+ "name": "introPanelMarkUp",
25484
+ "type": {
25485
+ "text": "string"
25486
+ }
25487
+ },
25488
+ {
25489
+ "name": "introPanelStyle",
25490
+ "optional": true,
25491
+ "type": {
25492
+ "text": "CustomStyle"
25493
+ }
25494
+ }
25495
+ ]
25496
+ },
25497
+ {
25498
+ "kind": "method",
25499
+ "name": "hide",
25500
+ "privacy": "public"
25501
+ },
25502
+ {
25503
+ "kind": "method",
25504
+ "name": "display",
25505
+ "privacy": "public"
25506
+ }
25507
+ ]
25508
+ }
25509
+ ],
25510
+ "exports": [
25511
+ {
25512
+ "kind": "js",
25513
+ "name": "IntroPanel",
25514
+ "declaration": {
25515
+ "name": "IntroPanel",
25516
+ "module": "src/views/chat/introPanel/introPanel.ts"
25517
+ }
25518
+ }
25519
+ ]
25520
+ },
25417
25521
  {
25418
25522
  "kind": "javascript-module",
25419
25523
  "path": "src/views/chat/input/input.ts",
@@ -25585,110 +25689,6 @@
25585
25689
  }
25586
25690
  ]
25587
25691
  },
25588
- {
25589
- "kind": "javascript-module",
25590
- "path": "src/views/chat/introPanel/introPanel.ts",
25591
- "declarations": [
25592
- {
25593
- "kind": "class",
25594
- "description": "",
25595
- "name": "IntroPanel",
25596
- "members": [
25597
- {
25598
- "kind": "field",
25599
- "name": "_elementRef",
25600
- "type": {
25601
- "text": "HTMLElement | undefined"
25602
- }
25603
- },
25604
- {
25605
- "kind": "field",
25606
- "name": "_isDisplayed",
25607
- "type": {
25608
- "text": "boolean"
25609
- },
25610
- "privacy": "private",
25611
- "default": "false"
25612
- },
25613
- {
25614
- "kind": "method",
25615
- "name": "createIntroPanel",
25616
- "privacy": "private",
25617
- "static": true,
25618
- "parameters": [
25619
- {
25620
- "name": "introPanelStyle",
25621
- "optional": true,
25622
- "type": {
25623
- "text": "CustomStyle"
25624
- }
25625
- }
25626
- ]
25627
- },
25628
- {
25629
- "kind": "method",
25630
- "name": "createIntroPanelWithChild",
25631
- "privacy": "private",
25632
- "parameters": [
25633
- {
25634
- "name": "childElement",
25635
- "type": {
25636
- "text": "HTMLElement"
25637
- }
25638
- },
25639
- {
25640
- "name": "introPanelStyle",
25641
- "optional": true,
25642
- "type": {
25643
- "text": "CustomStyle"
25644
- }
25645
- }
25646
- ]
25647
- },
25648
- {
25649
- "kind": "method",
25650
- "name": "createInternalIntroPanel",
25651
- "privacy": "private",
25652
- "parameters": [
25653
- {
25654
- "name": "introPanelMarkUp",
25655
- "type": {
25656
- "text": "string"
25657
- }
25658
- },
25659
- {
25660
- "name": "introPanelStyle",
25661
- "optional": true,
25662
- "type": {
25663
- "text": "CustomStyle"
25664
- }
25665
- }
25666
- ]
25667
- },
25668
- {
25669
- "kind": "method",
25670
- "name": "hide",
25671
- "privacy": "public"
25672
- },
25673
- {
25674
- "kind": "method",
25675
- "name": "display",
25676
- "privacy": "public"
25677
- }
25678
- ]
25679
- }
25680
- ],
25681
- "exports": [
25682
- {
25683
- "kind": "js",
25684
- "name": "IntroPanel",
25685
- "declaration": {
25686
- "name": "IntroPanel",
25687
- "module": "src/views/chat/introPanel/introPanel.ts"
25688
- }
25689
- }
25690
- ]
25691
- },
25692
25692
  {
25693
25693
  "kind": "javascript-module",
25694
25694
  "path": "src/views/chat/messages/avatar.ts",
@@ -27932,158 +27932,105 @@
27932
27932
  },
27933
27933
  {
27934
27934
  "kind": "javascript-module",
27935
- "path": "src/views/chat/input/fileAttachments/fileAttachments.ts",
27935
+ "path": "src/views/chat/input/validation/validationHandler.ts",
27936
27936
  "declarations": [
27937
27937
  {
27938
27938
  "kind": "class",
27939
27939
  "description": "",
27940
- "name": "FileAttachments",
27940
+ "name": "ValidationHandler",
27941
27941
  "members": [
27942
- {
27943
- "kind": "field",
27944
- "name": "_fileAttachmentsTypes",
27945
- "type": {
27946
- "text": "FileAttachmentsType[]"
27947
- },
27948
- "privacy": "private",
27949
- "default": "[]"
27950
- },
27951
- {
27952
- "kind": "field",
27953
- "name": "elementRef",
27954
- "type": {
27955
- "text": "HTMLElement"
27956
- }
27957
- },
27958
27942
  {
27959
27943
  "kind": "method",
27960
- "name": "addType",
27944
+ "name": "useValidationFunc",
27945
+ "privacy": "private",
27946
+ "static": true,
27961
27947
  "parameters": [
27962
27948
  {
27963
- "name": "deepChat",
27949
+ "name": "validation",
27964
27950
  "type": {
27965
- "text": "DeepChat"
27951
+ "text": "ValidateFunc"
27966
27952
  }
27967
27953
  },
27968
27954
  {
27969
- "name": "files",
27955
+ "name": "textInput",
27970
27956
  "type": {
27971
- "text": "FileAttachmentsT"
27957
+ "text": "TextInputEl"
27972
27958
  }
27973
27959
  },
27974
27960
  {
27975
- "name": "type",
27961
+ "name": "fileAttachments",
27976
27962
  "type": {
27977
- "text": "keyof ServiceFileTypes"
27963
+ "text": "FileAttachments"
27964
+ }
27965
+ },
27966
+ {
27967
+ "name": "submitButton",
27968
+ "type": {
27969
+ "text": "SubmitButton"
27970
+ }
27971
+ },
27972
+ {
27973
+ "name": "isProgrammatic",
27974
+ "type": {
27975
+ "text": "boolean"
27978
27976
  }
27979
27977
  }
27980
27978
  ]
27981
27979
  },
27982
27980
  {
27983
27981
  "kind": "method",
27984
- "name": "createAttachmentContainer",
27985
- "privacy": "private"
27986
- },
27987
- {
27988
- "kind": "method",
27989
- "name": "toggleContainerDisplay",
27982
+ "name": "validateWebsocket",
27990
27983
  "privacy": "private",
27984
+ "static": true,
27991
27985
  "parameters": [
27992
27986
  {
27993
- "name": "display",
27987
+ "name": "serviceIO",
27994
27988
  "type": {
27995
- "text": "boolean"
27989
+ "text": "ServiceIO"
27990
+ }
27991
+ },
27992
+ {
27993
+ "name": "submitButton",
27994
+ "type": {
27995
+ "text": "SubmitButton"
27996
27996
  }
27997
27997
  }
27998
27998
  ]
27999
27999
  },
28000
28000
  {
28001
28001
  "kind": "method",
28002
- "name": "getAllFileData"
28003
- },
28004
- {
28005
- "kind": "method",
28006
- "name": "completePlaceholders"
28007
- },
28008
- {
28009
- "kind": "method",
28010
- "name": "addFilesToType",
28002
+ "name": "attach",
28011
28003
  "privacy": "public",
28012
28004
  "static": true,
28013
28005
  "parameters": [
28014
28006
  {
28015
- "name": "files",
28007
+ "name": "deepChat",
28016
28008
  "type": {
28017
- "text": "File[]"
28009
+ "text": "DeepChat"
28018
28010
  }
28019
28011
  },
28020
28012
  {
28021
- "name": "fileAttachmentTypes",
28013
+ "name": "serviceIO",
28022
28014
  "type": {
28023
- "text": "FileAttachmentsType[]"
28015
+ "text": "ServiceIO"
28024
28016
  }
28025
- }
28026
- ]
28027
- },
28028
- {
28029
- "kind": "method",
28030
- "name": "addFilesToAnyType",
28031
- "parameters": [
28017
+ },
28032
28018
  {
28033
- "name": "files",
28019
+ "name": "textInput",
28034
28020
  "type": {
28035
- "text": "File[]"
28021
+ "text": "TextInputEl"
28036
28022
  }
28037
- }
28038
- ]
28039
- },
28040
- {
28041
- "kind": "method",
28042
- "name": "removeAllFiles"
28043
- },
28044
- {
28045
- "kind": "method",
28046
- "name": "getNumberOfTypes"
28047
- }
28048
- ]
28049
- }
28050
- ],
28051
- "exports": [
28052
- {
28053
- "kind": "js",
28054
- "name": "FileAttachments",
28055
- "declaration": {
28056
- "name": "FileAttachments",
28057
- "module": "src/views/chat/input/fileAttachments/fileAttachments.ts"
28058
- }
28059
- }
28060
- ]
28061
- },
28062
- {
28063
- "kind": "javascript-module",
28064
- "path": "src/views/chat/input/fileAttachments/newFileName.ts",
28065
- "declarations": [
28066
- {
28067
- "kind": "class",
28068
- "description": "",
28069
- "name": "NewFileName",
28070
- "members": [
28071
- {
28072
- "kind": "method",
28073
- "name": "getFileName",
28074
- "privacy": "public",
28075
- "static": true,
28076
- "parameters": [
28023
+ },
28077
28024
  {
28078
- "name": "prefix",
28025
+ "name": "fileAttachments",
28079
28026
  "type": {
28080
- "text": "string"
28027
+ "text": "FileAttachments"
28081
28028
  }
28082
28029
  },
28083
28030
  {
28084
- "name": "extension",
28031
+ "name": "submitButton",
28085
28032
  "type": {
28086
- "text": "string"
28033
+ "text": "SubmitButton"
28087
28034
  }
28088
28035
  }
28089
28036
  ]
@@ -28094,10 +28041,10 @@
28094
28041
  "exports": [
28095
28042
  {
28096
28043
  "kind": "js",
28097
- "name": "NewFileName",
28044
+ "name": "ValidationHandler",
28098
28045
  "declaration": {
28099
- "name": "NewFileName",
28100
- "module": "src/views/chat/input/fileAttachments/newFileName.ts"
28046
+ "name": "ValidationHandler",
28047
+ "module": "src/views/chat/input/validation/validationHandler.ts"
28101
28048
  }
28102
28049
  }
28103
28050
  ]
@@ -28791,125 +28738,6 @@
28791
28738
  }
28792
28739
  ]
28793
28740
  },
28794
- {
28795
- "kind": "javascript-module",
28796
- "path": "src/views/chat/input/validation/validationHandler.ts",
28797
- "declarations": [
28798
- {
28799
- "kind": "class",
28800
- "description": "",
28801
- "name": "ValidationHandler",
28802
- "members": [
28803
- {
28804
- "kind": "method",
28805
- "name": "useValidationFunc",
28806
- "privacy": "private",
28807
- "static": true,
28808
- "parameters": [
28809
- {
28810
- "name": "validation",
28811
- "type": {
28812
- "text": "ValidateFunc"
28813
- }
28814
- },
28815
- {
28816
- "name": "textInput",
28817
- "type": {
28818
- "text": "TextInputEl"
28819
- }
28820
- },
28821
- {
28822
- "name": "fileAttachments",
28823
- "type": {
28824
- "text": "FileAttachments"
28825
- }
28826
- },
28827
- {
28828
- "name": "submitButton",
28829
- "type": {
28830
- "text": "SubmitButton"
28831
- }
28832
- },
28833
- {
28834
- "name": "isProgrammatic",
28835
- "type": {
28836
- "text": "boolean"
28837
- }
28838
- }
28839
- ]
28840
- },
28841
- {
28842
- "kind": "method",
28843
- "name": "validateWebsocket",
28844
- "privacy": "private",
28845
- "static": true,
28846
- "parameters": [
28847
- {
28848
- "name": "serviceIO",
28849
- "type": {
28850
- "text": "ServiceIO"
28851
- }
28852
- },
28853
- {
28854
- "name": "submitButton",
28855
- "type": {
28856
- "text": "SubmitButton"
28857
- }
28858
- }
28859
- ]
28860
- },
28861
- {
28862
- "kind": "method",
28863
- "name": "attach",
28864
- "privacy": "public",
28865
- "static": true,
28866
- "parameters": [
28867
- {
28868
- "name": "deepChat",
28869
- "type": {
28870
- "text": "DeepChat"
28871
- }
28872
- },
28873
- {
28874
- "name": "serviceIO",
28875
- "type": {
28876
- "text": "ServiceIO"
28877
- }
28878
- },
28879
- {
28880
- "name": "textInput",
28881
- "type": {
28882
- "text": "TextInputEl"
28883
- }
28884
- },
28885
- {
28886
- "name": "fileAttachments",
28887
- "type": {
28888
- "text": "FileAttachments"
28889
- }
28890
- },
28891
- {
28892
- "name": "submitButton",
28893
- "type": {
28894
- "text": "SubmitButton"
28895
- }
28896
- }
28897
- ]
28898
- }
28899
- ]
28900
- }
28901
- ],
28902
- "exports": [
28903
- {
28904
- "kind": "js",
28905
- "name": "ValidationHandler",
28906
- "declaration": {
28907
- "name": "ValidationHandler",
28908
- "module": "src/views/chat/input/validation/validationHandler.ts"
28909
- }
28910
- }
28911
- ]
28912
- },
28913
28741
  {
28914
28742
  "kind": "javascript-module",
28915
28743
  "path": "src/views/chat/input/textInput/focusUtils.ts",
@@ -29349,6 +29177,178 @@
29349
29177
  }
29350
29178
  ]
29351
29179
  },
29180
+ {
29181
+ "kind": "javascript-module",
29182
+ "path": "src/views/chat/input/fileAttachments/fileAttachments.ts",
29183
+ "declarations": [
29184
+ {
29185
+ "kind": "class",
29186
+ "description": "",
29187
+ "name": "FileAttachments",
29188
+ "members": [
29189
+ {
29190
+ "kind": "field",
29191
+ "name": "_fileAttachmentsTypes",
29192
+ "type": {
29193
+ "text": "FileAttachmentsType[]"
29194
+ },
29195
+ "privacy": "private",
29196
+ "default": "[]"
29197
+ },
29198
+ {
29199
+ "kind": "field",
29200
+ "name": "elementRef",
29201
+ "type": {
29202
+ "text": "HTMLElement"
29203
+ }
29204
+ },
29205
+ {
29206
+ "kind": "method",
29207
+ "name": "addType",
29208
+ "parameters": [
29209
+ {
29210
+ "name": "deepChat",
29211
+ "type": {
29212
+ "text": "DeepChat"
29213
+ }
29214
+ },
29215
+ {
29216
+ "name": "files",
29217
+ "type": {
29218
+ "text": "FileAttachmentsT"
29219
+ }
29220
+ },
29221
+ {
29222
+ "name": "type",
29223
+ "type": {
29224
+ "text": "keyof ServiceFileTypes"
29225
+ }
29226
+ }
29227
+ ]
29228
+ },
29229
+ {
29230
+ "kind": "method",
29231
+ "name": "createAttachmentContainer",
29232
+ "privacy": "private"
29233
+ },
29234
+ {
29235
+ "kind": "method",
29236
+ "name": "toggleContainerDisplay",
29237
+ "privacy": "private",
29238
+ "parameters": [
29239
+ {
29240
+ "name": "display",
29241
+ "type": {
29242
+ "text": "boolean"
29243
+ }
29244
+ }
29245
+ ]
29246
+ },
29247
+ {
29248
+ "kind": "method",
29249
+ "name": "getAllFileData"
29250
+ },
29251
+ {
29252
+ "kind": "method",
29253
+ "name": "completePlaceholders"
29254
+ },
29255
+ {
29256
+ "kind": "method",
29257
+ "name": "addFilesToType",
29258
+ "privacy": "public",
29259
+ "static": true,
29260
+ "parameters": [
29261
+ {
29262
+ "name": "files",
29263
+ "type": {
29264
+ "text": "File[]"
29265
+ }
29266
+ },
29267
+ {
29268
+ "name": "fileAttachmentTypes",
29269
+ "type": {
29270
+ "text": "FileAttachmentsType[]"
29271
+ }
29272
+ }
29273
+ ]
29274
+ },
29275
+ {
29276
+ "kind": "method",
29277
+ "name": "addFilesToAnyType",
29278
+ "parameters": [
29279
+ {
29280
+ "name": "files",
29281
+ "type": {
29282
+ "text": "File[]"
29283
+ }
29284
+ }
29285
+ ]
29286
+ },
29287
+ {
29288
+ "kind": "method",
29289
+ "name": "removeAllFiles"
29290
+ },
29291
+ {
29292
+ "kind": "method",
29293
+ "name": "getNumberOfTypes"
29294
+ }
29295
+ ]
29296
+ }
29297
+ ],
29298
+ "exports": [
29299
+ {
29300
+ "kind": "js",
29301
+ "name": "FileAttachments",
29302
+ "declaration": {
29303
+ "name": "FileAttachments",
29304
+ "module": "src/views/chat/input/fileAttachments/fileAttachments.ts"
29305
+ }
29306
+ }
29307
+ ]
29308
+ },
29309
+ {
29310
+ "kind": "javascript-module",
29311
+ "path": "src/views/chat/input/fileAttachments/newFileName.ts",
29312
+ "declarations": [
29313
+ {
29314
+ "kind": "class",
29315
+ "description": "",
29316
+ "name": "NewFileName",
29317
+ "members": [
29318
+ {
29319
+ "kind": "method",
29320
+ "name": "getFileName",
29321
+ "privacy": "public",
29322
+ "static": true,
29323
+ "parameters": [
29324
+ {
29325
+ "name": "prefix",
29326
+ "type": {
29327
+ "text": "string"
29328
+ }
29329
+ },
29330
+ {
29331
+ "name": "extension",
29332
+ "type": {
29333
+ "text": "string"
29334
+ }
29335
+ }
29336
+ ]
29337
+ }
29338
+ ]
29339
+ }
29340
+ ],
29341
+ "exports": [
29342
+ {
29343
+ "kind": "js",
29344
+ "name": "NewFileName",
29345
+ "declaration": {
29346
+ "name": "NewFileName",
29347
+ "module": "src/views/chat/input/fileAttachments/newFileName.ts"
29348
+ }
29349
+ }
29350
+ ]
29351
+ },
29352
29352
  {
29353
29353
  "kind": "javascript-module",
29354
29354
  "path": "src/views/chat/messages/html/htmlDeepChatElements.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deep-chat-dev",
3
- "version": "9.0.55",
3
+ "version": "9.0.57",
4
4
  "description": "Customizable chat component for AI APIs",
5
5
  "main": "./dist/deepChat.js",
6
6
  "module": "./dist/deepChat.js",