deep-chat-dev 9.0.26 → 9.0.28
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/README.md +1 -1
- package/custom-elements.json +161 -168
- package/dist/deepChat.bundle.js +1 -1
- package/dist/deepChat.d.ts +0 -1
- package/dist/deepChat.d.ts.map +1 -1
- package/dist/deepChat.js +17 -18
- package/package.json +1 -1
package/README.md
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
- Record audio via microphone
|
15
15
|
- Speech To Text for message input
|
16
16
|
- Text To Speech to hear message responses
|
17
|
-
- Support for MarkDown to help structure text and render code
|
17
|
+
- Support for MarkDown and custom elements to help structure text and render code
|
18
18
|
- Introduction panel and dynamic modals to help describe functionality for your users
|
19
19
|
- Connect to popular AI APIs such as OpenAI, HuggingFace, Cohere directly from the browser
|
20
20
|
- Support for all major ui frameworks/libraries
|
package/custom-elements.json
CHANGED
@@ -60,13 +60,6 @@
|
|
60
60
|
"text": "ValidateMessageBeforeSending | undefined"
|
61
61
|
}
|
62
62
|
},
|
63
|
-
{
|
64
|
-
"kind": "field",
|
65
|
-
"name": "containerStyle",
|
66
|
-
"type": {
|
67
|
-
"text": "CustomStyle | undefined"
|
68
|
-
}
|
69
|
-
},
|
70
63
|
{
|
71
64
|
"kind": "field",
|
72
65
|
"name": "attachmentContainerStyle",
|
@@ -466,54 +459,6 @@
|
|
466
459
|
}
|
467
460
|
]
|
468
461
|
},
|
469
|
-
{
|
470
|
-
"kind": "javascript-module",
|
471
|
-
"path": "src/services/serviceIO.ts",
|
472
|
-
"declarations": [],
|
473
|
-
"exports": []
|
474
|
-
},
|
475
|
-
{
|
476
|
-
"kind": "javascript-module",
|
477
|
-
"path": "src/services/serviceIOFactory.ts",
|
478
|
-
"declarations": [
|
479
|
-
{
|
480
|
-
"kind": "class",
|
481
|
-
"description": "",
|
482
|
-
"name": "ServiceIOFactory",
|
483
|
-
"members": [
|
484
|
-
{
|
485
|
-
"kind": "method",
|
486
|
-
"name": "create",
|
487
|
-
"privacy": "public",
|
488
|
-
"static": true,
|
489
|
-
"return": {
|
490
|
-
"type": {
|
491
|
-
"text": "ServiceIO"
|
492
|
-
}
|
493
|
-
},
|
494
|
-
"parameters": [
|
495
|
-
{
|
496
|
-
"name": "deepChat",
|
497
|
-
"type": {
|
498
|
-
"text": "DeepChat"
|
499
|
-
}
|
500
|
-
}
|
501
|
-
]
|
502
|
-
}
|
503
|
-
]
|
504
|
-
}
|
505
|
-
],
|
506
|
-
"exports": [
|
507
|
-
{
|
508
|
-
"kind": "js",
|
509
|
-
"name": "ServiceIOFactory",
|
510
|
-
"declaration": {
|
511
|
-
"name": "ServiceIOFactory",
|
512
|
-
"module": "src/services/serviceIOFactory.ts"
|
513
|
-
}
|
514
|
-
}
|
515
|
-
]
|
516
|
-
},
|
517
462
|
{
|
518
463
|
"kind": "javascript-module",
|
519
464
|
"path": "src/icons/audioIcon.ts",
|
@@ -871,6 +816,54 @@
|
|
871
816
|
}
|
872
817
|
]
|
873
818
|
},
|
819
|
+
{
|
820
|
+
"kind": "javascript-module",
|
821
|
+
"path": "src/services/serviceIO.ts",
|
822
|
+
"declarations": [],
|
823
|
+
"exports": []
|
824
|
+
},
|
825
|
+
{
|
826
|
+
"kind": "javascript-module",
|
827
|
+
"path": "src/services/serviceIOFactory.ts",
|
828
|
+
"declarations": [
|
829
|
+
{
|
830
|
+
"kind": "class",
|
831
|
+
"description": "",
|
832
|
+
"name": "ServiceIOFactory",
|
833
|
+
"members": [
|
834
|
+
{
|
835
|
+
"kind": "method",
|
836
|
+
"name": "create",
|
837
|
+
"privacy": "public",
|
838
|
+
"static": true,
|
839
|
+
"return": {
|
840
|
+
"type": {
|
841
|
+
"text": "ServiceIO"
|
842
|
+
}
|
843
|
+
},
|
844
|
+
"parameters": [
|
845
|
+
{
|
846
|
+
"name": "deepChat",
|
847
|
+
"type": {
|
848
|
+
"text": "DeepChat"
|
849
|
+
}
|
850
|
+
}
|
851
|
+
]
|
852
|
+
}
|
853
|
+
]
|
854
|
+
}
|
855
|
+
],
|
856
|
+
"exports": [
|
857
|
+
{
|
858
|
+
"kind": "js",
|
859
|
+
"name": "ServiceIOFactory",
|
860
|
+
"declaration": {
|
861
|
+
"name": "ServiceIOFactory",
|
862
|
+
"module": "src/services/serviceIOFactory.ts"
|
863
|
+
}
|
864
|
+
}
|
865
|
+
]
|
866
|
+
},
|
874
867
|
{
|
875
868
|
"kind": "javascript-module",
|
876
869
|
"path": "src/types/APIKey.ts",
|
@@ -22526,6 +22519,107 @@
|
|
22526
22519
|
}
|
22527
22520
|
]
|
22528
22521
|
},
|
22522
|
+
{
|
22523
|
+
"kind": "javascript-module",
|
22524
|
+
"path": "src/utils/errorMessages/errorMessages.ts",
|
22525
|
+
"declarations": [
|
22526
|
+
{
|
22527
|
+
"kind": "variable",
|
22528
|
+
"name": "ErrorMessages",
|
22529
|
+
"type": {
|
22530
|
+
"text": "object"
|
22531
|
+
},
|
22532
|
+
"default": "{\n INVALID_KEY: 'Invalid API Key',\n CONNECTION_FAILED: 'Failed to connect',\n INVALID_RESPONSE: getInvalidResponseMessage,\n INVALID_STREAM_RESPONSE:\n `Make sure the events are using the Response format: ` +\n `https://deepchat.dev/docs/connect/#Response \\n` +\n `You can also augment them using the responseInterceptor property: ` +\n `https://deepchat.dev/docs/interceptors#responseInterceptor`,\n}"
|
22533
|
+
}
|
22534
|
+
],
|
22535
|
+
"exports": [
|
22536
|
+
{
|
22537
|
+
"kind": "js",
|
22538
|
+
"name": "ErrorMessages",
|
22539
|
+
"declaration": {
|
22540
|
+
"name": "ErrorMessages",
|
22541
|
+
"module": "src/utils/errorMessages/errorMessages.ts"
|
22542
|
+
}
|
22543
|
+
}
|
22544
|
+
]
|
22545
|
+
},
|
22546
|
+
{
|
22547
|
+
"kind": "javascript-module",
|
22548
|
+
"path": "src/utils/events/fireEvents.ts",
|
22549
|
+
"declarations": [
|
22550
|
+
{
|
22551
|
+
"kind": "class",
|
22552
|
+
"description": "",
|
22553
|
+
"name": "FireEvents",
|
22554
|
+
"members": [
|
22555
|
+
{
|
22556
|
+
"kind": "method",
|
22557
|
+
"name": "onNewMessage",
|
22558
|
+
"privacy": "public",
|
22559
|
+
"static": true,
|
22560
|
+
"parameters": [
|
22561
|
+
{
|
22562
|
+
"name": "deepChat",
|
22563
|
+
"type": {
|
22564
|
+
"text": "DeepChat"
|
22565
|
+
}
|
22566
|
+
},
|
22567
|
+
{
|
22568
|
+
"name": "message",
|
22569
|
+
"type": {
|
22570
|
+
"text": "MessageContent"
|
22571
|
+
}
|
22572
|
+
},
|
22573
|
+
{
|
22574
|
+
"name": "isInitial",
|
22575
|
+
"type": {
|
22576
|
+
"text": "boolean"
|
22577
|
+
}
|
22578
|
+
}
|
22579
|
+
]
|
22580
|
+
},
|
22581
|
+
{
|
22582
|
+
"kind": "method",
|
22583
|
+
"name": "onClearMessages",
|
22584
|
+
"privacy": "public",
|
22585
|
+
"static": true,
|
22586
|
+
"parameters": [
|
22587
|
+
{
|
22588
|
+
"name": "deepChat",
|
22589
|
+
"type": {
|
22590
|
+
"text": "DeepChat"
|
22591
|
+
}
|
22592
|
+
}
|
22593
|
+
]
|
22594
|
+
},
|
22595
|
+
{
|
22596
|
+
"kind": "method",
|
22597
|
+
"name": "onRender",
|
22598
|
+
"privacy": "public",
|
22599
|
+
"static": true,
|
22600
|
+
"parameters": [
|
22601
|
+
{
|
22602
|
+
"name": "deepChat",
|
22603
|
+
"type": {
|
22604
|
+
"text": "DeepChat"
|
22605
|
+
}
|
22606
|
+
}
|
22607
|
+
]
|
22608
|
+
}
|
22609
|
+
]
|
22610
|
+
}
|
22611
|
+
],
|
22612
|
+
"exports": [
|
22613
|
+
{
|
22614
|
+
"kind": "js",
|
22615
|
+
"name": "FireEvents",
|
22616
|
+
"declaration": {
|
22617
|
+
"name": "FireEvents",
|
22618
|
+
"module": "src/utils/events/fireEvents.ts"
|
22619
|
+
}
|
22620
|
+
}
|
22621
|
+
]
|
22622
|
+
},
|
22529
22623
|
{
|
22530
22624
|
"kind": "javascript-module",
|
22531
22625
|
"path": "src/utils/element/elementUtils.ts",
|
@@ -22909,87 +23003,28 @@
|
|
22909
23003
|
},
|
22910
23004
|
{
|
22911
23005
|
"kind": "javascript-module",
|
22912
|
-
"path": "src/utils/
|
22913
|
-
"declarations": [
|
22914
|
-
{
|
22915
|
-
"kind": "variable",
|
22916
|
-
"name": "ErrorMessages",
|
22917
|
-
"type": {
|
22918
|
-
"text": "object"
|
22919
|
-
},
|
22920
|
-
"default": "{\n INVALID_KEY: 'Invalid API Key',\n CONNECTION_FAILED: 'Failed to connect',\n INVALID_RESPONSE: getInvalidResponseMessage,\n INVALID_STREAM_RESPONSE:\n `Make sure the events are using the Response format: ` +\n `https://deepchat.dev/docs/connect/#Response \\n` +\n `You can also augment them using the responseInterceptor property: ` +\n `https://deepchat.dev/docs/interceptors#responseInterceptor`,\n}"
|
22921
|
-
}
|
22922
|
-
],
|
22923
|
-
"exports": [
|
22924
|
-
{
|
22925
|
-
"kind": "js",
|
22926
|
-
"name": "ErrorMessages",
|
22927
|
-
"declaration": {
|
22928
|
-
"name": "ErrorMessages",
|
22929
|
-
"module": "src/utils/errorMessages/errorMessages.ts"
|
22930
|
-
}
|
22931
|
-
}
|
22932
|
-
]
|
22933
|
-
},
|
22934
|
-
{
|
22935
|
-
"kind": "javascript-module",
|
22936
|
-
"path": "src/utils/events/fireEvents.ts",
|
23006
|
+
"path": "src/utils/svg/svgIconUtils.ts",
|
22937
23007
|
"declarations": [
|
22938
23008
|
{
|
22939
23009
|
"kind": "class",
|
22940
23010
|
"description": "",
|
22941
|
-
"name": "
|
23011
|
+
"name": "SVGIconUtils",
|
22942
23012
|
"members": [
|
22943
23013
|
{
|
22944
23014
|
"kind": "method",
|
22945
|
-
"name": "
|
22946
|
-
"privacy": "public",
|
22947
|
-
"static": true,
|
22948
|
-
"parameters": [
|
22949
|
-
{
|
22950
|
-
"name": "deepChat",
|
22951
|
-
"type": {
|
22952
|
-
"text": "DeepChat"
|
22953
|
-
}
|
22954
|
-
},
|
22955
|
-
{
|
22956
|
-
"name": "message",
|
22957
|
-
"type": {
|
22958
|
-
"text": "MessageContent"
|
22959
|
-
}
|
22960
|
-
},
|
22961
|
-
{
|
22962
|
-
"name": "isInitial",
|
22963
|
-
"type": {
|
22964
|
-
"text": "boolean"
|
22965
|
-
}
|
22966
|
-
}
|
22967
|
-
]
|
22968
|
-
},
|
22969
|
-
{
|
22970
|
-
"kind": "method",
|
22971
|
-
"name": "onClearMessages",
|
23015
|
+
"name": "createSVGElement",
|
22972
23016
|
"privacy": "public",
|
22973
23017
|
"static": true,
|
22974
|
-
"
|
22975
|
-
{
|
22976
|
-
"
|
22977
|
-
"type": {
|
22978
|
-
"text": "DeepChat"
|
22979
|
-
}
|
23018
|
+
"return": {
|
23019
|
+
"type": {
|
23020
|
+
"text": "SVGGraphicsElement"
|
22980
23021
|
}
|
22981
|
-
|
22982
|
-
},
|
22983
|
-
{
|
22984
|
-
"kind": "method",
|
22985
|
-
"name": "onRender",
|
22986
|
-
"privacy": "public",
|
22987
|
-
"static": true,
|
23022
|
+
},
|
22988
23023
|
"parameters": [
|
22989
23024
|
{
|
22990
|
-
"name": "
|
23025
|
+
"name": "svgString",
|
22991
23026
|
"type": {
|
22992
|
-
"text": "
|
23027
|
+
"text": "string"
|
22993
23028
|
}
|
22994
23029
|
}
|
22995
23030
|
]
|
@@ -23000,10 +23035,10 @@
|
|
23000
23035
|
"exports": [
|
23001
23036
|
{
|
23002
23037
|
"kind": "js",
|
23003
|
-
"name": "
|
23038
|
+
"name": "SVGIconUtils",
|
23004
23039
|
"declaration": {
|
23005
|
-
"name": "
|
23006
|
-
"module": "src/utils/
|
23040
|
+
"name": "SVGIconUtils",
|
23041
|
+
"module": "src/utils/svg/svgIconUtils.ts"
|
23007
23042
|
}
|
23008
23043
|
}
|
23009
23044
|
]
|
@@ -23032,48 +23067,6 @@
|
|
23032
23067
|
}
|
23033
23068
|
]
|
23034
23069
|
},
|
23035
|
-
{
|
23036
|
-
"kind": "javascript-module",
|
23037
|
-
"path": "src/utils/svg/svgIconUtils.ts",
|
23038
|
-
"declarations": [
|
23039
|
-
{
|
23040
|
-
"kind": "class",
|
23041
|
-
"description": "",
|
23042
|
-
"name": "SVGIconUtils",
|
23043
|
-
"members": [
|
23044
|
-
{
|
23045
|
-
"kind": "method",
|
23046
|
-
"name": "createSVGElement",
|
23047
|
-
"privacy": "public",
|
23048
|
-
"static": true,
|
23049
|
-
"return": {
|
23050
|
-
"type": {
|
23051
|
-
"text": "SVGGraphicsElement"
|
23052
|
-
}
|
23053
|
-
},
|
23054
|
-
"parameters": [
|
23055
|
-
{
|
23056
|
-
"name": "svgString",
|
23057
|
-
"type": {
|
23058
|
-
"text": "string"
|
23059
|
-
}
|
23060
|
-
}
|
23061
|
-
]
|
23062
|
-
}
|
23063
|
-
]
|
23064
|
-
}
|
23065
|
-
],
|
23066
|
-
"exports": [
|
23067
|
-
{
|
23068
|
-
"kind": "js",
|
23069
|
-
"name": "SVGIconUtils",
|
23070
|
-
"declaration": {
|
23071
|
-
"name": "SVGIconUtils",
|
23072
|
-
"module": "src/utils/svg/svgIconUtils.ts"
|
23073
|
-
}
|
23074
|
-
}
|
23075
|
-
]
|
23076
|
-
},
|
23077
23070
|
{
|
23078
23071
|
"kind": "javascript-module",
|
23079
23072
|
"path": "src/utils/webComponent/googleFont.ts",
|