diff --git a/component/custom-elements.json b/component/custom-elements.json index 28d675c49..b60583511 100644 --- a/component/custom-elements.json +++ b/component/custom-elements.json @@ -480,54 +480,6 @@ } ] }, - { - "kind": "javascript-module", - "path": "src/services/serviceIO.ts", - "declarations": [], - "exports": [] - }, - { - "kind": "javascript-module", - "path": "src/services/serviceIOFactory.ts", - "declarations": [ - { - "kind": "class", - "description": "", - "name": "ServiceIOFactory", - "members": [ - { - "kind": "method", - "name": "create", - "privacy": "public", - "static": true, - "return": { - "type": { - "text": "ServiceIO" - } - }, - "parameters": [ - { - "name": "deepChat", - "type": { - "text": "DeepChat" - } - } - ] - } - ] - } - ], - "exports": [ - { - "kind": "js", - "name": "ServiceIOFactory", - "declaration": { - "name": "ServiceIOFactory", - "module": "src/services/serviceIOFactory.ts" - } - } - ] - }, { "kind": "javascript-module", "path": "src/icons/audioIcon.ts", @@ -885,6 +837,54 @@ } ] }, + { + "kind": "javascript-module", + "path": "src/services/serviceIO.ts", + "declarations": [], + "exports": [] + }, + { + "kind": "javascript-module", + "path": "src/services/serviceIOFactory.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "ServiceIOFactory", + "members": [ + { + "kind": "method", + "name": "create", + "privacy": "public", + "static": true, + "return": { + "type": { + "text": "ServiceIO" + } + }, + "parameters": [ + { + "name": "deepChat", + "type": { + "text": "DeepChat" + } + } + ] + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "ServiceIOFactory", + "declaration": { + "name": "ServiceIOFactory", + "module": "src/services/serviceIOFactory.ts" + } + } + ] + }, { "kind": "javascript-module", "path": "src/types/APIKey.ts", @@ -1071,6 +1071,12 @@ "declarations": [], "exports": [] }, + { + "kind": "javascript-module", + "path": "src/types/messagesInternal.ts", + "declarations": [], + "exports": [] + }, { "kind": "javascript-module", "path": "src/types/microphone.ts", @@ -1296,7 +1302,7 @@ { "name": "_", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -1667,7 +1673,7 @@ { "name": "messages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -1745,7 +1751,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -2175,7 +2181,7 @@ { "name": "messages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -2247,7 +2253,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -2282,7 +2288,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -2725,7 +2731,7 @@ { "name": "messages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -2797,7 +2803,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -2832,7 +2838,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -2991,7 +2997,7 @@ { "name": "_", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -3387,7 +3393,7 @@ { "name": "messages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -3465,7 +3471,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -3566,7 +3572,7 @@ { "name": "messages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } } ] @@ -3584,7 +3590,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } } ], @@ -4009,7 +4015,7 @@ { "name": "messages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -4087,7 +4093,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -4187,7 +4193,7 @@ { "name": "messages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } } ] @@ -4205,7 +4211,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } } ], @@ -4617,7 +4623,7 @@ { "name": "messages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -4695,7 +4701,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -4798,7 +4804,7 @@ { "name": "messages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } } ] @@ -4816,7 +4822,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } } ], @@ -5180,7 +5186,7 @@ { "name": "messages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -5258,7 +5264,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -5358,7 +5364,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } } ] @@ -5376,7 +5382,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } } ], @@ -5801,7 +5807,7 @@ { "name": "messages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -5879,7 +5885,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -6325,7 +6331,7 @@ { "name": "messages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -6397,7 +6403,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -6432,7 +6438,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -6530,7 +6536,7 @@ { "name": "messages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } } ] @@ -6548,7 +6554,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } } ], @@ -6972,7 +6978,7 @@ { "name": "messages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -7050,7 +7056,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -7127,7 +7133,7 @@ { "name": "messages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } } ] @@ -7145,7 +7151,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } } ], @@ -7569,7 +7575,7 @@ { "name": "messages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -7647,7 +7653,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -7779,7 +7785,7 @@ { "name": "__", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -7807,7 +7813,7 @@ { "name": "_", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -8240,7 +8246,7 @@ { "name": "messages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -8318,7 +8324,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -8471,7 +8477,7 @@ { "name": "__", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -8499,7 +8505,7 @@ { "name": "_", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -8932,7 +8938,7 @@ { "name": "messages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -9010,7 +9016,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -9103,7 +9109,7 @@ { "name": "messages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } } ] @@ -9121,7 +9127,7 @@ { "name": "messages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } } ], @@ -9259,7 +9265,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -9598,7 +9604,7 @@ { "name": "messages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -9676,7 +9682,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -9783,7 +9789,7 @@ { "name": "__", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -9811,7 +9817,7 @@ { "name": "_", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -10244,7 +10250,7 @@ { "name": "messages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -10322,7 +10328,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -10524,7 +10530,7 @@ { "name": "messages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -10553,7 +10559,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -10903,7 +10909,7 @@ { "name": "messages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -10981,7 +10987,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -11121,7 +11127,7 @@ { "name": "messages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -11146,7 +11152,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -11496,7 +11502,7 @@ { "name": "messages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -11574,7 +11580,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -11727,7 +11733,7 @@ { "name": "__", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -11755,7 +11761,7 @@ { "name": "_", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -12188,7 +12194,7 @@ { "name": "messages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -12266,7 +12272,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -12384,7 +12390,7 @@ { "name": "messages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } } ], @@ -12498,7 +12504,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -12848,7 +12854,7 @@ { "name": "messages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -12926,7 +12932,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -13107,7 +13113,7 @@ { "name": "messages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -13136,7 +13142,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -13486,7 +13492,7 @@ { "name": "messages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -13564,7 +13570,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -13745,7 +13751,7 @@ { "name": "messages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -13774,7 +13780,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -14124,7 +14130,7 @@ { "name": "messages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -14202,7 +14208,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -14383,7 +14389,7 @@ { "name": "messages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -14412,7 +14418,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -14762,7 +14768,7 @@ { "name": "messages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -14840,7 +14846,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -15005,7 +15011,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -15031,7 +15037,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -15057,7 +15063,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -15082,7 +15088,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -15106,7 +15112,7 @@ { "name": "messages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } } ] @@ -15530,7 +15536,7 @@ { "name": "messages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -15608,7 +15614,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -15769,7 +15775,7 @@ { "name": "message", "type": { - "text": "MessageContent" + "text": "MessageContentI" } } ] @@ -15788,7 +15794,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } } ] @@ -15806,7 +15812,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } } ], @@ -16225,7 +16231,7 @@ { "name": "messages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -16303,7 +16309,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -16525,7 +16531,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -16549,7 +16555,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -16920,7 +16926,7 @@ { "name": "messages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -16998,7 +17004,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -17237,7 +17243,7 @@ { "name": "messages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } } ] @@ -17255,7 +17261,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -17638,7 +17644,7 @@ { "name": "messages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -17716,7 +17722,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -17867,7 +17873,7 @@ { "name": "messages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } } ] @@ -17885,7 +17891,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } } ], @@ -18265,7 +18271,7 @@ { "name": "messages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -18343,7 +18349,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -18773,7 +18779,7 @@ { "name": "messages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -18845,7 +18851,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -18880,7 +18886,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -19069,7 +19075,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -19476,7 +19482,7 @@ { "name": "messages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -19554,7 +19560,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -19737,7 +19743,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -20144,7 +20150,7 @@ { "name": "messages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -20222,7 +20228,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -20375,7 +20381,7 @@ { "name": "_", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -20782,7 +20788,7 @@ { "name": "messages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -20860,7 +20866,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -21015,7 +21021,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } } ], @@ -21415,7 +21421,7 @@ { "name": "messages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -21493,7 +21499,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -21718,7 +21724,7 @@ { "name": "messages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -21778,7 +21784,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -21809,7 +21815,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -22205,7 +22211,7 @@ { "name": "messages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -22277,7 +22283,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -22312,7 +22318,7 @@ { "name": "pMessages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -22406,7 +22412,7 @@ { "name": "messages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -22426,7 +22432,7 @@ { "name": "messages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -22446,7 +22452,7 @@ { "name": "messages", "type": { - "text": "MessageContent[]" + "text": "MessageContentI[]" } }, { @@ -22774,295 +22780,400 @@ }, { "kind": "javascript-module", - "path": "src/utils/HTTP/HTTPRequest.ts", + "path": "src/views/chat/chatView.ts", "declarations": [ { "kind": "class", "description": "", - "name": "HTTPRequest", + "name": "ChatView", "members": [ { "kind": "method", - "name": "request", - "privacy": "public", + "name": "createElements", + "privacy": "private", "static": true, "parameters": [ { - "name": "io", + "name": "deepChat", "type": { - "text": "ServiceIO" + "text": "DeepChat" } }, { - "name": "body", + "name": "serviceIO", "type": { - "text": "object" + "text": "ServiceIO" } }, { - "name": "messages", + "name": "panel", + "optional": true, "type": { - "text": "Messages" + "text": "HTMLElement" } - }, - { - "name": "stringifyBody", - "default": "true" } ] }, { "kind": "method", - "name": "executePollRequest", + "name": "render", "privacy": "public", "static": true, "parameters": [ { - "name": "io", + "name": "deepChat", "type": { - "text": "ServiceIO" + "text": "DeepChat" } }, { - "name": "url", + "name": "containerRef", "type": { - "text": "string" + "text": "HTMLElement" } }, { - "name": "requestInit", + "name": "serviceIO", "type": { - "text": "RequestInit" + "text": "ServiceIO" } }, { - "name": "messages", + "name": "panel", + "optional": true, "type": { - "text": "Messages" + "text": "HTMLElement" } } ] - }, + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "ChatView", + "declaration": { + "name": "ChatView", + "module": "src/views/chat/chatView.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/views/error/errorView.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "ErrorView", + "members": [ { "kind": "method", - "name": "poll", + "name": "render", "privacy": "public", "static": true, "parameters": [ { - "name": "io", - "type": { - "text": "ServiceIO" - } - }, - { - "name": "body", + "name": "containerElement", "type": { - "text": "object" + "text": "HTMLElement" } }, { - "name": "messages", + "name": "text", "type": { - "text": "Messages" + "text": "string" } - }, - { - "name": "stringifyBody", - "default": "true" } ] + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "ErrorView", + "declaration": { + "name": "ErrorView", + "module": "src/views/error/errorView.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/views/insertKey/insertKeyView.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "InsertKeyView", + "members": [ + { + "kind": "method", + "name": "createCautionText", + "privacy": "private", + "static": true }, { "kind": "method", - "name": "onInterceptorError", + "name": "createHelpLink", "privacy": "private", "static": true, "parameters": [ { - "name": "messages", - "type": { - "text": "Messages" - } - }, - { - "name": "error", + "name": "link", "type": { "text": "string" } - }, - { - "name": "onFinish", - "optional": true, - "type": { - "text": "() => void" - } } ] }, { "kind": "method", - "name": "verifyKey", - "privacy": "public", + "name": "createFailText", + "privacy": "private", + "static": true + }, + { + "kind": "method", + "name": "createHelpTextContainer", + "privacy": "private", "static": true, "parameters": [ { - "name": "key", - "type": { - "text": "string" - } - }, - { - "name": "url", + "name": "link", + "optional": true, "type": { "text": "string" } }, { - "name": "headers", - "type": { - "text": "HeadersInit" - } - }, + "name": "displayCaution", + "default": "true" + } + ] + }, + { + "kind": "method", + "name": "onFail", + "privacy": "private", + "static": true, + "parameters": [ { - "name": "method", + "name": "inputEl", "type": { - "text": "string" + "text": "HTMLInputElement" } }, { - "name": "onSuccess", + "name": "startEl", "type": { - "text": "(key: string) => void" + "text": "HTMLElement" } }, { - "name": "onFail", + "name": "failTextEl", "type": { - "text": "(message: string) => void" + "text": "HTMLElement" } }, { - "name": "onLoad", + "name": "message", "type": { - "text": "() => void" + "text": "string" } - }, + } + ] + }, + { + "kind": "method", + "name": "onLoad", + "privacy": "private", + "static": true, + "parameters": [ { - "name": "handleVerificationResult", + "name": "inputEl", "type": { - "text": "HandleVerificationResult" + "text": "HTMLInputElement" } }, { - "name": "body", - "optional": true, + "name": "startEl", "type": { - "text": "string" + "text": "HTMLElement" } } ] - } - ] - } - ], - "exports": [ - { - "kind": "js", - "name": "HTTPRequest", - "declaration": { - "name": "HTTPRequest", - "module": "src/utils/HTTP/HTTPRequest.ts" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "src/utils/HTTP/customHandler.ts", - "declarations": [ - { - "kind": "class", - "description": "", - "name": "CustomHandler", - "members": [ + }, { "kind": "method", - "name": "request", - "privacy": "public", + "name": "verifyKey", + "privacy": "private", "static": true, "parameters": [ { - "name": "io", + "name": "inputElement", "type": { - "text": "ServiceIO" + "text": "HTMLInputElement" } }, { - "name": "body", + "name": "keyVerificationHandlers", "type": { - "text": "RequestDetails['body']" + "text": "KeyVerificationHandlers" } }, { - "name": "messages", + "name": "serviceIO", "type": { - "text": "Messages" + "text": "ServiceIO" } } ] }, { "kind": "method", - "name": "stream", - "privacy": "public", + "name": "addVerificationEvents", + "privacy": "private", "static": true, "parameters": [ { - "name": "io", + "name": "inputEl", "type": { - "text": "ServiceIO" + "text": "HTMLInputElement" } }, { - "name": "body", + "name": "startEl", "type": { - "text": "RequestDetails['body']" + "text": "HTMLElement" } }, { - "name": "messages", + "name": "failTextEl", "type": { - "text": "Messages" + "text": "HTMLElement" } - } - ] - }, - { - "kind": "method", - "name": "websocket", - "privacy": "public", - "static": true, - "parameters": [ + }, { - "name": "io", + "name": "changeToChat", "type": { - "text": "ServiceIO" + "text": "() => void" } }, { - "name": "messages", + "name": "serviceIO", "type": { - "text": "Messages" + "text": "ServiceIO" } } ] }, { "kind": "method", - "name": "generateOptionalSignals", + "name": "createStartButton", "privacy": "private", "static": true + }, + { + "kind": "method", + "name": "onInputFocus", + "privacy": "private", + "static": true, + "parameters": [ + { + "name": "event", + "type": { + "text": "FocusEvent" + } + } + ] + }, + { + "kind": "method", + "name": "createInput", + "privacy": "private", + "static": true, + "parameters": [ + { + "name": "placeholderText", + "optional": true, + "type": { + "text": "string" + } + } + ] + }, + { + "kind": "method", + "name": "createContents", + "privacy": "private", + "static": true, + "parameters": [ + { + "name": "changeToChat", + "type": { + "text": "() => void" + } + }, + { + "name": "serviceIO", + "type": { + "text": "ServiceIO" + } + } + ] + }, + { + "kind": "method", + "name": "createElements", + "privacy": "private", + "static": true, + "parameters": [ + { + "name": "changeToChat", + "type": { + "text": "() => void" + } + }, + { + "name": "serviceIO", + "type": { + "text": "ServiceIO" + } + } + ] + }, + { + "kind": "method", + "name": "render", + "privacy": "public", + "static": true, + "parameters": [ + { + "name": "containerRef", + "type": { + "text": "HTMLElement" + } + }, + { + "name": "changeToChat", + "type": { + "text": "() => void" + } + }, + { + "name": "serviceIO", + "type": { + "text": "ServiceIO" + } + } + ] } ] } @@ -23070,164 +23181,164 @@ "exports": [ { "kind": "js", - "name": "CustomHandler", + "name": "InsertKeyView", "declaration": { - "name": "CustomHandler", - "module": "src/utils/HTTP/customHandler.ts" + "name": "InsertKeyView", + "module": "src/views/insertKey/insertKeyView.ts" } } ] }, { "kind": "javascript-module", - "path": "src/utils/HTTP/requestUtils.ts", + "path": "src/views/insertKey/visibilityIcon.ts", "declarations": [ { "kind": "class", "description": "", - "name": "RequestUtils", + "name": "VisibilityIcon", "members": [ { "kind": "field", - "name": "CONTENT_TYPE", + "name": "VISIBLE_ICON_ID", "type": { "text": "string" }, - "privacy": "public", + "privacy": "private", "static": true, - "default": "'Content-Type'" + "default": "'visible-icon'" }, { "kind": "method", - "name": "tempRemoveContentHeader", - "privacy": "public", + "name": "changeVisibility", + "privacy": "private", "static": true, "parameters": [ { - "name": "requestSettings", + "name": "inputElement", "type": { - "text": "Request | undefined" + "text": "HTMLInputElement" } }, { - "name": "request", + "name": "visibleIcon", "type": { - "text": "(stringifyBody?: boolean) => Promise" + "text": "SVGGraphicsElement" } }, { - "name": "stringifyBody", + "name": "notVisibleIcon", "type": { - "text": "boolean" + "text": "SVGGraphicsElement" + } + }, + { + "name": "event", + "type": { + "text": "MouseEvent" } } ] }, { "kind": "method", - "name": "displayError", - "privacy": "public", + "name": "createIconElement", + "privacy": "private", "static": true, "parameters": [ { - "name": "messages", + "name": "iconString", "type": { - "text": "Messages" + "text": "string" } }, { - "name": "err", + "name": "id", "type": { - "text": "object" + "text": "string" } - }, - { - "name": "defMessage", - "default": "'Service error, please try again.'" } ] }, { "kind": "method", - "name": "fetch", + "name": "create", "privacy": "public", "static": true, "parameters": [ { - "name": "io", - "type": { - "text": "ServiceIO" - } - }, - { - "name": "headers", - "type": { - "text": "GenericObject | undefined" - } - }, - { - "name": "stringifyBody", - "type": { - "text": "boolean" - } - }, - { - "name": "body", + "name": "inputElement", "type": { - "text": "any" + "text": "HTMLInputElement" } } ] - }, + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "VisibilityIcon", + "declaration": { + "name": "VisibilityIcon", + "module": "src/views/insertKey/visibilityIcon.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/views/validateKeyProperty/validateKeyPropertyView.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "ValidateKeyPropertyView", + "members": [ { "kind": "method", - "name": "processResponseByType", - "privacy": "public", + "name": "onLoad", + "privacy": "private", "static": true, "parameters": [ { - "name": "response", + "name": "startElement", "type": { - "text": "Response" + "text": "HTMLElement" } } ] }, { "kind": "method", - "name": "processRequestInterceptor", + "name": "createElements", + "privacy": "private", + "static": true + }, + { + "kind": "method", + "name": "render", "privacy": "public", "static": true, - "return": { - "type": { - "text": "InterceptorResult" - } - }, "parameters": [ { - "name": "deepChat", + "name": "containerRef", "type": { - "text": "DeepChat" + "text": "HTMLElement" } }, { - "name": "requestDetails", + "name": "changeToChat", "type": { - "text": "RequestDetails" + "text": "() => void" } - } - ] - }, - { - "kind": "method", - "name": "validateResponseFormat", - "privacy": "public", - "static": true, - "parameters": [ + }, { - "name": "response", + "name": "serviceIO", "type": { - "text": "ResponseT" + "text": "ServiceIO" } } ] @@ -23238,22 +23349,22 @@ "exports": [ { "kind": "js", - "name": "RequestUtils", + "name": "ValidateKeyPropertyView", "declaration": { - "name": "RequestUtils", - "module": "src/utils/HTTP/requestUtils.ts" + "name": "ValidateKeyPropertyView", + "module": "src/views/validateKeyProperty/validateKeyPropertyView.ts" } } ] }, { "kind": "javascript-module", - "path": "src/utils/HTTP/stream.ts", + "path": "src/utils/HTTP/HTTPRequest.ts", "declarations": [ { "kind": "class", "description": "", - "name": "Stream", + "name": "HTTPRequest", "members": [ { "kind": "method", @@ -23287,76 +23398,72 @@ }, { "kind": "method", - "name": "onInterceptorError", - "privacy": "private", + "name": "executePollRequest", + "privacy": "public", "static": true, "parameters": [ { - "name": "messages", + "name": "io", "type": { - "text": "Messages" + "text": "ServiceIO" } }, { - "name": "error", + "name": "url", "type": { "text": "string" } }, { - "name": "onFinish", - "optional": true, + "name": "requestInit", "type": { - "text": "() => void" + "text": "RequestInit" + } + }, + { + "name": "messages", + "type": { + "text": "Messages" } } ] }, { "kind": "method", - "name": "simulate", + "name": "poll", "privacy": "public", "static": true, "parameters": [ { - "name": "messages", + "name": "io", "type": { - "text": "Messages" + "text": "ServiceIO" } }, { - "name": "sh", + "name": "body", "type": { - "text": "StreamHandlers" + "text": "object" } }, { - "name": "text", - "optional": true, + "name": "messages", "type": { - "text": "string" + "text": "Messages" } + }, + { + "name": "stringifyBody", + "default": "true" } ] }, { "kind": "method", - "name": "populateMessages", + "name": "onInterceptorError", "privacy": "private", "static": true, "parameters": [ - { - "name": "textEl", - "type": { - "text": "HTMLElement" - } - }, - { - "name": "responseText", - "type": { - "text": "string[]" - } - }, { "name": "messages", "type": { @@ -23364,40 +23471,80 @@ } }, { - "name": "sh", + "name": "error", "type": { - "text": "SimulationSH" + "text": "string" } }, { - "name": "wordIndex", - "default": "0" + "name": "onFinish", + "optional": true, + "type": { + "text": "() => void" + } } ] }, { "kind": "method", - "name": "abort", - "privacy": "private", + "name": "verifyKey", + "privacy": "public", "static": true, "parameters": [ { - "name": "timeout", + "name": "key", "type": { - "text": "number" + "text": "string" } }, { - "name": "messages", + "name": "url", "type": { - "text": "Messages" + "text": "string" } }, { - "name": "onClose", + "name": "headers", + "type": { + "text": "HeadersInit" + } + }, + { + "name": "method", + "type": { + "text": "string" + } + }, + { + "name": "onSuccess", + "type": { + "text": "(key: string) => void" + } + }, + { + "name": "onFail", + "type": { + "text": "(message: string) => void" + } + }, + { + "name": "onLoad", "type": { "text": "() => void" } + }, + { + "name": "handleVerificationResult", + "type": { + "text": "HandleVerificationResult" + } + }, + { + "name": "body", + "optional": true, + "type": { + "text": "string" + } } ] } @@ -23407,26 +23554,26 @@ "exports": [ { "kind": "js", - "name": "Stream", + "name": "HTTPRequest", "declaration": { - "name": "Stream", - "module": "src/utils/HTTP/stream.ts" + "name": "HTTPRequest", + "module": "src/utils/HTTP/HTTPRequest.ts" } } ] }, { "kind": "javascript-module", - "path": "src/utils/HTTP/websocket.ts", + "path": "src/utils/HTTP/customHandler.ts", "declarations": [ { "kind": "class", "description": "", - "name": "Websocket", + "name": "CustomHandler", "members": [ { "kind": "method", - "name": "setup", + "name": "request", "privacy": "public", "static": true, "parameters": [ @@ -23435,12 +23582,24 @@ "type": { "text": "ServiceIO" } + }, + { + "name": "body", + "type": { + "text": "RequestDetails['body']" + } + }, + { + "name": "messages", + "type": { + "text": "Messages" + } } ] }, { "kind": "method", - "name": "createConnection", + "name": "stream", "privacy": "public", "static": true, "parameters": [ @@ -23450,6 +23609,12 @@ "text": "ServiceIO" } }, + { + "name": "body", + "type": { + "text": "RequestDetails['body']" + } + }, { "name": "messages", "type": { @@ -23460,8 +23625,8 @@ }, { "kind": "method", - "name": "retryConnection", - "privacy": "private", + "name": "websocket", + "privacy": "public", "static": true, "parameters": [ { @@ -23480,33 +23645,96 @@ }, { "kind": "method", - "name": "assignListeners", + "name": "generateOptionalSignals", "privacy": "private", + "static": true + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "CustomHandler", + "declaration": { + "name": "CustomHandler", + "module": "src/utils/HTTP/customHandler.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/utils/HTTP/requestUtils.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "RequestUtils", + "members": [ + { + "kind": "field", + "name": "CONTENT_TYPE", + "type": { + "text": "string" + }, + "privacy": "public", + "static": true, + "default": "'Content-Type'" + }, + { + "kind": "method", + "name": "tempRemoveContentHeader", + "privacy": "public", "static": true, "parameters": [ { - "name": "io", + "name": "requestSettings", "type": { - "text": "ServiceIO" + "text": "Request | undefined" } }, { - "name": "ws", + "name": "request", "type": { - "text": "WebSocket" + "text": "(stringifyBody?: boolean) => Promise" } }, + { + "name": "stringifyBody", + "type": { + "text": "boolean" + } + } + ] + }, + { + "kind": "method", + "name": "displayError", + "privacy": "public", + "static": true, + "parameters": [ { "name": "messages", "type": { "text": "Messages" } + }, + { + "name": "err", + "type": { + "text": "object" + } + }, + { + "name": "defMessage", + "default": "'Service error, please try again.'" } ] }, { "kind": "method", - "name": "sendWebsocket", + "name": "fetch", "privacy": "public", "static": true, "parameters": [ @@ -23517,54 +23745,410 @@ } }, { - "name": "body", + "name": "headers", "type": { - "text": "object" + "text": "GenericObject | undefined" } }, { - "name": "messages", + "name": "stringifyBody", "type": { - "text": "Messages" + "text": "boolean" } }, { - "name": "stringifyBody", - "default": "true" + "name": "body", + "type": { + "text": "any" + } } ] }, { "kind": "method", - "name": "canSendMessage", + "name": "processResponseByType", "privacy": "public", "static": true, "parameters": [ { - "name": "websocket", + "name": "response", "type": { - "text": "ServiceIO['websocket']" + "text": "Response" } } ] }, { "kind": "method", - "name": "isWebSocket", - "privacy": "private", + "name": "processRequestInterceptor", + "privacy": "public", "static": true, "return": { "type": { - "text": "websocket is WebSocket" + "text": "InterceptorResult" } }, "parameters": [ { - "name": "websocket", + "name": "deepChat", "type": { - "text": "WebSocket | IWebsocketHandler" + "text": "DeepChat" } - } + }, + { + "name": "requestDetails", + "type": { + "text": "RequestDetails" + } + } + ] + }, + { + "kind": "method", + "name": "validateResponseFormat", + "privacy": "public", + "static": true, + "parameters": [ + { + "name": "response", + "type": { + "text": "ResponseT" + } + } + ] + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "RequestUtils", + "declaration": { + "name": "RequestUtils", + "module": "src/utils/HTTP/requestUtils.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/utils/HTTP/stream.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "Stream", + "members": [ + { + "kind": "method", + "name": "request", + "privacy": "public", + "static": true, + "parameters": [ + { + "name": "io", + "type": { + "text": "ServiceIO" + } + }, + { + "name": "body", + "type": { + "text": "object" + } + }, + { + "name": "messages", + "type": { + "text": "Messages" + } + }, + { + "name": "stringifyBody", + "default": "true" + } + ] + }, + { + "kind": "method", + "name": "onInterceptorError", + "privacy": "private", + "static": true, + "parameters": [ + { + "name": "messages", + "type": { + "text": "Messages" + } + }, + { + "name": "error", + "type": { + "text": "string" + } + }, + { + "name": "onFinish", + "optional": true, + "type": { + "text": "() => void" + } + } + ] + }, + { + "kind": "method", + "name": "simulate", + "privacy": "public", + "static": true, + "parameters": [ + { + "name": "messages", + "type": { + "text": "Messages" + } + }, + { + "name": "sh", + "type": { + "text": "StreamHandlers" + } + }, + { + "name": "result", + "type": { + "text": "DResponse" + } + } + ] + }, + { + "kind": "method", + "name": "populateMessages", + "privacy": "private", + "static": true, + "parameters": [ + { + "name": "textEl", + "type": { + "text": "HTMLElement" + } + }, + { + "name": "responseText", + "type": { + "text": "string[]" + } + }, + { + "name": "messages", + "type": { + "text": "Messages" + } + }, + { + "name": "sh", + "type": { + "text": "SimulationSH" + } + }, + { + "name": "wordIndex", + "default": "0" + } + ] + }, + { + "kind": "method", + "name": "abort", + "privacy": "private", + "static": true, + "parameters": [ + { + "name": "timeout", + "type": { + "text": "number" + } + }, + { + "name": "messages", + "type": { + "text": "Messages" + } + }, + { + "name": "onClose", + "type": { + "text": "() => void" + } + } + ] + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "Stream", + "declaration": { + "name": "Stream", + "module": "src/utils/HTTP/stream.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/utils/HTTP/websocket.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "Websocket", + "members": [ + { + "kind": "method", + "name": "setup", + "privacy": "public", + "static": true, + "parameters": [ + { + "name": "io", + "type": { + "text": "ServiceIO" + } + } + ] + }, + { + "kind": "method", + "name": "createConnection", + "privacy": "public", + "static": true, + "parameters": [ + { + "name": "io", + "type": { + "text": "ServiceIO" + } + }, + { + "name": "messages", + "type": { + "text": "Messages" + } + } + ] + }, + { + "kind": "method", + "name": "retryConnection", + "privacy": "private", + "static": true, + "parameters": [ + { + "name": "io", + "type": { + "text": "ServiceIO" + } + }, + { + "name": "messages", + "type": { + "text": "Messages" + } + } + ] + }, + { + "kind": "method", + "name": "assignListeners", + "privacy": "private", + "static": true, + "parameters": [ + { + "name": "io", + "type": { + "text": "ServiceIO" + } + }, + { + "name": "ws", + "type": { + "text": "WebSocket" + } + }, + { + "name": "messages", + "type": { + "text": "Messages" + } + } + ] + }, + { + "kind": "method", + "name": "sendWebsocket", + "privacy": "public", + "static": true, + "parameters": [ + { + "name": "io", + "type": { + "text": "ServiceIO" + } + }, + { + "name": "body", + "type": { + "text": "object" + } + }, + { + "name": "messages", + "type": { + "text": "Messages" + } + }, + { + "name": "stringifyBody", + "default": "true" + } + ] + }, + { + "kind": "method", + "name": "canSendMessage", + "privacy": "public", + "static": true, + "parameters": [ + { + "name": "websocket", + "type": { + "text": "ServiceIO['websocket']" + } + } + ] + }, + { + "kind": "method", + "name": "isWebSocket", + "privacy": "private", + "static": true, + "return": { + "type": { + "text": "websocket is WebSocket" + } + }, + "parameters": [ + { + "name": "websocket", + "type": { + "text": "WebSocket | IWebsocketHandler" + } + } ] } ] @@ -23932,7 +24516,7 @@ { "name": "requestMessage", "type": { - "text": "MessageContent" + "text": "MessageContentI" } } ] @@ -24466,7 +25050,7 @@ { "name": "message", "type": { - "text": "MessageContent" + "text": "MessageContentI" } }, { @@ -24519,6 +25103,91 @@ } ] }, + { + "kind": "javascript-module", + "path": "src/utils/legacy/legacy.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "Legacy", + "members": [ + { + "kind": "method", + "name": "checkForContainerStyles", + "privacy": "public", + "static": true, + "parameters": [ + { + "name": "deepChat", + "type": { + "text": "DeepChat" + } + }, + { + "name": "containerRef", + "type": { + "text": "HTMLElement" + } + } + ] + }, + { + "kind": "method", + "name": "handleResponseProperty", + "privacy": "public", + "static": true, + "parameters": [ + { + "name": "result", + "type": { + "text": "any | Response" + } + } + ] + }, + { + "kind": "method", + "name": "processInitialMessageFile", + "privacy": "public", + "static": true, + "parameters": [ + { + "name": "message", + "type": { + "text": "MessageContent" + } + } + ] + }, + { + "kind": "method", + "name": "processValidateInput", + "privacy": "public", + "static": true, + "parameters": [ + { + "name": "deepChat", + "type": { + "text": "DeepChat" + } + } + ] + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "Legacy", + "declaration": { + "name": "Legacy", + "module": "src/utils/legacy/legacy.ts" + } + } + ] + }, { "kind": "javascript-module", "path": "src/utils/files/fileTypeButtonIcons.ts", @@ -24585,6 +25254,48 @@ } ] }, + { + "kind": "javascript-module", + "path": "src/utils/svg/svgIconUtils.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "SVGIconUtils", + "members": [ + { + "kind": "method", + "name": "createSVGElement", + "privacy": "public", + "static": true, + "return": { + "type": { + "text": "SVGGraphicsElement" + } + }, + "parameters": [ + { + "name": "svgString", + "type": { + "text": "string" + } + } + ] + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "SVGIconUtils", + "declaration": { + "name": "SVGIconUtils", + "module": "src/utils/svg/svgIconUtils.ts" + } + } + ] + }, { "kind": "javascript-module", "path": "src/utils/webComponent/googleFont.ts", @@ -24818,115 +25529,89 @@ }, { "kind": "javascript-module", - "path": "src/views/chat/chatView.ts", + "path": "src/services/assemblyAI/utils/assemblyAIUtils.ts", "declarations": [ { "kind": "class", "description": "", - "name": "ChatView", + "name": "AssemblyAIUtils", "members": [ { "kind": "method", - "name": "createElements", - "privacy": "private", + "name": "poll", + "privacy": "public", "static": true, "parameters": [ { - "name": "deepChat", + "name": "api_token", "type": { - "text": "DeepChat" + "text": "string" } }, { - "name": "serviceIO", + "name": "audio_url", "type": { - "text": "ServiceIO" + "text": "string" } - }, + } + ] + }, + { + "kind": "method", + "name": "buildHeaders", + "privacy": "public", + "static": true, + "parameters": [ { - "name": "panel", - "optional": true, + "name": "key", "type": { - "text": "HTMLElement" + "text": "string" } } ] }, { "kind": "method", - "name": "render", - "privacy": "public", + "name": "handleVerificationResult", + "privacy": "private", "static": true, "parameters": [ { - "name": "deepChat", + "name": "result", "type": { - "text": "DeepChat" + "text": "object" } }, { - "name": "containerRef", + "name": "key", "type": { - "text": "HTMLElement" + "text": "string" } }, { - "name": "serviceIO", + "name": "onSuccess", "type": { - "text": "ServiceIO" + "text": "(key: string) => void" } }, { - "name": "panel", - "optional": true, + "name": "onFail", "type": { - "text": "HTMLElement" + "text": "(message: string) => void" } } ] - } - ] - } - ], - "exports": [ - { - "kind": "js", - "name": "ChatView", - "declaration": { - "name": "ChatView", - "module": "src/views/chat/chatView.ts" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "src/views/error/errorView.ts", - "declarations": [ - { - "kind": "class", - "description": "", - "name": "ErrorView", - "members": [ + }, { "kind": "method", - "name": "render", + "name": "buildKeyVerificationDetails", "privacy": "public", "static": true, - "parameters": [ - { - "name": "containerElement", - "type": { - "text": "HTMLElement" - } - }, - { - "name": "text", - "type": { - "text": "string" - } + "return": { + "type": { + "text": "KeyVerificationDetails" } - ] + } } ] } @@ -24934,340 +25619,356 @@ "exports": [ { "kind": "js", - "name": "ErrorView", + "name": "AssemblyAIUtils", "declaration": { - "name": "ErrorView", - "module": "src/views/error/errorView.ts" + "name": "AssemblyAIUtils", + "module": "src/services/assemblyAI/utils/assemblyAIUtils.ts" } } ] }, { "kind": "javascript-module", - "path": "src/utils/legacy/legacy.ts", + "path": "src/services/azure/utils/azureUtils.ts", "declarations": [ { "kind": "class", "description": "", - "name": "Legacy", + "name": "AzureUtils", "members": [ { "kind": "method", - "name": "checkForContainerStyles", + "name": "buildTextToSpeechHeaders", "privacy": "public", "static": true, "parameters": [ { - "name": "deepChat", + "name": "outputFormat", "type": { - "text": "DeepChat" + "text": "string" } }, { - "name": "containerRef", + "name": "key", "type": { - "text": "HTMLElement" + "text": "string" } } ] }, { "kind": "method", - "name": "handleResponseProperty", + "name": "buildSpeechToTextHeaders", "privacy": "public", "static": true, "parameters": [ { - "name": "result", + "name": "key", "type": { - "text": "any | Response" + "text": "string" } } ] }, { "kind": "method", - "name": "processInitialMessageFile", - "privacy": "public", + "name": "handleSpeechVerificationResult", + "privacy": "private", "static": true, "parameters": [ { - "name": "message", + "name": "result", "type": { - "text": "MessageContent" + "text": "object" + } + }, + { + "name": "key", + "type": { + "text": "string" + } + }, + { + "name": "onSuccess", + "type": { + "text": "(key: string) => void" + } + }, + { + "name": "onFail", + "type": { + "text": "(message: string) => void" } } ] }, { "kind": "method", - "name": "processValidateInput", + "name": "buildSpeechKeyVerificationDetails", "privacy": "public", "static": true, + "return": { + "type": { + "text": "KeyVerificationDetails" + } + }, "parameters": [ { - "name": "deepChat", + "name": "region", "type": { - "text": "DeepChat" + "text": "string" } } ] - } - ] - } - ], - "exports": [ - { - "kind": "js", - "name": "Legacy", - "declaration": { - "name": "Legacy", - "module": "src/utils/legacy/legacy.ts" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "src/utils/svg/svgIconUtils.ts", - "declarations": [ - { - "kind": "class", - "description": "", - "name": "SVGIconUtils", - "members": [ + }, { "kind": "method", - "name": "createSVGElement", + "name": "buildSummarizationHeader", "privacy": "public", "static": true, - "return": { - "type": { - "text": "SVGGraphicsElement" - } - }, "parameters": [ { - "name": "svgString", + "name": "key", "type": { "text": "string" } } ] - } - ] - } - ], - "exports": [ - { - "kind": "js", - "name": "SVGIconUtils", - "declaration": { - "name": "SVGIconUtils", - "module": "src/utils/svg/svgIconUtils.ts" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "src/views/insertKey/insertKeyView.ts", - "declarations": [ - { - "kind": "class", - "description": "", - "name": "InsertKeyView", - "members": [ - { - "kind": "method", - "name": "createCautionText", - "privacy": "private", - "static": true }, { "kind": "method", - "name": "createHelpLink", + "name": "handleLanguageVerificationResult", "privacy": "private", "static": true, "parameters": [ { - "name": "link", + "name": "result", + "type": { + "text": "object" + } + }, + { + "name": "key", "type": { "text": "string" } + }, + { + "name": "onSuccess", + "type": { + "text": "(key: string) => void" + } + }, + { + "name": "onFail", + "type": { + "text": "(message: string) => void" + } } ] }, { "kind": "method", - "name": "createFailText", - "privacy": "private", - "static": true - }, - { - "kind": "method", - "name": "createHelpTextContainer", - "privacy": "private", + "name": "buildLanguageKeyVerificationDetails", + "privacy": "public", "static": true, + "return": { + "type": { + "text": "KeyVerificationDetails" + } + }, "parameters": [ { - "name": "link", - "optional": true, + "name": "endpoint", "type": { "text": "string" } - }, - { - "name": "displayCaution", - "default": "true" } ] }, { "kind": "method", - "name": "onFail", + "name": "handleTranslationVerificationResult", "privacy": "private", "static": true, "parameters": [ { - "name": "inputEl", + "name": "result", "type": { - "text": "HTMLInputElement" + "text": "object" } }, { - "name": "startEl", + "name": "key", "type": { - "text": "HTMLElement" + "text": "string" } }, { - "name": "failTextEl", + "name": "onSuccess", "type": { - "text": "HTMLElement" + "text": "(key: string) => void" } }, { - "name": "message", + "name": "onFail", "type": { - "text": "string" + "text": "(message: string) => void" } } ] }, { "kind": "method", - "name": "onLoad", - "privacy": "private", + "name": "buildTranslationKeyVerificationDetails", + "privacy": "public", "static": true, + "return": { + "type": { + "text": "KeyVerificationDetails" + } + }, "parameters": [ { - "name": "inputEl", - "type": { - "text": "HTMLInputElement" - } - }, - { - "name": "startEl", + "name": "region", + "optional": true, "type": { - "text": "HTMLElement" + "text": "string" } } ] }, { "kind": "method", - "name": "verifyKey", - "privacy": "private", + "name": "buildTranslationHeaders", + "privacy": "public", "static": true, "parameters": [ { - "name": "inputElement", + "name": "region", "type": { - "text": "HTMLInputElement" + "text": "string | undefined" } }, { - "name": "keyVerificationHandlers", + "name": "key", "type": { - "text": "KeyVerificationHandlers" + "text": "string" } - }, + } + ] + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "AzureUtils", + "declaration": { + "name": "AzureUtils", + "module": "src/services/azure/utils/azureUtils.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/services/cohere/utils/cohereUtils.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "CohereUtils", + "members": [ + { + "kind": "method", + "name": "buildHeaders", + "privacy": "public", + "static": true, + "parameters": [ { - "name": "serviceIO", + "name": "key", "type": { - "text": "ServiceIO" + "text": "string" } } ] }, { "kind": "method", - "name": "addVerificationEvents", + "name": "handleVerificationResult", "privacy": "private", "static": true, "parameters": [ { - "name": "inputEl", - "type": { - "text": "HTMLInputElement" - } - }, - { - "name": "startEl", + "name": "result", "type": { - "text": "HTMLElement" + "text": "object" } }, { - "name": "failTextEl", + "name": "key", "type": { - "text": "HTMLElement" + "text": "string" } }, { - "name": "changeToChat", + "name": "onSuccess", "type": { - "text": "() => void" + "text": "(key: string) => void" } }, { - "name": "serviceIO", + "name": "onFail", "type": { - "text": "ServiceIO" + "text": "(message: string) => void" } } ] }, { "kind": "method", - "name": "createStartButton", - "privacy": "private", - "static": true - }, - { - "kind": "method", - "name": "onInputFocus", - "privacy": "private", + "name": "buildKeyVerificationDetails", + "privacy": "public", "static": true, - "parameters": [ - { - "name": "event", - "type": { - "text": "FocusEvent" - } + "return": { + "type": { + "text": "KeyVerificationDetails" } - ] - }, + } + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "CohereUtils", + "declaration": { + "name": "CohereUtils", + "module": "src/services/cohere/utils/cohereUtils.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/services/huggingFace/utils/huggingFaceUtils.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "HuggingFaceUtils", + "members": [ { "kind": "method", - "name": "createInput", - "privacy": "private", + "name": "buildHeaders", + "privacy": "public", "static": true, "parameters": [ { - "name": "placeholderText", - "optional": true, + "name": "key", "type": { "text": "string" } @@ -25276,69 +25977,46 @@ }, { "kind": "method", - "name": "createContents", + "name": "handleVerificationResult", "privacy": "private", "static": true, "parameters": [ { - "name": "changeToChat", + "name": "result", "type": { - "text": "() => void" + "text": "object" } }, { - "name": "serviceIO", + "name": "key", "type": { - "text": "ServiceIO" + "text": "string" } - } - ] - }, - { - "kind": "method", - "name": "createElements", - "privacy": "private", - "static": true, - "parameters": [ + }, { - "name": "changeToChat", + "name": "onSuccess", "type": { - "text": "() => void" + "text": "(key: string) => void" } }, { - "name": "serviceIO", + "name": "onFail", "type": { - "text": "ServiceIO" + "text": "(message: string) => void" } } ] }, { "kind": "method", - "name": "render", + "name": "buildKeyVerificationDetails", "privacy": "public", "static": true, - "parameters": [ - { - "name": "containerRef", - "type": { - "text": "HTMLElement" - } - }, - { - "name": "changeToChat", - "type": { - "text": "() => void" - } - }, - { - "name": "serviceIO", - "type": { - "text": "ServiceIO" - } + "return": { + "type": { + "text": "KeyVerificationDetails" } - ] + } } ] } @@ -25346,165 +26024,133 @@ "exports": [ { "kind": "js", - "name": "InsertKeyView", + "name": "HuggingFaceUtils", "declaration": { - "name": "InsertKeyView", - "module": "src/views/insertKey/insertKeyView.ts" + "name": "HuggingFaceUtils", + "module": "src/services/huggingFace/utils/huggingFaceUtils.ts" } } ] }, { "kind": "javascript-module", - "path": "src/views/insertKey/visibilityIcon.ts", + "path": "src/services/openAI/utils/openAIUtils.ts", "declarations": [ { "kind": "class", "description": "", - "name": "VisibilityIcon", + "name": "OpenAIUtils", "members": [ { - "kind": "field", - "name": "VISIBLE_ICON_ID", - "type": { - "text": "string" - }, - "privacy": "private", + "kind": "method", + "name": "buildHeaders", + "privacy": "public", "static": true, - "default": "'visible-icon'" + "parameters": [ + { + "name": "key", + "type": { + "text": "string" + } + } + ] }, { "kind": "method", - "name": "changeVisibility", + "name": "handleVerificationResult", "privacy": "private", "static": true, "parameters": [ { - "name": "inputElement", + "name": "result", "type": { - "text": "HTMLInputElement" + "text": "object" } }, { - "name": "visibleIcon", + "name": "key", "type": { - "text": "SVGGraphicsElement" + "text": "string" } }, { - "name": "notVisibleIcon", + "name": "onSuccess", "type": { - "text": "SVGGraphicsElement" + "text": "(key: string) => void" } }, { - "name": "event", + "name": "onFail", "type": { - "text": "MouseEvent" + "text": "(message: string) => void" } } ] }, { "kind": "method", - "name": "createIconElement", - "privacy": "private", + "name": "buildKeyVerificationDetails", + "privacy": "public", "static": true, - "parameters": [ - { - "name": "iconString", - "type": { - "text": "string" - } - }, - { - "name": "id", - "type": { - "text": "string" - } + "return": { + "type": { + "text": "KeyVerificationDetails" } - ] + } }, { "kind": "method", - "name": "create", + "name": "storeFiles", "privacy": "public", "static": true, "parameters": [ { - "name": "inputElement", + "name": "serviceIO", "type": { - "text": "HTMLInputElement" + "text": "ServiceIO" } - } - ] - } - ] - } - ], - "exports": [ - { - "kind": "js", - "name": "VisibilityIcon", - "declaration": { - "name": "VisibilityIcon", - "module": "src/views/insertKey/visibilityIcon.ts" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "src/views/validateKeyProperty/validateKeyPropertyView.ts", - "declarations": [ - { - "kind": "class", - "description": "", - "name": "ValidateKeyPropertyView", - "members": [ - { - "kind": "method", - "name": "onLoad", - "privacy": "private", - "static": true, - "parameters": [ + }, { - "name": "startElement", + "name": "messages", "type": { - "text": "HTMLElement" + "text": "Messages" + } + }, + { + "name": "files", + "type": { + "text": "File[]" } } ] }, { "kind": "method", - "name": "createElements", - "privacy": "private", - "static": true - }, - { - "kind": "method", - "name": "render", + "name": "directFetch", "privacy": "public", "static": true, "parameters": [ { - "name": "containerRef", + "name": "serviceIO", "type": { - "text": "HTMLElement" + "text": "ServiceIO" } }, { - "name": "changeToChat", + "name": "body", "type": { - "text": "() => void" + "text": "any" } }, { - "name": "serviceIO", + "name": "method", "type": { - "text": "ServiceIO" + "text": "'POST' | 'GET'" } + }, + { + "name": "stringify", + "default": "true" } ] } @@ -25514,46 +26160,26 @@ "exports": [ { "kind": "js", - "name": "ValidateKeyPropertyView", + "name": "OpenAIUtils", "declaration": { - "name": "ValidateKeyPropertyView", - "module": "src/views/validateKeyProperty/validateKeyPropertyView.ts" + "name": "OpenAIUtils", + "module": "src/services/openAI/utils/openAIUtils.ts" } } ] }, { "kind": "javascript-module", - "path": "src/services/azure/utils/azureUtils.ts", + "path": "src/services/stabilityAI/utils/stabilityAIUtils.ts", "declarations": [ { "kind": "class", "description": "", - "name": "AzureUtils", + "name": "StabilityAIUtils", "members": [ { "kind": "method", - "name": "buildTextToSpeechHeaders", - "privacy": "public", - "static": true, - "parameters": [ - { - "name": "outputFormat", - "type": { - "text": "string" - } - }, - { - "name": "key", - "type": { - "text": "string" - } - } - ] - }, - { - "kind": "method", - "name": "buildSpeechToTextHeaders", + "name": "buildHeaders", "privacy": "public", "static": true, "parameters": [ @@ -25567,7 +26193,7 @@ }, { "kind": "method", - "name": "handleSpeechVerificationResult", + "name": "handleVerificationResult", "privacy": "private", "static": true, "parameters": [ @@ -25599,159 +26225,185 @@ }, { "kind": "method", - "name": "buildSpeechKeyVerificationDetails", + "name": "buildKeyVerificationDetails", "privacy": "public", "static": true, "return": { "type": { "text": "KeyVerificationDetails" } - }, - "parameters": [ - { - "name": "region", - "type": { - "text": "string" - } - } - ] + } + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "StabilityAIUtils", + "declaration": { + "name": "StabilityAIUtils", + "module": "src/services/stabilityAI/utils/stabilityAIUtils.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/views/chat/input/input.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "Input", + "members": [ + { + "kind": "field", + "name": "elementRef", + "type": { + "text": "HTMLElement" + } }, { "kind": "method", - "name": "buildSummarizationHeader", - "privacy": "public", + "name": "createPanelElement", + "privacy": "private", "static": true, "parameters": [ { - "name": "key", + "name": "customStyle", + "optional": true, "type": { - "text": "string" + "text": "CustomStyle" } } ] }, { "kind": "method", - "name": "handleLanguageVerificationResult", + "name": "createFileUploadComponents", "privacy": "private", - "static": true, "parameters": [ { - "name": "result", + "name": "deepChat", "type": { - "text": "object" + "text": "DeepChat" } }, { - "name": "key", + "name": "serviceIO", "type": { - "text": "string" + "text": "ServiceIO" } }, { - "name": "onSuccess", + "name": "containerElement", "type": { - "text": "(key: string) => void" + "text": "HTMLElement" } }, { - "name": "onFail", + "name": "buttons", "type": { - "text": "(message: string) => void" + "text": "Buttons" } } ] }, { "kind": "method", - "name": "buildLanguageKeyVerificationDetails", - "privacy": "public", + "name": "createUploadButtons", + "privacy": "private", "static": true, - "return": { - "type": { - "text": "KeyVerificationDetails" - } - }, "parameters": [ { - "name": "endpoint", + "name": "deepChat", "type": { - "text": "string" + "text": "DeepChat" } - } - ] - }, - { - "kind": "method", - "name": "handleTranslationVerificationResult", - "privacy": "private", - "static": true, - "parameters": [ + }, { - "name": "result", + "name": "fileTypes", "type": { - "text": "object" + "text": "ServiceFileTypes" } }, { - "name": "key", + "name": "fileAtt", "type": { - "text": "string" + "text": "FileAttachments" } }, { - "name": "onSuccess", + "name": "containerEl", "type": { - "text": "(key: string) => void" + "text": "HTMLElement" } }, { - "name": "onFail", + "name": "buttons", "type": { - "text": "(message: string) => void" + "text": "Buttons" } } ] }, { "kind": "method", - "name": "buildTranslationKeyVerificationDetails", - "privacy": "public", + "name": "addElements", + "privacy": "private", "static": true, - "return": { - "type": { - "text": "KeyVerificationDetails" - } - }, "parameters": [ { - "name": "region", - "optional": true, + "name": "panel", "type": { - "text": "string" + "text": "HTMLElement" } - } - ] - }, - { - "kind": "method", - "name": "buildTranslationHeaders", - "privacy": "public", - "static": true, - "parameters": [ + }, { - "name": "region", + "name": "textInput", "type": { - "text": "string | undefined" + "text": "TextInputEl" } }, { - "name": "key", + "name": "buttons", "type": { - "text": "string" + "text": "Buttons" + } + }, + { + "name": "container", + "type": { + "text": "HTMLElement" + } + }, + { + "name": "fileAttachments", + "type": { + "text": "FileAttachments" + } + }, + { + "name": "dropupStyles", + "optional": true, + "type": { + "text": "DropupStyles" } } ] + }, + { + "kind": "field", + "name": "submit", + "type": { + "text": "object" + }, + "default": "{button: submitButton}" + }, + { + "kind": "field", + "name": "submitUserMessage" } ] } @@ -25759,99 +26411,103 @@ "exports": [ { "kind": "js", - "name": "AzureUtils", + "name": "Input", "declaration": { - "name": "AzureUtils", - "module": "src/services/azure/utils/azureUtils.ts" + "name": "Input", + "module": "src/views/chat/input/input.ts" } } ] }, { "kind": "javascript-module", - "path": "src/services/assemblyAI/utils/assemblyAIUtils.ts", + "path": "src/views/chat/introPanel/introPanel.ts", "declarations": [ { "kind": "class", "description": "", - "name": "AssemblyAIUtils", + "name": "IntroPanel", "members": [ + { + "kind": "field", + "name": "_elementRef", + "type": { + "text": "HTMLElement | undefined" + } + }, + { + "kind": "field", + "name": "_isDisplayed", + "type": { + "text": "boolean" + }, + "privacy": "private", + "default": "false" + }, { "kind": "method", - "name": "poll", - "privacy": "public", + "name": "createIntroPanel", + "privacy": "private", "static": true, "parameters": [ { - "name": "api_token", - "type": { - "text": "string" - } - }, - { - "name": "audio_url", + "name": "introPanelStyle", + "optional": true, "type": { - "text": "string" + "text": "CustomStyle" } } ] }, { "kind": "method", - "name": "buildHeaders", - "privacy": "public", - "static": true, + "name": "createIntroPanelWithChild", + "privacy": "private", "parameters": [ { - "name": "key", + "name": "childElement", "type": { - "text": "string" + "text": "HTMLElement" + } + }, + { + "name": "introPanelStyle", + "optional": true, + "type": { + "text": "CustomStyle" } } ] }, { "kind": "method", - "name": "handleVerificationResult", + "name": "createInternalIntroPanel", "privacy": "private", - "static": true, "parameters": [ { - "name": "result", + "name": "introPanelMarkUp", "type": { - "text": "object" + "text": "string" } }, { - "name": "key", + "name": "introPanelStyle", + "optional": true, "type": { - "text": "string" - } - }, - { - "name": "onSuccess", - "type": { - "text": "(key: string) => void" - } - }, - { - "name": "onFail", - "type": { - "text": "(message: string) => void" + "text": "CustomStyle" } } ] }, { "kind": "method", - "name": "buildKeyVerificationDetails", - "privacy": "public", - "static": true, - "return": { - "type": { - "text": "KeyVerificationDetails" - } - } + "name": "hide", + "privacy": "public" + }, + { + "kind": "method", + "name": "display", + "privacy": "public" } ] } @@ -25859,79 +26515,148 @@ "exports": [ { "kind": "js", - "name": "AssemblyAIUtils", + "name": "IntroPanel", "declaration": { - "name": "AssemblyAIUtils", - "module": "src/services/assemblyAI/utils/assemblyAIUtils.ts" + "name": "IntroPanel", + "module": "src/views/chat/introPanel/introPanel.ts" } } ] }, { "kind": "javascript-module", - "path": "src/services/cohere/utils/cohereUtils.ts", + "path": "src/views/chat/messages/avatar.ts", "declarations": [ { "kind": "class", "description": "", - "name": "CohereUtils", + "name": "AvatarEl", "members": [ { "kind": "method", - "name": "buildHeaders", - "privacy": "public", + "name": "applyCustomStylesToElements", + "privacy": "private", "static": true, "parameters": [ { - "name": "key", + "name": "container", "type": { - "text": "string" + "text": "HTMLElement" + } + }, + { + "name": "avatar", + "type": { + "text": "HTMLElement" + } + }, + { + "name": "style", + "type": { + "text": "AvatarStyles" } } ] }, { "kind": "method", - "name": "handleVerificationResult", + "name": "applyCustomStyles", "privacy": "private", "static": true, "parameters": [ { - "name": "result", + "name": "container", "type": { - "text": "object" + "text": "HTMLElement" } }, { - "name": "key", + "name": "avatar", + "type": { + "text": "HTMLElement" + } + }, + { + "name": "avatars", + "type": { + "text": "CustomAvatars" + } + }, + { + "name": "role", + "type": { + "text": "string" + } + } + ] + }, + { + "kind": "method", + "name": "createAvatar", + "privacy": "private", + "static": true, + "parameters": [ + { + "name": "role", "type": { "text": "string" } }, { - "name": "onSuccess", + "name": "avatars", + "optional": true, "type": { - "text": "(key: string) => void" + "text": "CustomAvatars" + } + } + ] + }, + { + "kind": "method", + "name": "getPosition", + "privacy": "private", + "static": true, + "parameters": [ + { + "name": "role", + "type": { + "text": "string" } }, { - "name": "onFail", + "name": "avatars", + "optional": true, "type": { - "text": "(message: string) => void" + "text": "CustomAvatars" } } ] }, { "kind": "method", - "name": "buildKeyVerificationDetails", + "name": "add", "privacy": "public", "static": true, - "return": { - "type": { - "text": "KeyVerificationDetails" + "parameters": [ + { + "name": "messageText", + "type": { + "text": "HTMLElement" + } + }, + { + "name": "role", + "type": { + "text": "string" + } + }, + { + "name": "avatars", + "type": { + "text": "Avatars" + } } - } + ] } ] } @@ -25939,133 +26664,137 @@ "exports": [ { "kind": "js", - "name": "CohereUtils", + "name": "AvatarEl", "declaration": { - "name": "CohereUtils", - "module": "src/services/cohere/utils/cohereUtils.ts" + "name": "AvatarEl", + "module": "src/views/chat/messages/avatar.ts" } } ] }, { "kind": "javascript-module", - "path": "src/services/openAI/utils/openAIUtils.ts", + "path": "src/views/chat/messages/fileMessageUtils.ts", "declarations": [ { "kind": "class", "description": "", - "name": "OpenAIUtils", + "name": "FileMessageUtils", "members": [ { - "kind": "method", - "name": "buildHeaders", + "kind": "field", + "name": "DEFAULT_FILE_NAME", + "type": { + "text": "string" + }, "privacy": "public", "static": true, - "parameters": [ - { - "name": "key", - "type": { - "text": "string" - } - } - ] + "default": "'file'" }, { "kind": "method", - "name": "handleVerificationResult", - "privacy": "private", + "name": "addMessage", + "privacy": "public", "static": true, "parameters": [ { - "name": "result", + "name": "messages", "type": { - "text": "object" + "text": "Messages" } }, { - "name": "key", + "name": "elements", "type": { - "text": "string" + "text": "MessageElements" } }, { - "name": "onSuccess", + "name": "styles", "type": { - "text": "(key: string) => void" + "text": "keyof MessageStyles" } }, { - "name": "onFail", + "name": "role", "type": { - "text": "(message: string) => void" + "text": "string" } } ] }, { "kind": "method", - "name": "buildKeyVerificationDetails", - "privacy": "public", + "name": "wrapInLink", + "privacy": "private", "static": true, - "return": { - "type": { - "text": "KeyVerificationDetails" + "parameters": [ + { + "name": "element", + "type": { + "text": "HTMLElement" + } + }, + { + "name": "url", + "type": { + "text": "string" + } } - } + ] }, { "kind": "method", - "name": "storeFiles", + "name": "processContent", "privacy": "public", "static": true, "parameters": [ { - "name": "serviceIO", + "name": "contentEl", "type": { - "text": "ServiceIO" + "text": "HTMLElement" } }, { - "name": "messages", + "name": "url", + "optional": true, "type": { - "text": "Messages" + "text": "string" } - }, + } + ] + }, + { + "kind": "method", + "name": "waitToLoadThenScroll", + "privacy": "private", + "static": true, + "parameters": [ { - "name": "files", + "name": "messagesContainerEl", "type": { - "text": "File[]" + "text": "HTMLElement" } } ] }, { "kind": "method", - "name": "directFetch", + "name": "scrollDownOnImageLoad", "privacy": "public", "static": true, "parameters": [ { - "name": "serviceIO", - "type": { - "text": "ServiceIO" - } - }, - { - "name": "body", + "name": "url", "type": { - "text": "any" + "text": "string" } }, { - "name": "method", + "name": "messagesContainerEl", "type": { - "text": "'POST' | 'GET'" + "text": "HTMLElement" } - }, - { - "name": "stringify", - "default": "true" } ] } @@ -26075,111 +26804,109 @@ "exports": [ { "kind": "js", - "name": "OpenAIUtils", + "name": "FileMessageUtils", "declaration": { - "name": "OpenAIUtils", - "module": "src/services/openAI/utils/openAIUtils.ts" + "name": "FileMessageUtils", + "module": "src/views/chat/messages/fileMessageUtils.ts" } } ] }, { "kind": "javascript-module", - "path": "src/services/huggingFace/utils/huggingFaceUtils.ts", + "path": "src/views/chat/messages/fileMessages.ts", "declarations": [ { "kind": "class", "description": "", - "name": "HuggingFaceUtils", + "name": "FileMessages", "members": [ { "kind": "method", - "name": "buildHeaders", - "privacy": "public", + "name": "createImage", + "privacy": "private", "static": true, "parameters": [ { - "name": "key", + "name": "imageData", "type": { - "text": "string" + "text": "MessageFile" + } + }, + { + "name": "messagesContainerEl", + "type": { + "text": "HTMLElement" } } ] }, { "kind": "method", - "name": "handleVerificationResult", + "name": "addNewImageMessage", "privacy": "private", "static": true, "parameters": [ { - "name": "result", - "type": { - "text": "object" - } - }, - { - "name": "key", + "name": "messages", "type": { - "text": "string" + "text": "Messages" } }, { - "name": "onSuccess", + "name": "imageData", "type": { - "text": "(key: string) => void" + "text": "MessageFile" } }, { - "name": "onFail", + "name": "role", "type": { - "text": "(message: string) => void" + "text": "string" } } ] }, { "kind": "method", - "name": "buildKeyVerificationDetails", - "privacy": "public", + "name": "createAudioElement", + "privacy": "private", "static": true, - "return": { - "type": { - "text": "KeyVerificationDetails" + "parameters": [ + { + "name": "audioData", + "type": { + "text": "MessageFile" + } + }, + { + "name": "role", + "type": { + "text": "string" + } } - } - } - ] - } - ], - "exports": [ - { - "kind": "js", - "name": "HuggingFaceUtils", - "declaration": { - "name": "HuggingFaceUtils", - "module": "src/services/huggingFace/utils/huggingFaceUtils.ts" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "src/services/stabilityAI/utils/stabilityAIUtils.ts", - "declarations": [ - { - "kind": "class", - "description": "", - "name": "StabilityAIUtils", - "members": [ + ] + }, { "kind": "method", - "name": "buildHeaders", - "privacy": "public", + "name": "addNewAudioMessage", + "privacy": "private", "static": true, "parameters": [ { - "name": "key", + "name": "messages", + "type": { + "text": "Messages" + } + }, + { + "name": "audioData", + "type": { + "text": "MessageFile" + } + }, + { + "name": "role", "type": { "text": "string" } @@ -26188,46 +26915,69 @@ }, { "kind": "method", - "name": "handleVerificationResult", + "name": "createAnyFile", "privacy": "private", "static": true, "parameters": [ { - "name": "result", + "name": "imageData", "type": { - "text": "object" + "text": "MessageFile" } - }, + } + ] + }, + { + "kind": "method", + "name": "addNewAnyFileMessage", + "privacy": "private", + "static": true, + "parameters": [ { - "name": "key", + "name": "messages", "type": { - "text": "string" + "text": "Messages" } }, { - "name": "onSuccess", + "name": "data", "type": { - "text": "(key: string) => void" + "text": "MessageFile" } }, { - "name": "onFail", + "name": "role", "type": { - "text": "(message: string) => void" + "text": "string" } } ] }, { "kind": "method", - "name": "buildKeyVerificationDetails", + "name": "addMessages", "privacy": "public", "static": true, - "return": { - "type": { - "text": "KeyVerificationDetails" + "parameters": [ + { + "name": "messages", + "type": { + "text": "Messages" + } + }, + { + "name": "files", + "type": { + "text": "MessageFiles" + } + }, + { + "name": "role", + "type": { + "text": "string" + } } - } + ] } ] } @@ -26235,103 +26985,57 @@ "exports": [ { "kind": "js", - "name": "StabilityAIUtils", + "name": "FileMessages", "declaration": { - "name": "StabilityAIUtils", - "module": "src/services/stabilityAI/utils/stabilityAIUtils.ts" + "name": "FileMessages", + "module": "src/views/chat/messages/fileMessages.ts" } } ] }, { "kind": "javascript-module", - "path": "src/views/chat/introPanel/introPanel.ts", + "path": "src/views/chat/messages/loadingMessageDotsStyle.ts", "declarations": [ { "kind": "class", "description": "", - "name": "IntroPanel", + "name": "LoadingMessageDotsStyle", "members": [ - { - "kind": "field", - "name": "_elementRef", - "type": { - "text": "HTMLElement | undefined" - } - }, - { - "kind": "field", - "name": "_isDisplayed", - "type": { - "text": "boolean" - }, - "privacy": "private", - "default": "false" - }, { "kind": "method", - "name": "createIntroPanel", + "name": "colorToHex", "privacy": "private", "static": true, "parameters": [ { - "name": "introPanelStyle", - "optional": true, + "name": "color", "type": { - "text": "CustomStyle" + "text": "string" } } ] }, { "kind": "method", - "name": "createIntroPanelWithChild", - "privacy": "private", + "name": "set", + "privacy": "public", + "static": true, "parameters": [ { - "name": "childElement", + "name": "bubbleElement", "type": { "text": "HTMLElement" } }, { - "name": "introPanelStyle", - "optional": true, - "type": { - "text": "CustomStyle" - } - } - ] - }, - { - "kind": "method", - "name": "createInternalIntroPanel", - "privacy": "private", - "parameters": [ - { - "name": "introPanelMarkUp", - "type": { - "text": "string" - } - }, - { - "name": "introPanelStyle", + "name": "messageStyles", "optional": true, "type": { - "text": "CustomStyle" + "text": "MessageStyles" } } ] - }, - { - "kind": "method", - "name": "hide", - "privacy": "public" - }, - { - "kind": "method", - "name": "display", - "privacy": "public" } ] } @@ -26339,170 +27043,166 @@ "exports": [ { "kind": "js", - "name": "IntroPanel", + "name": "LoadingMessageDotsStyle", "declaration": { - "name": "IntroPanel", - "module": "src/views/chat/introPanel/introPanel.ts" + "name": "LoadingMessageDotsStyle", + "module": "src/views/chat/messages/loadingMessageDotsStyle.ts" } } ] }, { "kind": "javascript-module", - "path": "src/views/chat/input/input.ts", + "path": "src/views/chat/messages/messageStyleUtils.ts", "declarations": [ { "kind": "class", "description": "", - "name": "Input", + "name": "MessageStyleUtils", "members": [ - { - "kind": "field", - "name": "elementRef", - "type": { - "text": "HTMLElement" - } - }, { "kind": "method", - "name": "createPanelElement", - "privacy": "private", + "name": "applyCustomStylesToElements", + "privacy": "public", "static": true, "parameters": [ { - "name": "customStyle", - "optional": true, + "name": "elements", "type": { - "text": "CustomStyle" - } - } - ] - }, - { - "kind": "method", - "name": "createFileUploadComponents", - "privacy": "private", - "parameters": [ - { - "name": "deepChat", - "type": { - "text": "DeepChat" - } - }, - { - "name": "serviceIO", - "type": { - "text": "ServiceIO" + "text": "MessageElements" } }, { - "name": "containerElement", + "name": "isMedia", "type": { - "text": "HTMLElement" + "text": "boolean" } }, { - "name": "buttons", + "name": "styles", + "optional": true, "type": { - "text": "Buttons" + "text": "MessageElementsStyles" } } ] }, { "kind": "method", - "name": "createUploadButtons", + "name": "applySideStyles", "privacy": "private", "static": true, "parameters": [ { - "name": "deepChat", - "type": { - "text": "DeepChat" - } - }, - { - "name": "fileTypes", + "name": "elements", "type": { - "text": "ServiceFileTypes" + "text": "MessageElements" } }, { - "name": "fileAtt", + "name": "role", "type": { - "text": "FileAttachments" + "text": "string" } }, { - "name": "containerEl", + "name": "media", "type": { - "text": "HTMLElement" + "text": "boolean" } }, { - "name": "buttons", + "name": "styles", + "optional": true, "type": { - "text": "Buttons" + "text": "MessageRoleStyles" } } ] }, { "kind": "method", - "name": "addElements", + "name": "isMessageSideStyles", "privacy": "private", "static": true, + "return": { + "type": { + "text": "styles is MessageRoleStyles" + } + }, "parameters": [ { - "name": "panel", + "name": "styles", "type": { - "text": "HTMLElement" + "text": "MessageRoleStyles | MessageElementsStyles" } - }, + } + ] + }, + { + "kind": "method", + "name": "applyCustomStyles", + "privacy": "public", + "static": true, + "parameters": [ { - "name": "textInput", + "name": "messageStyles", "type": { - "text": "TextInputEl" + "text": "MessageStyles" } }, { - "name": "buttons", + "name": "elements", "type": { - "text": "Buttons" + "text": "MessageElements" } }, { - "name": "container", + "name": "role", "type": { - "text": "HTMLElement" + "text": "string" } }, { - "name": "fileAttachments", + "name": "media", "type": { - "text": "FileAttachments" + "text": "boolean" } }, { - "name": "dropupStyles", + "name": "otherStyles", "optional": true, "type": { - "text": "DropupStyles" + "text": "MessageRoleStyles | MessageElementsStyles" } } ] }, { - "kind": "field", - "name": "submit", - "type": { - "text": "object" + "kind": "method", + "name": "extractParticularSharedStyles", + "privacy": "public", + "static": true, + "return": { + "type": { + "text": "MessageElementsStyles | undefined" + } }, - "default": "{button: submitButton}" - }, - { - "kind": "field", - "name": "submitUserMessage" + "parameters": [ + { + "name": "specificStyles", + "type": { + "text": "(keyof CustomStyle)[]" + } + }, + { + "name": "otherStyles", + "optional": true, + "type": { + "text": "MessageRoleStyles" + } + } + ] } ] } @@ -26510,133 +27210,80 @@ "exports": [ { "kind": "js", - "name": "Input", + "name": "MessageStyleUtils", "declaration": { - "name": "Input", - "module": "src/views/chat/input/input.ts" + "name": "MessageStyleUtils", + "module": "src/views/chat/messages/messageStyleUtils.ts" } } ] }, { "kind": "javascript-module", - "path": "src/views/chat/messages/avatar.ts", + "path": "src/views/chat/messages/messageUtils.ts", "declarations": [ { "kind": "class", "description": "", - "name": "AvatarEl", + "name": "MessageUtils", "members": [ { - "kind": "method", - "name": "applyCustomStylesToElements", - "privacy": "private", + "kind": "field", + "name": "AI_ROLE", + "type": { + "text": "string" + }, + "privacy": "public", "static": true, - "parameters": [ - { - "name": "container", - "type": { - "text": "HTMLElement" - } - }, - { - "name": "avatar", - "type": { - "text": "HTMLElement" - } - }, - { - "name": "style", - "type": { - "text": "AvatarStyles" - } - } - ] + "default": "'ai'" }, { - "kind": "method", - "name": "applyCustomStyles", - "privacy": "private", + "kind": "field", + "name": "USER_ROLE", + "type": { + "text": "string" + }, + "privacy": "public", "static": true, - "parameters": [ - { - "name": "container", - "type": { - "text": "HTMLElement" - } - }, - { - "name": "avatar", - "type": { - "text": "HTMLElement" - } - }, - { - "name": "avatars", - "type": { - "text": "CustomAvatars" - } - }, - { - "name": "isAI", - "type": { - "text": "boolean" - } - } - ] + "default": "'user'" }, { "kind": "method", - "name": "createAvatar", - "privacy": "private", + "name": "getLastElementsByClass", + "privacy": "public", "static": true, "parameters": [ { - "name": "isAI", + "name": "messagesElements", "type": { - "text": "boolean" + "text": "MessageElements[]" } }, { - "name": "avatars", - "optional": true, - "type": { - "text": "CustomAvatars" - } - } - ] - }, - { - "kind": "method", - "name": "getPosition", - "privacy": "private", - "static": true, - "parameters": [ - { - "name": "isAI", + "name": "classes", "type": { - "text": "boolean" + "text": "string[]" } }, { - "name": "avatars", + "name": "avoidedClasses", "optional": true, "type": { - "text": "CustomAvatars" + "text": "string[]" } } ] }, { "kind": "method", - "name": "add", + "name": "getLastMessage", "privacy": "public", "static": true, "parameters": [ { - "name": "messageText", + "name": "messages", "type": { - "text": "HTMLElement" + "text": "MessageContentI[]" } }, { @@ -26646,9 +27293,10 @@ } }, { - "name": "avatars", + "name": "content", + "optional": true, "type": { - "text": "Avatars" + "text": "keyof Omit" } } ] @@ -26659,545 +27307,729 @@ "exports": [ { "kind": "js", - "name": "AvatarEl", + "name": "MessageUtils", "declaration": { - "name": "AvatarEl", - "module": "src/views/chat/messages/avatar.ts" + "name": "MessageUtils", + "module": "src/views/chat/messages/messageUtils.ts" } } ] }, { "kind": "javascript-module", - "path": "src/views/chat/messages/fileMessageUtils.ts", + "path": "src/views/chat/messages/messages.ts", "declarations": [ { "kind": "class", "description": "", - "name": "FileMessageUtils", + "name": "Messages", "members": [ { "kind": "field", - "name": "DEFAULT_FILE_NAME", + "name": "elementRef", + "type": { + "text": "HTMLElement" + } + }, + { + "kind": "field", + "name": "messageStyles", + "type": { + "text": "MessageStyles | undefined" + } + }, + { + "kind": "field", + "name": "_messageElementRefs", + "type": { + "text": "MessageElements[]" + }, + "privacy": "private", + "default": "[]" + }, + { + "kind": "field", + "name": "_avatars", + "type": { + "text": "Avatars | undefined" + }, + "privacy": "private" + }, + { + "kind": "field", + "name": "_names", + "type": { + "text": "Names | undefined" + }, + "privacy": "private" + }, + { + "kind": "field", + "name": "_errorMessageOverrides", + "type": { + "text": "ErrorMessageOverrides | undefined" + }, + "privacy": "private" + }, + { + "kind": "field", + "name": "_onNewMessage", + "type": { + "text": "(message: MessageContentI, isInitial: boolean) => void | undefined" + }, + "privacy": "private" + }, + { + "kind": "field", + "name": "_onClearMessages", + "type": { + "text": "() => void | undefined" + }, + "privacy": "private" + }, + { + "kind": "field", + "name": "_displayLoadingMessage", + "type": { + "text": "boolean | undefined" + }, + "privacy": "private" + }, + { + "kind": "field", + "name": "_permittedErrorPrefixes", + "type": { + "text": "CustomErrors | undefined" + }, + "privacy": "private", + "default": "permittedErrorPrefixes" + }, + { + "kind": "field", + "name": "_displayServiceErrorMessages", + "type": { + "text": "boolean | undefined" + }, + "privacy": "private" + }, + { + "kind": "field", + "name": "_textElementsToText", + "type": { + "text": "[MessageElements, string][]" + }, + "privacy": "private", + "default": "[]" + }, + { + "kind": "field", + "name": "_remarkable", + "type": { + "text": "Remarkable" + }, + "privacy": "private" + }, + { + "kind": "field", + "name": "_textToSpeech", + "type": { + "text": "ProcessedTextToSpeechConfig | undefined" + }, + "privacy": "private" + }, + { + "kind": "field", + "name": "_introPanel", + "type": { + "text": "IntroPanel | undefined" + }, + "privacy": "private" + }, + { + "kind": "field", + "name": "_introMessage", + "type": { + "text": "IntroMessage | undefined" + }, + "privacy": "private" + }, + { + "kind": "field", + "name": "_streamedText", "type": { "text": "string" }, - "privacy": "public", - "static": true, - "default": "'file'" + "privacy": "private", + "default": "''" + }, + { + "kind": "field", + "name": "htmlClassUtilities", + "type": { + "text": "HTMLClassUtilities" + }, + "default": "{}" + }, + { + "kind": "field", + "name": "messages", + "type": { + "text": "MessageContentI[]" + }, + "default": "[]" + }, + { + "kind": "field", + "name": "customDemoResponse", + "type": { + "text": "DemoResponse | undefined" + } + }, + { + "kind": "field", + "name": "submitUserMessage", + "type": { + "text": "(text: string) => void | undefined" + } }, { "kind": "method", - "name": "addMessage", - "privacy": "public", + "name": "getDisplayLoadingMessage", + "privacy": "private", "static": true, "parameters": [ { - "name": "messages", - "type": { - "text": "Messages" - } - }, - { - "name": "elements", + "name": "deepChat", "type": { - "text": "MessageElements" + "text": "DeepChat" } }, { - "name": "styles", + "name": "serviceIO", "type": { - "text": "keyof MessageStyles" + "text": "ServiceIO" } - }, + } + ] + }, + { + "kind": "method", + "name": "prepareDemo", + "privacy": "private", + "parameters": [ { - "name": "isAI", + "name": "demo", "type": { - "text": "boolean" + "text": "Demo" } } ] }, { "kind": "method", - "name": "wrapInLink", + "name": "createContainerElement", + "privacy": "private", + "static": true + }, + { + "kind": "method", + "name": "addSetupMessageIfNeeded", "privacy": "private", - "static": true, "parameters": [ { - "name": "element", + "name": "deepChat", "type": { - "text": "HTMLElement" + "text": "DeepChat" } }, { - "name": "url", + "name": "serviceIO", "type": { - "text": "string" + "text": "ServiceIO" } } ] }, { "kind": "method", - "name": "processContent", - "privacy": "public", - "static": true, + "name": "addIntroductoryMessage", + "privacy": "private", "parameters": [ { - "name": "contentEl", - "type": { - "text": "HTMLElement" - } - }, - { - "name": "url", + "name": "introMessage", "optional": true, "type": { - "text": "string" + "text": "IntroMessage" } } ] }, { "kind": "method", - "name": "waitToLoadThenScroll", + "name": "populateInitialMessages", "privacy": "private", - "static": true, "parameters": [ { - "name": "messagesContainerEl", + "name": "initialMessages", "type": { - "text": "HTMLElement" + "text": "MessageContent[]" } } ] }, { "kind": "method", - "name": "scrollDownOnImageLoad", + "name": "applyCustomStyles", "privacy": "public", - "static": true, "parameters": [ { - "name": "url", + "name": "elements", + "type": { + "text": "MessageElements | undefined" + } + }, + { + "name": "role", "type": { "text": "string" } }, { - "name": "messagesContainerEl", + "name": "media", "type": { - "text": "HTMLElement" + "text": "boolean" + } + }, + { + "name": "otherStyles", + "optional": true, + "type": { + "text": "MessageRoleStyles | MessageElementsStyles" } } ] - } - ] - } - ], - "exports": [ - { - "kind": "js", - "name": "FileMessageUtils", - "declaration": { - "name": "FileMessageUtils", - "module": "src/views/chat/messages/fileMessageUtils.ts" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "src/views/chat/messages/fileMessages.ts", - "declarations": [ - { - "kind": "class", - "description": "", - "name": "FileMessages", - "members": [ + }, { "kind": "method", - "name": "createImage", + "name": "addInnerContainerElements", "privacy": "private", - "static": true, "parameters": [ { - "name": "imageData", + "name": "bubbleElement", "type": { - "text": "MessageFile" + "text": "HTMLElement" } }, { - "name": "messagesContainerEl", + "name": "text", "type": { - "text": "HTMLElement" + "text": "string" + } + }, + { + "name": "role", + "type": { + "text": "string" } } ] }, { "kind": "method", - "name": "addNewImageMessage", + "name": "processMessageContent", "privacy": "private", "static": true, + "return": { + "type": { + "text": "MessageContentI" + } + }, "parameters": [ { - "name": "messages", - "type": { - "text": "Messages" - } - }, - { - "name": "imageData", - "type": { - "text": "MessageFile" - } - }, - { - "name": "isAI", + "name": "content", "type": { - "text": "boolean" + "text": "Response" } } ] }, { "kind": "method", - "name": "createAudioElement", + "name": "createBaseElements", "privacy": "private", "static": true, + "return": { + "type": { + "text": "MessageElements" + } + } + }, + { + "kind": "method", + "name": "createMessageElements", + "privacy": "private", "parameters": [ { - "name": "audioData", + "name": "text", "type": { - "text": "MessageFile" + "text": "string" } }, { - "name": "isAI", + "name": "role", "type": { - "text": "boolean" + "text": "string" } } ] }, { "kind": "method", - "name": "addNewAudioMessage", + "name": "isTemporaryElement", "privacy": "private", "static": true, "parameters": [ { - "name": "messages", + "name": "elements", "type": { - "text": "Messages" + "text": "MessageElements" } - }, + } + ] + }, + { + "kind": "method", + "name": "createNewMessageElement", + "privacy": "public", + "parameters": [ { - "name": "audioData", + "name": "text", "type": { - "text": "MessageFile" + "text": "string" } }, { - "name": "isAI", + "name": "role", "type": { - "text": "boolean" + "text": "string" } } ] }, { "kind": "method", - "name": "createAnyFile", + "name": "createAndAppendNewMessageElement", "privacy": "private", - "static": true, "parameters": [ { - "name": "imageData", + "name": "text", "type": { - "text": "MessageFile" + "text": "string" + } + }, + { + "name": "role", + "type": { + "text": "string" } } ] }, { "kind": "method", - "name": "addNewAnyFileMessage", - "privacy": "private", + "name": "editEmptyMessageElement", + "privacy": "public", "static": true, "parameters": [ { - "name": "messages", + "name": "bubbleElement", "type": { - "text": "Messages" + "text": "HTMLElement" } - }, + } + ] + }, + { + "kind": "method", + "name": "addNewTextMessage", + "privacy": "private", + "parameters": [ { - "name": "data", + "name": "text", "type": { - "text": "MessageFile" + "text": "string" } }, { - "name": "isAI", + "name": "role", "type": { - "text": "boolean" + "text": "string" } } ] }, { "kind": "method", - "name": "addMessages", + "name": "addNewMessage", "privacy": "public", - "static": true, "parameters": [ { - "name": "messages", + "name": "data", "type": { - "text": "Messages" + "text": "Response" } }, { - "name": "files", + "name": "isInitial", + "default": "false" + } + ] + }, + { + "kind": "method", + "name": "updateStateOnMessage", + "privacy": "private", + "parameters": [ + { + "name": "messageContent", "type": { - "text": "MessageFiles" + "text": "MessageContentI" } }, { - "name": "isAI", + "name": "isNewMessage", "type": { "text": "boolean" } + }, + { + "name": "isInitial", + "default": "false" } ] - } - ] - } - ], - "exports": [ - { - "kind": "js", - "name": "FileMessages", - "declaration": { - "name": "FileMessages", - "module": "src/views/chat/messages/fileMessages.ts" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "src/views/chat/messages/loadingMessageDotsStyle.ts", - "declarations": [ - { - "kind": "class", - "description": "", - "name": "LoadingMessageDotsStyle", - "members": [ + }, { "kind": "method", - "name": "colorToHex", + "name": "sendClientUpdate", "privacy": "private", - "static": true, "parameters": [ { - "name": "color", + "name": "message", "type": { - "text": "string" + "text": "MessageContentI" } + }, + { + "name": "isInitial", + "default": "false" } ] }, { "kind": "method", - "name": "set", + "name": "removeMessageOnError", + "privacy": "private" + }, + { + "kind": "method", + "name": "addNewErrorMessage", "privacy": "public", - "static": true, "parameters": [ { - "name": "bubbleElement", + "name": "type", "type": { - "text": "HTMLElement" + "text": "keyof Omit" } }, { - "name": "messageStyles", + "name": "message", "optional": true, "type": { - "text": "MessageStyles" + "text": "string" } } ] - } - ] - } - ], - "exports": [ - { - "kind": "js", - "name": "LoadingMessageDotsStyle", - "declaration": { - "name": "LoadingMessageDotsStyle", - "module": "src/views/chat/messages/loadingMessageDotsStyle.ts" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "src/views/chat/messages/messageStyleUtils.ts", - "declarations": [ - { - "kind": "class", - "description": "", - "name": "MessageStyleUtils", - "members": [ + }, { "kind": "method", - "name": "applyCustomStylesToElements", - "privacy": "public", + "name": "checkPermittedErrorPrefixes", + "privacy": "private", "static": true, + "return": { + "type": { + "text": "string | undefined" + } + }, "parameters": [ { - "name": "elements", - "type": { - "text": "MessageElements" - } - }, - { - "name": "isMedia", + "name": "errorPrefixes", "type": { - "text": "boolean" + "text": "string[]" } }, { - "name": "styles", - "optional": true, + "name": "message", "type": { - "text": "MessageElementsStyles" + "text": "string" } } ] }, { "kind": "method", - "name": "applySideStyles", + "name": "getPermittedMessage", "privacy": "private", - "static": true, "parameters": [ { - "name": "elements", - "type": { - "text": "MessageElements" - } - }, - { - "name": "isAI", - "type": { - "text": "boolean" - } - }, - { - "name": "media", - "type": { - "text": "boolean" - } - }, - { - "name": "styles", + "name": "message", "optional": true, "type": { - "text": "MessageRoleStyles" + "text": "string" } } ] }, { "kind": "method", - "name": "isMessageSideStyles", - "privacy": "private", - "static": true, - "return": { - "type": { - "text": "styles is MessageRoleStyles" - } - }, + "name": "getLastMessageElement", + "privacy": "private" + }, + { + "kind": "method", + "name": "getLastMessageBubbleElement", + "privacy": "private" + }, + { + "kind": "method", + "name": "isLastMessageError", + "privacy": "public" + }, + { + "kind": "method", + "name": "removeError", + "privacy": "public" + }, + { + "kind": "method", + "name": "addLoadingMessage", + "privacy": "public" + }, + { + "kind": "method", + "name": "addNewStreamedMessage", + "privacy": "public", "parameters": [ { - "name": "styles", + "name": "role", + "optional": true, "type": { - "text": "MessageRoleStyles | MessageElementsStyles" + "text": "string" } } ] }, { "kind": "method", - "name": "applyCustomStyles", + "name": "updateStreamedMessage", "privacy": "public", - "static": true, "parameters": [ { - "name": "messageStyles", + "name": "text", "type": { - "text": "MessageStyles" + "text": "string" } }, { - "name": "elements", + "name": "bubbleElement", "type": { - "text": "MessageElements" + "text": "HTMLElement" } - }, + } + ] + }, + { + "kind": "method", + "name": "finaliseStreamedMessage", + "privacy": "public" + }, + { + "kind": "method", + "name": "populateIntroPanel", + "privacy": "private", + "parameters": [ { - "name": "isAI", + "name": "childElement", + "optional": true, "type": { - "text": "boolean" + "text": "HTMLElement" } }, { - "name": "media", + "name": "introPanelMarkUp", + "optional": true, "type": { - "text": "boolean" + "text": "string" } }, { - "name": "otherStyles", + "name": "introPanelStyle", "optional": true, "type": { - "text": "MessageRoleStyles | MessageElementsStyles" + "text": "CustomStyle" } } ] }, { "kind": "method", - "name": "extractParticularSharedStyles", + "name": "addMultipleFiles", "privacy": "public", - "static": true, - "return": { - "type": { - "text": "MessageElementsStyles | undefined" + "parameters": [ + { + "name": "filesData", + "type": { + "text": "{file: File; type: MessageFileType}[]" + } } - }, + ] + }, + { + "kind": "method", + "name": "clearMessages", + "privacy": "private", "parameters": [ { - "name": "specificStyles", + "name": "serviceIO", "type": { - "text": "(keyof CustomStyle)[]" + "text": "ServiceIO" } }, { - "name": "otherStyles", + "name": "isReset", "optional": true, "type": { - "text": "MessageRoleStyles" + "text": "boolean" } } ] + }, + { + "kind": "method", + "name": "scrollToBottom", + "privacy": "private" + }, + { + "kind": "method", + "name": "refreshTextMessages", + "privacy": "private" + }, + { + "kind": "field", + "name": "getMessages" + }, + { + "kind": "field", + "name": "refreshMessages" } ] } @@ -27205,107 +28037,131 @@ "exports": [ { "kind": "js", - "name": "MessageStyleUtils", + "name": "Messages", "declaration": { - "name": "MessageStyleUtils", - "module": "src/views/chat/messages/messageStyleUtils.ts" + "name": "Messages", + "module": "src/views/chat/messages/messages.ts" } } ] }, { "kind": "javascript-module", - "path": "src/views/chat/messages/messageUtils.ts", + "path": "src/views/chat/messages/name.ts", "declarations": [ { "kind": "class", "description": "", - "name": "MessageUtils", + "name": "Name", "members": [ { - "kind": "field", - "name": "AI_ROLE", - "type": { - "text": "string" - }, - "privacy": "public", - "static": true, - "default": "'ai'" - }, - { - "kind": "field", - "name": "USER_ROLE", - "type": { - "text": "string" - }, - "privacy": "public", + "kind": "method", + "name": "getPosition", + "privacy": "private", "static": true, - "default": "'user'" + "parameters": [ + { + "name": "role", + "type": { + "text": "string" + } + }, + { + "name": "names", + "type": { + "text": "CustomNames" + } + } + ] }, { "kind": "method", - "name": "getRole", - "privacy": "public", + "name": "applyStyle", + "privacy": "private", "static": true, "parameters": [ { - "name": "isAI", + "name": "element", "type": { - "text": "boolean" + "text": "HTMLElement" + } + }, + { + "name": "role", + "type": { + "text": "string" + } + }, + { + "name": "names", + "type": { + "text": "CustomNames" } } ] }, { "kind": "method", - "name": "getLastElementsByClass", - "privacy": "public", + "name": "getNameText", + "privacy": "private", "static": true, "parameters": [ { - "name": "messagesElements", + "name": "role", "type": { - "text": "MessageElements[]" + "text": "string" } }, { - "name": "classes", + "name": "names", "type": { - "text": "string[]" + "text": "CustomNames" + } + } + ] + }, + { + "kind": "method", + "name": "createName", + "privacy": "private", + "static": true, + "parameters": [ + { + "name": "role", + "type": { + "text": "string" } }, { - "name": "avoidedClasses", - "optional": true, + "name": "names", "type": { - "text": "string[]" + "text": "CustomNames" } } ] }, { "kind": "method", - "name": "getLastMessage", + "name": "add", "privacy": "public", "static": true, "parameters": [ { - "name": "messages", + "name": "messageText", "type": { - "text": "MessageContent[]" + "text": "HTMLElement" } }, { - "name": "isAI", + "name": "role", "type": { - "text": "boolean" + "text": "string" } }, { - "name": "content", - "optional": true, + "name": "names", "type": { - "text": "keyof Omit" + "text": "Names" } } ] @@ -27316,195 +28172,27 @@ "exports": [ { "kind": "js", - "name": "MessageUtils", + "name": "Name", "declaration": { - "name": "MessageUtils", - "module": "src/views/chat/messages/messageUtils.ts" + "name": "Name", + "module": "src/views/chat/messages/name.ts" } } ] }, { "kind": "javascript-module", - "path": "src/views/chat/messages/messages.ts", + "path": "src/views/chat/messages/setupMessages.ts", "declarations": [ { "kind": "class", "description": "", - "name": "Messages", + "name": "SetupMessages", "members": [ - { - "kind": "field", - "name": "elementRef", - "type": { - "text": "HTMLElement" - } - }, - { - "kind": "field", - "name": "messageStyles", - "type": { - "text": "MessageStyles | undefined" - } - }, - { - "kind": "field", - "name": "_messageElementRefs", - "type": { - "text": "MessageElements[]" - }, - "privacy": "private", - "default": "[]" - }, - { - "kind": "field", - "name": "_avatars", - "type": { - "text": "Avatars | undefined" - }, - "privacy": "private" - }, - { - "kind": "field", - "name": "_names", - "type": { - "text": "Names | undefined" - }, - "privacy": "private" - }, - { - "kind": "field", - "name": "_errorMessageOverrides", - "type": { - "text": "ErrorMessageOverrides | undefined" - }, - "privacy": "private" - }, - { - "kind": "field", - "name": "_onNewMessage", - "type": { - "text": "(message: MessageContent, isInitial: boolean) => void | undefined" - }, - "privacy": "private" - }, - { - "kind": "field", - "name": "_onClearMessages", - "type": { - "text": "() => void | undefined" - }, - "privacy": "private" - }, - { - "kind": "field", - "name": "_displayLoadingMessage", - "type": { - "text": "boolean | undefined" - }, - "privacy": "private" - }, - { - "kind": "field", - "name": "_permittedErrorPrefixes", - "type": { - "text": "CustomErrors | undefined" - }, - "privacy": "private", - "default": "permittedErrorPrefixes" - }, - { - "kind": "field", - "name": "_displayServiceErrorMessages", - "type": { - "text": "boolean | undefined" - }, - "privacy": "private" - }, - { - "kind": "field", - "name": "_textElementsToText", - "type": { - "text": "[MessageElements, string][]" - }, - "privacy": "private", - "default": "[]" - }, - { - "kind": "field", - "name": "_remarkable", - "type": { - "text": "Remarkable" - }, - "privacy": "private" - }, - { - "kind": "field", - "name": "_textToSpeech", - "type": { - "text": "ProcessedTextToSpeechConfig | undefined" - }, - "privacy": "private" - }, - { - "kind": "field", - "name": "_introPanel", - "type": { - "text": "IntroPanel | undefined" - }, - "privacy": "private" - }, - { - "kind": "field", - "name": "_introMessage", - "type": { - "text": "IntroMessage | undefined" - }, - "privacy": "private" - }, - { - "kind": "field", - "name": "_streamedText", - "type": { - "text": "string" - }, - "privacy": "private", - "default": "''" - }, - { - "kind": "field", - "name": "htmlClassUtilities", - "type": { - "text": "HTMLClassUtilities" - }, - "default": "{}" - }, - { - "kind": "field", - "name": "messages", - "type": { - "text": "MessageContent[]" - }, - "default": "[]" - }, - { - "kind": "field", - "name": "customDemoResponse", - "type": { - "text": "DemoResponse | undefined" - } - }, - { - "kind": "field", - "name": "submitUserMessage", - "type": { - "text": "(text: string) => void | undefined" - } - }, { "kind": "method", - "name": "getDisplayLoadingMessage", - "privacy": "private", + "name": "getText", + "privacy": "public", "static": true, "parameters": [ { @@ -27520,263 +28208,262 @@ } } ] - }, - { - "kind": "method", - "name": "prepareDemo", - "privacy": "private", - "parameters": [ - { - "name": "demo", - "type": { - "text": "Demo" - } - } - ] - }, + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "SetupMessages", + "declaration": { + "name": "SetupMessages", + "module": "src/views/chat/messages/setupMessages.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/views/chat/input/buttonContainers/buttonContainers.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "ButtonContainers", + "members": [ { "kind": "method", - "name": "createContainerElement", - "privacy": "private", + "name": "create", + "privacy": "public", "static": true }, { "kind": "method", - "name": "addSetupMessageIfNeeded", - "privacy": "private", + "name": "add", + "privacy": "public", + "static": true, "parameters": [ { - "name": "deepChat", + "name": "inputContainer", "type": { - "text": "DeepChat" + "text": "HTMLElement" } }, { - "name": "serviceIO", - "type": { - "text": "ServiceIO" - } - } - ] - }, - { - "kind": "method", - "name": "addIntroductoryMessage", - "privacy": "private", - "parameters": [ - { - "name": "introMessage", - "optional": true, + "name": "buttonContainers", "type": { - "text": "IntroMessage" + "text": "ButtonContainersT" } } ] }, { "kind": "method", - "name": "populateInitialMessages", + "name": "getContainerIndex", "privacy": "private", + "static": true, "parameters": [ { - "name": "initialMessages", + "name": "position", "type": { - "text": "MessageContent[]" + "text": "ButtonPosition" } } ] }, { "kind": "method", - "name": "applyCustomStyles", + "name": "addButton", "privacy": "public", + "static": true, "parameters": [ { - "name": "elements", - "type": { - "text": "MessageElements | undefined" - } - }, - { - "name": "isAI", + "name": "buttonContainers", "type": { - "text": "boolean" + "text": "ButtonContainersT" } }, { - "name": "media", + "name": "elementRef", "type": { - "text": "boolean" + "text": "HTMLElement" } }, { - "name": "otherStyles", - "optional": true, + "name": "position", "type": { - "text": "MessageRoleStyles | MessageElementsStyles" + "text": "ButtonPosition" } } ] - }, + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "ButtonContainers", + "declaration": { + "name": "ButtonContainers", + "module": "src/views/chat/input/buttonContainers/buttonContainers.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/views/chat/input/buttons/buttonCSS.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "ButtonCSS", + "members": [ { "kind": "method", - "name": "addInnerContainerElements", - "privacy": "private", + "name": "unsetAllCSS", + "privacy": "public", + "static": true, "parameters": [ { - "name": "bubbleElement", + "name": "button", "type": { "text": "HTMLElement" } }, { - "name": "text", - "type": { - "text": "string" - } - }, - { - "name": "isAI", + "name": "styles", "type": { - "text": "boolean" + "text": "ButtonStyles" } } ] }, { "kind": "method", - "name": "createMessageContent", - "privacy": "private", + "name": "unsetActionCSS", + "privacy": "public", "static": true, - "return": { - "type": { - "text": "MessageContent" - } - }, "parameters": [ { - "name": "isAI", + "name": "button", "type": { - "text": "boolean" + "text": "HTMLElement" } }, { - "name": "content", + "name": "styles", "type": { - "text": "Response" + "text": "ButtonStyles" } } ] }, { "kind": "method", - "name": "createBaseElements", - "privacy": "private", + "name": "setElementsCSS", + "privacy": "public", "static": true, - "return": { - "type": { - "text": "MessageElements" - } - } - }, - { - "kind": "method", - "name": "createMessageElements", - "privacy": "private", "parameters": [ { - "name": "text", + "name": "button", "type": { - "text": "string" + "text": "HTMLElement" } }, { - "name": "isAI", + "name": "styles", "type": { - "text": "boolean" + "text": "ButtonStyles" } - } - ] - }, - { - "kind": "method", - "name": "isTemporaryElement", - "privacy": "private", - "static": true, - "parameters": [ + }, { - "name": "elements", + "name": "style", "type": { - "text": "MessageElements" + "text": "keyof StatefulStyles" } } ] }, { "kind": "method", - "name": "createNewMessageElement", + "name": "setElementCssUpToState", "privacy": "public", + "static": true, "parameters": [ { - "name": "text", + "name": "button", "type": { - "text": "string" + "text": "HTMLElement" } }, { - "name": "isAI", - "type": { - "text": "boolean" - } - } - ] - }, - { - "kind": "method", - "name": "createAndAppendNewMessageElement", - "privacy": "private", - "parameters": [ - { - "name": "text", + "name": "styles", "type": { - "text": "string" + "text": "ButtonStyles" } }, { - "name": "isAI", + "name": "style", "type": { - "text": "boolean" + "text": "keyof StatefulStyles" } } ] - }, + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "ButtonCSS", + "declaration": { + "name": "ButtonCSS", + "module": "src/views/chat/input/buttons/buttonCSS.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/views/chat/input/buttons/customButtonInnerElements.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "CustomButtonInnerElements", + "members": [ { "kind": "method", - "name": "editEmptyMessageElement", - "privacy": "public", + "name": "createTextElement", + "privacy": "private", "static": true, "parameters": [ { - "name": "bubbleElement", + "name": "text", "type": { - "text": "HTMLElement" + "text": "string" } } ] }, { "kind": "method", - "name": "addNewTextMessage", + "name": "createElement", "privacy": "private", + "static": true, "parameters": [ { - "name": "text", + "name": "string", "type": { "text": "string" } }, { - "name": "isAI", + "name": "isText", "type": { "text": "boolean" } @@ -27785,263 +28472,272 @@ }, { "kind": "method", - "name": "addNewMessage", + "name": "createCustomElement", "privacy": "public", + "static": true, "parameters": [ { - "name": "data", + "name": "state", "type": { - "text": "Response" + "text": "keyof T" } }, { - "name": "isAI", + "name": "customStyles", + "optional": true, "type": { - "text": "boolean" + "text": "ButtonStateStyles" } - }, - { - "name": "isInitial", - "default": "false" } ] }, { "kind": "method", - "name": "updateStateOnMessage", + "name": "processElement", "privacy": "private", + "static": true, "parameters": [ { - "name": "messageContent", + "name": "parentEl", "type": { - "text": "MessageContent" + "text": "HTMLElement" } }, { - "name": "isNewMessage", + "name": "element", + "optional": true, "type": { - "text": "boolean" + "text": "Element" } - }, - { - "name": "isInitial", - "default": "false" } ] }, { "kind": "method", - "name": "sendClientUpdate", - "privacy": "private", + "name": "createSpecificStateElement", + "privacy": "public", + "static": true, "parameters": [ { - "name": "message", + "name": "parentEl", "type": { - "text": "MessageContent" + "text": "HTMLElement" } }, { - "name": "isInitial", - "default": "false" - } - ] - }, - { - "kind": "method", - "name": "removeMessageOnError", - "privacy": "private" - }, - { - "kind": "method", - "name": "addNewErrorMessage", - "privacy": "public", - "parameters": [ - { - "name": "type", + "name": "state", "type": { - "text": "keyof Omit" + "text": "keyof T" } }, { - "name": "message", + "name": "customStyles", "optional": true, "type": { - "text": "string" + "text": "ButtonStateStyles" } } ] }, { "kind": "method", - "name": "checkPermittedErrorPrefixes", - "privacy": "private", + "name": "create", + "privacy": "public", "static": true, "return": { "type": { - "text": "string | undefined" + "text": "ButtonInnerElements" } }, "parameters": [ { - "name": "errorPrefixes", + "name": "parentEl", "type": { - "text": "string[]" + "text": "HTMLElement" } }, { - "name": "message", + "name": "states", "type": { - "text": "string" + "text": "(keyof T)[]" } - } - ] - }, - { - "kind": "method", - "name": "getPermittedMessage", - "privacy": "private", - "parameters": [ + }, { - "name": "message", + "name": "styles", "optional": true, "type": { - "text": "string" + "text": "ButtonStateStyles" } } ] - }, - { - "kind": "method", - "name": "getLastMessageElement", - "privacy": "private" - }, + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "CustomButtonInnerElements", + "declaration": { + "name": "CustomButtonInnerElements", + "module": "src/views/chat/input/buttons/customButtonInnerElements.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/views/chat/input/buttons/inputButton.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "InputButton", + "members": [ { - "kind": "method", - "name": "getLastMessageBubbleElement", - "privacy": "private" + "kind": "field", + "name": "elementRef", + "type": { + "text": "HTMLElement" + }, + "default": "buttonElement" }, { - "kind": "method", - "name": "isLastMessageError", - "privacy": "public" + "kind": "field", + "name": "_mouseState", + "type": { + "text": "MouseState" + }, + "privacy": "protected", + "default": "{state: 'default'}" }, { - "kind": "method", - "name": "removeError", - "privacy": "public" + "kind": "field", + "name": "_customStyles", + "type": { + "text": "T | undefined" + }, + "privacy": "protected", + "default": "customStyles" }, { - "kind": "method", - "name": "addLoadingMessage", - "privacy": "public" + "kind": "field", + "name": "position", + "type": { + "text": "ButtonPositionT | undefined" + }, + "default": "position" }, { - "kind": "method", - "name": "addNewStreamedMessage", - "privacy": "public" + "kind": "field", + "name": "dropupText", + "type": { + "text": "string | undefined" + }, + "default": "dropupText" }, { "kind": "method", - "name": "updateStreamedMessage", - "privacy": "public", + "name": "buttonMouseLeave", + "privacy": "private", "parameters": [ { - "name": "text", - "type": { - "text": "string" - } - }, - { - "name": "bubbleElement", + "name": "customStyles", + "optional": true, "type": { - "text": "HTMLElement" + "text": "ButtonStyles" } } ] }, { "kind": "method", - "name": "finaliseStreamedMessage", - "privacy": "public" + "name": "buttonMouseEnter", + "privacy": "private", + "parameters": [ + { + "name": "customStyles", + "optional": true, + "type": { + "text": "ButtonStyles" + } + } + ] }, { "kind": "method", - "name": "populateIntroPanel", + "name": "buttonMouseUp", "privacy": "private", "parameters": [ { - "name": "childElement", + "name": "customStyles", "optional": true, "type": { - "text": "HTMLElement" + "text": "ButtonStyles" } - }, + } + ] + }, + { + "kind": "method", + "name": "buttonMouseDown", + "privacy": "private", + "parameters": [ { - "name": "introPanelMarkUp", + "name": "customStyles", "optional": true, "type": { - "text": "string" + "text": "ButtonStyles" } - }, + } + ] + }, + { + "kind": "method", + "name": "setEvents", + "privacy": "private", + "parameters": [ { - "name": "introPanelStyle", + "name": "customStyles", "optional": true, "type": { - "text": "CustomStyle" + "text": "ButtonStyles" } } ] }, { "kind": "method", - "name": "addMultipleFiles", + "name": "unsetCustomStateStyles", "privacy": "public", "parameters": [ { - "name": "filesData", + "name": "unsetTypes", "type": { - "text": "{file: File; type: MessageFileType}[]" + "text": "(keyof T)[]" } } ] }, { "kind": "method", - "name": "clearMessages", - "privacy": "private", + "name": "reapplyStateStyle", + "privacy": "public", "parameters": [ { - "name": "serviceIO", + "name": "setType", "type": { - "text": "ServiceIO" + "text": "keyof T" } }, { - "name": "isReset", + "name": "unsetTypes", "optional": true, "type": { - "text": "boolean" + "text": "(keyof T)[]" } } ] - }, - { - "kind": "method", - "name": "scrollToBottom", - "privacy": "private" - }, - { - "kind": "method", - "name": "refreshTextMessages", - "privacy": "private" - }, - { - "kind": "field", - "name": "getMessages" - }, - { - "kind": "field", - "name": "refreshMessages" } ] } @@ -28049,131 +28745,115 @@ "exports": [ { "kind": "js", - "name": "Messages", + "name": "InputButton", "declaration": { - "name": "Messages", - "module": "src/views/chat/messages/messages.ts" + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" } } ] }, { "kind": "javascript-module", - "path": "src/views/chat/messages/name.ts", + "path": "src/views/chat/input/validation/validationHandler.ts", "declarations": [ { "kind": "class", "description": "", - "name": "Name", + "name": "ValidationHandler", "members": [ { "kind": "method", - "name": "getPosition", + "name": "useValidationFunc", "privacy": "private", "static": true, "parameters": [ { - "name": "isAI", + "name": "validation", "type": { - "text": "boolean" + "text": "ValidateFunc" } }, { - "name": "names", + "name": "textInput", "type": { - "text": "CustomNames" + "text": "TextInputEl" } - } - ] - }, - { - "kind": "method", - "name": "applyStyle", - "privacy": "private", - "static": true, - "parameters": [ + }, { - "name": "element", + "name": "fileAttachments", "type": { - "text": "HTMLElement" + "text": "FileAttachments" } }, { - "name": "isAI", + "name": "submitButton", "type": { - "text": "boolean" + "text": "SubmitButton" } }, { - "name": "names", + "name": "isProgrammatic", "type": { - "text": "CustomNames" + "text": "boolean" } } ] }, { "kind": "method", - "name": "getNameText", + "name": "validateWebsocket", "privacy": "private", "static": true, "parameters": [ { - "name": "isAI", + "name": "serviceIO", "type": { - "text": "boolean" + "text": "ServiceIO" } }, { - "name": "names", + "name": "submitButton", "type": { - "text": "CustomNames" + "text": "SubmitButton" } } ] }, { "kind": "method", - "name": "createName", - "privacy": "private", + "name": "attach", + "privacy": "public", "static": true, "parameters": [ { - "name": "isAI", + "name": "deepChat", "type": { - "text": "boolean" + "text": "DeepChat" } }, { - "name": "names", + "name": "serviceIO", "type": { - "text": "CustomNames" + "text": "ServiceIO" } - } - ] - }, - { - "kind": "method", - "name": "add", - "privacy": "public", - "static": true, - "parameters": [ + }, { - "name": "messageText", + "name": "textInput", "type": { - "text": "HTMLElement" + "text": "TextInputEl" } }, { - "name": "isAI", + "name": "fileAttachments", "type": { - "text": "boolean" + "text": "FileAttachments" } }, { - "name": "names", + "name": "submitButton", "type": { - "text": "Names" + "text": "SubmitButton" } } ] @@ -28184,28 +28864,42 @@ "exports": [ { "kind": "js", - "name": "Name", + "name": "ValidationHandler", "declaration": { - "name": "Name", - "module": "src/views/chat/messages/name.ts" + "name": "ValidationHandler", + "module": "src/views/chat/input/validation/validationHandler.ts" } } ] }, { "kind": "javascript-module", - "path": "src/views/chat/messages/setupMessages.ts", + "path": "src/views/chat/input/fileAttachments/fileAttachments.ts", "declarations": [ { "kind": "class", "description": "", - "name": "SetupMessages", + "name": "FileAttachments", "members": [ + { + "kind": "field", + "name": "_fileAttachmentsTypes", + "type": { + "text": "FileAttachmentsType[]" + }, + "privacy": "private", + "default": "[]" + }, + { + "kind": "field", + "name": "elementRef", + "type": { + "text": "HTMLElement" + } + }, { "kind": "method", - "name": "getText", - "privacy": "public", - "static": true, + "name": "addType", "parameters": [ { "name": "deepChat", @@ -28214,134 +28908,159 @@ } }, { - "name": "serviceIO", + "name": "files", "type": { - "text": "ServiceIO" + "text": "FileAttachmentsT" + } + }, + { + "name": "type", + "type": { + "text": "keyof ServiceFileTypes" } } ] - } - ] - } - ], - "exports": [ - { - "kind": "js", - "name": "SetupMessages", - "declaration": { - "name": "SetupMessages", - "module": "src/views/chat/messages/setupMessages.ts" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "src/views/chat/input/dropup/dropup.ts", - "declarations": [ - { - "kind": "class", - "description": "", - "name": "Dropup", - "members": [ - { - "kind": "field", - "name": "_menu", - "type": { - "text": "DropupMenu" - }, - "privacy": "private", - "default": "new DropupMenu(containerElement, styles?.menu)" - }, - { - "kind": "field", - "name": "buttonContainer", - "type": { - "text": "HTMLElement" - } }, { "kind": "method", - "name": "createButtonElement", - "privacy": "private", - "static": true + "name": "createAttachmentContainer", + "privacy": "private" }, { "kind": "method", - "name": "createInnerElements", + "name": "toggleContainerDisplay", "privacy": "private", "parameters": [ { - "name": "customStyles", - "optional": true, + "name": "display", "type": { - "text": "Styles" + "text": "boolean" } } ] }, { "kind": "method", - "name": "createInnerElement", - "privacy": "private", + "name": "getAllFileData" + }, + { + "kind": "method", + "name": "completePlaceholders" + }, + { + "kind": "method", + "name": "addFilesToType", + "privacy": "public", + "static": true, "parameters": [ { - "name": "baseButton", - "type": { - "text": "SVGGraphicsElement" - } - }, - { - "name": "state", + "name": "files", "type": { - "text": "'styles'" + "text": "File[]" } }, { - "name": "customStyles", - "optional": true, + "name": "fileAttachmentTypes", "type": { - "text": "Styles" + "text": "FileAttachmentsType[]" } } ] }, { "kind": "method", - "name": "createSVGIconElement", - "privacy": "private", - "static": true + "name": "addFilesToAnyType", + "parameters": [ + { + "name": "files", + "type": { + "text": "File[]" + } + } + ] }, { "kind": "method", - "name": "addClickEvent", - "privacy": "private" + "name": "removeAllFiles" }, { "kind": "method", - "name": "createButtonContainer", - "privacy": "private", - "static": true - }, + "name": "getNumberOfTypes" + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "FileAttachments", + "declaration": { + "name": "FileAttachments", + "module": "src/views/chat/input/fileAttachments/fileAttachments.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/views/chat/input/fileAttachments/newFileName.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "NewFileName", + "members": [ { "kind": "method", - "name": "addItem", + "name": "getFileName", + "privacy": "public", + "static": true, "parameters": [ { - "name": "buttonProps", + "name": "prefix", "type": { - "text": "InputButton" + "text": "string" + } + }, + { + "name": "extension", + "type": { + "text": "string" } } ] - }, + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "NewFileName", + "declaration": { + "name": "NewFileName", + "module": "src/views/chat/input/fileAttachments/newFileName.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/views/chat/input/textInput/focusUtils.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "FocusUtils", + "members": [ { "kind": "method", - "name": "addContainerEvents", - "privacy": "private", + "name": "focusEndOfInput", + "privacy": "public", + "static": true, "parameters": [ { - "name": "containerElement", + "name": "inputElement", "type": { "text": "HTMLElement" } @@ -28350,291 +29069,233 @@ }, { "kind": "method", - "name": "getPosition", + "name": "focusFromParentElement", + "privacy": "public", "static": true, "parameters": [ { - "name": "positions", - "type": { - "text": "Positions" - } - }, - { - "name": "dropupStyles", - "optional": true, + "name": "parentElement", "type": { - "text": "DropupStyles" + "text": "HTMLElement" } } ] - }, - { - "kind": "field", - "name": "elementRef", - "type": { - "text": "HTMLElement" - }, - "default": "buttonElement", - "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" - } - }, - { - "kind": "field", - "name": "_mouseState", - "type": { - "text": "MouseState" + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "FocusUtils", + "declaration": { + "name": "FocusUtils", + "module": "src/views/chat/input/textInput/focusUtils.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/views/chat/input/textInput/pasteUtils.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "PasteUtils", + "members": [ + { + "kind": "method", + "name": "sanitizePastedTextContent", + "privacy": "public", + "static": true, + "parameters": [ + { + "name": "event", + "type": { + "text": "ClipboardEvent" + } + } + ] + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "PasteUtils", + "declaration": { + "name": "PasteUtils", + "module": "src/views/chat/input/textInput/pasteUtils.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/views/chat/input/textInput/textInput.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "TextInputEl", + "members": [ + { + "kind": "field", + "name": "TEXT_INPUT_ID", + "type": { + "text": "string" }, - "privacy": "protected", - "default": "{state: 'default'}", - "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" - } + "privacy": "public", + "static": true, + "default": "'text-input'" }, { "kind": "field", - "name": "_customStyles", + "name": "elementRef", "type": { - "text": "T | undefined" - }, - "privacy": "protected", - "default": "customStyles", - "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" + "text": "HTMLElement" } }, { "kind": "field", - "name": "position", + "name": "inputElementRef", "type": { - "text": "ButtonPositionT | undefined" - }, - "default": "position", - "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" + "text": "HTMLElement" } }, { "kind": "field", - "name": "dropupText", + "name": "_config", "type": { - "text": "string | undefined" + "text": "TextInput" }, - "default": "dropupText", - "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" + "privacy": "private", + "default": "processedConfig" + }, + { + "kind": "field", + "name": "submit", + "type": { + "text": "() => void | undefined" } }, { "kind": "method", - "name": "buttonMouseLeave", + "name": "processConfig", "privacy": "private", + "static": true, "parameters": [ { - "name": "customStyles", - "optional": true, + "name": "serviceIO", "type": { - "text": "ButtonStyles" + "text": "ServiceIO" } - } - ], - "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" - } - }, - { - "kind": "method", - "name": "buttonMouseEnter", - "privacy": "private", - "parameters": [ + }, { - "name": "customStyles", + "name": "textInput", "optional": true, "type": { - "text": "ButtonStyles" + "text": "TextInput" } } - ], - "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" - } + ] }, { "kind": "method", - "name": "buttonMouseUp", + "name": "preventAutomaticScrollUpOnNewLine", "privacy": "private", + "static": true, "parameters": [ { - "name": "customStyles", - "optional": true, + "name": "inputElement", "type": { - "text": "ButtonStyles" + "text": "HTMLDivElement" } } - ], - "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" - } + ] }, { "kind": "method", - "name": "buttonMouseDown", - "privacy": "private", + "name": "clear", + "privacy": "public", + "static": true, "parameters": [ { - "name": "customStyles", - "optional": true, + "name": "inputElement", "type": { - "text": "ButtonStyles" + "text": "HTMLElement" } } - ], - "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" - } + ] }, { "kind": "method", - "name": "setEvents", + "name": "createInputElement", "privacy": "private", "parameters": [ { - "name": "customStyles", + "name": "textInput", "optional": true, "type": { - "text": "ButtonStyles" + "text": "TextInput" } } - ], - "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" - } + ] }, { "kind": "method", - "name": "unsetCustomStateStyles", - "privacy": "public", - "parameters": [ - { - "name": "unsetTypes", - "type": { - "text": "(keyof T)[]" - } - } - ], - "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" - } + "name": "removeTextIfPlaceholder", + "privacy": "public" }, { "kind": "method", - "name": "reapplyStateStyle", + "name": "toggleEditability", "privacy": "public", + "static": true, "parameters": [ { - "name": "setType", + "name": "inputElement", "type": { - "text": "keyof T" + "text": "HTMLElement" } }, { - "name": "unsetTypes", - "optional": true, + "name": "isEditable", "type": { - "text": "(keyof T)[]" + "text": "boolean" } } - ], - "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" - } - } - ], - "superclass": { - "name": "InputButton", - "module": "/src/views/chat/input/buttons/inputButton" - } - } - ], - "exports": [ - { - "kind": "js", - "name": "Dropup", - "declaration": { - "name": "Dropup", - "module": "src/views/chat/input/dropup/dropup.ts" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "src/views/chat/input/dropup/dropupItem.ts", - "declarations": [ - { - "kind": "class", - "description": "", - "name": "DropupItem", - "members": [ + ] + }, { "kind": "method", - "name": "addItemEvents", + "name": "addEventListeners", "privacy": "private", - "static": true, "parameters": [ { - "name": "menu", - "type": { - "text": "DropupMenu" - } - }, - { - "name": "item", - "type": { - "text": "HTMLElement" - } - }, - { - "name": "inputButton", + "name": "inputElement", "type": { "text": "HTMLElement" } }, { - "name": "styles", + "name": "textInput", + "optional": true, "type": { - "text": "StatefulStyles" + "text": "TextInput" } } ] }, { "kind": "method", - "name": "createItemText", + "name": "onFocus", "privacy": "private", - "static": true, "parameters": [ { - "name": "dropupText", - "optional": true, - "type": { - "text": "string" - } - }, - { - "name": "textStyle", + "name": "focusStyle", "optional": true, "type": { "text": "CustomStyle" @@ -28644,18 +29305,17 @@ }, { "kind": "method", - "name": "createItemIcon", + "name": "onBlur", "privacy": "private", - "static": true, "parameters": [ { - "name": "inputButtonElement", + "name": "focusStyle", "type": { - "text": "HTMLElement" + "text": "CustomStyle" } }, { - "name": "iconContainerStyle", + "name": "containerStyle", "optional": true, "type": { "text": "CustomStyle" @@ -28665,61 +29325,28 @@ }, { "kind": "method", - "name": "populateItem", + "name": "createContainerElement", "privacy": "private", "static": true, "parameters": [ { - "name": "elementRef", - "type": { - "text": "HTMLElement" - } - }, - { - "name": "item", - "type": { - "text": "HTMLElement" - } - }, - { - "name": "dropupText", - "optional": true, - "type": { - "text": "string" - } - }, - { - "name": "styles", + "name": "containerStyle", "optional": true, "type": { - "text": "DropupMenuStyles" + "text": "CustomStyle" } } ] }, { "kind": "method", - "name": "createItem", - "privacy": "public", - "static": true, + "name": "onKeydown", + "privacy": "private", "parameters": [ { - "name": "menu", - "type": { - "text": "DropupMenu" - } - }, - { - "name": "inputButton", - "type": { - "text": "InputButton" - } - }, - { - "name": "styles", - "optional": true, + "name": "event", "type": { - "text": "DropupMenuStyles" + "text": "KeyboardEvent" } } ] @@ -28730,75 +29357,115 @@ "exports": [ { "kind": "js", - "name": "DropupItem", + "name": "TextInputEl", "declaration": { - "name": "DropupItem", - "module": "src/views/chat/input/dropup/dropupItem.ts" + "name": "TextInputEl", + "module": "src/views/chat/input/textInput/textInput.ts" } } ] }, { "kind": "javascript-module", - "path": "src/views/chat/input/dropup/dropupItemNavigation.ts", + "path": "src/views/chat/input/textInput/textInputEvents.ts", "declarations": [ { "kind": "class", "description": "", - "name": "DropupItemNavigation", + "name": "TextInputEvents", "members": [ { - "kind": "method", - "name": "focusItemWhenOnEdge", + "kind": "field", + "name": "PERMITTED_KEYS", "privacy": "private", "static": true, + "default": "new Set([\n KEYBOARD_KEY.BACKSPACE, KEYBOARD_KEY.DELETE, KEYBOARD_KEY.ARROW_RIGHT, KEYBOARD_KEY.ARROW_LEFT,\n KEYBOARD_KEY.ARROW_DOWN, KEYBOARD_KEY.ARROW_UP, KEYBOARD_KEY.META, KEYBOARD_KEY.CONTROL, KEYBOARD_KEY.ENTER\n ])" + }, + { + "kind": "method", + "name": "add", + "privacy": "public", + "static": true, "parameters": [ { - "name": "dropupElement", + "name": "inputElement", "type": { "text": "HTMLElement" } }, { - "name": "isNext", + "name": "characterLimit", + "optional": true, "type": { - "text": "boolean" + "text": "number" + } + }, + { + "name": "validationHandler", + "optional": true, + "type": { + "text": "ValidationHandler" } } ] }, { "kind": "method", - "name": "focusSiblingItem", - "privacy": "public", + "name": "onKeyDown", + "privacy": "private", "static": true, - "return": { - "type": { - "text": "void" - } - }, "parameters": [ { - "name": "focusedItem", + "name": "characterLimit", "type": { - "text": "HTMLElement" + "text": "number" } }, { - "name": "dropupElement", + "name": "event", "type": { - "text": "HTMLElement" + "text": "KeyboardEvent" + } + } + ] + }, + { + "kind": "method", + "name": "isKeyCombinationPermitted", + "privacy": "private", + "static": true, + "parameters": [ + { + "name": "event", + "type": { + "text": "KeyboardEvent" + } + } + ] + }, + { + "kind": "method", + "name": "onInput", + "privacy": "private", + "static": true, + "parameters": [ + { + "name": "characterLimit", + "type": { + "text": "number | undefined" } }, { - "name": "isNext", + "name": "validate", "type": { - "text": "boolean" + "text": "ValidationHandler | undefined" } }, { - "name": "isEdgeItem", - "default": "false" + "name": "event", + "type": { + "text": "Event" + } } ] } @@ -28808,89 +29475,108 @@ "exports": [ { "kind": "js", - "name": "DropupItemNavigation", + "name": "TextInputEvents", "declaration": { - "name": "DropupItemNavigation", - "module": "src/views/chat/input/dropup/dropupItemNavigation.ts" + "name": "TextInputEvents", + "module": "src/views/chat/input/textInput/textInputEvents.ts" } } ] }, { "kind": "javascript-module", - "path": "src/views/chat/input/dropup/dropupMenu.ts", + "path": "src/views/chat/input/dropup/dropup.ts", "declarations": [ { "kind": "class", "description": "", - "name": "DropupMenu", + "name": "Dropup", "members": [ { "kind": "field", - "name": "elementRef", - "type": { - "text": "HTMLElement" - } - }, - { - "kind": "field", - "name": "_isOpen", + "name": "_menu", "type": { - "text": "boolean" + "text": "DropupMenu" }, "privacy": "private", - "default": "true" + "default": "new DropupMenu(containerElement, styles?.menu)" }, { "kind": "field", - "name": "highlightedItem", + "name": "buttonContainer", "type": { - "text": "HTMLElement | undefined" + "text": "HTMLElement" } }, { - "kind": "field", - "name": "_styles", - "type": { - "text": "DropupMenuStyles | undefined" - }, + "kind": "method", + "name": "createButtonElement", "privacy": "private", - "default": "styles" + "static": true }, { "kind": "method", - "name": "createElement", + "name": "createInnerElements", "privacy": "private", - "static": true, "parameters": [ { - "name": "containerStyle", + "name": "customStyles", "optional": true, "type": { - "text": "CustomStyle" + "text": "Styles" } } ] }, { "kind": "method", - "name": "open", - "privacy": "private" + "name": "createInnerElement", + "privacy": "private", + "parameters": [ + { + "name": "baseButton", + "type": { + "text": "SVGGraphicsElement" + } + }, + { + "name": "state", + "type": { + "text": "'styles'" + } + }, + { + "name": "customStyles", + "optional": true, + "type": { + "text": "Styles" + } + } + ] }, { "kind": "method", - "name": "close" + "name": "createSVGIconElement", + "privacy": "private", + "static": true }, { "kind": "method", - "name": "toggle" + "name": "addClickEvent", + "privacy": "private" + }, + { + "kind": "method", + "name": "createButtonContainer", + "privacy": "private", + "static": true }, { "kind": "method", "name": "addItem", "parameters": [ { - "name": "inputButton", + "name": "buttonProps", "type": { "text": "InputButton" } @@ -28899,7 +29585,7 @@ }, { "kind": "method", - "name": "addWindowEvents", + "name": "addContainerEvents", "privacy": "private", "parameters": [ { @@ -28909,264 +29595,379 @@ } } ] - } - ] - } - ], - "exports": [ - { - "kind": "js", - "name": "DropupMenu", - "declaration": { - "name": "DropupMenu", - "module": "src/views/chat/input/dropup/dropupMenu.ts" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "src/views/chat/input/buttonContainers/buttonContainers.ts", - "declarations": [ - { - "kind": "class", - "description": "", - "name": "ButtonContainers", - "members": [ - { - "kind": "method", - "name": "create", - "privacy": "public", - "static": true }, { "kind": "method", - "name": "add", - "privacy": "public", + "name": "getPosition", "static": true, "parameters": [ { - "name": "inputContainer", + "name": "positions", "type": { - "text": "HTMLElement" + "text": "Positions" } }, { - "name": "buttonContainers", + "name": "dropupStyles", + "optional": true, "type": { - "text": "ButtonContainersT" + "text": "DropupStyles" } } ] }, + { + "kind": "field", + "name": "elementRef", + "type": { + "text": "HTMLElement" + }, + "default": "buttonElement", + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } + }, + { + "kind": "field", + "name": "_mouseState", + "type": { + "text": "MouseState" + }, + "privacy": "protected", + "default": "{state: 'default'}", + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } + }, + { + "kind": "field", + "name": "_customStyles", + "type": { + "text": "T | undefined" + }, + "privacy": "protected", + "default": "customStyles", + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } + }, + { + "kind": "field", + "name": "position", + "type": { + "text": "ButtonPositionT | undefined" + }, + "default": "position", + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } + }, + { + "kind": "field", + "name": "dropupText", + "type": { + "text": "string | undefined" + }, + "default": "dropupText", + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } + }, { "kind": "method", - "name": "getContainerIndex", + "name": "buttonMouseLeave", "privacy": "private", - "static": true, "parameters": [ { - "name": "position", + "name": "customStyles", + "optional": true, "type": { - "text": "ButtonPosition" + "text": "ButtonStyles" } } - ] + ], + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } }, { "kind": "method", - "name": "addButton", + "name": "buttonMouseEnter", + "privacy": "private", + "parameters": [ + { + "name": "customStyles", + "optional": true, + "type": { + "text": "ButtonStyles" + } + } + ], + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } + }, + { + "kind": "method", + "name": "buttonMouseUp", + "privacy": "private", + "parameters": [ + { + "name": "customStyles", + "optional": true, + "type": { + "text": "ButtonStyles" + } + } + ], + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } + }, + { + "kind": "method", + "name": "buttonMouseDown", + "privacy": "private", + "parameters": [ + { + "name": "customStyles", + "optional": true, + "type": { + "text": "ButtonStyles" + } + } + ], + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } + }, + { + "kind": "method", + "name": "setEvents", + "privacy": "private", + "parameters": [ + { + "name": "customStyles", + "optional": true, + "type": { + "text": "ButtonStyles" + } + } + ], + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } + }, + { + "kind": "method", + "name": "unsetCustomStateStyles", "privacy": "public", - "static": true, "parameters": [ { - "name": "buttonContainers", + "name": "unsetTypes", "type": { - "text": "ButtonContainersT" + "text": "(keyof T)[]" } - }, + } + ], + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } + }, + { + "kind": "method", + "name": "reapplyStateStyle", + "privacy": "public", + "parameters": [ { - "name": "elementRef", + "name": "setType", "type": { - "text": "HTMLElement" + "text": "keyof T" } }, { - "name": "position", + "name": "unsetTypes", + "optional": true, "type": { - "text": "ButtonPosition" + "text": "(keyof T)[]" } } - ] + ], + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } } - ] + ], + "superclass": { + "name": "InputButton", + "module": "/src/views/chat/input/buttons/inputButton" + } } ], "exports": [ { "kind": "js", - "name": "ButtonContainers", + "name": "Dropup", "declaration": { - "name": "ButtonContainers", - "module": "src/views/chat/input/buttonContainers/buttonContainers.ts" + "name": "Dropup", + "module": "src/views/chat/input/dropup/dropup.ts" } } ] }, { "kind": "javascript-module", - "path": "src/views/chat/input/fileAttachments/fileAttachments.ts", + "path": "src/views/chat/input/dropup/dropupItem.ts", "declarations": [ { "kind": "class", "description": "", - "name": "FileAttachments", + "name": "DropupItem", "members": [ - { - "kind": "field", - "name": "_fileAttachmentsTypes", - "type": { - "text": "FileAttachmentsType[]" - }, - "privacy": "private", - "default": "[]" - }, - { - "kind": "field", - "name": "elementRef", - "type": { - "text": "HTMLElement" - } - }, { "kind": "method", - "name": "addType", + "name": "addItemEvents", + "privacy": "private", + "static": true, "parameters": [ { - "name": "deepChat", + "name": "menu", "type": { - "text": "DeepChat" + "text": "DropupMenu" } }, { - "name": "files", + "name": "item", "type": { - "text": "FileAttachmentsT" + "text": "HTMLElement" } }, { - "name": "type", + "name": "inputButton", "type": { - "text": "keyof ServiceFileTypes" + "text": "HTMLElement" + } + }, + { + "name": "styles", + "type": { + "text": "StatefulStyles" } } ] }, { "kind": "method", - "name": "createAttachmentContainer", - "privacy": "private" - }, - { - "kind": "method", - "name": "toggleContainerDisplay", + "name": "createItemText", "privacy": "private", + "static": true, "parameters": [ { - "name": "display", + "name": "dropupText", + "optional": true, "type": { - "text": "boolean" + "text": "string" + } + }, + { + "name": "textStyle", + "optional": true, + "type": { + "text": "CustomStyle" } } ] }, { "kind": "method", - "name": "getAllFileData" - }, - { - "kind": "method", - "name": "completePlaceholders" - }, - { - "kind": "method", - "name": "addFilesToType", - "privacy": "public", + "name": "createItemIcon", + "privacy": "private", "static": true, "parameters": [ { - "name": "files", + "name": "inputButtonElement", "type": { - "text": "File[]" + "text": "HTMLElement" } }, { - "name": "fileAttachmentTypes", + "name": "iconContainerStyle", + "optional": true, "type": { - "text": "FileAttachmentsType[]" + "text": "CustomStyle" } } ] }, { "kind": "method", - "name": "addFilesToAnyType", + "name": "populateItem", + "privacy": "private", + "static": true, "parameters": [ { - "name": "files", + "name": "elementRef", "type": { - "text": "File[]" + "text": "HTMLElement" + } + }, + { + "name": "item", + "type": { + "text": "HTMLElement" + } + }, + { + "name": "dropupText", + "optional": true, + "type": { + "text": "string" + } + }, + { + "name": "styles", + "optional": true, + "type": { + "text": "DropupMenuStyles" } } ] }, { "kind": "method", - "name": "removeAllFiles" - }, - { - "kind": "method", - "name": "getNumberOfTypes" - } - ] - } - ], - "exports": [ - { - "kind": "js", - "name": "FileAttachments", - "declaration": { - "name": "FileAttachments", - "module": "src/views/chat/input/fileAttachments/fileAttachments.ts" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "src/views/chat/input/fileAttachments/newFileName.ts", - "declarations": [ - { - "kind": "class", - "description": "", - "name": "NewFileName", - "members": [ - { - "kind": "method", - "name": "getFileName", + "name": "createItem", "privacy": "public", "static": true, "parameters": [ { - "name": "prefix", + "name": "menu", "type": { - "text": "string" + "text": "DropupMenu" } }, { - "name": "extension", + "name": "inputButton", "type": { - "text": "string" + "text": "InputButton" + } + }, + { + "name": "styles", + "optional": true, + "type": { + "text": "DropupMenuStyles" } } ] @@ -29177,85 +29978,75 @@ "exports": [ { "kind": "js", - "name": "NewFileName", + "name": "DropupItem", "declaration": { - "name": "NewFileName", - "module": "src/views/chat/input/fileAttachments/newFileName.ts" + "name": "DropupItem", + "module": "src/views/chat/input/dropup/dropupItem.ts" } } ] }, { "kind": "javascript-module", - "path": "src/views/chat/input/textInput/focusUtils.ts", + "path": "src/views/chat/input/dropup/dropupItemNavigation.ts", "declarations": [ { "kind": "class", "description": "", - "name": "FocusUtils", + "name": "DropupItemNavigation", "members": [ { "kind": "method", - "name": "focusEndOfInput", - "privacy": "public", + "name": "focusItemWhenOnEdge", + "privacy": "private", "static": true, "parameters": [ { - "name": "inputElement", + "name": "dropupElement", "type": { "text": "HTMLElement" } + }, + { + "name": "isNext", + "type": { + "text": "boolean" + } } ] }, { "kind": "method", - "name": "focusFromParentElement", + "name": "focusSiblingItem", "privacy": "public", "static": true, + "return": { + "type": { + "text": "void" + } + }, "parameters": [ { - "name": "parentElement", + "name": "focusedItem", "type": { "text": "HTMLElement" } - } - ] - } - ] - } - ], - "exports": [ - { - "kind": "js", - "name": "FocusUtils", - "declaration": { - "name": "FocusUtils", - "module": "src/views/chat/input/textInput/focusUtils.ts" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "src/views/chat/input/textInput/pasteUtils.ts", - "declarations": [ - { - "kind": "class", - "description": "", - "name": "PasteUtils", - "members": [ - { - "kind": "method", - "name": "sanitizePastedTextContent", - "privacy": "public", - "static": true, - "parameters": [ + }, { - "name": "event", + "name": "dropupElement", "type": { - "text": "ClipboardEvent" + "text": "HTMLElement" + } + }, + { + "name": "isNext", + "type": { + "text": "boolean" } + }, + { + "name": "isEdgeItem", + "default": "false" } ] } @@ -29265,229 +30056,262 @@ "exports": [ { "kind": "js", - "name": "PasteUtils", + "name": "DropupItemNavigation", "declaration": { - "name": "PasteUtils", - "module": "src/views/chat/input/textInput/pasteUtils.ts" + "name": "DropupItemNavigation", + "module": "src/views/chat/input/dropup/dropupItemNavigation.ts" } } ] }, { "kind": "javascript-module", - "path": "src/views/chat/input/textInput/textInput.ts", + "path": "src/views/chat/input/dropup/dropupMenu.ts", "declarations": [ { "kind": "class", "description": "", - "name": "TextInputEl", + "name": "DropupMenu", "members": [ { "kind": "field", - "name": "TEXT_INPUT_ID", + "name": "elementRef", "type": { - "text": "string" - }, - "privacy": "public", - "static": true, - "default": "'text-input'" + "text": "HTMLElement" + } }, { "kind": "field", - "name": "elementRef", + "name": "_isOpen", "type": { - "text": "HTMLElement" - } + "text": "boolean" + }, + "privacy": "private", + "default": "true" }, { "kind": "field", - "name": "inputElementRef", + "name": "highlightedItem", "type": { - "text": "HTMLElement" + "text": "HTMLElement | undefined" } }, { "kind": "field", - "name": "_config", + "name": "_styles", "type": { - "text": "TextInput" + "text": "DropupMenuStyles | undefined" }, "privacy": "private", - "default": "processedConfig" - }, - { - "kind": "field", - "name": "submit", - "type": { - "text": "() => void | undefined" - } + "default": "styles" }, { "kind": "method", - "name": "processConfig", + "name": "createElement", "privacy": "private", "static": true, "parameters": [ { - "name": "serviceIO", - "type": { - "text": "ServiceIO" - } - }, - { - "name": "textInput", + "name": "containerStyle", "optional": true, "type": { - "text": "TextInput" + "text": "CustomStyle" } } ] }, { "kind": "method", - "name": "preventAutomaticScrollUpOnNewLine", - "privacy": "private", - "static": true, + "name": "open", + "privacy": "private" + }, + { + "kind": "method", + "name": "close" + }, + { + "kind": "method", + "name": "toggle" + }, + { + "kind": "method", + "name": "addItem", "parameters": [ { - "name": "inputElement", + "name": "inputButton", "type": { - "text": "HTMLDivElement" + "text": "InputButton" } } ] }, { "kind": "method", - "name": "clear", - "privacy": "public", - "static": true, + "name": "addWindowEvents", + "privacy": "private", "parameters": [ { - "name": "inputElement", + "name": "containerElement", "type": { "text": "HTMLElement" } } ] - }, + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "DropupMenu", + "declaration": { + "name": "DropupMenu", + "module": "src/views/chat/input/dropup/dropupMenu.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/views/chat/messages/html/htmlDeepChatElements.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "HTMLDeepChatElements", + "members": [ { "kind": "method", - "name": "createInputElement", + "name": "applySuggestionEvent", "privacy": "private", + "static": true, "parameters": [ { - "name": "textInput", - "optional": true, + "name": "messages", "type": { - "text": "TextInput" + "text": "Messages" + } + }, + { + "name": "element", + "type": { + "text": "Element" } } ] }, { "kind": "method", - "name": "removeTextIfPlaceholder", - "privacy": "public" - }, - { - "kind": "method", - "name": "toggleEditability", + "name": "isUpdateMessage", "privacy": "public", "static": true, "parameters": [ { - "name": "inputElement", - "type": { - "text": "HTMLElement" - } - }, - { - "name": "isEditable", + "name": "html", "type": { - "text": "boolean" + "text": "string" } } ] }, { "kind": "method", - "name": "addEventListeners", - "privacy": "private", + "name": "isElementTemporary", + "privacy": "public", + "static": true, "parameters": [ { - "name": "inputElement", - "type": { - "text": "HTMLElement" - } - }, - { - "name": "textInput", + "name": "messageElements", "optional": true, "type": { - "text": "TextInput" + "text": "MessageElements" } } ] }, { "kind": "method", - "name": "onFocus", - "privacy": "private", + "name": "doesElementContainDeepChatClass", + "privacy": "public", + "static": true, "parameters": [ { - "name": "focusStyle", - "optional": true, + "name": "element", "type": { - "text": "CustomStyle" + "text": "HTMLElement" } } ] }, { "kind": "method", - "name": "onBlur", + "name": "applyEvents", "privacy": "private", + "static": true, "parameters": [ { - "name": "focusStyle", + "name": "element", "type": { - "text": "CustomStyle" + "text": "Element" } }, { - "name": "containerStyle", - "optional": true, + "name": "className", "type": { - "text": "CustomStyle" + "text": "string" } } ] }, { "kind": "method", - "name": "createContainerElement", + "name": "getProcessedStyles", "privacy": "private", "static": true, "parameters": [ { - "name": "containerStyle", - "optional": true, + "name": "utilities", "type": { - "text": "CustomStyle" + "text": "HTMLClassUtilities" + } + }, + { + "name": "element", + "type": { + "text": "Element" + } + }, + { + "name": "className", + "type": { + "text": "string" } } ] }, { "kind": "method", - "name": "onKeydown", - "privacy": "private", + "name": "applyDeepChatUtilities", + "privacy": "public", + "static": true, "parameters": [ { - "name": "event", + "name": "messages", "type": { - "text": "KeyboardEvent" + "text": "Messages" + } + }, + { + "name": "utilities", + "type": { + "text": "HTMLClassUtilities" + } + }, + { + "name": "element", + "type": { + "text": "HTMLElement" } } ] @@ -29498,114 +30322,123 @@ "exports": [ { "kind": "js", - "name": "TextInputEl", + "name": "HTMLDeepChatElements", "declaration": { - "name": "TextInputEl", - "module": "src/views/chat/input/textInput/textInput.ts" + "name": "HTMLDeepChatElements", + "module": "src/views/chat/messages/html/htmlDeepChatElements.ts" } } ] }, { "kind": "javascript-module", - "path": "src/views/chat/input/textInput/textInputEvents.ts", + "path": "src/views/chat/messages/html/htmlMessages.ts", "declarations": [ { "kind": "class", "description": "", - "name": "TextInputEvents", + "name": "HTMLMessages", "members": [ - { - "kind": "field", - "name": "PERMITTED_KEYS", - "privacy": "private", - "static": true, - "default": "new Set([\n KEYBOARD_KEY.BACKSPACE, KEYBOARD_KEY.DELETE, KEYBOARD_KEY.ARROW_RIGHT, KEYBOARD_KEY.ARROW_LEFT,\n KEYBOARD_KEY.ARROW_DOWN, KEYBOARD_KEY.ARROW_UP, KEYBOARD_KEY.META, KEYBOARD_KEY.CONTROL, KEYBOARD_KEY.ENTER\n ])" - }, { "kind": "method", - "name": "add", - "privacy": "public", + "name": "addElement", + "privacy": "private", "static": true, "parameters": [ { - "name": "inputElement", - "type": { - "text": "HTMLElement" - } - }, - { - "name": "characterLimit", - "optional": true, + "name": "messages", "type": { - "text": "number" + "text": "Messages" } }, { - "name": "validationHandler", - "optional": true, + "name": "outerElement", "type": { - "text": "ValidationHandler" + "text": "HTMLElement" } } ] }, { "kind": "method", - "name": "onKeyDown", + "name": "createElements", "privacy": "private", "static": true, "parameters": [ { - "name": "characterLimit", + "name": "messages", "type": { - "text": "number" + "text": "Messages" } }, { - "name": "event", + "name": "html", "type": { - "text": "KeyboardEvent" + "text": "string" + } + }, + { + "name": "role", + "type": { + "text": "string" } } ] }, { "kind": "method", - "name": "isKeyCombinationPermitted", + "name": "updateLastAIMessage", "privacy": "private", "static": true, "parameters": [ { - "name": "event", + "name": "messages", "type": { - "text": "KeyboardEvent" + "text": "MessageContentI[]" + } + }, + { + "name": "html", + "type": { + "text": "string" + } + }, + { + "name": "messagesElements", + "type": { + "text": "MessageElements[]" } } ] }, { "kind": "method", - "name": "onInput", - "privacy": "private", + "name": "add", + "privacy": "public", "static": true, "parameters": [ { - "name": "characterLimit", + "name": "messages", "type": { - "text": "number | undefined" + "text": "Messages" } }, { - "name": "validate", + "name": "html", "type": { - "text": "ValidationHandler | undefined" + "text": "string" } }, { - "name": "event", + "name": "role", "type": { - "text": "Event" + "text": "string" + } + }, + { + "name": "messagesElements", + "type": { + "text": "MessageElements[]" } } ] @@ -29616,31 +30449,31 @@ "exports": [ { "kind": "js", - "name": "TextInputEvents", + "name": "HTMLMessages", "declaration": { - "name": "TextInputEvents", - "module": "src/views/chat/input/textInput/textInputEvents.ts" + "name": "HTMLMessages", + "module": "src/views/chat/messages/html/htmlMessages.ts" } } ] }, { "kind": "javascript-module", - "path": "src/views/chat/input/buttons/buttonCSS.ts", + "path": "src/views/chat/messages/html/htmlUtils.ts", "declarations": [ { "kind": "class", "description": "", - "name": "ButtonCSS", + "name": "HTMLUtils", "members": [ { "kind": "method", - "name": "unsetAllCSS", + "name": "applyStylesToElement", "privacy": "public", "static": true, "parameters": [ { - "name": "button", + "name": "element", "type": { "text": "HTMLElement" } @@ -29648,79 +30481,87 @@ { "name": "styles", "type": { - "text": "ButtonStyles" + "text": "StatefulStyles" } } ] }, { "kind": "method", - "name": "unsetActionCSS", - "privacy": "public", + "name": "applyEventsToElement", + "privacy": "private", "static": true, "parameters": [ { - "name": "button", + "name": "element", "type": { "text": "HTMLElement" } }, { - "name": "styles", + "name": "events", "type": { - "text": "ButtonStyles" + "text": "EventToFunction" } } ] }, { "kind": "method", - "name": "setElementsCSS", - "privacy": "public", + "name": "applyClassUtilitiesToElement", + "privacy": "private", "static": true, "parameters": [ { - "name": "button", + "name": "element", "type": { "text": "HTMLElement" } }, { - "name": "styles", + "name": "classUtility", "type": { - "text": "ButtonStyles" + "text": "HTMLClassUtility" + } + } + ] + }, + { + "kind": "method", + "name": "applyCustomClassUtilities", + "privacy": "private", + "static": true, + "parameters": [ + { + "name": "utilities", + "type": { + "text": "HTMLClassUtilities" } }, { - "name": "style", + "name": "element", "type": { - "text": "keyof StatefulStyles" + "text": "HTMLElement" } } ] }, { "kind": "method", - "name": "setElementCssUpToState", + "name": "apply", "privacy": "public", "static": true, "parameters": [ { - "name": "button", - "type": { - "text": "HTMLElement" - } - }, - { - "name": "styles", + "name": "messages", "type": { - "text": "ButtonStyles" + "text": "Messages" } }, { - "name": "style", + "name": "outmostElement", "type": { - "text": "keyof StatefulStyles" + "text": "HTMLElement" } } ] @@ -29731,188 +30572,221 @@ "exports": [ { "kind": "js", - "name": "ButtonCSS", + "name": "HTMLUtils", "declaration": { - "name": "ButtonCSS", - "module": "src/views/chat/input/buttons/buttonCSS.ts" + "name": "HTMLUtils", + "module": "src/views/chat/messages/html/htmlUtils.ts" } } ] }, { "kind": "javascript-module", - "path": "src/views/chat/input/buttons/customButtonInnerElements.ts", + "path": "src/views/chat/messages/remarkable/remarkableConfig.ts", "declarations": [ { "kind": "class", "description": "", - "name": "CustomButtonInnerElements", + "name": "RemarkableConfig", "members": [ { "kind": "method", - "name": "createTextElement", + "name": "createNew", + "privacy": "public", + "static": true + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "RemarkableConfig", + "declaration": { + "name": "RemarkableConfig", + "module": "src/views/chat/messages/remarkable/remarkableConfig.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/views/chat/messages/textToSpeech/textToSpeech.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "TextToSpeech", + "members": [ + { + "kind": "field", + "name": "LOAD_VOICES_MS", + "type": { + "text": "number" + }, "privacy": "private", "static": true, - "parameters": [ - { - "name": "text", - "type": { - "text": "string" - } - } - ] + "default": "200" }, { "kind": "method", - "name": "createElement", - "privacy": "private", + "name": "speak", + "privacy": "public", "static": true, "parameters": [ { - "name": "string", + "name": "text", "type": { "text": "string" } }, { - "name": "isText", + "name": "config", "type": { - "text": "boolean" + "text": "ProcessedTextToSpeechConfig" } } ] }, { "kind": "method", - "name": "createCustomElement", + "name": "processConfig", "privacy": "public", "static": true, "parameters": [ { - "name": "state", + "name": "config", "type": { - "text": "keyof T" + "text": "boolean | TextToSpeechConfig" } }, { - "name": "customStyles", - "optional": true, + "name": "set", "type": { - "text": "ButtonStateStyles" + "text": "(config: ProcessedTextToSpeechConfig) => void" } } ] - }, + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "TextToSpeech", + "declaration": { + "name": "TextToSpeech", + "module": "src/views/chat/messages/textToSpeech/textToSpeech.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/views/chat/input/buttons/camera/cameraButton.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "CameraButton", + "members": [ { "kind": "method", - "name": "processElement", + "name": "createInnerElements", "privacy": "private", - "static": true, "parameters": [ { - "name": "parentEl", - "type": { - "text": "HTMLElement" - } - }, - { - "name": "element", + "name": "customStyles", "optional": true, "type": { - "text": "Element" + "text": "Styles" } } ] }, { "kind": "method", - "name": "createSpecificStateElement", - "privacy": "public", - "static": true, + "name": "createInnerElement", + "privacy": "private", "parameters": [ { - "name": "parentEl", + "name": "baseButton", "type": { - "text": "HTMLElement" + "text": "SVGGraphicsElement" } }, { "name": "state", "type": { - "text": "keyof T" + "text": "'styles'" } }, { "name": "customStyles", "optional": true, "type": { - "text": "ButtonStateStyles" + "text": "Styles" } } ] }, { "kind": "method", - "name": "create", - "privacy": "public", - "static": true, - "return": { - "type": { - "text": "ButtonInnerElements" - } - }, + "name": "createButtonElement", + "privacy": "private", + "static": true + }, + { + "kind": "method", + "name": "createSVGIconElement", + "privacy": "private", + "static": true + }, + { + "kind": "method", + "name": "addClickEvent", + "privacy": "private", "parameters": [ { - "name": "parentEl", + "name": "containerElement", "type": { "text": "HTMLElement" } }, { - "name": "states", + "name": "fileAttachmentsType", "type": { - "text": "(keyof T)[]" + "text": "FileAttachmentsType" } }, { - "name": "styles", + "name": "modalContainerStyle", "optional": true, "type": { - "text": "ButtonStateStyles" + "text": "CustomStyle" + } + }, + { + "name": "cameraFiles", + "optional": true, + "type": { + "text": "CameraFiles" } } ] - } - ] - } - ], - "exports": [ - { - "kind": "js", - "name": "CustomButtonInnerElements", - "declaration": { - "name": "CustomButtonInnerElements", - "module": "src/views/chat/input/buttons/customButtonInnerElements.ts" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "src/views/chat/input/buttons/inputButton.ts", - "declarations": [ - { - "kind": "class", - "description": "", - "name": "InputButton", - "members": [ + }, { "kind": "field", "name": "elementRef", "type": { "text": "HTMLElement" }, - "default": "buttonElement" + "default": "buttonElement", + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } }, { "kind": "field", @@ -29921,7 +30795,11 @@ "text": "MouseState" }, "privacy": "protected", - "default": "{state: 'default'}" + "default": "{state: 'default'}", + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } }, { "kind": "field", @@ -29930,7 +30808,11 @@ "text": "T | undefined" }, "privacy": "protected", - "default": "customStyles" + "default": "customStyles", + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } }, { "kind": "field", @@ -29938,7 +30820,11 @@ "type": { "text": "ButtonPositionT | undefined" }, - "default": "position" + "default": "position", + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } }, { "kind": "field", @@ -29946,7 +30832,11 @@ "type": { "text": "string | undefined" }, - "default": "dropupText" + "default": "dropupText", + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } }, { "kind": "method", @@ -29960,7 +30850,11 @@ "text": "ButtonStyles" } } - ] + ], + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } }, { "kind": "method", @@ -29974,7 +30868,11 @@ "text": "ButtonStyles" } } - ] + ], + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } }, { "kind": "method", @@ -29988,7 +30886,11 @@ "text": "ButtonStyles" } } - ] + ], + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } }, { "kind": "method", @@ -30002,7 +30904,11 @@ "text": "ButtonStyles" } } - ] + ], + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } }, { "kind": "method", @@ -30016,7 +30922,11 @@ "text": "ButtonStyles" } } - ] + ], + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } }, { "kind": "method", @@ -30029,7 +30939,11 @@ "text": "(keyof T)[]" } } - ] + ], + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } }, { "kind": "method", @@ -30049,2445 +30963,1592 @@ "text": "(keyof T)[]" } } - ] + ], + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } } - ] + ], + "superclass": { + "name": "InputButton", + "module": "/src/views/chat/input/buttons/inputButton" + } } ], "exports": [ { "kind": "js", - "name": "InputButton", + "name": "CameraButton", "declaration": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" + "name": "CameraButton", + "module": "src/views/chat/input/buttons/camera/cameraButton.ts" } } ] }, { "kind": "javascript-module", - "path": "src/views/chat/input/validation/validationHandler.ts", + "path": "src/views/chat/input/buttons/microphone/microphoneButton.ts", "declarations": [ { "kind": "class", "description": "", - "name": "ValidationHandler", + "name": "MicrophoneButton", "members": [ { - "kind": "method", - "name": "useValidationFunc", - "privacy": "private", - "static": true, - "parameters": [ - { - "name": "validation", - "type": { - "text": "ValidateFunc" - } - }, - { - "name": "textInput", - "type": { - "text": "TextInputEl" - } - }, - { - "name": "fileAttachments", - "type": { - "text": "FileAttachments" - } - }, - { - "name": "submitButton", - "type": { - "text": "SubmitButton" - } - }, - { - "name": "isProgrammatic", - "type": { - "text": "boolean" - } - } - ] + "kind": "field", + "name": "_innerElements", + "type": { + "text": "DefinedButtonInnerElements" + }, + "privacy": "private" + }, + { + "kind": "field", + "name": "isActive", + "type": { + "text": "boolean" + }, + "default": "false" }, { "kind": "method", - "name": "validateWebsocket", + "name": "createInnerElements", "privacy": "private", - "static": true, "parameters": [ { - "name": "serviceIO", - "type": { - "text": "ServiceIO" - } - }, - { - "name": "submitButton", + "name": "customStyles", + "optional": true, "type": { - "text": "SubmitButton" + "text": "Styles" } } ] }, { "kind": "method", - "name": "attach", - "privacy": "public", - "static": true, + "name": "createInnerElement", + "privacy": "private", "parameters": [ { - "name": "deepChat", - "type": { - "text": "DeepChat" - } - }, - { - "name": "serviceIO", - "type": { - "text": "ServiceIO" - } - }, - { - "name": "textInput", + "name": "baseButton", "type": { - "text": "TextInputEl" + "text": "SVGGraphicsElement" } }, { - "name": "fileAttachments", + "name": "state", "type": { - "text": "FileAttachments" + "text": "keyof MicrophoneButton['_innerElements']" } }, { - "name": "submitButton", + "name": "customStyles", + "optional": true, "type": { - "text": "SubmitButton" + "text": "Styles" } } ] - } - ] - } - ], - "exports": [ - { - "kind": "js", - "name": "ValidationHandler", - "declaration": { - "name": "ValidationHandler", - "module": "src/views/chat/input/validation/validationHandler.ts" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "src/views/chat/messages/textToSpeech/textToSpeech.ts", - "declarations": [ - { - "kind": "class", - "description": "", - "name": "TextToSpeech", - "members": [ + }, { - "kind": "field", - "name": "LOAD_VOICES_MS", - "type": { - "text": "number" - }, + "kind": "method", + "name": "createMicrophoneElement", "privacy": "private", - "static": true, - "default": "200" + "static": true }, { "kind": "method", - "name": "speak", - "privacy": "public", - "static": true, - "parameters": [ - { - "name": "text", - "type": { - "text": "string" - } - }, - { - "name": "config", - "type": { - "text": "ProcessedTextToSpeechConfig" - } - } - ] + "name": "createSVGIconElement", + "privacy": "private", + "static": true }, { "kind": "method", - "name": "processConfig", - "privacy": "public", - "static": true, + "name": "changeToActive", + "privacy": "public" + }, + { + "kind": "method", + "name": "changeToDefault", + "privacy": "public" + }, + { + "kind": "method", + "name": "changeToCommandMode", + "privacy": "public" + }, + { + "kind": "method", + "name": "changeToUnsupported", + "privacy": "public" + }, + { + "kind": "method", + "name": "toggleIconFilter", + "privacy": "private", "parameters": [ { - "name": "config", - "type": { - "text": "boolean | TextToSpeechConfig" - } - }, - { - "name": "set", + "name": "mode", "type": { - "text": "(config: ProcessedTextToSpeechConfig) => void" + "text": "'default' | 'active' | 'command'" } } ] - } - ] - } - ], - "exports": [ - { - "kind": "js", - "name": "TextToSpeech", - "declaration": { - "name": "TextToSpeech", - "module": "src/views/chat/messages/textToSpeech/textToSpeech.ts" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "src/views/chat/messages/html/htmlDeepChatElements.ts", - "declarations": [ - { - "kind": "class", - "description": "", - "name": "HTMLDeepChatElements", - "members": [ + }, + { + "kind": "field", + "name": "elementRef", + "type": { + "text": "HTMLElement" + }, + "default": "buttonElement", + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } + }, + { + "kind": "field", + "name": "_mouseState", + "type": { + "text": "MouseState" + }, + "privacy": "protected", + "default": "{state: 'default'}", + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } + }, + { + "kind": "field", + "name": "_customStyles", + "type": { + "text": "T | undefined" + }, + "privacy": "protected", + "default": "customStyles", + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } + }, + { + "kind": "field", + "name": "position", + "type": { + "text": "ButtonPositionT | undefined" + }, + "default": "position", + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } + }, + { + "kind": "field", + "name": "dropupText", + "type": { + "text": "string | undefined" + }, + "default": "dropupText", + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } + }, { "kind": "method", - "name": "applySuggestionEvent", + "name": "buttonMouseLeave", "privacy": "private", - "static": true, "parameters": [ { - "name": "messages", - "type": { - "text": "Messages" - } - }, - { - "name": "element", + "name": "customStyles", + "optional": true, "type": { - "text": "Element" + "text": "ButtonStyles" } } - ] + ], + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } }, { "kind": "method", - "name": "isUpdateMessage", - "privacy": "public", - "static": true, + "name": "buttonMouseEnter", + "privacy": "private", "parameters": [ { - "name": "html", + "name": "customStyles", + "optional": true, "type": { - "text": "string" + "text": "ButtonStyles" } } - ] + ], + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } }, { "kind": "method", - "name": "isElementTemporary", - "privacy": "public", - "static": true, + "name": "buttonMouseUp", + "privacy": "private", "parameters": [ { - "name": "messageElements", + "name": "customStyles", "optional": true, "type": { - "text": "MessageElements" + "text": "ButtonStyles" } } - ] + ], + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } }, { "kind": "method", - "name": "doesElementContainDeepChatClass", - "privacy": "public", - "static": true, + "name": "buttonMouseDown", + "privacy": "private", "parameters": [ { - "name": "element", + "name": "customStyles", + "optional": true, "type": { - "text": "HTMLElement" + "text": "ButtonStyles" } } - ] + ], + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } }, { "kind": "method", - "name": "applyEvents", + "name": "setEvents", "privacy": "private", - "static": true, "parameters": [ { - "name": "element", - "type": { - "text": "Element" - } - }, - { - "name": "className", + "name": "customStyles", + "optional": true, "type": { - "text": "string" + "text": "ButtonStyles" } } - ] + ], + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } }, { "kind": "method", - "name": "getProcessedStyles", - "privacy": "private", - "static": true, + "name": "unsetCustomStateStyles", + "privacy": "public", "parameters": [ { - "name": "utilities", - "type": { - "text": "HTMLClassUtilities" - } - }, - { - "name": "element", - "type": { - "text": "Element" - } - }, - { - "name": "className", + "name": "unsetTypes", "type": { - "text": "string" + "text": "(keyof T)[]" } } - ] + ], + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } }, { "kind": "method", - "name": "applyDeepChatUtilities", + "name": "reapplyStateStyle", "privacy": "public", - "static": true, "parameters": [ { - "name": "messages", - "type": { - "text": "Messages" - } - }, - { - "name": "utilities", + "name": "setType", "type": { - "text": "HTMLClassUtilities" + "text": "keyof T" } }, { - "name": "element", + "name": "unsetTypes", + "optional": true, "type": { - "text": "HTMLElement" + "text": "(keyof T)[]" } } - ] + ], + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } } - ] - } - ], - "exports": [ - { - "kind": "js", - "name": "HTMLDeepChatElements", - "declaration": { - "name": "HTMLDeepChatElements", - "module": "src/views/chat/messages/html/htmlDeepChatElements.ts" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "src/views/chat/messages/html/htmlMessages.ts", - "declarations": [ - { - "kind": "class", - "description": "", - "name": "HTMLMessages", - "members": [ - { - "kind": "method", - "name": "addElement", - "privacy": "private", - "static": true, - "parameters": [ - { - "name": "messages", - "type": { - "text": "Messages" - } - }, - { - "name": "outerElement", - "type": { - "text": "HTMLElement" - } - } - ] - }, - { - "kind": "method", - "name": "createElements", - "privacy": "private", - "static": true, - "parameters": [ - { - "name": "messages", - "type": { - "text": "Messages" - } - }, - { - "name": "html", - "type": { - "text": "string" - } - }, - { - "name": "isAI", - "type": { - "text": "boolean" - } - } - ] - }, - { - "kind": "method", - "name": "updateLastAIMessage", - "privacy": "private", - "static": true, - "parameters": [ - { - "name": "messages", - "type": { - "text": "MessageContent[]" - } - }, - { - "name": "html", - "type": { - "text": "string" - } - }, - { - "name": "messagesElements", - "type": { - "text": "MessageElements[]" - } - } - ] - }, - { - "kind": "method", - "name": "add", - "privacy": "public", - "static": true, - "parameters": [ - { - "name": "messages", - "type": { - "text": "Messages" - } - }, - { - "name": "html", - "type": { - "text": "string" - } - }, - { - "name": "isAI", - "type": { - "text": "boolean" - } - }, - { - "name": "messagesElements", - "type": { - "text": "MessageElements[]" - } - } - ] - } - ] - } - ], - "exports": [ - { - "kind": "js", - "name": "HTMLMessages", - "declaration": { - "name": "HTMLMessages", - "module": "src/views/chat/messages/html/htmlMessages.ts" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "src/views/chat/messages/html/htmlUtils.ts", - "declarations": [ - { - "kind": "class", - "description": "", - "name": "HTMLUtils", - "members": [ - { - "kind": "method", - "name": "applyStylesToElement", - "privacy": "public", - "static": true, - "parameters": [ - { - "name": "element", - "type": { - "text": "HTMLElement" - } - }, - { - "name": "styles", - "type": { - "text": "StatefulStyles" - } - } - ] - }, - { - "kind": "method", - "name": "applyEventsToElement", - "privacy": "private", - "static": true, - "parameters": [ - { - "name": "element", - "type": { - "text": "HTMLElement" - } - }, - { - "name": "events", - "type": { - "text": "EventToFunction" - } - } - ] - }, - { - "kind": "method", - "name": "applyClassUtilitiesToElement", - "privacy": "private", - "static": true, - "parameters": [ - { - "name": "element", - "type": { - "text": "HTMLElement" - } - }, - { - "name": "classUtility", - "type": { - "text": "HTMLClassUtility" - } - } - ] - }, - { - "kind": "method", - "name": "applyCustomClassUtilities", - "privacy": "private", - "static": true, - "parameters": [ - { - "name": "utilities", - "type": { - "text": "HTMLClassUtilities" - } - }, - { - "name": "element", - "type": { - "text": "HTMLElement" - } - } - ] - }, - { - "kind": "method", - "name": "apply", - "privacy": "public", - "static": true, - "parameters": [ - { - "name": "messages", - "type": { - "text": "Messages" - } - }, - { - "name": "outmostElement", - "type": { - "text": "HTMLElement" - } - } - ] - } - ] - } - ], - "exports": [ - { - "kind": "js", - "name": "HTMLUtils", - "declaration": { - "name": "HTMLUtils", - "module": "src/views/chat/messages/html/htmlUtils.ts" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "src/views/chat/messages/remarkable/remarkableConfig.ts", - "declarations": [ - { - "kind": "class", - "description": "", - "name": "RemarkableConfig", - "members": [ - { - "kind": "method", - "name": "createNew", - "privacy": "public", - "static": true - } - ] - } - ], - "exports": [ - { - "kind": "js", - "name": "RemarkableConfig", - "declaration": { - "name": "RemarkableConfig", - "module": "src/views/chat/messages/remarkable/remarkableConfig.ts" + ], + "superclass": { + "name": "InputButton", + "module": "/src/views/chat/input/buttons/inputButton" } } - ] - }, - { - "kind": "javascript-module", - "path": "src/views/chat/input/fileAttachments/dragAndDrop/dragAndDrop.ts", - "declarations": [ - { - "kind": "class", - "description": "", - "name": "DragAndDrop", - "members": [ - { - "kind": "method", - "name": "create", - "privacy": "public", - "static": true, - "parameters": [ - { - "name": "containerElement", - "type": { - "text": "HTMLElement" - } - }, - { - "name": "fileAttachments", - "type": { - "text": "FileAttachments" - } - }, - { - "name": "dnd", - "optional": true, - "type": { - "text": "boolean | CustomStyle" - } - } - ] - }, - { - "kind": "method", - "name": "createElement", - "privacy": "private", - "static": true, - "parameters": [ - { - "name": "dnd", - "optional": true, - "type": { - "text": "boolean | CustomStyle" - } - } - ] - }, - { - "kind": "method", - "name": "addEvents", - "privacy": "private", - "static": true, - "parameters": [ - { - "name": "fileDropElement", - "type": { - "text": "HTMLElement" - } - }, - { - "name": "containerElement", - "type": { - "text": "HTMLElement" - } - }, - { - "name": "fileAttachments", - "type": { - "text": "FileAttachments" - } - } - ] - }, - { - "kind": "method", - "name": "uploadFile", - "privacy": "private", - "static": true, - "parameters": [ - { - "name": "fileAttachments", - "type": { - "text": "FileAttachments" - } - }, - { - "name": "event", - "type": { - "text": "DragEvent" - } - } - ] - }, - { - "kind": "method", - "name": "display", - "privacy": "private", - "static": true, - "parameters": [ - { - "name": "fileDropElement", - "type": { - "text": "HTMLElement" - } - } - ] - }, - { - "kind": "method", - "name": "hide", - "privacy": "private", - "static": true, - "parameters": [ - { - "name": "fileDropElement", - "type": { - "text": "HTMLElement" - } - } - ] - }, - { - "kind": "method", - "name": "isEnabled", - "privacy": "public", - "static": true, - "parameters": [ - { - "name": "fileAttachments", - "type": { - "text": "FileAttachments" - } - }, - { - "name": "dragAndDrop", - "optional": true, - "type": { - "text": "boolean | CustomStyle" - } - } - ] - } - ] - } ], "exports": [ { "kind": "js", - "name": "DragAndDrop", + "name": "MicrophoneButton", "declaration": { - "name": "DragAndDrop", - "module": "src/views/chat/input/fileAttachments/dragAndDrop/dragAndDrop.ts" + "name": "MicrophoneButton", + "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" } } ] }, { "kind": "javascript-module", - "path": "src/views/chat/input/fileAttachments/fileAttachmentTypes/audioFileAttachmentType.ts", + "path": "src/views/chat/input/buttons/microphone/recordAudio.ts", "declarations": [ { "kind": "class", "description": "", - "name": "AudioFileAttachmentType", + "name": "RecordAudio", "members": [ { "kind": "field", - "name": "stopPlaceholderCallback", - "type": { - "text": "() => Promise | undefined" - } - }, - { - "kind": "field", - "name": "_activePlaceholderTimer", + "name": "_mediaRecorder", "type": { - "text": "number | undefined" + "text": "MediaRecorder | undefined" }, "privacy": "private" }, { "kind": "field", - "name": "_activePlaceholderAttachment", + "name": "_mediaStream", "type": { - "text": "AttachmentObject | undefined" + "text": "MediaStream | undefined" }, "privacy": "private" }, { "kind": "field", - "name": "TIMER_LIMIT_S", - "type": { - "text": "number" - }, - "privacy": "private", - "static": true, - "default": "5999" - }, - { - "kind": "method", - "name": "createAudioContainer", - "privacy": "private", - "static": true - }, - { - "kind": "method", - "name": "addAudioElements", - "privacy": "private", - "static": true, - "parameters": [ - { - "name": "oldContainer", - "type": { - "text": "HTMLElement" - } - }, - { - "name": "fileReaderResult", - "type": { - "text": "string" - } - } - ] - }, - { - "kind": "method", - "name": "createAudioAttachment", - "privacy": "public", - "static": true, - "parameters": [ - { - "name": "fileReaderResult", - "type": { - "text": "string" - } - } - ] - }, - { - "kind": "method", - "name": "createTimer", - "privacy": "private", - "parameters": [ - { - "name": "text", - "type": { - "text": "HTMLElement" - } - }, - { - "name": "customTimeLimit", - "optional": true, - "type": { - "text": "number" - } - } - ] - }, - { - "kind": "method", - "name": "createPlaceholderAudioAttachment", - "privacy": "private", - "parameters": [ - { - "name": "customTimeLimit", - "optional": true, - "type": { - "text": "number" - } - } - ] - }, - { - "kind": "method", - "name": "addPlaceholderAudioAttachmentEvents", - "privacy": "private", - "parameters": [ - { - "name": "container", - "type": { - "text": "HTMLElement" - } - }, - { - "name": "stop", - "type": { - "text": "SVGElement" - } - }, - { - "name": "textContainer", - "type": { - "text": "HTMLElement" - } - } - ] - }, - { - "kind": "method", - "name": "addPlaceholderAttachment", - "parameters": [ - { - "name": "stopCallback", - "type": { - "text": "() => Promise" - } - }, - { - "name": "customTimeLimit", - "optional": true, - "type": { - "text": "number" - } - } - ] - }, - { - "kind": "method", - "name": "completePlaceholderAttachment", - "parameters": [ - { - "name": "file", - "type": { - "text": "File" - } - }, - { - "name": "fileReaderResult", - "type": { - "text": "string" - } - } - ] - }, - { - "kind": "method", - "name": "removePlaceholderAttachment" - }, - { - "kind": "method", - "name": "clearTimer", - "privacy": "private" - }, - { - "kind": "method", - "name": "stopAttachmentPlayback", - "privacy": "public", - "static": true, - "parameters": [ - { - "name": "attachmentContainerEl", - "type": { - "text": "HTMLElement" - } - } - ] - }, - { - "kind": "field", - "name": "_attachments", - "type": { - "text": "AttachmentObject[]" - }, - "privacy": "private", - "default": "[]", - "inheritedFrom": { - "name": "FileAttachmentsType", - "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" - } - }, - { - "kind": "field", - "name": "_fileCountLimit", + "name": "_waitingForBrowserApproval", "type": { - "text": "number" + "text": "boolean" }, "privacy": "private", - "default": "99", - "inheritedFrom": { - "name": "FileAttachmentsType", - "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" - } + "default": "false" }, { "kind": "field", - "name": "_toggleContainerDisplay", + "name": "_audioType", "type": { - "text": "(display: boolean) => void" + "text": "AudioFileAttachmentType" }, "privacy": "private", - "default": "toggleContainer", - "inheritedFrom": { - "name": "FileAttachmentsType", - "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" - } + "default": "audioType" }, { "kind": "field", - "name": "_fileAttachmentsContainerRef", + "name": "_extension", "type": { - "text": "HTMLElement" + "text": "AudioFormat" }, - "privacy": "private", - "default": "container", - "inheritedFrom": { - "name": "FileAttachmentsType", - "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" - } + "privacy": "private" }, { "kind": "field", - "name": "_acceptedFormat", - "type": { - "text": "string" - }, - "privacy": "private", - "default": "''", - "inheritedFrom": { - "name": "FileAttachmentsType", - "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" - } + "name": "_maxDurationSeconds", + "type": { + "text": "number | undefined" + }, + "privacy": "private" }, { "kind": "field", - "name": "_validationHandler", + "name": "_newFilePrefix", "type": { - "text": "ValidationHandler | undefined" + "text": "string | undefined" }, - "privacy": "private", - "inheritedFrom": { - "name": "FileAttachmentsType", - "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" - } + "privacy": "private" }, { "kind": "method", - "name": "attemptAddFile", - "parameters": [ - { - "name": "file", - "type": { - "text": "File" - } - }, - { - "name": "fileReaderResult", - "type": { - "text": "string" - } - } - ], - "inheritedFrom": { - "name": "FileAttachmentsType", - "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" - } + "name": "buttonClick", + "privacy": "private" }, { "kind": "method", - "name": "isFileTypeValid", + "name": "stop", "privacy": "private", - "static": true, - "parameters": [ - { - "name": "file", - "type": { - "text": "File" - } - }, - { - "name": "accept", - "type": { - "text": "string" - } + "return": { + "type": { + "text": "Promise" } - ], - "inheritedFrom": { - "name": "FileAttachmentsType", - "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" } }, { "kind": "method", - "name": "addAttachmentBasedOnType", + "name": "record", + "privacy": "private" + }, + { + "kind": "method", + "name": "createFile", "privacy": "private", "parameters": [ { - "name": "file", - "type": { - "text": "File" - } - }, - { - "name": "fileReaderResult", - "type": { - "text": "string" - } - }, - { - "name": "removable", + "name": "event", "type": { - "text": "boolean" + "text": "BlobEvent" } } - ], + ] + }, + { + "kind": "field", + "name": "onclick" + }, + { + "kind": "field", + "name": "_innerElements", + "type": { + "text": "DefinedButtonInnerElements" + }, + "privacy": "private", "inheritedFrom": { - "name": "FileAttachmentsType", - "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" + "name": "MicrophoneButton", + "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" } }, { - "kind": "method", - "name": "createImageAttachment", - "privacy": "private", - "static": true, - "parameters": [ - { - "name": "src", - "type": { - "text": "string" - } - } - ], + "kind": "field", + "name": "isActive", + "type": { + "text": "boolean" + }, + "default": "false", "inheritedFrom": { - "name": "FileAttachmentsType", - "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" + "name": "MicrophoneButton", + "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" } }, { "kind": "method", - "name": "createAnyFileAttachment", + "name": "createInnerElements", "privacy": "private", - "static": true, "parameters": [ { - "name": "fileName", + "name": "customStyles", + "optional": true, "type": { - "text": "string" + "text": "Styles" } } ], "inheritedFrom": { - "name": "FileAttachmentsType", - "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" + "name": "MicrophoneButton", + "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" } }, { "kind": "method", - "name": "addFileAttachment", + "name": "createInnerElement", + "privacy": "private", "parameters": [ { - "name": "file", - "type": { - "text": "File" - } - }, - { - "name": "fileType", + "name": "baseButton", "type": { - "text": "MessageFileType" + "text": "SVGGraphicsElement" } }, { - "name": "attachmentElement", + "name": "state", "type": { - "text": "HTMLElement" + "text": "keyof MicrophoneButton['_innerElements']" } }, { - "name": "removable", + "name": "customStyles", + "optional": true, "type": { - "text": "boolean" + "text": "Styles" } } ], "inheritedFrom": { - "name": "FileAttachmentsType", - "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" + "name": "MicrophoneButton", + "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" } }, { "kind": "method", - "name": "createContainer", + "name": "createMicrophoneElement", "privacy": "private", "static": true, - "parameters": [ - { - "name": "attachmentElement", - "type": { - "text": "HTMLElement" - } - } - ], "inheritedFrom": { - "name": "FileAttachmentsType", - "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" + "name": "MicrophoneButton", + "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" } }, { "kind": "method", - "name": "createRemoveAttachmentButton", - "parameters": [ - { - "name": "attachmentObject", - "type": { - "text": "AttachmentObject" - } - } - ], + "name": "createSVGIconElement", + "privacy": "private", + "static": true, "inheritedFrom": { - "name": "FileAttachmentsType", - "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" + "name": "MicrophoneButton", + "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" } }, { "kind": "method", - "name": "removeAttachment", - "parameters": [ - { - "name": "attachmentObject", - "type": { - "text": "AttachmentObject" - } - } - ], + "name": "changeToActive", + "privacy": "public", "inheritedFrom": { - "name": "FileAttachmentsType", - "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" + "name": "MicrophoneButton", + "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" } }, { "kind": "method", - "name": "getFiles", + "name": "changeToDefault", + "privacy": "public", "inheritedFrom": { - "name": "FileAttachmentsType", - "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" + "name": "MicrophoneButton", + "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" } }, { "kind": "method", - "name": "removeAllAttachments", + "name": "changeToCommandMode", + "privacy": "public", "inheritedFrom": { - "name": "FileAttachmentsType", - "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" + "name": "MicrophoneButton", + "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" } - } - ], - "superclass": { - "name": "FileAttachmentsType", - "module": "/src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType" - } - } - ], - "exports": [ - { - "kind": "js", - "name": "AudioFileAttachmentType", - "declaration": { - "name": "AudioFileAttachmentType", - "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/audioFileAttachmentType.ts" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentTypeFactory.ts", - "declarations": [ - { - "kind": "class", - "description": "", - "name": "FileAttachmentTypeFactory", - "members": [ + }, { "kind": "method", - "name": "create", + "name": "changeToUnsupported", "privacy": "public", - "static": true, + "inheritedFrom": { + "name": "MicrophoneButton", + "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" + } + }, + { + "kind": "method", + "name": "toggleIconFilter", + "privacy": "private", "parameters": [ { - "name": "deepChat", - "type": { - "text": "DeepChat" - } - }, - { - "name": "files", - "type": { - "text": "FileAttachments" - } - }, - { - "name": "toggleContainer", - "type": { - "text": "(display: boolean) => void" - } - }, - { - "name": "container", - "type": { - "text": "HTMLElement" - } - }, - { - "name": "type", + "name": "mode", "type": { - "text": "keyof ServiceFileTypes" + "text": "'default' | 'active' | 'command'" } } - ] - } - ] - } - ], - "exports": [ - { - "kind": "js", - "name": "FileAttachmentTypeFactory", - "declaration": { - "name": "FileAttachmentTypeFactory", - "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentTypeFactory.ts" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts", - "declarations": [ - { - "kind": "class", - "description": "", - "name": "FileAttachmentsType", - "members": [ - { - "kind": "field", - "name": "_attachments", - "type": { - "text": "AttachmentObject[]" - }, - "privacy": "private", - "default": "[]" + ], + "inheritedFrom": { + "name": "MicrophoneButton", + "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" + } }, { "kind": "field", - "name": "_fileCountLimit", + "name": "elementRef", "type": { - "text": "number" + "text": "HTMLElement" }, - "privacy": "private", - "default": "99" + "default": "buttonElement", + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } }, { "kind": "field", - "name": "_toggleContainerDisplay", + "name": "_mouseState", "type": { - "text": "(display: boolean) => void" + "text": "MouseState" }, - "privacy": "private", - "default": "toggleContainer" + "privacy": "protected", + "default": "{state: 'default'}", + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } }, { "kind": "field", - "name": "_fileAttachmentsContainerRef", + "name": "_customStyles", "type": { - "text": "HTMLElement" + "text": "T | undefined" }, - "privacy": "private", - "default": "container" + "privacy": "protected", + "default": "customStyles", + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } }, { "kind": "field", - "name": "_acceptedFormat", + "name": "position", "type": { - "text": "string" + "text": "ButtonPositionT | undefined" }, - "privacy": "private", - "default": "''" + "default": "position", + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } }, { "kind": "field", - "name": "_validationHandler", + "name": "dropupText", "type": { - "text": "ValidationHandler | undefined" + "text": "string | undefined" }, - "privacy": "private" - }, - { - "kind": "method", - "name": "attemptAddFile", - "parameters": [ - { - "name": "file", - "type": { - "text": "File" - } - }, - { - "name": "fileReaderResult", - "type": { - "text": "string" - } - } - ] + "default": "dropupText", + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } }, { "kind": "method", - "name": "isFileTypeValid", + "name": "buttonMouseLeave", "privacy": "private", - "static": true, "parameters": [ { - "name": "file", - "type": { - "text": "File" - } - }, - { - "name": "accept", + "name": "customStyles", + "optional": true, "type": { - "text": "string" + "text": "ButtonStyles" } } - ] + ], + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } }, { "kind": "method", - "name": "addAttachmentBasedOnType", + "name": "buttonMouseEnter", "privacy": "private", "parameters": [ { - "name": "file", - "type": { - "text": "File" - } - }, - { - "name": "fileReaderResult", - "type": { - "text": "string" - } - }, - { - "name": "removable", + "name": "customStyles", + "optional": true, "type": { - "text": "boolean" + "text": "ButtonStyles" } } - ] + ], + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } }, { "kind": "method", - "name": "createImageAttachment", + "name": "buttonMouseUp", "privacy": "private", - "static": true, "parameters": [ { - "name": "src", + "name": "customStyles", + "optional": true, "type": { - "text": "string" + "text": "ButtonStyles" } } - ] + ], + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } }, { "kind": "method", - "name": "createAnyFileAttachment", + "name": "buttonMouseDown", "privacy": "private", - "static": true, - "parameters": [ - { - "name": "fileName", - "type": { - "text": "string" - } - } - ] - }, - { - "kind": "method", - "name": "addFileAttachment", "parameters": [ { - "name": "file", - "type": { - "text": "File" - } - }, - { - "name": "fileType", - "type": { - "text": "MessageFileType" - } - }, - { - "name": "attachmentElement", - "type": { - "text": "HTMLElement" - } - }, - { - "name": "removable", + "name": "customStyles", + "optional": true, "type": { - "text": "boolean" + "text": "ButtonStyles" } } - ] + ], + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } }, { "kind": "method", - "name": "createContainer", + "name": "setEvents", "privacy": "private", - "static": true, "parameters": [ { - "name": "attachmentElement", + "name": "customStyles", + "optional": true, "type": { - "text": "HTMLElement" + "text": "ButtonStyles" } } - ] + ], + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } }, { "kind": "method", - "name": "createRemoveAttachmentButton", + "name": "unsetCustomStateStyles", + "privacy": "public", "parameters": [ { - "name": "attachmentObject", + "name": "unsetTypes", "type": { - "text": "AttachmentObject" + "text": "(keyof T)[]" } } - ] + ], + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } }, { "kind": "method", - "name": "removeAttachment", + "name": "reapplyStateStyle", + "privacy": "public", "parameters": [ { - "name": "attachmentObject", + "name": "setType", "type": { - "text": "AttachmentObject" + "text": "keyof T" + } + }, + { + "name": "unsetTypes", + "optional": true, + "type": { + "text": "(keyof T)[]" } } - ] - }, - { - "kind": "method", - "name": "getFiles" - }, - { - "kind": "method", - "name": "removeAllAttachments" + ], + "inheritedFrom": { + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" + } } - ] + ], + "superclass": { + "name": "MicrophoneButton", + "module": "/src/views/chat/input/buttons/microphone/microphoneButton" + } } ], "exports": [ { "kind": "js", - "name": "FileAttachmentsType", + "name": "RecordAudio", "declaration": { - "name": "FileAttachmentsType", - "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" + "name": "RecordAudio", + "module": "src/views/chat/input/buttons/microphone/recordAudio.ts" } } ] }, { "kind": "javascript-module", - "path": "src/views/chat/input/fileAttachments/modal/cameraModal.ts", + "path": "src/views/chat/input/buttons/microphone/speechToText.ts", "declarations": [ { "kind": "class", "description": "", - "name": "CameraModal", + "name": "SpeechToText", "members": [ { "kind": "field", - "name": "_dataURL", - "type": { - "text": "string | undefined" - }, - "privacy": "private" - }, - { - "kind": "field", - "name": "_stopped", - "type": { - "text": "boolean" - }, - "privacy": "private", - "default": "false" - }, - { - "kind": "field", - "name": "_captureButton", - "type": { - "text": "HTMLElement" - }, - "privacy": "private", - "default": "captureButton" - }, - { - "kind": "field", - "name": "_submitButton", - "type": { - "text": "HTMLElement" - }, - "privacy": "private", - "default": "submitButton" - }, - { - "kind": "field", - "name": "_canvas", - "type": { - "text": "HTMLCanvasElement" - }, - "privacy": "private" - }, - { - "kind": "field", - "name": "_captureIcon", + "name": "_addErrorMessage", "type": { - "text": "SVGGraphicsElement" + "text": "AddErrorMessage" }, "privacy": "private", - "default": "this._captureButton.children[0]" - }, - { - "kind": "field", - "name": "_refreshIcon", - "type": { - "text": "SVGGraphicsElement" - }, - "privacy": "private" - }, - { - "kind": "field", - "name": "_mediaStream", - "type": { - "text": "MediaStream | undefined" - }, - "privacy": "private" + "default": "addErrorMessage" }, { - "kind": "field", - "name": "_format", - "type": { - "text": "'image/png' | 'image/jpeg'" - }, + "kind": "method", + "name": "processConfiguration", "privacy": "private", - "default": "'image/png'" - }, - { - "kind": "field", - "name": "_newFilePrefix", - "type": { - "text": "string | undefined" - }, - "privacy": "private" - }, - { - "kind": "field", - "name": "_dimensions", - "type": { - "text": "CameraDimensions | undefined" + "static": true, + "return": { + "type": { + "text": "{serviceName: string, processedConfig: ProcessedConfig}" + } }, - "privacy": "private" + "parameters": [ + { + "name": "textInput", + "type": { + "text": "TextInputEl" + } + }, + { + "name": "config", + "optional": true, + "type": { + "text": "boolean | SpeechToTextConfig" + } + } + ] }, { "kind": "method", - "name": "addButtonsAndTheirEvents", + "name": "getServiceName", "privacy": "private", + "static": true, "parameters": [ { - "name": "fileAttachmentsType", + "name": "config", "type": { - "text": "FileAttachmentsType" + "text": "SpeechToTextConfig" } } ] }, { "kind": "method", - "name": "addButtonEvents", + "name": "buttonClick", "privacy": "private", "parameters": [ { - "name": "captureButton", + "name": "textInput", "type": { - "text": "HTMLElement" + "text": "TextInputEl" } }, { - "name": "closeButton", + "name": "isInputEnabled", "type": { - "text": "HTMLElement" + "text": "boolean" } }, { - "name": "submitButton", + "name": "serviceName", "type": { - "text": "HTMLElement" + "text": "string" } }, { - "name": "fileAttachmentsType", + "name": "config", + "optional": true, "type": { - "text": "FileAttachmentsType" + "text": "SpeechToTextConfig" } } ] }, { "kind": "method", - "name": "stop", - "privacy": "private" - }, - { - "kind": "method", - "name": "start" + "name": "onCommandModeTrigger", + "privacy": "private", + "parameters": [ + { + "name": "isStart", + "type": { + "text": "boolean" + } + } + ] }, { "kind": "method", - "name": "capture", + "name": "onError", "privacy": "private" }, { - "kind": "method", - "name": "getFile", - "privacy": "private" + "kind": "field", + "name": "_innerElements", + "type": { + "text": "DefinedButtonInnerElements" + }, + "privacy": "private", + "inheritedFrom": { + "name": "MicrophoneButton", + "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" + } }, { - "kind": "method", - "name": "updateCanvas", - "privacy": "private", - "parameters": [ - { - "name": "video", - "type": { - "text": "HTMLVideoElement" - } - }, - { - "name": "canvas", - "type": { - "text": "HTMLCanvasElement" - } - } - ] + "kind": "field", + "name": "isActive", + "type": { + "text": "boolean" + }, + "default": "false", + "inheritedFrom": { + "name": "MicrophoneButton", + "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" + } }, { "kind": "method", - "name": "openCameraModal", + "name": "createInnerElements", "privacy": "private", "parameters": [ { - "name": "cameraModal", + "name": "customStyles", + "optional": true, "type": { - "text": "CameraModal" + "text": "Styles" } } - ] + ], + "inheritedFrom": { + "name": "MicrophoneButton", + "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" + } }, { "kind": "method", - "name": "createCameraModalFunc", - "privacy": "public", - "static": true, + "name": "createInnerElement", + "privacy": "private", "parameters": [ { - "name": "viewContainerElement", - "type": { - "text": "HTMLElement" - } - }, - { - "name": "fileAttachmentsType", + "name": "baseButton", "type": { - "text": "FileAttachmentsType" + "text": "SVGGraphicsElement" } }, { - "name": "modalContainerStyle", - "optional": true, + "name": "state", "type": { - "text": "CustomStyle" + "text": "keyof MicrophoneButton['_innerElements']" } }, { - "name": "cameraFiles", + "name": "customStyles", "optional": true, "type": { - "text": "CameraFiles" + "text": "Styles" } } - ] + ], + "inheritedFrom": { + "name": "MicrophoneButton", + "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" + } }, { - "kind": "field", - "name": "extensionCloseCallback", - "type": { - "text": "() => void | undefined" - }, + "kind": "method", + "name": "createMicrophoneElement", + "privacy": "private", + "static": true, "inheritedFrom": { - "name": "Modal", - "module": "src/views/chat/input/fileAttachments/modal/modal.ts" + "name": "MicrophoneButton", + "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" } }, { - "kind": "field", - "name": "MODAL_CLOSE_TIMEOUT_MS", - "type": { - "text": "number" - }, - "privacy": "public", + "kind": "method", + "name": "createSVGIconElement", + "privacy": "private", "static": true, - "default": "190", "inheritedFrom": { - "name": "Modal", - "module": "src/views/chat/input/fileAttachments/modal/modal.ts" + "name": "MicrophoneButton", + "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" } }, { - "kind": "field", - "name": "_contentRef", - "type": { - "text": "HTMLElement" - }, + "kind": "method", + "name": "changeToActive", + "privacy": "public", "inheritedFrom": { - "name": "Modal", - "module": "src/views/chat/input/fileAttachments/modal/modal.ts" + "name": "MicrophoneButton", + "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" } }, { - "kind": "field", - "name": "_elementRef", - "type": { - "text": "HTMLElement" - }, - "privacy": "private", + "kind": "method", + "name": "changeToDefault", + "privacy": "public", "inheritedFrom": { - "name": "Modal", - "module": "src/views/chat/input/fileAttachments/modal/modal.ts" + "name": "MicrophoneButton", + "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" } }, { - "kind": "field", - "name": "_backgroundPanelRef", - "type": { - "text": "HTMLElement" - }, + "kind": "method", + "name": "changeToCommandMode", + "privacy": "public", + "inheritedFrom": { + "name": "MicrophoneButton", + "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" + } + }, + { + "kind": "method", + "name": "changeToUnsupported", + "privacy": "public", + "inheritedFrom": { + "name": "MicrophoneButton", + "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" + } + }, + { + "kind": "method", + "name": "toggleIconFilter", "privacy": "private", + "parameters": [ + { + "name": "mode", + "type": { + "text": "'default' | 'active' | 'command'" + } + } + ], "inheritedFrom": { - "name": "Modal", - "module": "src/views/chat/input/fileAttachments/modal/modal.ts" + "name": "MicrophoneButton", + "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" } }, { "kind": "field", - "name": "_buttonPanel", + "name": "elementRef", "type": { "text": "HTMLElement" }, - "privacy": "private", + "default": "buttonElement", "inheritedFrom": { - "name": "Modal", - "module": "src/views/chat/input/fileAttachments/modal/modal.ts" + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" } }, { "kind": "field", - "name": "_isOpen", + "name": "_mouseState", "type": { - "text": "boolean" + "text": "MouseState" }, - "privacy": "private", - "default": "false", + "privacy": "protected", + "default": "{state: 'default'}", "inheritedFrom": { - "name": "Modal", - "module": "src/views/chat/input/fileAttachments/modal/modal.ts" + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" } }, { - "kind": "method", - "name": "isOpen", + "kind": "field", + "name": "_customStyles", + "type": { + "text": "T | undefined" + }, + "privacy": "protected", + "default": "customStyles", "inheritedFrom": { - "name": "Modal", - "module": "src/views/chat/input/fileAttachments/modal/modal.ts" + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" } }, { - "kind": "method", - "name": "createContainer", - "privacy": "private", - "static": true, - "parameters": [ - { - "name": "content", - "type": { - "text": "HTMLElement" - } - }, - { - "name": "containerStyle", - "optional": true, - "type": { - "text": "CustomStyle" - } - } - ], + "kind": "field", + "name": "position", + "type": { + "text": "ButtonPositionT | undefined" + }, + "default": "position", "inheritedFrom": { - "name": "Modal", - "module": "src/views/chat/input/fileAttachments/modal/modal.ts" + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" } }, { - "kind": "method", - "name": "createModalContent", - "privacy": "private", - "static": true, - "parameters": [ - { - "name": "contentClasses", - "type": { - "text": "string[]" - } - }, - { - "name": "backgroundColor", - "optional": true, - "type": { - "text": "string" - } - } - ], + "kind": "field", + "name": "dropupText", + "type": { + "text": "string | undefined" + }, + "default": "dropupText", "inheritedFrom": { - "name": "Modal", - "module": "src/views/chat/input/fileAttachments/modal/modal.ts" + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" } }, { "kind": "method", - "name": "createButtonPanel", + "name": "buttonMouseLeave", "privacy": "private", - "static": true, "parameters": [ { - "name": "backgroundColor", + "name": "customStyles", "optional": true, "type": { - "text": "string" + "text": "ButtonStyles" } } ], "inheritedFrom": { - "name": "Modal", - "module": "src/views/chat/input/fileAttachments/modal/modal.ts" + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" } }, { "kind": "method", - "name": "createDarkBackgroundPanel", + "name": "buttonMouseEnter", "privacy": "private", - "static": true, - "inheritedFrom": { - "name": "Modal", - "module": "src/views/chat/input/fileAttachments/modal/modal.ts" - } - }, - { - "kind": "method", - "name": "addButtons", "parameters": [ { - "name": "buttons", + "name": "customStyles", + "optional": true, "type": { - "text": "HTMLElement[]" + "text": "ButtonStyles" } } ], "inheritedFrom": { - "name": "Modal", - "module": "src/views/chat/input/fileAttachments/modal/modal.ts" + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" } }, { "kind": "method", - "name": "createTextButton", + "name": "buttonMouseUp", "privacy": "private", - "static": true, "parameters": [ { - "name": "text", + "name": "customStyles", + "optional": true, "type": { - "text": "string" + "text": "ButtonStyles" } } ], "inheritedFrom": { - "name": "Modal", - "module": "src/views/chat/input/fileAttachments/modal/modal.ts" + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" } }, { "kind": "method", - "name": "createSVGButton", - "privacy": "public", - "static": true, + "name": "buttonMouseDown", + "privacy": "private", "parameters": [ { - "name": "svgString", + "name": "customStyles", + "optional": true, "type": { - "text": "string" + "text": "ButtonStyles" } } ], "inheritedFrom": { - "name": "Modal", - "module": "src/views/chat/input/fileAttachments/modal/modal.ts" - } - }, - { - "kind": "method", - "name": "close", - "inheritedFrom": { - "name": "Modal", - "module": "src/views/chat/input/fileAttachments/modal/modal.ts" - } - }, - { - "kind": "method", - "name": "displayModalElements", - "inheritedFrom": { - "name": "Modal", - "module": "src/views/chat/input/fileAttachments/modal/modal.ts" + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" } }, { "kind": "method", - "name": "openTextModal", + "name": "setEvents", "privacy": "private", "parameters": [ { - "name": "textHTML", + "name": "customStyles", + "optional": true, "type": { - "text": "string" + "text": "ButtonStyles" } } ], "inheritedFrom": { - "name": "Modal", - "module": "src/views/chat/input/fileAttachments/modal/modal.ts" + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" } }, { "kind": "method", - "name": "addCloseButton", + "name": "unsetCustomStateStyles", + "privacy": "public", "parameters": [ { - "name": "text", - "type": { - "text": "string" - } - }, - { - "name": "isSVG", - "type": { - "text": "boolean" - } - }, - { - "name": "callback", - "optional": true, + "name": "unsetTypes", "type": { - "text": "() => void" + "text": "(keyof T)[]" } } ], "inheritedFrom": { - "name": "Modal", - "module": "src/views/chat/input/fileAttachments/modal/modal.ts" + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" } }, { "kind": "method", - "name": "createTextModalFunc", + "name": "reapplyStateStyle", "privacy": "public", - "static": true, "parameters": [ { - "name": "viewContainerElement", - "type": { - "text": "HTMLElement" - } - }, - { - "name": "fileIO", + "name": "setType", "type": { - "text": "FileServiceIO" + "text": "keyof T" } }, { - "name": "closeCallback", + "name": "unsetTypes", + "optional": true, "type": { - "text": "() => void" + "text": "(keyof T)[]" } } ], "inheritedFrom": { - "name": "Modal", - "module": "src/views/chat/input/fileAttachments/modal/modal.ts" - } - }, - { - "kind": "method", - "name": "addWindowEvents", - "privacy": "private", - "inheritedFrom": { - "name": "Modal", - "module": "src/views/chat/input/fileAttachments/modal/modal.ts" + "name": "InputButton", + "module": "src/views/chat/input/buttons/inputButton.ts" } } ], "superclass": { - "name": "Modal", - "module": "/src/views/chat/input/fileAttachments/modal/modal" + "name": "MicrophoneButton", + "module": "/src/views/chat/input/buttons/microphone/microphoneButton" } } ], "exports": [ { "kind": "js", - "name": "CameraModal", + "name": "SpeechToText", "declaration": { - "name": "CameraModal", - "module": "src/views/chat/input/fileAttachments/modal/cameraModal.ts" + "name": "SpeechToText", + "module": "src/views/chat/input/buttons/microphone/speechToText.ts" } } ] }, { "kind": "javascript-module", - "path": "src/views/chat/input/fileAttachments/modal/modal.ts", + "path": "src/views/chat/input/buttons/styleAdjustments/inputButtonPositions.ts", "declarations": [ { "kind": "class", "description": "", - "name": "Modal", + "name": "InputButtonPositions", "members": [ - { - "kind": "field", - "name": "MODAL_CLOSE_TIMEOUT_MS", - "type": { - "text": "number" - }, - "privacy": "public", - "static": true, - "default": "190" - }, - { - "kind": "field", - "name": "_contentRef", - "type": { - "text": "HTMLElement" - } - }, - { - "kind": "field", - "name": "_elementRef", - "type": { - "text": "HTMLElement" - }, - "privacy": "private" - }, - { - "kind": "field", - "name": "_backgroundPanelRef", - "type": { - "text": "HTMLElement" - }, - "privacy": "private" - }, - { - "kind": "field", - "name": "_buttonPanel", - "type": { - "text": "HTMLElement" - }, - "privacy": "private" - }, - { - "kind": "field", - "name": "_isOpen", - "type": { - "text": "boolean" - }, - "privacy": "private", - "default": "false" - }, - { - "kind": "field", - "name": "extensionCloseCallback", - "type": { - "text": "() => void | undefined" - } - }, - { - "kind": "method", - "name": "isOpen" - }, { "kind": "method", - "name": "createContainer", + "name": "addToDropup", "privacy": "private", "static": true, "parameters": [ { - "name": "content", + "name": "buttonContainers", + "type": { + "text": "ButtonContainersT" + } + }, + { + "name": "positions", + "type": { + "text": "Positions" + } + }, + { + "name": "containerElement", "type": { "text": "HTMLElement" } }, { - "name": "containerStyle", + "name": "dropupStyles", "optional": true, "type": { - "text": "CustomStyle" + "text": "DropupStyles" } } ] }, { "kind": "method", - "name": "createModalContent", + "name": "addToSideContainer", "privacy": "private", "static": true, "parameters": [ { - "name": "contentClasses", + "name": "buttonContainers", "type": { - "text": "string[]" + "text": "ButtonContainersT" } }, { - "name": "backgroundColor", - "optional": true, + "name": "positions", "type": { - "text": "string" + "text": "Positions" } } ] }, { "kind": "method", - "name": "createButtonPanel", + "name": "setPosition", "privacy": "private", "static": true, "parameters": [ { - "name": "backgroundColor", - "optional": true, + "name": "buttonsObj", "type": { - "text": "string" + "text": "Buttons" + } + }, + { + "name": "buttonType", + "type": { + "text": "keyof Buttons" + } + }, + { + "name": "positionButtons", + "type": { + "text": "ButtonProps[]" } } ] }, { "kind": "method", - "name": "createDarkBackgroundPanel", + "name": "createPositionsObj", "privacy": "private", - "static": true + "static": true, + "return": { + "type": { + "text": "Positions" + } + } }, { "kind": "method", - "name": "addButtons", + "name": "generatePositions", + "privacy": "private", + "static": true, + "return": { + "type": { + "text": "Positions" + } + }, "parameters": [ { - "name": "buttons", + "name": "buttonsObj", "type": { - "text": "HTMLElement[]" + "text": "Buttons" } } ] }, { "kind": "method", - "name": "createTextButton", - "privacy": "private", + "name": "addButtons", + "privacy": "public", "static": true, "parameters": [ { - "name": "text", + "name": "buttonContainers", "type": { - "text": "string" + "text": "ButtonContainersT" + } + }, + { + "name": "buttons", + "type": { + "text": "Buttons" + } + }, + { + "name": "container", + "type": { + "text": "HTMLElement" + } + }, + { + "name": "dropupStyles", + "optional": true, + "type": { + "text": "DropupStyles" } } ] + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "InputButtonPositions", + "declaration": { + "name": "InputButtonPositions", + "module": "src/views/chat/input/buttons/styleAdjustments/inputButtonPositions.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/views/chat/input/buttons/styleAdjustments/inputButtonStyleAdjustments.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "InputButtonStyleAdjustments", + "members": [ + { + "kind": "field", + "name": "INPUT_OUTSIDE_LEFT_ADJUSTMENT_CLASS", + "type": { + "text": "string" + }, + "privacy": "private", + "static": true, + "default": "'text-input-container-left-adjustment'" + }, + { + "kind": "field", + "name": "INPUT_OUTSIDE_RIGHT_ADJUSTMENT_CLASS", + "type": { + "text": "string" + }, + "privacy": "private", + "static": true, + "default": "'text-input-container-right-adjustment'" + }, + { + "kind": "field", + "name": "INPUT_OUTSIDE_LEFT_SMALL_ADJUSTMENT_CLASS", + "type": { + "text": "string" + }, + "privacy": "private", + "static": true, + "default": "'text-input-container-left-small-adjustment'" + }, + { + "kind": "field", + "name": "INPUT_OUTSIDE_RIGHT_SMALL_ADJUSTMENT_CLASS", + "type": { + "text": "string" + }, + "privacy": "private", + "static": true, + "default": "'text-input-container-right-small-adjustment'" }, { "kind": "method", - "name": "createSVGButton", - "privacy": "public", + "name": "adjustInputPadding", + "privacy": "private", "static": true, "parameters": [ { - "name": "svgString", + "name": "textInputEl", "type": { - "text": "string" + "text": "HTMLElement" + } + }, + { + "name": "positions", + "type": { + "text": "Positions" } } ] }, { "kind": "method", - "name": "close" - }, - { - "kind": "method", - "name": "displayModalElements" - }, - { - "kind": "method", - "name": "openTextModal", + "name": "adjustForOutsideButton", "privacy": "private", + "static": true, "parameters": [ { - "name": "textHTML", + "name": "containers", "type": { - "text": "string" + "text": "ButtonContainersT" + } + }, + { + "name": "fileAtt", + "type": { + "text": "HTMLElement" + } + }, + { + "name": "positions", + "type": { + "text": "Positions" } } ] }, { "kind": "method", - "name": "addCloseButton", + "name": "adjustOutsideSubmit", + "privacy": "private", + "static": true, "parameters": [ { - "name": "text", + "name": "containers", "type": { - "text": "string" + "text": "ButtonContainersT" } }, { - "name": "isSVG", + "name": "fileAtt", "type": { - "text": "boolean" + "text": "HTMLElement" } }, { - "name": "callback", - "optional": true, + "name": "positions", "type": { - "text": "() => void" + "text": "Positions" } } ] }, { "kind": "method", - "name": "createTextModalFunc", + "name": "set", "privacy": "public", "static": true, "parameters": [ { - "name": "viewContainerElement", + "name": "textInputEl", "type": { "text": "HTMLElement" } }, { - "name": "fileIO", + "name": "containers", "type": { - "text": "FileServiceIO" + "text": "ButtonContainersT" } }, { - "name": "closeCallback", + "name": "fileAtt", "type": { - "text": "() => void" + "text": "HTMLElement" + } + }, + { + "name": "positions", + "type": { + "text": "Positions" } } ] - }, - { - "kind": "method", - "name": "addWindowEvents", - "privacy": "private" } ] } @@ -32495,425 +32556,321 @@ "exports": [ { "kind": "js", - "name": "Modal", + "name": "InputButtonStyleAdjustments", "declaration": { - "name": "Modal", - "module": "src/views/chat/input/fileAttachments/modal/modal.ts" + "name": "InputButtonStyleAdjustments", + "module": "src/views/chat/input/buttons/styleAdjustments/inputButtonStyleAdjustments.ts" } } ] }, { "kind": "javascript-module", - "path": "src/views/chat/input/buttons/camera/cameraButton.ts", + "path": "src/views/chat/input/buttons/submit/submitButton.ts", "declarations": [ { "kind": "class", "description": "", - "name": "CameraButton", + "name": "SubmitButton", "members": [ { - "kind": "method", - "name": "createInnerElements", + "kind": "field", + "name": "SUBMIT_CLASS", + "type": { + "text": "string" + }, "privacy": "private", - "parameters": [ - { - "name": "customStyles", - "optional": true, - "type": { - "text": "Styles" - } - } - ] + "static": true, + "default": "'submit-button'" }, { - "kind": "method", - "name": "createInnerElement", + "kind": "field", + "name": "LOADING_CLASS", + "type": { + "text": "string" + }, "privacy": "private", - "parameters": [ - { - "name": "baseButton", - "type": { - "text": "SVGGraphicsElement" - } - }, - { - "name": "state", - "type": { - "text": "'styles'" - } - }, - { - "name": "customStyles", - "optional": true, - "type": { - "text": "Styles" - } - } - ] + "static": true, + "default": "'loading-button'" + }, + { + "kind": "field", + "name": "DISABLED_CLASS", + "type": { + "text": "string" + }, + "privacy": "private", + "static": true, + "default": "'disabled-button'" + }, + { + "kind": "field", + "name": "_serviceIO", + "type": { + "text": "ServiceIO" + }, + "privacy": "private", + "default": "serviceIO" + }, + { + "kind": "field", + "name": "_messages", + "type": { + "text": "Messages" + }, + "privacy": "private", + "default": "messages" + }, + { + "kind": "field", + "name": "_inputElementRef", + "type": { + "text": "HTMLElement" + }, + "privacy": "private", + "default": "inputElementRef" }, { - "kind": "method", - "name": "createButtonElement", + "kind": "field", + "name": "_abortStream", + "type": { + "text": "AbortController" + }, "privacy": "private", - "static": true + "default": "new AbortController()" }, { - "kind": "method", - "name": "createSVGIconElement", + "kind": "field", + "name": "_stopClicked", + "type": { + "text": "Signals['stopClicked']" + }, "privacy": "private", - "static": true + "default": "{listener: () => {}}" }, { - "kind": "method", - "name": "addClickEvent", - "privacy": "private", - "parameters": [ - { - "name": "containerElement", - "type": { - "text": "HTMLElement" - } - }, - { - "name": "fileAttachmentsType", - "type": { - "text": "FileAttachmentsType" - } - }, - { - "name": "modalContainerStyle", - "optional": true, - "type": { - "text": "CustomStyle" - } - }, - { - "name": "cameraFiles", - "optional": true, - "type": { - "text": "CameraFiles" - } - } - ] + "kind": "field", + "name": "_innerElements", + "type": { + "text": "DefinedButtonInnerElements" + }, + "privacy": "private" }, { "kind": "field", - "name": "elementRef", + "name": "_fileAttachments", "type": { - "text": "HTMLElement" + "text": "FileAttachments" }, - "default": "buttonElement", - "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" - } + "privacy": "private", + "default": "fileAttachments" }, { "kind": "field", - "name": "_mouseState", + "name": "_alwaysEnabled", "type": { - "text": "MouseState" + "text": "boolean" }, - "privacy": "protected", - "default": "{state: 'default'}", - "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" - } + "privacy": "private", + "default": "!!submitButtonStyles?.alwaysEnabled" }, { "kind": "field", - "name": "_customStyles", + "name": "_isSVGLoadingIconOverriden", "type": { - "text": "T | undefined" + "text": "boolean" }, - "privacy": "protected", - "default": "customStyles", - "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" - } + "privacy": "private", + "default": "false" }, { "kind": "field", - "name": "position", + "name": "_validationHandler", "type": { - "text": "ButtonPositionT | undefined" + "text": "ValidationHandler | undefined" }, - "default": "position", - "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" - } + "privacy": "private" }, { "kind": "field", - "name": "dropupText", + "name": "status", "type": { - "text": "string | undefined" + "text": "object" }, - "default": "dropupText", - "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" - } + "default": "{requestInProgress: false, loadingActive: false}" }, { "kind": "method", - "name": "buttonMouseLeave", + "name": "createInnerElements", + "privacy": "private" + }, + { + "kind": "method", + "name": "createButtonContainerElement", "privacy": "private", - "parameters": [ - { - "name": "customStyles", - "optional": true, - "type": { - "text": "ButtonStyles" - } - } - ], - "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" - } + "static": true }, { "kind": "method", - "name": "buttonMouseEnter", + "name": "createSubmitIconElement", "privacy": "private", - "parameters": [ - { - "name": "customStyles", - "optional": true, - "type": { - "text": "ButtonStyles" - } - } - ], - "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" - } + "static": true }, { "kind": "method", - "name": "buttonMouseUp", + "name": "createLoadingIconElement", "privacy": "private", - "parameters": [ - { - "name": "customStyles", - "optional": true, - "type": { - "text": "ButtonStyles" - } - } - ], - "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" - } + "static": true }, { "kind": "method", - "name": "buttonMouseDown", + "name": "createStopIconElement", + "privacy": "private", + "static": true + }, + { + "kind": "method", + "name": "createDisabledIconElement", "privacy": "private", "parameters": [ { - "name": "customStyles", - "optional": true, + "name": "submitElement", "type": { - "text": "ButtonStyles" + "text": "ButtonInnerElement" } } - ], - "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" - } + ] }, { "kind": "method", - "name": "setEvents", + "name": "attemptOverwriteLoadingStyle", "privacy": "private", "parameters": [ { - "name": "customStyles", - "optional": true, + "name": "deepChat", "type": { - "text": "ButtonStyles" + "text": "DeepChat" } } - ], - "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" - } + ] }, { "kind": "method", - "name": "unsetCustomStateStyles", - "privacy": "public", + "name": "assignHandlers", + "privacy": "private", "parameters": [ { - "name": "unsetTypes", + "name": "validationHandler", "type": { - "text": "(keyof T)[]" + "text": "ValidationHandler" } } - ], - "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" - } + ] }, { "kind": "method", - "name": "reapplyStateStyle", - "privacy": "public", + "name": "resetSubmit", + "privacy": "private", "parameters": [ { - "name": "setType", - "type": { - "text": "keyof T" - } - }, - { - "name": "unsetTypes", - "optional": true, + "name": "validationHandler", "type": { - "text": "(keyof T)[]" + "text": "ValidationHandler" } } - ], - "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" - } - } - ], - "superclass": { - "name": "InputButton", - "module": "/src/views/chat/input/buttons/inputButton" - } - } - ], - "exports": [ - { - "kind": "js", - "name": "CameraButton", - "declaration": { - "name": "CameraButton", - "module": "src/views/chat/input/buttons/camera/cameraButton.ts" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "src/views/chat/input/buttons/microphone/microphoneButton.ts", - "declarations": [ - { - "kind": "class", - "description": "", - "name": "MicrophoneButton", - "members": [ - { - "kind": "field", - "name": "_innerElements", - "type": { - "text": "DefinedButtonInnerElements" - }, - "privacy": "private" + ] }, { - "kind": "field", - "name": "isActive", - "type": { - "text": "boolean" - }, - "default": "false" + "kind": "method", + "name": "submitFromInput", + "privacy": "public" }, { "kind": "method", - "name": "createInnerElements", - "privacy": "private", + "name": "submit", + "privacy": "public", "parameters": [ { - "name": "customStyles", - "optional": true, + "name": "isProgrammatic", "type": { - "text": "Styles" + "text": "boolean" + } + }, + { + "name": "userText", + "type": { + "text": "string" } } ] }, { "kind": "method", - "name": "createInnerElement", + "name": "addNewMessages", "privacy": "private", "parameters": [ { - "name": "baseButton", - "type": { - "text": "SVGGraphicsElement" - } - }, - { - "name": "state", + "name": "userText", "type": { - "text": "keyof MicrophoneButton['_innerElements']" + "text": "string" } }, { - "name": "customStyles", + "name": "uploadedFilesData", "optional": true, "type": { - "text": "Styles" + "text": "{file: File; type: MessageFileType}[]" } } ] }, { "kind": "method", - "name": "createMicrophoneElement", - "privacy": "private", - "static": true - }, - { - "kind": "method", - "name": "createSVGIconElement", - "privacy": "private", - "static": true + "name": "stopStream", + "privacy": "private" }, { "kind": "method", - "name": "changeToActive", - "privacy": "public" + "name": "changeToStopIcon", + "privacy": "private" }, { "kind": "method", - "name": "changeToDefault", - "privacy": "public" + "name": "changeToLoadingIcon", + "privacy": "private" }, { "kind": "method", - "name": "changeToCommandMode", + "name": "changeToSubmitIcon", "privacy": "public" }, { "kind": "method", - "name": "changeToUnsupported", - "privacy": "public" + "name": "changeToDisabledIcon", + "privacy": "public", + "parameters": [ + { + "name": "isProgrammatic", + "default": "false" + } + ] }, { "kind": "method", - "name": "toggleIconFilter", + "name": "disableSubmitButton", "privacy": "private", "parameters": [ { - "name": "mode", + "name": "serviceIO", "type": { - "text": "'default' | 'active' | 'command'" + "text": "ServiceIO" + } + }, + { + "name": "isActive", + "optional": true, + "type": { + "text": "boolean" } } ] @@ -33121,159 +33078,206 @@ "exports": [ { "kind": "js", - "name": "MicrophoneButton", + "name": "SubmitButton", "declaration": { - "name": "MicrophoneButton", - "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" + "name": "SubmitButton", + "module": "src/views/chat/input/buttons/submit/submitButton.ts" } } ] }, { "kind": "javascript-module", - "path": "src/views/chat/input/buttons/microphone/recordAudio.ts", + "path": "src/views/chat/input/buttons/submit/submitButtonStateStyle.ts", "declarations": [ { "kind": "class", "description": "", - "name": "RecordAudio", + "name": "SubmitButtonStateStyle", "members": [ { - "kind": "field", - "name": "_mediaRecorder", - "type": { - "text": "MediaRecorder | undefined" - }, - "privacy": "private" - }, - { - "kind": "field", - "name": "_mediaStream", - "type": { - "text": "MediaStream | undefined" - }, - "privacy": "private" + "kind": "method", + "name": "resetSubmit", + "privacy": "public", + "static": true, + "parameters": [ + { + "name": "submitButton", + "type": { + "text": "SubmitButton" + } + }, + { + "name": "wasLoading", + "type": { + "text": "boolean" + } + } + ] }, { - "kind": "field", - "name": "_waitingForBrowserApproval", - "type": { - "text": "boolean" - }, + "kind": "method", + "name": "overwriteDefaultStyleWithSubmit", "privacy": "private", - "default": "false" + "static": true, + "parameters": [ + { + "name": "styles", + "type": { + "text": "SubmitButtonStyles" + } + }, + { + "name": "style", + "type": { + "text": "keyof SubmitButtonStyles" + } + } + ] }, { - "kind": "field", - "name": "_audioType", - "type": { - "text": "AudioFileAttachmentType" - }, + "kind": "method", + "name": "setUpDisabledButton", "privacy": "private", - "default": "audioType" + "static": true, + "parameters": [ + { + "name": "styles", + "type": { + "text": "SubmitButtonStyles" + } + } + ] }, + { + "kind": "method", + "name": "process", + "privacy": "public", + "static": true, + "parameters": [ + { + "name": "submitButtonStyles", + "optional": true, + "type": { + "text": "SubmitButtonStyles" + } + } + ] + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "SubmitButtonStateStyle", + "declaration": { + "name": "SubmitButtonStateStyle", + "module": "src/views/chat/input/buttons/submit/submitButtonStateStyle.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/views/chat/input/buttons/uploadFile/uploadFileButton.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "UploadFileButton", + "members": [ { "kind": "field", - "name": "_extension", + "name": "_inputElement", "type": { - "text": "AudioFormat" + "text": "HTMLInputElement" }, "privacy": "private" }, { "kind": "field", - "name": "_maxDurationSeconds", + "name": "_fileAttachmentsType", "type": { - "text": "number | undefined" + "text": "FileAttachmentsType" }, - "privacy": "private" + "privacy": "private", + "default": "fileAttachmentsType" }, { "kind": "field", - "name": "_newFilePrefix", + "name": "_openModalOnce", "type": { - "text": "string | undefined" + "text": "boolean | undefined | undefined" }, "privacy": "private" }, { "kind": "method", - "name": "buttonClick", - "privacy": "private" + "name": "createInnerElements", + "privacy": "private", + "parameters": [ + { + "name": "iconId", + "type": { + "text": "string" + } + }, + { + "name": "iconSVGString", + "type": { + "text": "string" + } + }, + { + "name": "customStyles", + "optional": true, + "type": { + "text": "Styles" + } + } + ] }, { "kind": "method", - "name": "stop", + "name": "triggerImportPrompt", "privacy": "private", - "return": { - "type": { - "text": "Promise" + "parameters": [ + { + "name": "inputElement", + "type": { + "text": "HTMLInputElement" + } } - } - }, - { - "kind": "method", - "name": "record", - "privacy": "private" + ] }, { "kind": "method", - "name": "createFile", + "name": "import", "privacy": "private", "parameters": [ { - "name": "event", + "name": "inputElement", "type": { - "text": "BlobEvent" + "text": "HTMLInputElement" } } ] }, - { - "kind": "field", - "name": "onclick" - }, - { - "kind": "field", - "name": "_innerElements", - "type": { - "text": "DefinedButtonInnerElements" - }, - "privacy": "private", - "inheritedFrom": { - "name": "MicrophoneButton", - "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" - } - }, - { - "kind": "field", - "name": "isActive", - "type": { - "text": "boolean" - }, - "default": "false", - "inheritedFrom": { - "name": "MicrophoneButton", - "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" - } - }, { "kind": "method", - "name": "createInnerElements", + "name": "createInputElement", "privacy": "private", + "static": true, "parameters": [ { - "name": "customStyles", + "name": "acceptedFormats", "optional": true, "type": { - "text": "Styles" + "text": "string" } } - ], - "inheritedFrom": { - "name": "MicrophoneButton", - "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" - } + ] }, { "kind": "method", @@ -33289,7 +33293,7 @@ { "name": "state", "type": { - "text": "keyof MicrophoneButton['_innerElements']" + "text": "'styles'" } }, { @@ -33299,84 +33303,66 @@ "text": "Styles" } } - ], - "inheritedFrom": { - "name": "MicrophoneButton", - "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" - } + ] }, { "kind": "method", - "name": "createMicrophoneElement", + "name": "createButtonElement", "privacy": "private", - "static": true, - "inheritedFrom": { - "name": "MicrophoneButton", - "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" - } + "static": true }, { "kind": "method", "name": "createSVGIconElement", "privacy": "private", "static": true, - "inheritedFrom": { - "name": "MicrophoneButton", - "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" - } - }, - { - "kind": "method", - "name": "changeToActive", - "privacy": "public", - "inheritedFrom": { - "name": "MicrophoneButton", - "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" - } - }, - { - "kind": "method", - "name": "changeToDefault", - "privacy": "public", - "inheritedFrom": { - "name": "MicrophoneButton", - "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" - } - }, - { - "kind": "method", - "name": "changeToCommandMode", - "privacy": "public", - "inheritedFrom": { - "name": "MicrophoneButton", - "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" - } + "parameters": [ + { + "name": "iconId", + "type": { + "text": "string" + } + }, + { + "name": "iconSVGString", + "type": { + "text": "string" + } + } + ] }, { "kind": "method", - "name": "changeToUnsupported", - "privacy": "public", - "inheritedFrom": { - "name": "MicrophoneButton", - "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" - } + "name": "addClickEvent", + "privacy": "private", + "parameters": [ + { + "name": "containerElement", + "type": { + "text": "HTMLElement" + } + }, + { + "name": "fileService", + "type": { + "text": "FileServiceIO" + } + } + ] }, { "kind": "method", - "name": "toggleIconFilter", + "name": "click", "privacy": "private", "parameters": [ { - "name": "mode", + "name": "openModalFunc", + "optional": true, "type": { - "text": "'default' | 'active' | 'command'" + "text": "() => void" } } - ], - "inheritedFrom": { - "name": "MicrophoneButton", - "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" - } + ] }, { "kind": "field", @@ -33573,620 +33559,720 @@ } ], "superclass": { - "name": "MicrophoneButton", - "module": "/src/views/chat/input/buttons/microphone/microphoneButton" + "name": "InputButton", + "module": "/src/views/chat/input/buttons/inputButton" } } ], "exports": [ { "kind": "js", - "name": "RecordAudio", + "name": "UploadFileButton", "declaration": { - "name": "RecordAudio", - "module": "src/views/chat/input/buttons/microphone/recordAudio.ts" + "name": "UploadFileButton", + "module": "src/views/chat/input/buttons/uploadFile/uploadFileButton.ts" } } ] }, { "kind": "javascript-module", - "path": "src/views/chat/input/buttons/microphone/speechToText.ts", + "path": "src/views/chat/input/fileAttachments/dragAndDrop/dragAndDrop.ts", "declarations": [ { "kind": "class", "description": "", - "name": "SpeechToText", + "name": "DragAndDrop", "members": [ - { - "kind": "field", - "name": "_addErrorMessage", - "type": { - "text": "AddErrorMessage" - }, - "privacy": "private", - "default": "addErrorMessage" - }, { "kind": "method", - "name": "processConfiguration", - "privacy": "private", + "name": "create", + "privacy": "public", "static": true, - "return": { - "type": { - "text": "{serviceName: string, processedConfig: ProcessedConfig}" - } - }, "parameters": [ { - "name": "textInput", + "name": "containerElement", "type": { - "text": "TextInputEl" + "text": "HTMLElement" } }, { - "name": "config", + "name": "fileAttachments", + "type": { + "text": "FileAttachments" + } + }, + { + "name": "dnd", "optional": true, "type": { - "text": "boolean | SpeechToTextConfig" + "text": "boolean | CustomStyle" } } ] }, { "kind": "method", - "name": "getServiceName", + "name": "createElement", "privacy": "private", "static": true, "parameters": [ { - "name": "config", + "name": "dnd", + "optional": true, "type": { - "text": "SpeechToTextConfig" + "text": "boolean | CustomStyle" } } ] }, { "kind": "method", - "name": "buttonClick", + "name": "addEvents", "privacy": "private", + "static": true, "parameters": [ { - "name": "textInput", + "name": "fileDropElement", "type": { - "text": "TextInputEl" + "text": "HTMLElement" } }, { - "name": "isInputEnabled", + "name": "containerElement", "type": { - "text": "boolean" + "text": "HTMLElement" } }, { - "name": "serviceName", + "name": "fileAttachments", "type": { - "text": "string" + "text": "FileAttachments" + } + } + ] + }, + { + "kind": "method", + "name": "uploadFile", + "privacy": "private", + "static": true, + "parameters": [ + { + "name": "fileAttachments", + "type": { + "text": "FileAttachments" } }, { - "name": "config", - "optional": true, + "name": "event", "type": { - "text": "SpeechToTextConfig" + "text": "DragEvent" } } ] }, { "kind": "method", - "name": "onCommandModeTrigger", + "name": "display", "privacy": "private", + "static": true, "parameters": [ { - "name": "isStart", + "name": "fileDropElement", "type": { - "text": "boolean" + "text": "HTMLElement" } } ] }, { "kind": "method", - "name": "onError", + "name": "hide", + "privacy": "private", + "static": true, + "parameters": [ + { + "name": "fileDropElement", + "type": { + "text": "HTMLElement" + } + } + ] + }, + { + "kind": "method", + "name": "isEnabled", + "privacy": "public", + "static": true, + "parameters": [ + { + "name": "fileAttachments", + "type": { + "text": "FileAttachments" + } + }, + { + "name": "dragAndDrop", + "optional": true, + "type": { + "text": "boolean | CustomStyle" + } + } + ] + } + ] + } + ], + "exports": [ + { + "kind": "js", + "name": "DragAndDrop", + "declaration": { + "name": "DragAndDrop", + "module": "src/views/chat/input/fileAttachments/dragAndDrop/dragAndDrop.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/views/chat/input/fileAttachments/fileAttachmentTypes/audioFileAttachmentType.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "AudioFileAttachmentType", + "members": [ + { + "kind": "field", + "name": "stopPlaceholderCallback", + "type": { + "text": "() => Promise | undefined" + } + }, + { + "kind": "field", + "name": "_activePlaceholderTimer", + "type": { + "text": "number | undefined" + }, "privacy": "private" }, { "kind": "field", - "name": "_innerElements", + "name": "_activePlaceholderAttachment", "type": { - "text": "DefinedButtonInnerElements" + "text": "AttachmentObject | undefined" }, - "privacy": "private", - "inheritedFrom": { - "name": "MicrophoneButton", - "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" - } + "privacy": "private" }, { "kind": "field", - "name": "isActive", + "name": "TIMER_LIMIT_S", "type": { - "text": "boolean" + "text": "number" }, - "default": "false", - "inheritedFrom": { - "name": "MicrophoneButton", - "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" - } + "privacy": "private", + "static": true, + "default": "5999" }, { "kind": "method", - "name": "createInnerElements", + "name": "createAudioContainer", + "privacy": "private", + "static": true + }, + { + "kind": "method", + "name": "addAudioElements", "privacy": "private", + "static": true, "parameters": [ { - "name": "customStyles", - "optional": true, + "name": "oldContainer", "type": { - "text": "Styles" + "text": "HTMLElement" + } + }, + { + "name": "fileReaderResult", + "type": { + "text": "string" } } - ], - "inheritedFrom": { - "name": "MicrophoneButton", - "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" - } + ] }, { "kind": "method", - "name": "createInnerElement", - "privacy": "private", + "name": "createAudioAttachment", + "privacy": "public", + "static": true, "parameters": [ { - "name": "baseButton", + "name": "fileReaderResult", "type": { - "text": "SVGGraphicsElement" + "text": "string" } - }, + } + ] + }, + { + "kind": "method", + "name": "createTimer", + "privacy": "private", + "parameters": [ { - "name": "state", + "name": "text", "type": { - "text": "keyof MicrophoneButton['_innerElements']" + "text": "HTMLElement" } }, { - "name": "customStyles", + "name": "customTimeLimit", "optional": true, "type": { - "text": "Styles" + "text": "number" } } - ], - "inheritedFrom": { - "name": "MicrophoneButton", - "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" - } + ] }, { "kind": "method", - "name": "createMicrophoneElement", + "name": "createPlaceholderAudioAttachment", "privacy": "private", - "static": true, - "inheritedFrom": { - "name": "MicrophoneButton", - "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" - } + "parameters": [ + { + "name": "customTimeLimit", + "optional": true, + "type": { + "text": "number" + } + } + ] }, { "kind": "method", - "name": "createSVGIconElement", + "name": "addPlaceholderAudioAttachmentEvents", "privacy": "private", - "static": true, - "inheritedFrom": { - "name": "MicrophoneButton", - "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" - } + "parameters": [ + { + "name": "container", + "type": { + "text": "HTMLElement" + } + }, + { + "name": "stop", + "type": { + "text": "SVGElement" + } + }, + { + "name": "textContainer", + "type": { + "text": "HTMLElement" + } + } + ] }, { "kind": "method", - "name": "changeToActive", - "privacy": "public", - "inheritedFrom": { - "name": "MicrophoneButton", - "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" - } + "name": "addPlaceholderAttachment", + "parameters": [ + { + "name": "stopCallback", + "type": { + "text": "() => Promise" + } + }, + { + "name": "customTimeLimit", + "optional": true, + "type": { + "text": "number" + } + } + ] }, { "kind": "method", - "name": "changeToDefault", - "privacy": "public", - "inheritedFrom": { - "name": "MicrophoneButton", - "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" - } + "name": "completePlaceholderAttachment", + "parameters": [ + { + "name": "file", + "type": { + "text": "File" + } + }, + { + "name": "fileReaderResult", + "type": { + "text": "string" + } + } + ] }, { "kind": "method", - "name": "changeToCommandMode", - "privacy": "public", - "inheritedFrom": { - "name": "MicrophoneButton", - "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" - } + "name": "removePlaceholderAttachment" }, { "kind": "method", - "name": "changeToUnsupported", - "privacy": "public", - "inheritedFrom": { - "name": "MicrophoneButton", - "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" - } + "name": "clearTimer", + "privacy": "private" }, { "kind": "method", - "name": "toggleIconFilter", - "privacy": "private", + "name": "stopAttachmentPlayback", + "privacy": "public", + "static": true, "parameters": [ { - "name": "mode", + "name": "attachmentContainerEl", "type": { - "text": "'default' | 'active' | 'command'" + "text": "HTMLElement" } } - ], - "inheritedFrom": { - "name": "MicrophoneButton", - "module": "src/views/chat/input/buttons/microphone/microphoneButton.ts" - } + ] }, { "kind": "field", - "name": "elementRef", + "name": "_attachments", "type": { - "text": "HTMLElement" + "text": "AttachmentObject[]" }, - "default": "buttonElement", + "privacy": "private", + "default": "[]", "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" + "name": "FileAttachmentsType", + "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" } }, { "kind": "field", - "name": "_mouseState", + "name": "_fileCountLimit", "type": { - "text": "MouseState" + "text": "number" }, - "privacy": "protected", - "default": "{state: 'default'}", + "privacy": "private", + "default": "99", "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" + "name": "FileAttachmentsType", + "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" } }, { "kind": "field", - "name": "_customStyles", + "name": "_toggleContainerDisplay", "type": { - "text": "T | undefined" + "text": "(display: boolean) => void" }, - "privacy": "protected", - "default": "customStyles", + "privacy": "private", + "default": "toggleContainer", "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" + "name": "FileAttachmentsType", + "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" } }, { "kind": "field", - "name": "position", + "name": "_fileAttachmentsContainerRef", "type": { - "text": "ButtonPositionT | undefined" + "text": "HTMLElement" }, - "default": "position", + "privacy": "private", + "default": "container", "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" + "name": "FileAttachmentsType", + "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" } }, { "kind": "field", - "name": "dropupText", + "name": "_acceptedFormat", "type": { - "text": "string | undefined" + "text": "string" }, - "default": "dropupText", + "privacy": "private", + "default": "''", "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" + "name": "FileAttachmentsType", + "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" } }, { - "kind": "method", - "name": "buttonMouseLeave", + "kind": "field", + "name": "_validationHandler", + "type": { + "text": "ValidationHandler | undefined" + }, "privacy": "private", - "parameters": [ - { - "name": "customStyles", - "optional": true, - "type": { - "text": "ButtonStyles" - } - } - ], "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" + "name": "FileAttachmentsType", + "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" } }, { "kind": "method", - "name": "buttonMouseEnter", - "privacy": "private", + "name": "attemptAddFile", "parameters": [ { - "name": "customStyles", - "optional": true, + "name": "file", "type": { - "text": "ButtonStyles" + "text": "File" } - } - ], - "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" - } - }, - { - "kind": "method", - "name": "buttonMouseUp", - "privacy": "private", - "parameters": [ + }, { - "name": "customStyles", - "optional": true, + "name": "fileReaderResult", "type": { - "text": "ButtonStyles" + "text": "string" } } ], "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" + "name": "FileAttachmentsType", + "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" } }, { "kind": "method", - "name": "buttonMouseDown", + "name": "isFileTypeValid", "privacy": "private", + "static": true, "parameters": [ { - "name": "customStyles", - "optional": true, + "name": "file", "type": { - "text": "ButtonStyles" + "text": "File" + } + }, + { + "name": "accept", + "type": { + "text": "string" } } ], "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" + "name": "FileAttachmentsType", + "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" } }, { "kind": "method", - "name": "setEvents", + "name": "addAttachmentBasedOnType", "privacy": "private", "parameters": [ { - "name": "customStyles", - "optional": true, + "name": "file", "type": { - "text": "ButtonStyles" + "text": "File" + } + }, + { + "name": "fileReaderResult", + "type": { + "text": "string" + } + }, + { + "name": "removable", + "type": { + "text": "boolean" } } ], "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" + "name": "FileAttachmentsType", + "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" } }, { "kind": "method", - "name": "unsetCustomStateStyles", - "privacy": "public", + "name": "createImageAttachment", + "privacy": "private", + "static": true, "parameters": [ { - "name": "unsetTypes", + "name": "src", "type": { - "text": "(keyof T)[]" + "text": "string" } } ], "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" + "name": "FileAttachmentsType", + "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" } }, { "kind": "method", - "name": "reapplyStateStyle", - "privacy": "public", + "name": "createAnyFileAttachment", + "privacy": "private", + "static": true, "parameters": [ { - "name": "setType", - "type": { - "text": "keyof T" - } - }, - { - "name": "unsetTypes", - "optional": true, + "name": "fileName", "type": { - "text": "(keyof T)[]" + "text": "string" } } ], "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" + "name": "FileAttachmentsType", + "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" } - } - ], - "superclass": { - "name": "MicrophoneButton", - "module": "/src/views/chat/input/buttons/microphone/microphoneButton" - } - } - ], - "exports": [ - { - "kind": "js", - "name": "SpeechToText", - "declaration": { - "name": "SpeechToText", - "module": "src/views/chat/input/buttons/microphone/speechToText.ts" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "src/views/chat/input/buttons/styleAdjustments/inputButtonPositions.ts", - "declarations": [ - { - "kind": "class", - "description": "", - "name": "InputButtonPositions", - "members": [ + }, { "kind": "method", - "name": "addToDropup", - "privacy": "private", - "static": true, + "name": "addFileAttachment", "parameters": [ { - "name": "buttonContainers", + "name": "file", "type": { - "text": "ButtonContainersT" + "text": "File" } }, { - "name": "positions", + "name": "fileType", "type": { - "text": "Positions" + "text": "MessageFileType" } }, { - "name": "containerElement", + "name": "attachmentElement", "type": { "text": "HTMLElement" } }, { - "name": "dropupStyles", - "optional": true, + "name": "removable", "type": { - "text": "DropupStyles" + "text": "boolean" } } - ] + ], + "inheritedFrom": { + "name": "FileAttachmentsType", + "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" + } }, { "kind": "method", - "name": "addToSideContainer", + "name": "createContainer", "privacy": "private", "static": true, "parameters": [ { - "name": "buttonContainers", - "type": { - "text": "ButtonContainersT" - } - }, - { - "name": "positions", + "name": "attachmentElement", "type": { - "text": "Positions" + "text": "HTMLElement" } } - ] + ], + "inheritedFrom": { + "name": "FileAttachmentsType", + "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" + } }, { "kind": "method", - "name": "setPosition", - "privacy": "private", - "static": true, + "name": "createRemoveAttachmentButton", "parameters": [ { - "name": "buttonsObj", - "type": { - "text": "Buttons" - } - }, - { - "name": "buttonType", - "type": { - "text": "keyof Buttons" - } - }, - { - "name": "positionButtons", + "name": "attachmentObject", "type": { - "text": "ButtonProps[]" + "text": "AttachmentObject" } } - ] - }, - { - "kind": "method", - "name": "createPositionsObj", - "privacy": "private", - "static": true, - "return": { - "type": { - "text": "Positions" - } + ], + "inheritedFrom": { + "name": "FileAttachmentsType", + "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" } }, { "kind": "method", - "name": "generatePositions", - "privacy": "private", - "static": true, - "return": { - "type": { - "text": "Positions" - } - }, + "name": "removeAttachment", "parameters": [ { - "name": "buttonsObj", + "name": "attachmentObject", "type": { - "text": "Buttons" + "text": "AttachmentObject" } } - ] + ], + "inheritedFrom": { + "name": "FileAttachmentsType", + "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" + } }, { "kind": "method", - "name": "addButtons", + "name": "getFiles", + "inheritedFrom": { + "name": "FileAttachmentsType", + "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" + } + }, + { + "kind": "method", + "name": "removeAllAttachments", + "inheritedFrom": { + "name": "FileAttachmentsType", + "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" + } + } + ], + "superclass": { + "name": "FileAttachmentsType", + "module": "/src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType" + } + } + ], + "exports": [ + { + "kind": "js", + "name": "AudioFileAttachmentType", + "declaration": { + "name": "AudioFileAttachmentType", + "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/audioFileAttachmentType.ts" + } + } + ] + }, + { + "kind": "javascript-module", + "path": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentTypeFactory.ts", + "declarations": [ + { + "kind": "class", + "description": "", + "name": "FileAttachmentTypeFactory", + "members": [ + { + "kind": "method", + "name": "create", "privacy": "public", "static": true, "parameters": [ { - "name": "buttonContainers", + "name": "deepChat", "type": { - "text": "ButtonContainersT" + "text": "DeepChat" } }, { - "name": "buttons", + "name": "files", "type": { - "text": "Buttons" + "text": "FileAttachments" + } + }, + { + "name": "toggleContainer", + "type": { + "text": "(display: boolean) => void" } }, { @@ -34196,10 +34282,9 @@ } }, { - "name": "dropupStyles", - "optional": true, + "name": "type", "type": { - "text": "DropupStyles" + "text": "keyof ServiceFileTypes" } } ] @@ -34210,166 +34295,242 @@ "exports": [ { "kind": "js", - "name": "InputButtonPositions", + "name": "FileAttachmentTypeFactory", "declaration": { - "name": "InputButtonPositions", - "module": "src/views/chat/input/buttons/styleAdjustments/inputButtonPositions.ts" + "name": "FileAttachmentTypeFactory", + "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentTypeFactory.ts" } } ] }, { "kind": "javascript-module", - "path": "src/views/chat/input/buttons/styleAdjustments/inputButtonStyleAdjustments.ts", + "path": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts", "declarations": [ { "kind": "class", "description": "", - "name": "InputButtonStyleAdjustments", + "name": "FileAttachmentsType", "members": [ { "kind": "field", - "name": "INPUT_OUTSIDE_LEFT_ADJUSTMENT_CLASS", + "name": "_attachments", "type": { - "text": "string" + "text": "AttachmentObject[]" }, "privacy": "private", - "static": true, - "default": "'text-input-container-left-adjustment'" + "default": "[]" }, { "kind": "field", - "name": "INPUT_OUTSIDE_RIGHT_ADJUSTMENT_CLASS", + "name": "_fileCountLimit", "type": { - "text": "string" + "text": "number" }, "privacy": "private", - "static": true, - "default": "'text-input-container-right-adjustment'" + "default": "99" }, { "kind": "field", - "name": "INPUT_OUTSIDE_LEFT_SMALL_ADJUSTMENT_CLASS", + "name": "_toggleContainerDisplay", "type": { - "text": "string" + "text": "(display: boolean) => void" }, "privacy": "private", - "static": true, - "default": "'text-input-container-left-small-adjustment'" + "default": "toggleContainer" }, { "kind": "field", - "name": "INPUT_OUTSIDE_RIGHT_SMALL_ADJUSTMENT_CLASS", + "name": "_fileAttachmentsContainerRef", + "type": { + "text": "HTMLElement" + }, + "privacy": "private", + "default": "container" + }, + { + "kind": "field", + "name": "_acceptedFormat", "type": { "text": "string" }, "privacy": "private", - "static": true, - "default": "'text-input-container-right-small-adjustment'" + "default": "''" + }, + { + "kind": "field", + "name": "_validationHandler", + "type": { + "text": "ValidationHandler | undefined" + }, + "privacy": "private" }, { "kind": "method", - "name": "adjustInputPadding", + "name": "attemptAddFile", + "parameters": [ + { + "name": "file", + "type": { + "text": "File" + } + }, + { + "name": "fileReaderResult", + "type": { + "text": "string" + } + } + ] + }, + { + "kind": "method", + "name": "isFileTypeValid", "privacy": "private", "static": true, "parameters": [ { - "name": "textInputEl", + "name": "file", "type": { - "text": "HTMLElement" + "text": "File" } }, { - "name": "positions", + "name": "accept", "type": { - "text": "Positions" + "text": "string" } } ] }, { "kind": "method", - "name": "adjustForOutsideButton", + "name": "addAttachmentBasedOnType", "privacy": "private", - "static": true, "parameters": [ { - "name": "containers", + "name": "file", "type": { - "text": "ButtonContainersT" + "text": "File" } }, { - "name": "fileAtt", + "name": "fileReaderResult", "type": { - "text": "HTMLElement" + "text": "string" } }, { - "name": "positions", + "name": "removable", "type": { - "text": "Positions" + "text": "boolean" } } ] }, { "kind": "method", - "name": "adjustOutsideSubmit", + "name": "createImageAttachment", "privacy": "private", "static": true, "parameters": [ { - "name": "containers", + "name": "src", + "type": { + "text": "string" + } + } + ] + }, + { + "kind": "method", + "name": "createAnyFileAttachment", + "privacy": "private", + "static": true, + "parameters": [ + { + "name": "fileName", + "type": { + "text": "string" + } + } + ] + }, + { + "kind": "method", + "name": "addFileAttachment", + "parameters": [ + { + "name": "file", + "type": { + "text": "File" + } + }, + { + "name": "fileType", "type": { - "text": "ButtonContainersT" + "text": "MessageFileType" } }, { - "name": "fileAtt", + "name": "attachmentElement", "type": { "text": "HTMLElement" } }, { - "name": "positions", + "name": "removable", "type": { - "text": "Positions" + "text": "boolean" } } ] }, { "kind": "method", - "name": "set", - "privacy": "public", + "name": "createContainer", + "privacy": "private", "static": true, "parameters": [ { - "name": "textInputEl", + "name": "attachmentElement", "type": { "text": "HTMLElement" } - }, - { - "name": "containers", - "type": { - "text": "ButtonContainersT" - } - }, + } + ] + }, + { + "kind": "method", + "name": "createRemoveAttachmentButton", + "parameters": [ { - "name": "fileAtt", + "name": "attachmentObject", "type": { - "text": "HTMLElement" + "text": "AttachmentObject" } - }, + } + ] + }, + { + "kind": "method", + "name": "removeAttachment", + "parameters": [ { - "name": "positions", + "name": "attachmentObject", "type": { - "text": "Positions" + "text": "AttachmentObject" } } ] + }, + { + "kind": "method", + "name": "getFiles" + }, + { + "kind": "method", + "name": "removeAllAttachments" } ] } @@ -34377,722 +34538,693 @@ "exports": [ { "kind": "js", - "name": "InputButtonStyleAdjustments", + "name": "FileAttachmentsType", "declaration": { - "name": "InputButtonStyleAdjustments", - "module": "src/views/chat/input/buttons/styleAdjustments/inputButtonStyleAdjustments.ts" + "name": "FileAttachmentsType", + "module": "src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts" } } ] }, { "kind": "javascript-module", - "path": "src/views/chat/input/buttons/submit/submitButton.ts", + "path": "src/views/chat/input/fileAttachments/modal/cameraModal.ts", "declarations": [ { "kind": "class", "description": "", - "name": "SubmitButton", + "name": "CameraModal", "members": [ { "kind": "field", - "name": "SUBMIT_CLASS", - "type": { - "text": "string" - }, - "privacy": "private", - "static": true, - "default": "'submit-button'" - }, - { - "kind": "field", - "name": "LOADING_CLASS", - "type": { - "text": "string" - }, - "privacy": "private", - "static": true, - "default": "'loading-button'" - }, - { - "kind": "field", - "name": "DISABLED_CLASS", + "name": "_dataURL", "type": { - "text": "string" + "text": "string | undefined" }, - "privacy": "private", - "static": true, - "default": "'disabled-button'" + "privacy": "private" }, { "kind": "field", - "name": "_serviceIO", + "name": "_stopped", "type": { - "text": "ServiceIO" + "text": "boolean" }, "privacy": "private", - "default": "serviceIO" + "default": "false" }, { "kind": "field", - "name": "_messages", + "name": "_captureButton", "type": { - "text": "Messages" + "text": "HTMLElement" }, "privacy": "private", - "default": "messages" + "default": "captureButton" }, { "kind": "field", - "name": "_inputElementRef", + "name": "_submitButton", "type": { "text": "HTMLElement" }, "privacy": "private", - "default": "inputElementRef" + "default": "submitButton" }, { "kind": "field", - "name": "_abortStream", + "name": "_canvas", "type": { - "text": "AbortController" + "text": "HTMLCanvasElement" }, - "privacy": "private", - "default": "new AbortController()" + "privacy": "private" }, { "kind": "field", - "name": "_stopClicked", + "name": "_captureIcon", "type": { - "text": "Signals['stopClicked']" + "text": "SVGGraphicsElement" }, "privacy": "private", - "default": "{listener: () => {}}" + "default": "this._captureButton.children[0]" }, { "kind": "field", - "name": "_innerElements", + "name": "_refreshIcon", "type": { - "text": "DefinedButtonInnerElements" + "text": "SVGGraphicsElement" }, "privacy": "private" }, { "kind": "field", - "name": "_fileAttachments", - "type": { - "text": "FileAttachments" - }, - "privacy": "private", - "default": "fileAttachments" - }, - { - "kind": "field", - "name": "_alwaysEnabled", + "name": "_mediaStream", "type": { - "text": "boolean" + "text": "MediaStream | undefined" }, - "privacy": "private", - "default": "!!submitButtonStyles?.alwaysEnabled" + "privacy": "private" }, { "kind": "field", - "name": "_isSVGLoadingIconOverriden", + "name": "_format", "type": { - "text": "boolean" + "text": "'image/png' | 'image/jpeg'" }, "privacy": "private", - "default": "false" + "default": "'image/png'" }, { "kind": "field", - "name": "_validationHandler", + "name": "_newFilePrefix", "type": { - "text": "ValidationHandler | undefined" + "text": "string | undefined" }, "privacy": "private" }, { "kind": "field", - "name": "status", + "name": "_dimensions", "type": { - "text": "object" + "text": "CameraDimensions | undefined" }, - "default": "{requestInProgress: false, loadingActive: false}" - }, - { - "kind": "method", - "name": "createInnerElements", "privacy": "private" }, { "kind": "method", - "name": "createButtonContainerElement", - "privacy": "private", - "static": true - }, - { - "kind": "method", - "name": "createSubmitIconElement", - "privacy": "private", - "static": true - }, - { - "kind": "method", - "name": "createLoadingIconElement", - "privacy": "private", - "static": true - }, - { - "kind": "method", - "name": "createStopIconElement", - "privacy": "private", - "static": true - }, - { - "kind": "method", - "name": "createDisabledIconElement", - "privacy": "private", - "parameters": [ - { - "name": "submitElement", - "type": { - "text": "ButtonInnerElement" - } - } - ] - }, - { - "kind": "method", - "name": "attemptOverwriteLoadingStyle", + "name": "addButtonsAndTheirEvents", "privacy": "private", "parameters": [ { - "name": "deepChat", + "name": "fileAttachmentsType", "type": { - "text": "DeepChat" + "text": "FileAttachmentsType" } } ] }, { "kind": "method", - "name": "assignHandlers", + "name": "addButtonEvents", "privacy": "private", "parameters": [ { - "name": "validationHandler", + "name": "captureButton", "type": { - "text": "ValidationHandler" + "text": "HTMLElement" } - } - ] - }, - { - "kind": "method", - "name": "resetSubmit", - "privacy": "private", - "parameters": [ + }, { - "name": "validationHandler", + "name": "closeButton", "type": { - "text": "ValidationHandler" + "text": "HTMLElement" } - } - ] - }, - { - "kind": "method", - "name": "submitFromInput", - "privacy": "public" - }, - { - "kind": "method", - "name": "submit", - "privacy": "public", - "parameters": [ + }, { - "name": "isProgrammatic", + "name": "submitButton", "type": { - "text": "boolean" + "text": "HTMLElement" } }, { - "name": "userText", + "name": "fileAttachmentsType", "type": { - "text": "string" + "text": "FileAttachmentsType" } } ] }, { "kind": "method", - "name": "addNewMessages", - "privacy": "private", - "parameters": [ - { - "name": "userText", - "type": { - "text": "string" - } - }, - { - "name": "uploadedFilesData", - "optional": true, - "type": { - "text": "{file: File; type: MessageFileType}[]" - } - } - ] + "name": "stop", + "privacy": "private" }, { "kind": "method", - "name": "stopStream", - "privacy": "private" + "name": "start" }, { "kind": "method", - "name": "changeToStopIcon", + "name": "capture", "privacy": "private" }, { "kind": "method", - "name": "changeToLoadingIcon", + "name": "getFile", "privacy": "private" }, { "kind": "method", - "name": "changeToSubmitIcon", - "privacy": "public" + "name": "updateCanvas", + "privacy": "private", + "parameters": [ + { + "name": "video", + "type": { + "text": "HTMLVideoElement" + } + }, + { + "name": "canvas", + "type": { + "text": "HTMLCanvasElement" + } + } + ] }, { "kind": "method", - "name": "changeToDisabledIcon", - "privacy": "public", + "name": "openCameraModal", + "privacy": "private", "parameters": [ { - "name": "isProgrammatic", - "default": "false" + "name": "cameraModal", + "type": { + "text": "CameraModal" + } } ] }, { "kind": "method", - "name": "disableSubmitButton", - "privacy": "private", + "name": "createCameraModalFunc", + "privacy": "public", + "static": true, "parameters": [ { - "name": "serviceIO", + "name": "viewContainerElement", "type": { - "text": "ServiceIO" + "text": "HTMLElement" } }, { - "name": "isActive", + "name": "fileAttachmentsType", + "type": { + "text": "FileAttachmentsType" + } + }, + { + "name": "modalContainerStyle", "optional": true, "type": { - "text": "boolean" + "text": "CustomStyle" + } + }, + { + "name": "cameraFiles", + "optional": true, + "type": { + "text": "CameraFiles" } } ] }, { "kind": "field", - "name": "elementRef", + "name": "extensionCloseCallback", + "type": { + "text": "() => void | undefined" + }, + "inheritedFrom": { + "name": "Modal", + "module": "src/views/chat/input/fileAttachments/modal/modal.ts" + } + }, + { + "kind": "field", + "name": "MODAL_CLOSE_TIMEOUT_MS", + "type": { + "text": "number" + }, + "privacy": "public", + "static": true, + "default": "190", + "inheritedFrom": { + "name": "Modal", + "module": "src/views/chat/input/fileAttachments/modal/modal.ts" + } + }, + { + "kind": "field", + "name": "_contentRef", "type": { "text": "HTMLElement" }, - "default": "buttonElement", "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" + "name": "Modal", + "module": "src/views/chat/input/fileAttachments/modal/modal.ts" } }, { "kind": "field", - "name": "_mouseState", + "name": "_elementRef", "type": { - "text": "MouseState" + "text": "HTMLElement" }, - "privacy": "protected", - "default": "{state: 'default'}", + "privacy": "private", "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" + "name": "Modal", + "module": "src/views/chat/input/fileAttachments/modal/modal.ts" } }, { "kind": "field", - "name": "_customStyles", + "name": "_backgroundPanelRef", "type": { - "text": "T | undefined" + "text": "HTMLElement" }, - "privacy": "protected", - "default": "customStyles", + "privacy": "private", "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" + "name": "Modal", + "module": "src/views/chat/input/fileAttachments/modal/modal.ts" } }, { "kind": "field", - "name": "position", + "name": "_buttonPanel", "type": { - "text": "ButtonPositionT | undefined" + "text": "HTMLElement" }, - "default": "position", + "privacy": "private", "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" + "name": "Modal", + "module": "src/views/chat/input/fileAttachments/modal/modal.ts" } }, { "kind": "field", - "name": "dropupText", + "name": "_isOpen", "type": { - "text": "string | undefined" + "text": "boolean" }, - "default": "dropupText", + "privacy": "private", + "default": "false", "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" + "name": "Modal", + "module": "src/views/chat/input/fileAttachments/modal/modal.ts" } }, { "kind": "method", - "name": "buttonMouseLeave", + "name": "isOpen", + "inheritedFrom": { + "name": "Modal", + "module": "src/views/chat/input/fileAttachments/modal/modal.ts" + } + }, + { + "kind": "method", + "name": "createContainer", "privacy": "private", + "static": true, "parameters": [ { - "name": "customStyles", + "name": "content", + "type": { + "text": "HTMLElement" + } + }, + { + "name": "containerStyle", "optional": true, "type": { - "text": "ButtonStyles" + "text": "CustomStyle" } } ], "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" + "name": "Modal", + "module": "src/views/chat/input/fileAttachments/modal/modal.ts" } }, { "kind": "method", - "name": "buttonMouseEnter", + "name": "createModalContent", "privacy": "private", + "static": true, "parameters": [ { - "name": "customStyles", + "name": "contentClasses", + "type": { + "text": "string[]" + } + }, + { + "name": "backgroundColor", "optional": true, "type": { - "text": "ButtonStyles" + "text": "string" } } ], "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" + "name": "Modal", + "module": "src/views/chat/input/fileAttachments/modal/modal.ts" } }, { "kind": "method", - "name": "buttonMouseUp", + "name": "createButtonPanel", "privacy": "private", + "static": true, "parameters": [ { - "name": "customStyles", + "name": "backgroundColor", "optional": true, "type": { - "text": "ButtonStyles" + "text": "string" } } ], "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" + "name": "Modal", + "module": "src/views/chat/input/fileAttachments/modal/modal.ts" } }, { "kind": "method", - "name": "buttonMouseDown", + "name": "createDarkBackgroundPanel", "privacy": "private", + "static": true, + "inheritedFrom": { + "name": "Modal", + "module": "src/views/chat/input/fileAttachments/modal/modal.ts" + } + }, + { + "kind": "method", + "name": "addButtons", "parameters": [ { - "name": "customStyles", - "optional": true, + "name": "buttons", "type": { - "text": "ButtonStyles" + "text": "HTMLElement[]" } } ], "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" + "name": "Modal", + "module": "src/views/chat/input/fileAttachments/modal/modal.ts" + } + }, + { + "kind": "method", + "name": "createTextButton", + "privacy": "private", + "static": true, + "parameters": [ + { + "name": "text", + "type": { + "text": "string" + } + } + ], + "inheritedFrom": { + "name": "Modal", + "module": "src/views/chat/input/fileAttachments/modal/modal.ts" + } + }, + { + "kind": "method", + "name": "createSVGButton", + "privacy": "public", + "static": true, + "parameters": [ + { + "name": "svgString", + "type": { + "text": "string" + } + } + ], + "inheritedFrom": { + "name": "Modal", + "module": "src/views/chat/input/fileAttachments/modal/modal.ts" + } + }, + { + "kind": "method", + "name": "close", + "inheritedFrom": { + "name": "Modal", + "module": "src/views/chat/input/fileAttachments/modal/modal.ts" } }, { "kind": "method", - "name": "setEvents", - "privacy": "private", - "parameters": [ - { - "name": "customStyles", - "optional": true, - "type": { - "text": "ButtonStyles" - } - } - ], + "name": "displayModalElements", "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" + "name": "Modal", + "module": "src/views/chat/input/fileAttachments/modal/modal.ts" } }, { "kind": "method", - "name": "unsetCustomStateStyles", - "privacy": "public", + "name": "openTextModal", + "privacy": "private", "parameters": [ { - "name": "unsetTypes", + "name": "textHTML", "type": { - "text": "(keyof T)[]" + "text": "string" } } ], "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" + "name": "Modal", + "module": "src/views/chat/input/fileAttachments/modal/modal.ts" } }, { "kind": "method", - "name": "reapplyStateStyle", - "privacy": "public", + "name": "addCloseButton", "parameters": [ { - "name": "setType", + "name": "text", "type": { - "text": "keyof T" + "text": "string" } }, { - "name": "unsetTypes", + "name": "isSVG", + "type": { + "text": "boolean" + } + }, + { + "name": "callback", "optional": true, "type": { - "text": "(keyof T)[]" + "text": "() => void" } } ], "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" + "name": "Modal", + "module": "src/views/chat/input/fileAttachments/modal/modal.ts" } - } - ], - "superclass": { - "name": "InputButton", - "module": "/src/views/chat/input/buttons/inputButton" - } - } - ], - "exports": [ - { - "kind": "js", - "name": "SubmitButton", - "declaration": { - "name": "SubmitButton", - "module": "src/views/chat/input/buttons/submit/submitButton.ts" - } - } - ] - }, - { - "kind": "javascript-module", - "path": "src/views/chat/input/buttons/submit/submitButtonStateStyle.ts", - "declarations": [ - { - "kind": "class", - "description": "", - "name": "SubmitButtonStateStyle", - "members": [ + }, { "kind": "method", - "name": "resetSubmit", + "name": "createTextModalFunc", "privacy": "public", "static": true, "parameters": [ { - "name": "submitButton", + "name": "viewContainerElement", "type": { - "text": "SubmitButton" + "text": "HTMLElement" } }, { - "name": "wasLoading", - "type": { - "text": "boolean" - } - } - ] - }, - { - "kind": "method", - "name": "overwriteDefaultStyleWithSubmit", - "privacy": "private", - "static": true, - "parameters": [ - { - "name": "styles", + "name": "fileIO", "type": { - "text": "SubmitButtonStyles" + "text": "FileServiceIO" } }, { - "name": "style", + "name": "closeCallback", "type": { - "text": "keyof SubmitButtonStyles" + "text": "() => void" } } - ] + ], + "inheritedFrom": { + "name": "Modal", + "module": "src/views/chat/input/fileAttachments/modal/modal.ts" + } }, { "kind": "method", - "name": "setUpDisabledButton", + "name": "addWindowEvents", "privacy": "private", - "static": true, - "parameters": [ - { - "name": "styles", - "type": { - "text": "SubmitButtonStyles" - } - } - ] - }, - { - "kind": "method", - "name": "process", - "privacy": "public", - "static": true, - "parameters": [ - { - "name": "submitButtonStyles", - "optional": true, - "type": { - "text": "SubmitButtonStyles" - } - } - ] + "inheritedFrom": { + "name": "Modal", + "module": "src/views/chat/input/fileAttachments/modal/modal.ts" + } } - ] + ], + "superclass": { + "name": "Modal", + "module": "/src/views/chat/input/fileAttachments/modal/modal" + } } ], "exports": [ { "kind": "js", - "name": "SubmitButtonStateStyle", + "name": "CameraModal", "declaration": { - "name": "SubmitButtonStateStyle", - "module": "src/views/chat/input/buttons/submit/submitButtonStateStyle.ts" + "name": "CameraModal", + "module": "src/views/chat/input/fileAttachments/modal/cameraModal.ts" } } ] }, { "kind": "javascript-module", - "path": "src/views/chat/input/buttons/uploadFile/uploadFileButton.ts", + "path": "src/views/chat/input/fileAttachments/modal/modal.ts", "declarations": [ { "kind": "class", "description": "", - "name": "UploadFileButton", + "name": "Modal", "members": [ { "kind": "field", - "name": "_inputElement", + "name": "MODAL_CLOSE_TIMEOUT_MS", "type": { - "text": "HTMLInputElement" + "text": "number" + }, + "privacy": "public", + "static": true, + "default": "190" + }, + { + "kind": "field", + "name": "_contentRef", + "type": { + "text": "HTMLElement" + } + }, + { + "kind": "field", + "name": "_elementRef", + "type": { + "text": "HTMLElement" }, "privacy": "private" }, { "kind": "field", - "name": "_fileAttachmentsType", + "name": "_backgroundPanelRef", "type": { - "text": "FileAttachmentsType" + "text": "HTMLElement" }, - "privacy": "private", - "default": "fileAttachmentsType" + "privacy": "private" }, { "kind": "field", - "name": "_openModalOnce", + "name": "_buttonPanel", "type": { - "text": "boolean | undefined | undefined" + "text": "HTMLElement" }, "privacy": "private" }, + { + "kind": "field", + "name": "_isOpen", + "type": { + "text": "boolean" + }, + "privacy": "private", + "default": "false" + }, + { + "kind": "field", + "name": "extensionCloseCallback", + "type": { + "text": "() => void | undefined" + } + }, { "kind": "method", - "name": "createInnerElements", + "name": "isOpen" + }, + { + "kind": "method", + "name": "createContainer", "privacy": "private", + "static": true, "parameters": [ { - "name": "iconId", - "type": { - "text": "string" - } - }, - { - "name": "iconSVGString", + "name": "content", "type": { - "text": "string" + "text": "HTMLElement" } }, { - "name": "customStyles", + "name": "containerStyle", "optional": true, "type": { - "text": "Styles" - } - } - ] - }, - { - "kind": "method", - "name": "triggerImportPrompt", - "privacy": "private", - "parameters": [ - { - "name": "inputElement", - "type": { - "text": "HTMLInputElement" + "text": "CustomStyle" } } ] }, { "kind": "method", - "name": "import", + "name": "createModalContent", "privacy": "private", + "static": true, "parameters": [ { - "name": "inputElement", + "name": "contentClasses", "type": { - "text": "HTMLInputElement" + "text": "string[]" } - } - ] - }, - { - "kind": "method", - "name": "createInputElement", - "privacy": "private", - "static": true, - "parameters": [ + }, { - "name": "acceptedFormats", + "name": "backgroundColor", "optional": true, "type": { "text": "string" @@ -35102,296 +35234,152 @@ }, { "kind": "method", - "name": "createInnerElement", + "name": "createButtonPanel", "privacy": "private", + "static": true, "parameters": [ { - "name": "baseButton", - "type": { - "text": "SVGGraphicsElement" - } - }, - { - "name": "state", - "type": { - "text": "'styles'" - } - }, - { - "name": "customStyles", + "name": "backgroundColor", "optional": true, "type": { - "text": "Styles" + "text": "string" } } ] }, { "kind": "method", - "name": "createButtonElement", + "name": "createDarkBackgroundPanel", "privacy": "private", "static": true }, { "kind": "method", - "name": "createSVGIconElement", - "privacy": "private", - "static": true, + "name": "addButtons", "parameters": [ { - "name": "iconId", - "type": { - "text": "string" - } - }, - { - "name": "iconSVGString", + "name": "buttons", "type": { - "text": "string" + "text": "HTMLElement[]" } } ] }, { "kind": "method", - "name": "addClickEvent", + "name": "createTextButton", "privacy": "private", + "static": true, "parameters": [ { - "name": "containerElement", - "type": { - "text": "HTMLElement" - } - }, - { - "name": "fileService", + "name": "text", "type": { - "text": "FileServiceIO" + "text": "string" } } ] }, { "kind": "method", - "name": "click", - "privacy": "private", + "name": "createSVGButton", + "privacy": "public", + "static": true, "parameters": [ { - "name": "openModalFunc", - "optional": true, + "name": "svgString", "type": { - "text": "() => void" + "text": "string" } } ] }, { - "kind": "field", - "name": "elementRef", - "type": { - "text": "HTMLElement" - }, - "default": "buttonElement", - "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" - } - }, - { - "kind": "field", - "name": "_mouseState", - "type": { - "text": "MouseState" - }, - "privacy": "protected", - "default": "{state: 'default'}", - "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" - } - }, - { - "kind": "field", - "name": "_customStyles", - "type": { - "text": "T | undefined" - }, - "privacy": "protected", - "default": "customStyles", - "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" - } - }, - { - "kind": "field", - "name": "position", - "type": { - "text": "ButtonPositionT | undefined" - }, - "default": "position", - "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" - } - }, - { - "kind": "field", - "name": "dropupText", - "type": { - "text": "string | undefined" - }, - "default": "dropupText", - "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" - } + "kind": "method", + "name": "close" }, { "kind": "method", - "name": "buttonMouseLeave", - "privacy": "private", - "parameters": [ - { - "name": "customStyles", - "optional": true, - "type": { - "text": "ButtonStyles" - } - } - ], - "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" - } + "name": "displayModalElements" }, { "kind": "method", - "name": "buttonMouseEnter", + "name": "openTextModal", "privacy": "private", "parameters": [ { - "name": "customStyles", - "optional": true, + "name": "textHTML", "type": { - "text": "ButtonStyles" + "text": "string" } } - ], - "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" - } + ] }, { "kind": "method", - "name": "buttonMouseUp", - "privacy": "private", + "name": "addCloseButton", "parameters": [ { - "name": "customStyles", - "optional": true, + "name": "text", "type": { - "text": "ButtonStyles" + "text": "string" } - } - ], - "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" - } - }, - { - "kind": "method", - "name": "buttonMouseDown", - "privacy": "private", - "parameters": [ + }, { - "name": "customStyles", - "optional": true, + "name": "isSVG", "type": { - "text": "ButtonStyles" + "text": "boolean" } - } - ], - "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" - } - }, - { - "kind": "method", - "name": "setEvents", - "privacy": "private", - "parameters": [ + }, { - "name": "customStyles", + "name": "callback", "optional": true, "type": { - "text": "ButtonStyles" + "text": "() => void" } } - ], - "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" - } + ] }, { "kind": "method", - "name": "unsetCustomStateStyles", + "name": "createTextModalFunc", "privacy": "public", + "static": true, "parameters": [ { - "name": "unsetTypes", + "name": "viewContainerElement", "type": { - "text": "(keyof T)[]" + "text": "HTMLElement" } - } - ], - "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" - } - }, - { - "kind": "method", - "name": "reapplyStateStyle", - "privacy": "public", - "parameters": [ + }, { - "name": "setType", + "name": "fileIO", "type": { - "text": "keyof T" + "text": "FileServiceIO" } }, { - "name": "unsetTypes", - "optional": true, + "name": "closeCallback", "type": { - "text": "(keyof T)[]" + "text": "() => void" } } - ], - "inheritedFrom": { - "name": "InputButton", - "module": "src/views/chat/input/buttons/inputButton.ts" - } + ] + }, + { + "kind": "method", + "name": "addWindowEvents", + "privacy": "private" } - ], - "superclass": { - "name": "InputButton", - "module": "/src/views/chat/input/buttons/inputButton" - } + ] } ], "exports": [ { "kind": "js", - "name": "UploadFileButton", + "name": "Modal", "declaration": { - "name": "UploadFileButton", - "module": "src/views/chat/input/buttons/uploadFile/uploadFileButton.ts" + "name": "Modal", + "module": "src/views/chat/input/fileAttachments/modal/modal.ts" } } ] diff --git a/component/package-lock.json b/component/package-lock.json index d389d2c6a..ff2b46777 100644 --- a/component/package-lock.json +++ b/component/package-lock.json @@ -1,12 +1,12 @@ { "name": "deep-chat", - "version": "1.4.1", + "version": "1.4.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "deep-chat", - "version": "1.4.1", + "version": "1.4.2", "license": "MIT", "dependencies": { "@microsoft/fetch-event-source": "^2.0.1", diff --git a/component/package.json b/component/package.json index 5cd3ce1ec..4c8966cdc 100644 --- a/component/package.json +++ b/component/package.json @@ -1,6 +1,6 @@ { "name": "deep-chat", - "version": "1.4.1", + "version": "1.4.2", "description": "Customizable chat component for AI APIs", "main": "./dist/deepChat.js", "module": "./dist/deepChat.js", diff --git a/example-servers/nextjs/package-lock.json b/example-servers/nextjs/package-lock.json index c8aed4d43..bf9c0fecc 100644 --- a/example-servers/nextjs/package-lock.json +++ b/example-servers/nextjs/package-lock.json @@ -6,7 +6,7 @@ "": { "dependencies": { "axios": "^1.4.0", - "deep-chat-react": "^1.4.1", + "deep-chat-react": "^1.4.2", "eventsource-parser": "^1.0.0", "next": "13.4.9", "react": "^18.2.0", @@ -299,9 +299,9 @@ "dev": true }, "node_modules/deep-chat": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/deep-chat/-/deep-chat-1.4.1.tgz", - "integrity": "sha512-GERbeorV1D1uijGF3Z+CiRITVgERSIXkFZJp7Kv17D1SI+492p2E5fNsS2i5KBucGWVoDG/TK9Bc8x7WD/09Qg==", + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/deep-chat/-/deep-chat-1.4.2.tgz", + "integrity": "sha512-NYsb0XmFSpfKZCUH8F+UW921ziLeQiAyT+F6K4en0Ob/pHRLCHCZsF/zNBx18UpUN/iaIKQ9wLEB4Rz3Il4qxg==", "dependencies": { "@microsoft/fetch-event-source": "^2.0.1", "remarkable": "^2.0.1", @@ -309,12 +309,12 @@ } }, "node_modules/deep-chat-react": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/deep-chat-react/-/deep-chat-react-1.4.1.tgz", - "integrity": "sha512-CPL2QxlXe5cd8P4XlKLqJOtmAWKm86MHw4vqL5l9FFeLC44XK7ru+heFMd6nnz7OuvoxJOodws0Nq2ajhRxvMg==", + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/deep-chat-react/-/deep-chat-react-1.4.2.tgz", + "integrity": "sha512-lc3KaQtx4ePnILHVsPRRtovhvSU6Jcn10u/9rbZ2ZTiHeWkvSCUwgOvKXZ6IkRTLblde8bz/ediyJi/AaPg2Wg==", "dependencies": { "@lit-labs/react": "^1.1.1", - "deep-chat": "1.4.1" + "deep-chat": "1.4.2" }, "peerDependencies": { "react": ">=16.8.0 || >=17.0.0 || >=18.0.0" @@ -826,9 +826,9 @@ "dev": true }, "deep-chat": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/deep-chat/-/deep-chat-1.4.1.tgz", - "integrity": "sha512-GERbeorV1D1uijGF3Z+CiRITVgERSIXkFZJp7Kv17D1SI+492p2E5fNsS2i5KBucGWVoDG/TK9Bc8x7WD/09Qg==", + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/deep-chat/-/deep-chat-1.4.2.tgz", + "integrity": "sha512-NYsb0XmFSpfKZCUH8F+UW921ziLeQiAyT+F6K4en0Ob/pHRLCHCZsF/zNBx18UpUN/iaIKQ9wLEB4Rz3Il4qxg==", "requires": { "@microsoft/fetch-event-source": "^2.0.1", "remarkable": "^2.0.1", @@ -836,12 +836,12 @@ } }, "deep-chat-react": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/deep-chat-react/-/deep-chat-react-1.4.1.tgz", - "integrity": "sha512-CPL2QxlXe5cd8P4XlKLqJOtmAWKm86MHw4vqL5l9FFeLC44XK7ru+heFMd6nnz7OuvoxJOodws0Nq2ajhRxvMg==", + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/deep-chat-react/-/deep-chat-react-1.4.2.tgz", + "integrity": "sha512-lc3KaQtx4ePnILHVsPRRtovhvSU6Jcn10u/9rbZ2ZTiHeWkvSCUwgOvKXZ6IkRTLblde8bz/ediyJi/AaPg2Wg==", "requires": { "@lit-labs/react": "^1.1.1", - "deep-chat": "1.4.1" + "deep-chat": "1.4.2" } }, "delayed-stream": { diff --git a/example-servers/nextjs/package.json b/example-servers/nextjs/package.json index 33f86737b..35694356d 100644 --- a/example-servers/nextjs/package.json +++ b/example-servers/nextjs/package.json @@ -7,7 +7,7 @@ }, "dependencies": { "axios": "^1.4.0", - "deep-chat-react": "^1.4.1", + "deep-chat-react": "^1.4.2", "eventsource-parser": "^1.0.0", "next": "13.4.9", "react": "^18.2.0", diff --git a/example-servers/sveltekit/package-lock.json b/example-servers/sveltekit/package-lock.json index 0b0f549cb..4a0c04dca 100644 --- a/example-servers/sveltekit/package-lock.json +++ b/example-servers/sveltekit/package-lock.json @@ -8,7 +8,7 @@ "name": "deep-chat-sveltekit", "version": "0.0.1", "dependencies": { - "deep-chat": "^1.4.1", + "deep-chat": "^1.4.2", "eventsource-parser": "^1.0.0" }, "devDependencies": { @@ -986,9 +986,9 @@ } }, "node_modules/deep-chat": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/deep-chat/-/deep-chat-1.4.1.tgz", - "integrity": "sha512-GERbeorV1D1uijGF3Z+CiRITVgERSIXkFZJp7Kv17D1SI+492p2E5fNsS2i5KBucGWVoDG/TK9Bc8x7WD/09Qg==", + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/deep-chat/-/deep-chat-1.4.2.tgz", + "integrity": "sha512-NYsb0XmFSpfKZCUH8F+UW921ziLeQiAyT+F6K4en0Ob/pHRLCHCZsF/zNBx18UpUN/iaIKQ9wLEB4Rz3Il4qxg==", "dependencies": { "@microsoft/fetch-event-source": "^2.0.1", "remarkable": "^2.0.1", @@ -3065,9 +3065,9 @@ } }, "deep-chat": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/deep-chat/-/deep-chat-1.4.1.tgz", - "integrity": "sha512-GERbeorV1D1uijGF3Z+CiRITVgERSIXkFZJp7Kv17D1SI+492p2E5fNsS2i5KBucGWVoDG/TK9Bc8x7WD/09Qg==", + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/deep-chat/-/deep-chat-1.4.2.tgz", + "integrity": "sha512-NYsb0XmFSpfKZCUH8F+UW921ziLeQiAyT+F6K4en0Ob/pHRLCHCZsF/zNBx18UpUN/iaIKQ9wLEB4Rz3Il4qxg==", "requires": { "@microsoft/fetch-event-source": "^2.0.1", "remarkable": "^2.0.1", diff --git a/example-servers/sveltekit/package.json b/example-servers/sveltekit/package.json index 3394beb58..cf3bd0ef0 100644 --- a/example-servers/sveltekit/package.json +++ b/example-servers/sveltekit/package.json @@ -21,7 +21,7 @@ }, "type": "module", "dependencies": { - "deep-chat": "^1.4.1", + "deep-chat": "^1.4.2", "eventsource-parser": "^1.0.0" } } diff --git a/example-servers/ui/package-lock.json b/example-servers/ui/package-lock.json index b38d1ebe1..222bf45c4 100644 --- a/example-servers/ui/package-lock.json +++ b/example-servers/ui/package-lock.json @@ -15,7 +15,7 @@ "@types/node": "^16.18.38", "@types/react": "^18.2.14", "@types/react-dom": "^18.2.6", - "deep-chat-react": "^1.4.1", + "deep-chat-react": "^1.4.2", "react": "^18.2.0", "react-dom": "^18.2.0", "react-scripts": "5.0.1", @@ -6397,9 +6397,9 @@ "integrity": "sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA==" }, "node_modules/deep-chat": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/deep-chat/-/deep-chat-1.4.1.tgz", - "integrity": "sha512-GERbeorV1D1uijGF3Z+CiRITVgERSIXkFZJp7Kv17D1SI+492p2E5fNsS2i5KBucGWVoDG/TK9Bc8x7WD/09Qg==", + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/deep-chat/-/deep-chat-1.4.2.tgz", + "integrity": "sha512-NYsb0XmFSpfKZCUH8F+UW921ziLeQiAyT+F6K4en0Ob/pHRLCHCZsF/zNBx18UpUN/iaIKQ9wLEB4Rz3Il4qxg==", "dependencies": { "@microsoft/fetch-event-source": "^2.0.1", "remarkable": "^2.0.1", @@ -6407,12 +6407,12 @@ } }, "node_modules/deep-chat-react": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/deep-chat-react/-/deep-chat-react-1.4.1.tgz", - "integrity": "sha512-CPL2QxlXe5cd8P4XlKLqJOtmAWKm86MHw4vqL5l9FFeLC44XK7ru+heFMd6nnz7OuvoxJOodws0Nq2ajhRxvMg==", + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/deep-chat-react/-/deep-chat-react-1.4.2.tgz", + "integrity": "sha512-lc3KaQtx4ePnILHVsPRRtovhvSU6Jcn10u/9rbZ2ZTiHeWkvSCUwgOvKXZ6IkRTLblde8bz/ediyJi/AaPg2Wg==", "dependencies": { "@lit-labs/react": "^1.1.1", - "deep-chat": "1.4.1" + "deep-chat": "1.4.2" }, "peerDependencies": { "react": ">=16.8.0 || >=17.0.0 || >=18.0.0" @@ -21698,9 +21698,9 @@ "integrity": "sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA==" }, "deep-chat": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/deep-chat/-/deep-chat-1.4.1.tgz", - "integrity": "sha512-GERbeorV1D1uijGF3Z+CiRITVgERSIXkFZJp7Kv17D1SI+492p2E5fNsS2i5KBucGWVoDG/TK9Bc8x7WD/09Qg==", + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/deep-chat/-/deep-chat-1.4.2.tgz", + "integrity": "sha512-NYsb0XmFSpfKZCUH8F+UW921ziLeQiAyT+F6K4en0Ob/pHRLCHCZsF/zNBx18UpUN/iaIKQ9wLEB4Rz3Il4qxg==", "requires": { "@microsoft/fetch-event-source": "^2.0.1", "remarkable": "^2.0.1", @@ -21708,12 +21708,12 @@ } }, "deep-chat-react": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/deep-chat-react/-/deep-chat-react-1.4.1.tgz", - "integrity": "sha512-CPL2QxlXe5cd8P4XlKLqJOtmAWKm86MHw4vqL5l9FFeLC44XK7ru+heFMd6nnz7OuvoxJOodws0Nq2ajhRxvMg==", + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/deep-chat-react/-/deep-chat-react-1.4.2.tgz", + "integrity": "sha512-lc3KaQtx4ePnILHVsPRRtovhvSU6Jcn10u/9rbZ2ZTiHeWkvSCUwgOvKXZ6IkRTLblde8bz/ediyJi/AaPg2Wg==", "requires": { "@lit-labs/react": "^1.1.1", - "deep-chat": "1.4.1" + "deep-chat": "1.4.2" } }, "deep-equal": { diff --git a/example-servers/ui/package.json b/example-servers/ui/package.json index 00e0daef3..a12756722 100644 --- a/example-servers/ui/package.json +++ b/example-servers/ui/package.json @@ -10,7 +10,7 @@ "@types/node": "^16.18.38", "@types/react": "^18.2.14", "@types/react-dom": "^18.2.6", - "deep-chat-react": "^1.4.1", + "deep-chat-react": "^1.4.2", "react": "^18.2.0", "react-dom": "^18.2.0", "react-scripts": "5.0.1", diff --git a/other-packages/react/package-lock.json b/other-packages/react/package-lock.json index 3a0316e3f..fabf0108b 100644 --- a/other-packages/react/package-lock.json +++ b/other-packages/react/package-lock.json @@ -1,16 +1,16 @@ { "name": "deep-chat-react", - "version": "1.4.1", + "version": "1.4.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "deep-chat-react", - "version": "1.4.1", + "version": "1.4.2", "license": "MIT", "dependencies": { "@lit-labs/react": "^1.1.1", - "deep-chat": "1.4.1" + "deep-chat": "1.4.2" }, "devDependencies": { "@types/react": "^18.0.28", @@ -76,9 +76,9 @@ "dev": true }, "node_modules/deep-chat": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/deep-chat/-/deep-chat-1.4.1.tgz", - "integrity": "sha512-GERbeorV1D1uijGF3Z+CiRITVgERSIXkFZJp7Kv17D1SI+492p2E5fNsS2i5KBucGWVoDG/TK9Bc8x7WD/09Qg==", + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/deep-chat/-/deep-chat-1.4.2.tgz", + "integrity": "sha512-NYsb0XmFSpfKZCUH8F+UW921ziLeQiAyT+F6K4en0Ob/pHRLCHCZsF/zNBx18UpUN/iaIKQ9wLEB4Rz3Il4qxg==", "dependencies": { "@microsoft/fetch-event-source": "^2.0.1", "remarkable": "^2.0.1", @@ -216,9 +216,9 @@ "dev": true }, "deep-chat": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/deep-chat/-/deep-chat-1.4.1.tgz", - "integrity": "sha512-GERbeorV1D1uijGF3Z+CiRITVgERSIXkFZJp7Kv17D1SI+492p2E5fNsS2i5KBucGWVoDG/TK9Bc8x7WD/09Qg==", + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/deep-chat/-/deep-chat-1.4.2.tgz", + "integrity": "sha512-NYsb0XmFSpfKZCUH8F+UW921ziLeQiAyT+F6K4en0Ob/pHRLCHCZsF/zNBx18UpUN/iaIKQ9wLEB4Rz3Il4qxg==", "requires": { "@microsoft/fetch-event-source": "^2.0.1", "remarkable": "^2.0.1", diff --git a/other-packages/react/package.json b/other-packages/react/package.json index efc0c1f9b..2ebb327c8 100644 --- a/other-packages/react/package.json +++ b/other-packages/react/package.json @@ -1,6 +1,6 @@ { "name": "deep-chat-react", - "version": "1.4.1", + "version": "1.4.2", "description": "Customizable chat component for AI APIs", "main": "./dist/deepChat.js", "module": "./dist/deepChat.js", @@ -32,7 +32,7 @@ "license": "MIT", "dependencies": { "@lit-labs/react": "^1.1.1", - "deep-chat": "1.4.1" + "deep-chat": "1.4.2" }, "devDependencies": { "@types/react": "^18.0.28", diff --git a/website/docs/docs/connect.mdx b/website/docs/docs/connect.mdx index e20fe2c8a..c83d10872 100644 --- a/website/docs/docs/connect.mdx +++ b/website/docs/docs/connect.mdx @@ -313,14 +313,21 @@ Object used to configure the outgoing messages request settings. It MUST have ei ### `Response` {#Response} -- Type: {`text?: string`, [`files?: MessageFile[]`](/docs/messages#MessageFile), `html?: string`, `error?: string`} +- Type: {[`MessageContent`](/docs/messages/#MessageContent), `error?: string`} -Object containing response information from the target service. It should have _one_ of these properties:
+Object containing response information from the target service. It has the same properties as [`MessageContent`](/docs/messages/#MessageContent) with an additional optional `error` property:
`text` is the content for a text message.
`files` is an array that encapsulates details on the response files.
`html` is a string that defines the markup for [message elements](/docs/messages/HTML).
`error` describes information about a server error. If the _displayServiceErrorMessages_ property in [`errorMessages`](/docs/messages#errorMessages) -is set to _true_, this message will be displayed in the chat inside the error bubble.
+is set to _true_, the same message will be displayed in the chat's error bubble.
+ +#### Examples: + +Simple - `{text: "Simple response"}`
+Mixed - `{files: [{name: 'file.txt'}], html: "
Custom Element
"}`
+Custom role - `{role: "bob", text: "Message from bob"}`
+Error - `{error: "Service Error"}`
diff --git a/website/docs/docs/installation.mdx b/website/docs/docs/installation.mdx index a384f6b3b..2082f9cea 100644 --- a/website/docs/docs/installation.mdx +++ b/website/docs/docs/installation.mdx @@ -19,5 +19,5 @@ npm install deep-chat-react Access the component via CDN: ``` -https://unpkg.com/deep-chat@1.4.1/dist/deepChat.bundle.js +https://unpkg.com/deep-chat@1.4.2/dist/deepChat.bundle.js ``` diff --git a/website/docs/docs/messages/messages.mdx b/website/docs/docs/messages/messages.mdx index a72fc8d4f..3bfcd7e77 100644 --- a/website/docs/docs/messages/messages.mdx +++ b/website/docs/docs/messages/messages.mdx @@ -121,10 +121,11 @@ class to make this message disappear after a new one is added. ### `avatars` {#avatars} -- Type: `true` | {[`default?: Avatar`](#Avatar), [`ai?: Avatar`](#Avatar), [`user?: Avatar`](#Avatar)} +- Type: `true` | {[`default?: Avatar`](#Avatar), [`ai?: Avatar`](#Avatar), [`user?: Avatar`](#Avatar), [`[custom]?: Avatar`](#Avatar)} Add avatars beside messages. You can enable this by setting the value to _true_ -or by defining an object with [`Avatar`](#Avatar) properties. The `default` property is applied to both roles. +or by defining an object with [`Avatar`](#Avatar) properties. The `default` property is applied to all roles. +`custom` roles (e.g. `"bob"`) use `ai` styling by default.
#### Example @@ -201,17 +202,23 @@ This object is used to configure avatars that are displayed beside messages.
@@ -224,7 +231,8 @@ This object is used to configure avatars that are displayed beside messages.
``` @@ -238,15 +246,18 @@ This object is used to configure avatars that are displayed beside messages.
+or by defining an object with [`Name`](#Name) properties. The `default` property is applied to all roles. +`custom` roles (e.g. `"bob"`) use `ai` styling by default.
#### Example @@ -273,11 +285,11 @@ or by defining an object with [`Name`](#Name) properties. The `default` property style={{borderRadius: '8px'}} initialMessages={[ {text: 'Hey, how are you?', role: 'user'}, - {text: 'I am doing great, how about you?', role: 'ai'}, - {text: 'What is the meaning of life?', role: 'user'}, + {text: 'I am doing great!', role: 'ai'}, + {text: 'Motivate me', role: 'user'}, { - text: 'This ultimately depends on the person, but it could be the pursuit of happiness or fulfillment.', - role: 'ai', + text: 'Talent is a pursued interest. Anything you’re willing to practice, you can do.', + role: 'Bob', }, ]} demo={true} @@ -302,11 +314,11 @@ or by defining an object with [`Name`](#Name) properties. The `default` property names="true" initialMessages='[ {"text": "Hey, how are you?", "role": "user"}, - {"text": "I am doing great, how about you?", "role": "ai"}, - {"text": "What is the meaning of life?", "role": "user"}, + {"text": "I am doing great!", "role": "ai"}, + {"text": "Motivate me", "role": "user"}, { - "text": "This ultimately depends on the person, but it could be the pursuit of happiness or fulfillment.", - "role": "ai" + "text": "Talent is a pursued interest. Anything you’re willing to practice, you can do.", + "role": "Bob" } ]' style="border-radius: 8px" @@ -339,15 +351,20 @@ This object is used to configure names that are displayed beside messages.
@@ -357,9 +374,10 @@ This object is used to configure names that are displayed beside messages.
``` @@ -371,16 +389,17 @@ This object is used to configure names that are displayed beside messages.
-The `text` string uses [Markdown](https://www.markdownguide.org/basic-syntax/) syntax to render the message accordingly. This is useful for displaying code snippets, paragraphs etc. See this [playground](https://jonschlinkert.github.io/remarkable/demo/) for reference.
+Object format used to encapsulate a message within the chat.
+`role` defines the message sender. If not set it is automatically regarded as _"ai"_.
+`text` is string content for a textual message. It uses [Markdown](https://www.markdownguide.org/basic-syntax/) syntax to render the message accordingly which is useful for displaying code snippets, +paragraphs and more. See this [playground](https://jonschlinkert.github.io/remarkable/demo/) for reference.
+`files` is an array that encapsulates details on the response files.
+`html` is a string that defines the markup for [message elements](/docs/messages/HTML).
#### Example @@ -572,9 +594,13 @@ The `text` string uses [Markdown](https://www.markdownguide.org/basic-syntax/) s ### `MessageRole` {#MessageRole} -- Type: `"ai"` | `"user"` +- Type: `"ai"` | `"user"` | `[custom]` -Entity that the message was sent from. +Message sender.
+`"user"` represents messages sent out from the chat and `"ai"` are messages received from a service.
+You can also use _custom_ roles which represent other entities such as agents (`"ai-1"`/`"ai-2"`) +or users in a group chat (`"bob"`/`"ross"`). You can style them using [`messageStyles`](/docs/messages/styles#messageStyles), +[`avatars`](/docs/messages/#avatars) and [`names`](/docs/messages/#names) properties. diff --git a/website/docs/docs/messages/styles.mdx b/website/docs/docs/messages/styles.mdx index 34299d6ec..840f221b6 100644 --- a/website/docs/docs/messages/styles.mdx +++ b/website/docs/docs/messages/styles.mdx @@ -49,13 +49,15 @@ Shared property types for the [`messageStyles`](#messageStyles) object: - Type: {
     [`shared?: MessageElementsStyles`](#MessageElementsStyles),
     [`user?: MessageElementsStyles`](#MessageElementsStyles),
-      [`ai?: MessageElementsStyles`](#MessageElementsStyles)
+      [`ai?: MessageElementsStyles`](#MessageElementsStyles),
+      [`[custom]?: MessageElementsStyles`](#MessageElementsStyles)
} Object defining the styling for various message roles.
`shared` is applied to all message roles.
`user` is applied to messages from the user.
-`ai` is applied to messages returned from the ai service.
+`ai` is applied to messages returned from the target service.
+`custom` roles (e.g. `"bob"`) use `ai` styling, but they can have additional styling.
shared: {bubble: {color: 'white'}}, ai: {bubble: {backgroundColor: '#3cbe3c'}}, user: {bubble: {backgroundColor: '#6767ff'}}, + bob: {bubble: {backgroundColor: '#ffa500'}}, }, }} initialMessages={[ @@ -73,6 +76,10 @@ Object defining the styling for various message roles.
text: 'This ultimately depends on the person, but it could be the pursuit of happiness or fulfillment.', role: 'ai', }, + { + text: 'We dont laugh because we feel good, we feel good because we laugh.', + role: 'bob', + }, ]} demo={true} >
@@ -87,7 +94,8 @@ Object defining the styling for various message roles.
"default": { "shared": {"bubble": {"color": "white"}}, "ai": {"bubble": {"backgroundColor": "#3cbe3c"}}, - "user": {"bubble": {"backgroundColor": "#6767ff"}} + "user": {"bubble": {"backgroundColor": "#6767ff"}}, + "bob": {"bubble": {"backgroundColor": "#ffa500"}} } }' > @@ -104,7 +112,8 @@ Object defining the styling for various message roles.
"default": { "shared": {"bubble": {"color": "white"}}, "ai": {"bubble": {"backgroundColor": "#3cbe3c"}}, - "user": {"bubble": {"backgroundColor": "#6767ff"}} + "user": {"bubble": {"backgroundColor": "#6767ff"}}, + "bob": {"bubble": {"backgroundColor": "#ffa500"}} } }' initialMessages='[ @@ -112,6 +121,10 @@ Object defining the styling for various message roles.
{ "text": "This ultimately depends on the person, but it could be the pursuit of happiness or fulfillment.", "role": "ai" + }, + { + "text": "We dont laugh because we feel good, we feel good because we laugh.", + "role": "bob" } ]' style="border-radius: 8px" diff --git a/website/package-lock.json b/website/package-lock.json index 197f1f0ac..c22bfe29b 100644 --- a/website/package-lock.json +++ b/website/package-lock.json @@ -16,7 +16,7 @@ "@mdx-js/react": "^1.6.22", "active-table-react": "latest", "clsx": "^1.2.1", - "deep-chat-react": "1.4.1", + "deep-chat-react": "1.4.2", "highlight.js": "^11.7.0", "microsoft-cognitiveservices-speech-sdk": "^1.30.1", "prism-react-renderer": "^1.3.5", @@ -5608,9 +5608,9 @@ } }, "node_modules/deep-chat": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/deep-chat/-/deep-chat-1.4.1.tgz", - "integrity": "sha512-GERbeorV1D1uijGF3Z+CiRITVgERSIXkFZJp7Kv17D1SI+492p2E5fNsS2i5KBucGWVoDG/TK9Bc8x7WD/09Qg==", + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/deep-chat/-/deep-chat-1.4.2.tgz", + "integrity": "sha512-NYsb0XmFSpfKZCUH8F+UW921ziLeQiAyT+F6K4en0Ob/pHRLCHCZsF/zNBx18UpUN/iaIKQ9wLEB4Rz3Il4qxg==", "dependencies": { "@microsoft/fetch-event-source": "^2.0.1", "remarkable": "^2.0.1", @@ -5618,12 +5618,12 @@ } }, "node_modules/deep-chat-react": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/deep-chat-react/-/deep-chat-react-1.4.1.tgz", - "integrity": "sha512-CPL2QxlXe5cd8P4XlKLqJOtmAWKm86MHw4vqL5l9FFeLC44XK7ru+heFMd6nnz7OuvoxJOodws0Nq2ajhRxvMg==", + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/deep-chat-react/-/deep-chat-react-1.4.2.tgz", + "integrity": "sha512-lc3KaQtx4ePnILHVsPRRtovhvSU6Jcn10u/9rbZ2ZTiHeWkvSCUwgOvKXZ6IkRTLblde8bz/ediyJi/AaPg2Wg==", "dependencies": { "@lit-labs/react": "^1.1.1", - "deep-chat": "1.4.1" + "deep-chat": "1.4.2" }, "peerDependencies": { "react": ">=16.8.0 || >=17.0.0 || >=18.0.0" @@ -17672,9 +17672,9 @@ } }, "deep-chat": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/deep-chat/-/deep-chat-1.4.1.tgz", - "integrity": "sha512-GERbeorV1D1uijGF3Z+CiRITVgERSIXkFZJp7Kv17D1SI+492p2E5fNsS2i5KBucGWVoDG/TK9Bc8x7WD/09Qg==", + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/deep-chat/-/deep-chat-1.4.2.tgz", + "integrity": "sha512-NYsb0XmFSpfKZCUH8F+UW921ziLeQiAyT+F6K4en0Ob/pHRLCHCZsF/zNBx18UpUN/iaIKQ9wLEB4Rz3Il4qxg==", "requires": { "@microsoft/fetch-event-source": "^2.0.1", "remarkable": "^2.0.1", @@ -17682,12 +17682,12 @@ } }, "deep-chat-react": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/deep-chat-react/-/deep-chat-react-1.4.1.tgz", - "integrity": "sha512-CPL2QxlXe5cd8P4XlKLqJOtmAWKm86MHw4vqL5l9FFeLC44XK7ru+heFMd6nnz7OuvoxJOodws0Nq2ajhRxvMg==", + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/deep-chat-react/-/deep-chat-react-1.4.2.tgz", + "integrity": "sha512-lc3KaQtx4ePnILHVsPRRtovhvSU6Jcn10u/9rbZ2ZTiHeWkvSCUwgOvKXZ6IkRTLblde8bz/ediyJi/AaPg2Wg==", "requires": { "@lit-labs/react": "^1.1.1", - "deep-chat": "1.4.1" + "deep-chat": "1.4.2" } }, "deep-eql": { diff --git a/website/package.json b/website/package.json index a17dbc40b..da9bada70 100644 --- a/website/package.json +++ b/website/package.json @@ -22,7 +22,7 @@ "@mdx-js/react": "^1.6.22", "active-table-react": "latest", "clsx": "^1.2.1", - "deep-chat-react": "1.4.1", + "deep-chat-react": "1.4.2", "highlight.js": "^11.7.0", "microsoft-cognitiveservices-speech-sdk": "^1.30.1", "prism-react-renderer": "^1.3.5", diff --git a/website/static/img/bob.png b/website/static/img/bob.png new file mode 100644 index 000000000..1a6aab8d0 Binary files /dev/null and b/website/static/img/bob.png differ