deep-chat-dev 9.0.163 → 9.0.164

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (158) hide show
  1. package/custom-elements.json +9864 -9837
  2. package/dist/deepChat.bundle.js +1 -1
  3. package/dist/deepChat.d.ts +24 -23
  4. package/dist/deepChat.js +1507 -1465
  5. package/dist/services/assemblyAI/assemblyAIAudioIO.d.ts +6 -5
  6. package/dist/services/assemblyAI/utils/assemblyAIUtils.d.ts +1 -0
  7. package/dist/services/azure/azureLanguageIO.d.ts +5 -4
  8. package/dist/services/azure/azureSpeechIO.d.ts +5 -4
  9. package/dist/services/azure/azureSpeechToTextIO.d.ts +6 -5
  10. package/dist/services/azure/azureSummarizationIO.d.ts +7 -6
  11. package/dist/services/azure/azureTextToSpeechIO.d.ts +7 -6
  12. package/dist/services/azure/azureTranslationIO.d.ts +6 -5
  13. package/dist/services/azure/utils/azureUtils.d.ts +2 -1
  14. package/dist/services/cohere/cohereChatIO.d.ts +6 -5
  15. package/dist/services/cohere/cohereIO.d.ts +3 -2
  16. package/dist/services/cohere/cohereSummarizationIO.d.ts +7 -6
  17. package/dist/services/cohere/cohereTextGenerationIO.d.ts +7 -6
  18. package/dist/services/cohere/utils/cohereUtils.d.ts +1 -0
  19. package/dist/services/huggingFace/huggingFaceAudioClassificationIO.d.ts +4 -3
  20. package/dist/services/huggingFace/huggingFaceAudioRecognitionIO.d.ts +4 -3
  21. package/dist/services/huggingFace/huggingFaceConversationIO.d.ts +6 -5
  22. package/dist/services/huggingFace/huggingFaceFileIO.d.ts +7 -6
  23. package/dist/services/huggingFace/huggingFaceFillMaskIO.d.ts +4 -3
  24. package/dist/services/huggingFace/huggingFaceIO.d.ts +7 -6
  25. package/dist/services/huggingFace/huggingFaceImageClassificationIO.d.ts +4 -3
  26. package/dist/services/huggingFace/huggingFaceQuestionAnswerIO.d.ts +6 -5
  27. package/dist/services/huggingFace/huggingFaceSummarizationIO.d.ts +4 -3
  28. package/dist/services/huggingFace/huggingFaceTextGenerationIO.d.ts +4 -3
  29. package/dist/services/huggingFace/huggingFaceTranslationIO.d.ts +4 -3
  30. package/dist/services/huggingFace/utils/huggingFaceUtils.d.ts +1 -0
  31. package/dist/services/mistral/mistralO.d.ts +6 -5
  32. package/dist/services/mistral/utils/mistralUtils.d.ts +1 -0
  33. package/dist/services/openAI/openAIAssistantIO.d.ts +7 -6
  34. package/dist/services/openAI/openAIAssistantIO.d.ts.map +1 -1
  35. package/dist/services/openAI/openAIChatIO.d.ts +8 -7
  36. package/dist/services/openAI/openAIImagesIO.d.ts +6 -5
  37. package/dist/services/openAI/openAISpeechToTextIO.d.ts +6 -5
  38. package/dist/services/openAI/openAITextToSpeechIO.d.ts +6 -5
  39. package/dist/services/openAI/utils/openAIAssistantUtils.d.ts +6 -5
  40. package/dist/services/openAI/utils/openAIAssistantUtils.d.ts.map +1 -1
  41. package/dist/services/openAI/utils/openAIUtils.d.ts +2 -1
  42. package/dist/services/serviceIO.d.ts +12 -11
  43. package/dist/services/serviceIOFactory.d.ts +2 -1
  44. package/dist/services/stabilityAI/stabilityAIIO.d.ts +6 -5
  45. package/dist/services/stabilityAI/stabilityAIImageToImageIO.d.ts +6 -5
  46. package/dist/services/stabilityAI/stabilityAIImageToImageMaskingIO.d.ts +6 -5
  47. package/dist/services/stabilityAI/stabilityAIImageToImageUpscaleIO.d.ts +6 -5
  48. package/dist/services/stabilityAI/stabilityAITextToImageIO.d.ts +6 -5
  49. package/dist/services/stabilityAI/utils/stabilityAIUtils.d.ts +1 -0
  50. package/dist/services/utils/baseServiceIO.d.ts +10 -9
  51. package/dist/services/utils/directServiceIO.d.ts +6 -5
  52. package/dist/services/utils/messageLimitUtils.d.ts +1 -0
  53. package/dist/services/utils/setFileTypes.d.ts +2 -1
  54. package/dist/types/avatars.d.ts +1 -0
  55. package/dist/types/azureResult.d.ts +1 -0
  56. package/dist/types/button.d.ts +1 -0
  57. package/dist/types/buttonInternal.d.ts +2 -1
  58. package/dist/types/buttonTypes.d.ts +1 -0
  59. package/dist/types/cohere.d.ts +1 -0
  60. package/dist/types/cohereResult.d.ts +1 -0
  61. package/dist/types/connect.d.ts +3 -2
  62. package/dist/types/demo.d.ts +3 -2
  63. package/dist/types/directConnection.d.ts +8 -7
  64. package/dist/types/dropupStyles.d.ts +2 -1
  65. package/dist/types/fileAttachments.d.ts +1 -0
  66. package/dist/types/fileServiceConfigs.d.ts +6 -5
  67. package/dist/types/genericInputButton.d.ts +1 -0
  68. package/dist/types/handler.d.ts +1 -0
  69. package/dist/types/headers.d.ts +1 -0
  70. package/dist/types/html.d.ts +1 -0
  71. package/dist/types/huggingFaceResult.d.ts +1 -0
  72. package/dist/types/interceptors.d.ts +2 -1
  73. package/dist/types/keyVerificationDetails.d.ts +1 -0
  74. package/dist/types/messages.d.ts +3 -2
  75. package/dist/types/messagesInternal.d.ts +3 -2
  76. package/dist/types/microphone.d.ts +2 -1
  77. package/dist/types/names.d.ts +1 -0
  78. package/dist/types/openAI.d.ts +1 -0
  79. package/dist/types/openAIInternal.d.ts +2 -1
  80. package/dist/types/openAIResult.d.ts +2 -0
  81. package/dist/types/openAIResult.d.ts.map +1 -1
  82. package/dist/types/response.d.ts +1 -0
  83. package/dist/types/responseInternal.d.ts +1 -0
  84. package/dist/types/submitButton.d.ts +1 -0
  85. package/dist/types/textInput.d.ts +1 -0
  86. package/dist/types/validationHandler.d.ts +1 -0
  87. package/dist/types/webModel/webLLM/webLLMChatModule.d.ts +1 -0
  88. package/dist/types/webModel/webLLM/webLLMClient.d.ts +1 -0
  89. package/dist/utils/HTTP/HTTPRequest.d.ts +2 -1
  90. package/dist/utils/HTTP/customHandler.d.ts +3 -2
  91. package/dist/utils/HTTP/requestUtils.d.ts +7 -6
  92. package/dist/utils/HTTP/stream.d.ts +5 -4
  93. package/dist/utils/HTTP/websocket.d.ts +4 -3
  94. package/dist/utils/buttons/inputButtons.d.ts +1 -0
  95. package/dist/utils/decorators/property.d.ts +1 -0
  96. package/dist/utils/decorators/renderControl.d.ts +1 -0
  97. package/dist/utils/decorators/typeConverters.d.ts +1 -0
  98. package/dist/utils/demo/demo.d.ts +2 -1
  99. package/dist/utils/element/statefulEvents.d.ts +1 -0
  100. package/dist/utils/element/styleUtils.d.ts +1 -0
  101. package/dist/utils/events/fireEvents.d.ts +2 -1
  102. package/dist/utils/files/fileTypeButtonIcons.d.ts +1 -0
  103. package/dist/utils/legacy/legacy.d.ts +4 -3
  104. package/dist/utils/webComponent/internalHTML.d.ts +2 -1
  105. package/dist/utils/webComponent/webComponentStyleUtils.d.ts +1 -0
  106. package/dist/views/chat/chatView.d.ts +2 -1
  107. package/dist/views/chat/input/buttonContainers/buttonContainers.d.ts +1 -0
  108. package/dist/views/chat/input/buttons/buttonCSS.d.ts +2 -1
  109. package/dist/views/chat/input/buttons/camera/cameraButton.d.ts +5 -4
  110. package/dist/views/chat/input/buttons/customButtonInnerElements.d.ts +1 -0
  111. package/dist/views/chat/input/buttons/inputButton.d.ts +2 -2
  112. package/dist/views/chat/input/buttons/microphone/microphoneButton.d.ts +4 -3
  113. package/dist/views/chat/input/buttons/microphone/recordAudio.d.ts +3 -2
  114. package/dist/views/chat/input/buttons/microphone/speechToText/silenceSubmit.d.ts +2 -1
  115. package/dist/views/chat/input/buttons/microphone/speechToText/speechToText.d.ts +6 -5
  116. package/dist/views/chat/input/buttons/styleAdjustments/inputButtonPositions.d.ts +6 -5
  117. package/dist/views/chat/input/buttons/styleAdjustments/inputButtonStyleAdjustments.d.ts +2 -1
  118. package/dist/views/chat/input/buttons/submit/submitButton.d.ts +10 -9
  119. package/dist/views/chat/input/buttons/submit/submitButton.d.ts.map +1 -1
  120. package/dist/views/chat/input/buttons/submit/submitButtonStateStyle.d.ts +2 -1
  121. package/dist/views/chat/input/buttons/uploadFile/uploadFileButton.d.ts +5 -4
  122. package/dist/views/chat/input/dropup/dropup.d.ts +6 -5
  123. package/dist/views/chat/input/dropup/dropupItem.d.ts +3 -2
  124. package/dist/views/chat/input/dropup/dropupMenu.d.ts +2 -1
  125. package/dist/views/chat/input/fileAttachments/dragAndDrop/dragAndDrop.d.ts +2 -1
  126. package/dist/views/chat/input/fileAttachments/fileAttachmentTypes/audioFileAttachmentType.d.ts +3 -2
  127. package/dist/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentTypeFactory.d.ts +4 -3
  128. package/dist/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.d.ts +3 -2
  129. package/dist/views/chat/input/fileAttachments/fileAttachments.d.ts +7 -6
  130. package/dist/views/chat/input/fileAttachments/modal/cameraModal.d.ts +4 -3
  131. package/dist/views/chat/input/fileAttachments/modal/modal.d.ts +2 -1
  132. package/dist/views/chat/input/input.d.ts +6 -5
  133. package/dist/views/chat/input/textInput/textInput.d.ts +3 -2
  134. package/dist/views/chat/input/textInput/textInputEvents.d.ts +2 -1
  135. package/dist/views/chat/input/validation/validationHandler.d.ts +5 -4
  136. package/dist/views/chat/introPanel/introPanel.d.ts +1 -0
  137. package/dist/views/chat/messages/avatar.d.ts +1 -0
  138. package/dist/views/chat/messages/fileMessageUtils.d.ts +4 -3
  139. package/dist/views/chat/messages/fileMessages.d.ts +2 -1
  140. package/dist/views/chat/messages/html/htmlDeepChatElements.d.ts +3 -2
  141. package/dist/views/chat/messages/html/htmlMessages.d.ts +3 -2
  142. package/dist/views/chat/messages/html/htmlUtils.d.ts +2 -1
  143. package/dist/views/chat/messages/loadingMessageDotsStyle.d.ts +1 -0
  144. package/dist/views/chat/messages/messageStyleUtils.d.ts +3 -2
  145. package/dist/views/chat/messages/messageUtils.d.ts +5 -4
  146. package/dist/views/chat/messages/messages.d.ts +7 -6
  147. package/dist/views/chat/messages/messagesBase.d.ts +10 -9
  148. package/dist/views/chat/messages/name.d.ts +1 -0
  149. package/dist/views/chat/messages/remarkable/remarkableConfig.d.ts +2 -2
  150. package/dist/views/chat/messages/setupMessages.d.ts +2 -1
  151. package/dist/views/chat/messages/stream/messageStream.d.ts +9 -1
  152. package/dist/views/chat/messages/stream/messageStream.d.ts.map +1 -1
  153. package/dist/views/chat/messages/textToSpeech/textToSpeech.d.ts +1 -0
  154. package/dist/views/insertKey/insertKeyView.d.ts +1 -0
  155. package/dist/views/validateKeyProperty/validateKeyPropertyView.d.ts +1 -0
  156. package/dist/webModel/webModel.d.ts +5 -4
  157. package/dist/webModel/webModelIntroMessage.d.ts +1 -0
  158. package/package.json +1 -1
@@ -1,8 +1,9 @@
1
- import { FileAttachmentsType } from '../../fileAttachments/fileAttachmentTypes/fileAttachmentsType';
2
- import { GenericInputButtonStyles } from '../../../../../types/genericInputButton';
3
- import { DefinedButtonStateStyles } from '../../../../../types/buttonInternal';
4
- import { ServiceIO } from '../../../../../services/serviceIO';
5
1
  import { InputButton } from '../inputButton';
2
+ import { ServiceIO } from '../../../../../services/serviceIO';
3
+ import { DefinedButtonStateStyles } from '../../../../../types/buttonInternal';
4
+ import { GenericInputButtonStyles } from '../../../../../types/genericInputButton';
5
+ import { FileAttachmentsType } from '../../fileAttachments/fileAttachmentTypes/fileAttachmentsType';
6
+
6
7
  type Styles = DefinedButtonStateStyles<GenericInputButtonStyles>;
7
8
  export declare class CameraButton extends InputButton<Styles> {
8
9
  constructor(containerElement: HTMLElement, fileAttachmentsType: FileAttachmentsType, fileService: ServiceIO['camera']);
@@ -1,4 +1,5 @@
1
1
  import { ButtonStateStyles } from '../../../../types/buttonInternal';
2
+
2
3
  export declare class CustomButtonInnerElements {
3
4
  private static createTextElement;
4
5
  private static createElement;
@@ -1,6 +1,6 @@
1
- import { ButtonPosition as ButtonPositionT } from '../../../../types/button';
2
1
  import { StatefulStyles } from '../../../../types/styles';
3
- import { ButtonStyles } from '../../../../types/button';
2
+ import { ButtonPosition as ButtonPositionT, ButtonStyles } from '../../../../types/button';
3
+
4
4
  interface MouseState {
5
5
  state: keyof StatefulStyles;
6
6
  }
@@ -1,7 +1,8 @@
1
- import { DefinedButtonStateStyles } from '../../../../../types/buttonInternal';
2
- import { MicrophoneStyles } from '../../../../../types/microphone';
3
- import { ButtonStyles } from '../../../../../types/button';
4
1
  import { InputButton } from '../inputButton';
2
+ import { ButtonStyles } from '../../../../../types/button';
3
+ import { MicrophoneStyles } from '../../../../../types/microphone';
4
+ import { DefinedButtonStateStyles } from '../../../../../types/buttonInternal';
5
+
5
6
  type AllMicrophoneStyles = MicrophoneStyles & {
6
7
  commandMode?: ButtonStyles;
7
8
  };
@@ -1,6 +1,7 @@
1
- import { AudioFileAttachmentType } from '../../fileAttachments/fileAttachmentTypes/audioFileAttachmentType';
2
- import { MicrophoneFilesServiceConfig } from '../../../../../types/fileServiceConfigs';
3
1
  import { MicrophoneButton } from './microphoneButton';
2
+ import { MicrophoneFilesServiceConfig } from '../../../../../types/fileServiceConfigs';
3
+ import { AudioFileAttachmentType } from '../../fileAttachments/fileAttachmentTypes/audioFileAttachmentType';
4
+
4
5
  export declare class RecordAudio extends MicrophoneButton {
5
6
  private _mediaRecorder?;
6
7
  private _mediaStream?;
@@ -1,5 +1,6 @@
1
- import { SubmitAfterSilence } from '../../../../../../types/microphone';
2
1
  import { TextInputEl } from '../../../textInput/textInput';
2
+ import { SubmitAfterSilence } from '../../../../../../types/microphone';
3
+
3
4
  export declare class SilenceSubmit {
4
5
  private _silenceTimeout?;
5
6
  private readonly silenceMS;
@@ -1,9 +1,10 @@
1
- import { SpeechToTextConfig } from '../../../../../../types/microphone';
2
- import { OnPreResult } from 'speech-to-element/dist/types/options';
3
- import { TextInputEl } from '../../../textInput/textInput';
4
- import { Messages } from '../../../../messages/messages';
5
- import { MicrophoneButton } from '../microphoneButton';
6
1
  import { DeepChat } from '../../../../../../deepChat';
2
+ import { MicrophoneButton } from '../microphoneButton';
3
+ import { Messages } from '../../../../messages/messages';
4
+ import { TextInputEl } from '../../../textInput/textInput';
5
+ import { OnPreResult } from 'speech-to-element/dist/types/options';
6
+ import { SpeechToTextConfig } from '../../../../../../types/microphone';
7
+
7
8
  export type ProcessedConfig = SpeechToTextConfig & {
8
9
  onPreResult?: OnPreResult;
9
10
  };
@@ -1,9 +1,10 @@
1
- import { FileAttachmentsType } from '../../fileAttachments/fileAttachmentTypes/fileAttachmentsType';
2
- import { ButtonContainersT } from '../../buttonContainers/buttonContainers';
3
- import { DropupStyles } from '../../../../../types/dropupStyles';
4
- import { BUTTON_TYPES } from '../../../../../types/buttonTypes';
5
- import { ButtonPosition } from '../../../../../types/button';
6
1
  import { InputButton } from '../inputButton';
2
+ import { ButtonPosition } from '../../../../../types/button';
3
+ import { BUTTON_TYPES } from '../../../../../types/buttonTypes';
4
+ import { DropupStyles } from '../../../../../types/dropupStyles';
5
+ import { ButtonContainersT } from '../../buttonContainers/buttonContainers';
6
+ import { FileAttachmentsType } from '../../fileAttachments/fileAttachmentTypes/fileAttachmentsType';
7
+
7
8
  export type Positions = {
8
9
  [key in ButtonPosition]: ButtonProps[];
9
10
  };
@@ -1,5 +1,6 @@
1
- import { ButtonContainersT } from '../../buttonContainers/buttonContainers';
2
1
  import { Positions } from './inputButtonPositions';
2
+ import { ButtonContainersT } from '../../buttonContainers/buttonContainers';
3
+
3
4
  export declare class InputButtonStyleAdjustments {
4
5
  private static readonly INPUT_OUTSIDE_LEFT_ADJUSTMENT_CLASS;
5
6
  private static readonly INPUT_OUTSIDE_RIGHT_ADJUSTMENT_CLASS;
@@ -1,13 +1,14 @@
1
- import { FileAttachments } from '../../fileAttachments/fileAttachments';
2
- import { SubmitButtonStyles } from '../../../../../types/submitButton';
3
- import { UserContentI } from '../../../../../types/messagesInternal';
4
- import { ServiceIO } from '../../../../../services/serviceIO';
5
- import { UserContent } from '../../../../../types/messages';
6
- import { Messages } from '../../../messages/messages';
7
- import { DeepChat } from '../../../../../deepChat';
8
- import { InputButton } from '../inputButton';
9
- import { Buttons } from '../../input';
10
1
  import { DefinedButtonStateStyles } from '../../../../../types/buttonInternal';
2
+ import { Buttons } from '../../input';
3
+ import { InputButton } from '../inputButton';
4
+ import { DeepChat } from '../../../../../deepChat';
5
+ import { Messages } from '../../../messages/messages';
6
+ import { UserContent } from '../../../../../types/messages';
7
+ import { ServiceIO } from '../../../../../services/serviceIO';
8
+ import { UserContentI } from '../../../../../types/messagesInternal';
9
+ import { SubmitButtonStyles } from '../../../../../types/submitButton';
10
+ import { FileAttachments } from '../../fileAttachments/fileAttachments';
11
+
11
12
  type Styles = Omit<DefinedButtonStateStyles<SubmitButtonStyles>, 'alwaysEnabled'>;
12
13
  export declare class SubmitButton extends InputButton<Styles> {
13
14
  private static readonly SUBMIT_CLASS;
@@ -1 +1 @@
1
- {"version":3,"file":"submitButton.d.ts","sourceRoot":"","sources":["../../../../../../src/views/chat/input/buttons/submit/submitButton.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,eAAe,EAAC,MAAM,uCAAuC,CAAC;AACtE,OAAO,EAAC,kBAAkB,EAAC,MAAM,mCAAmC,CAAC;AAIrE,OAAO,EAAC,YAAY,EAAC,MAAM,uCAAuC,CAAC;AAGnE,OAAO,EAAC,SAAS,EAAC,MAAM,mCAAmC,CAAC;AAE5D,OAAO,EAAC,WAAW,EAAC,MAAM,+BAA+B,CAAC;AAK1D,OAAO,EAAC,QAAQ,EAAC,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAC,QAAQ,EAAC,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAC,OAAO,EAAC,MAAM,aAAa,CAAC;AACpC,OAAO,EAEL,wBAAwB,EAEzB,MAAM,qCAAqC,CAAC;AAE7C,KAAK,MAAM,GAAG,IAAI,CAAC,wBAAwB,CAAC,kBAAkB,CAAC,EAAE,eAAe,CAAC,CAAC;AAElF,qBAAa,YAAa,SAAQ,WAAW,CAAC,MAAM,CAAC;IACnD,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAmB;IACvD,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAoB;IACzD,OAAO,CAAC,MAAM,C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ton } from './submitButton';
2
+ import { SubmitButtonStyles } from '../../../../../types/submitButton';
3
+
3
4
  export declare class SubmitButtonStateStyle {
4
5
  static resetSubmit(submitButton: SubmitButton, wasLoading: boolean): void;
5
6
  private static overwriteDefaultStyleWithSubmit;
@@ -1,8 +1,9 @@
1
- import { FileAttachmentsType } from '../../fileAttachments/fileAttachmentTypes/fileAttachmentsType';
2
- import { GenericInputButtonStyles } from '../../../../../types/genericInputButton';
3
- import { DefinedButtonStateStyles } from '../../../../../types/buttonInternal';
4
- import { FileServiceIO } from '../../../../../services/serviceIO';
5
1
  import { InputButton } from '../inputButton';
2
+ import { FileServiceIO } from '../../../../../services/serviceIO';
3
+ import { DefinedButtonStateStyles } from '../../../../../types/buttonInternal';
4
+ import { GenericInputButtonStyles } from '../../../../../types/genericInputButton';
5
+ import { FileAttachmentsType } from '../../fileAttachments/fileAttachmentTypes/fileAttachmentsType';
6
+
6
7
  type Styles = DefinedButtonStateStyles<GenericInputButtonStyles>;
7
8
  export declare class UploadFileButton extends InputButton<Styles> {
8
9
  private readonly _inputElement;
@@ -1,8 +1,9 @@
1
- import { GenericInputButtonStyles } from '../../../../types/genericInputButton';
2
- import { Positions } from '../buttons/styleAdjustments/inputButtonPositions';
3
- import { DefinedButtonStateStyles } from '../../../../types/buttonInternal';
4
- import { DropupStyles } from '../../../../types/dropupStyles';
5
1
  import { InputButton } from '../buttons/inputButton';
2
+ import { DropupStyles } from '../../../../types/dropupStyles';
3
+ import { DefinedButtonStateStyles } from '../../../../types/buttonInternal';
4
+ import { Positions } from '../buttons/styleAdjustments/inputButtonPositions';
5
+ import { GenericInputButtonStyles } from '../../../../types/genericInputButton';
6
+
6
7
  type Styles = DefinedButtonStateStyles<GenericInputButtonStyles>;
7
8
  export declare class Dropup extends InputButton<Styles> {
8
9
  private readonly _menu;
@@ -16,7 +17,7 @@ export declare class Dropup extends InputButton<Styles> {
16
17
  private static createButtonContainer;
17
18
  addItem(buttonProps: InputButton): void;
18
19
  private addContainerEvents;
19
- static getPosition(positions: Positions, dropupStyles?: DropupStyles): import("../../../../types/button").ButtonPosition;
20
+ static getPosition(positions: Positions, dropupStyles?: DropupStyles): import('../../../../types/button').ButtonPosition;
20
21
  }
21
22
  export {};
22
23
  //# sourceMappingURL=dropup.d.ts.map
@@ -1,6 +1,7 @@
1
- import { DropupMenuStyles } from '../../../../types/dropupStyles';
2
- import { InputButton } from '../buttons/inputButton';
3
1
  import { DropupMenu } from './dropupMenu';
2
+ import { InputButton } from '../buttons/inputButton';
3
+ import { DropupMenuStyles } from '../../../../types/dropupStyles';
4
+
4
5
  export declare class DropupItem {
5
6
  private static addItemEvents;
6
7
  private static createItemText;
@@ -1,5 +1,6 @@
1
- import { DropupMenuStyles } from '../../../../types/dropupStyles';
2
1
  import { InputButton } from '../buttons/inputButton';
2
+ import { DropupMenuStyles } from '../../../../types/dropupStyles';
3
+
3
4
  export declare class DropupMenu {
4
5
  readonly elementRef: HTMLElement;
5
6
  private _isOpen;
@@ -1,5 +1,6 @@
1
- import { CustomStyle } from '../../../../../types/styles';
2
1
  import { FileAttachments } from '../fileAttachments';
2
+ import { CustomStyle } from '../../../../../types/styles';
3
+
3
4
  export declare class DragAndDrop {
4
5
  static create(containerElement: HTMLElement, fileAttachments: FileAttachments, dnd?: boolean | CustomStyle): void;
5
6
  private static createElement;
@@ -1,6 +1,7 @@
1
- import { FileAttachmentsType } from './fileAttachmentsType';
2
- import { FileAttachments } from '../../../../../types/fileAttachments';
3
1
  import { DeepChat } from '../../../../../deepChat';
2
+ import { FileAttachments } from '../../../../../types/fileAttachments';
3
+ import { FileAttachmentsType } from './fileAttachmentsType';
4
+
4
5
  export declare class AudioFileAttachmentType extends FileAttachmentsType {
5
6
  stopPlaceholderCallback?: () => Promise<void>;
6
7
  private _activePlaceholderTimer?;
@@ -1,7 +1,8 @@
1
- import { FileAttachments } from '../../../../../types/fileAttachments';
2
- import { ServiceFileTypes } from '../../../../../services/serviceIO';
3
- import { FileAttachmentsType } from './fileAttachmentsType';
4
1
  import { DeepChat } from '../../../../../deepChat';
2
+ import { FileAttachmentsType } from './fileAttachmentsType';
3
+ import { ServiceFileTypes } from '../../../../../services/serviceIO';
4
+ import { FileAttachments } from '../../../../../types/fileAttachments';
5
+
5
6
  export declare class FileAttachmentTypeFactory {
6
7
  static create(deepChat: DeepChat, files: FileAttachments, toggleContainer: (display: boolean) => void, container: HTMLElement, type: keyof ServiceFileTypes): FileAttachmentsType;
7
8
  }
@@ -1,6 +1,7 @@
1
- import { FileAttachments } from '../../../../../types/fileAttachments';
2
- import { MessageFileType } from '../../../../../types/messageFile';
3
1
  import { DeepChat } from '../../../../../deepChat';
2
+ import { MessageFileType } from '../../../../../types/messageFile';
3
+ import { FileAttachments } from '../../../../../types/fileAttachments';
4
+
4
5
  export interface AttachmentObject {
5
6
  file: File;
6
7
  fileType: MessageFileType;
@@ -1,9 +1,10 @@
1
- import { FileAttachments as FileAttachmentsT } from '../../../../types/fileAttachments';
2
- import { FileAttachmentsType } from './fileAttachmentTypes/fileAttachmentsType';
3
- import { ServiceFileTypes } from '../../../../services/serviceIO';
4
- import { CustomStyle } from '../../../../types/styles';
5
- import { DeepChat } from '../../../../deepChat';
6
1
  import { Demo } from '../../../../types/demo';
2
+ import { DeepChat } from '../../../../deepChat';
3
+ import { CustomStyle } from '../../../../types/styles';
4
+ import { ServiceFileTypes } from '../../../../services/serviceIO';
5
+ import { FileAttachmentsType } from './fileAttachmentTypes/fileAttachmentsType';
6
+ import { FileAttachments as FileAttachmentsT } from '../../../../types/fileAttachments';
7
+
7
8
  export declare class FileAttachments {
8
9
  private readonly _fileAttachmentsTypes;
9
10
  readonly elementRef: HTMLElement;
@@ -13,7 +14,7 @@ export declare class FileAttachments {
13
14
  private toggleContainerDisplay;
14
15
  getAllFileData(): {
15
16
  file: File;
16
- type: import("../../../../types/messageFile").MessageFileType;
17
+ type: import('../../../../types/messageFile').MessageFileType;
17
18
  }[] | undefined;
18
19
  completePlaceholders(): Promise<void>;
19
20
  static addFilesToType(files: File[], fileAttachmentTypes: FileAttachmentsType[]): void;
@@ -1,7 +1,8 @@
1
- import { FileAttachmentsType } from '../fileAttachmentTypes/fileAttachmentsType';
2
- import { CameraFiles } from '../../../../../types/camera';
3
- import { CustomStyle } from '../../../../../types/styles';
4
1
  import { Modal } from './modal';
2
+ import { CustomStyle } from '../../../../../types/styles';
3
+ import { CameraFiles } from '../../../../../types/camera';
4
+ import { FileAttachmentsType } from '../fileAttachmentTypes/fileAttachmentsType';
5
+
5
6
  export declare class CameraModal extends Modal {
6
7
  private _dataURL?;
7
8
  private _stopped;
@@ -1,5 +1,6 @@
1
- import { FileServiceIO } from '../../../../../services/serviceIO';
2
1
  import { CustomStyle } from '../../../../../types/styles';
2
+ import { FileServiceIO } from '../../../../../services/serviceIO';
3
+
3
4
  export declare class Modal {
4
5
  static readonly MODAL_CLOSE_TIMEOUT_MS = 190;
5
6
  readonly _contentRef: HTMLElement;
@@ -1,9 +1,10 @@
1
- import { FileAttachmentsType } from './fileAttachments/fileAttachmentTypes/fileAttachmentsType';
2
- import { ServiceIO } from '../../../services/serviceIO';
3
- import { BUTTON_TYPES } from '../../../types/buttonTypes';
4
- import { InputButton } from './buttons/inputButton';
5
- import { Messages } from '../messages/messages';
6
1
  import { DeepChat } from '../../../deepChat';
2
+ import { Messages } from '../messages/messages';
3
+ import { InputButton } from './buttons/inputButton';
4
+ import { BUTTON_TYPES } from '../../../types/buttonTypes';
5
+ import { ServiceIO } from '../../../services/serviceIO';
6
+ import { FileAttachmentsType } from './fileAttachments/fileAttachmentTypes/fileAttachmentsType';
7
+
7
8
  export type Buttons = {
8
9
  [key in BUTTON_TYPES]?: {
9
10
  button: InputButton;
@@ -1,6 +1,7 @@
1
- import { FileAttachments } from '../fileAttachments/fileAttachments';
2
- import { ServiceIO } from '../../../../services/serviceIO';
3
1
  import { DeepChat } from '../../../../deepChat';
2
+ import { ServiceIO } from '../../../../services/serviceIO';
3
+ import { FileAttachments } from '../fileAttachments/fileAttachments';
4
+
4
5
  export declare class TextInputEl {
5
6
  static TEXT_INPUT_ID: string;
6
7
  readonly elementRef: HTMLElement;
@@ -1,5 +1,6 @@
1
- import { ValidationHandler } from '../../../../types/validationHandler';
2
1
  import { FileAttachments } from '../fileAttachments/fileAttachments';
2
+ import { ValidationHandler } from '../../../../types/validationHandler';
3
+
3
4
  export declare class TextInputEvents {
4
5
  private static readonly PERMITTED_KEYS;
5
6
  static add(inputElement: HTMLElement, fileAts: FileAttachments, characterLimit?: number, validationHandler?: ValidationHandler): void;
@@ -1,8 +1,9 @@
1
- import { FileAttachments } from '../fileAttachments/fileAttachments';
2
- import { SubmitButton } from '../buttons/submit/submitButton';
3
- import { ServiceIO } from '../../../../services/serviceIO';
4
- import { TextInputEl } from '../textInput/textInput';
5
1
  import { DeepChat } from '../../../../deepChat';
2
+ import { TextInputEl } from '../textInput/textInput';
3
+ import { ServiceIO } from '../../../../services/serviceIO';
4
+ import { SubmitButton } from '../buttons/submit/submitButton';
5
+ import { FileAttachments } from '../fileAttachments/fileAttachments';
6
+
6
7
  export declare class ValidationHandler {
7
8
  private static validate;
8
9
  private static useValidationFunc;
@@ -1,4 +1,5 @@
1
1
  import { CustomStyle } from '../../../types/styles';
2
+
2
3
  export declare class IntroPanel {
3
4
  readonly _elementRef?: HTMLElement;
4
5
  private _isDisplayed;
@@ -1,4 +1,5 @@
1
1
  import { Avatars } from '../../../types/avatars';
2
+
2
3
  export declare class Avatar {
3
4
  private static readonly CONTAINER_CLASS;
4
5
  static hide(innerContainer: HTMLElement): void;
@@ -1,7 +1,8 @@
1
- import { MessageFile, MessageFileType } from '../../../types/messageFile';
2
- import { MessageContent, MessageStyles } from '../../../types/messages';
3
- import { MessagesBase } from './messagesBase';
4
1
  import { MessageElements } from './messages';
2
+ import { MessagesBase } from './messagesBase';
3
+ import { MessageContent, MessageStyles } from '../../../types/messages';
4
+ import { MessageFile, MessageFileType } from '../../../types/messageFile';
5
+
5
6
  export declare class FileMessageUtils {
6
7
  static readonly DEFAULT_FILE_NAME = "file";
7
8
  static addMessage(messages: MessagesBase, elements: MessageElements, styles: keyof MessageStyles, role: string): void;
@@ -1,5 +1,6 @@
1
- import { MessageFiles } from '../../../types/messageFile';
2
1
  import { Messages } from './messages';
2
+ import { MessageFiles } from '../../../types/messageFile';
3
+
3
4
  export declare class FileMessages {
4
5
  private static createImage;
5
6
  private static addNewImageMessage;
@@ -1,6 +1,7 @@
1
- import { HTMLClassUtilities } from '../../../../types/html';
2
- import { MessagesBase } from '../messagesBase';
3
1
  import { MessageElements } from '../messages';
2
+ import { MessagesBase } from '../messagesBase';
3
+ import { HTMLClassUtilities } from '../../../../types/html';
4
+
4
5
  export declare class HTMLDeepChatElements {
5
6
  private static applySuggestionEvent;
6
7
  static isElementTemporary(messageElements?: MessageElements): boolean;
@@ -1,6 +1,7 @@
1
- import { Overwrite } from '../../../../types/messagesInternal';
2
- import { MessagesBase } from '../messagesBase';
3
1
  import { MessageElements } from '../messages';
2
+ import { MessagesBase } from '../messagesBase';
3
+ import { Overwrite } from '../../../../types/messagesInternal';
4
+
4
5
  export declare class HTMLMessages {
5
6
  private static addElement;
6
7
  private static createElements;
@@ -1,5 +1,6 @@
1
- import { StatefulStyles } from '../../../../types/styles';
2
1
  import { MessagesBase } from '../messagesBase';
2
+ import { StatefulStyles } from '../../../../types/styles';
3
+
3
4
  export declare class HTMLUtils {
4
5
  static applyStylesToElement(element: HTMLElement, styles: StatefulStyles): void;
5
6
  private static applyEventsToElement;
@@ -1,4 +1,5 @@
1
1
  import { MessageStyles } from '../../../types/messages';
2
+
2
3
  export declare class LoadingMessageDotsStyle {
3
4
  private static colorToHex;
4
5
  static set(bubbleElement: HTMLElement, messageStyles?: MessageStyles): void;
@@ -1,6 +1,7 @@
1
- import { MessageElementsStyles, MessageRoleStyles, MessageStyles } from '../../../types/messages';
2
- import { CustomStyle } from '../../../types/styles';
3
1
  import { MessageElements } from './messages';
2
+ import { CustomStyle } from '../../../types/styles';
3
+ import { MessageElementsStyles, MessageRoleStyles, MessageStyles } from '../../../types/messages';
4
+
4
5
  export declare class MessageStyleUtils {
5
6
  static applyCustomStylesToElements(elements: MessageElements, isMedia: boolean, styles?: MessageElementsStyles): void;
6
7
  private static applySideStyles;
@@ -1,8 +1,9 @@
1
- import { MessageContentI } from '../../../types/messagesInternal';
2
- import { MessageContent } from '../../../types/messages';
3
- import { Avatars } from '../../../types/avatars';
4
- import { MessageElements } from './messages';
5
1
  import { Names } from '../../../types/names';
2
+ import { MessageElements } from './messages';
3
+ import { Avatars } from '../../../types/avatars';
4
+ import { MessageContent } from '../../../types/messages';
5
+ import { MessageContentI } from '../../../types/messagesInternal';
6
+
6
7
  export declare class MessageUtils {
7
8
  static readonly AI_ROLE = "ai";
8
9
  static readonly USER_ROLE = "user";
@@ -1,10 +1,11 @@
1
- import { MessageFile, MessageFileType } from '../../../types/messageFile';
2
- import { ServiceIO } from '../../../services/serviceIO';
3
- import { ErrorMessageOverrides } from '../../../types/error';
4
- import { ResponseI } from '../../../types/responseInternal';
5
- import { DemoResponse } from '../../../types/demo';
6
- import { MessagesBase } from './messagesBase';
7
1
  import { DeepChat } from '../../../deepChat';
2
+ import { MessagesBase } from './messagesBase';
3
+ import { DemoResponse } from '../../../types/demo';
4
+ import { ResponseI } from '../../../types/responseInternal';
5
+ import { ErrorMessageOverrides } from '../../../types/error';
6
+ import { ServiceIO } from '../../../services/serviceIO';
7
+ import { MessageFile, MessageFileType } from '../../../types/messageFile';
8
+
8
9
  export interface MessageElements {
9
10
  outerContainer: HTMLElement;
10
11
  innerContainer: HTMLElement;
@@ -1,13 +1,14 @@
1
- import { MessageElementsStyles, MessageRoleStyles, MessageStyles, UserContent } from '../../../types/messages';
2
- import { MessageContentI, Overwrite } from '../../../types/messagesInternal';
3
- import { ProcessedTextToSpeechConfig } from './textToSpeech/textToSpeech';
4
- import { HTMLClassUtilities } from '../../../types/html';
5
- import { IntroPanel } from '../introPanel/introPanel';
6
- import { Response } from '../../../types/response';
7
- import { Avatars } from '../../../types/avatars';
8
- import { DeepChat } from '../../../deepChat';
9
- import { Names } from '../../../types/names';
10
1
  import { MessageElements } from './messages';
2
+ import { Names } from '../../../types/names';
3
+ import { DeepChat } from '../../../deepChat';
4
+ import { Avatars } from '../../../types/avatars';
5
+ import { Response } from '../../../types/response';
6
+ import { IntroPanel } from '../introPanel/introPanel';
7
+ import { HTMLClassUtilities } from '../../../types/html';
8
+ import { ProcessedTextToSpeechConfig } from './textToSpeech/textToSpeech';
9
+ import { MessageContentI, Overwrite } from '../../../types/messagesInternal';
10
+ import { MessageElementsStyles, MessageRoleStyles, MessageStyles, UserContent } from '../../../types/messages';
11
+
11
12
  export declare class MessagesBase {
12
13
  messageElementRefs: MessageElements[];
13
14
  textToSpeech?: ProcessedTextToSpeechConfig;
@@ -1,4 +1,5 @@
1
1
  import { Names } from '../../../types/names';
2
+
2
3
  export declare class Name {
3
4
  private static readonly NAME_CLASS;
4
5
  static hide(innerContainer: HTMLElement): void;
@@ -1,6 +1,6 @@
1
- /// <reference path="../../../../src/views/chat/messages/remarkable/remarkable.d.ts" />
1
+ import { default as hljs } from 'highlight.js';
2
2
  import { Remarkable } from 'remarkable';
3
- import hljs from 'highlight.js';
3
+
4
4
  declare global {
5
5
  interface Window {
6
6
  hljs: typeof hljs;
@@ -1,5 +1,6 @@
1
- import { ServiceIO } from '../../../services/serviceIO';
2
1
  import { DeepChat } from '../../../deepChat';
2
+ import { ServiceIO } from '../../../services/serviceIO';
3
+
3
4
  export declare class SetupMessages {
4
5
  static getText(deepChat: DeepChat, serviceIO: ServiceIO): string | null;
5
6
  }
@@ -1,5 +1,8 @@
1
- import { Response } from '../../../../types/response';
2
1
  import { MessagesBase } from '../messagesBase';
2
+ import { Response } from '../../../../types/response';
3
+ import { Messages } from '../messages';
4
+ import { MessageFile } from '../../../../types/messageFile';
5
+
3
6
  export declare class MessageStream {
4
7
  static readonly MESSAGE_CLASS = "streamed-message";
5
8
  private _fileAdded;
@@ -10,6 +13,7 @@ export declare class MessageStream {
10
13
  private _activeMessageRole?;
11
14
  private _message?;
12
15
  private readonly _messages;
16
+ private _endStreamAfterOperation?;
13
17
  private static readonly HTML_CONTENT_PLACEHOLDER;
14
18
  constructor(messages: MessagesBase);
15
19
  upsertStreamedMessage(response?: Response): void;
@@ -20,5 +24,9 @@ export declare class MessageStream {
20
24
  finaliseStreamedMessage(): void;
21
25
  markFileAdded(): void;
22
26
  newMessage(): void;
27
+ endStreamAfterFileDownloaded(messages: Messages, downloadCb: () => Promise<{
28
+ files?: MessageFile[];
29
+ text?: string;
30
+ }>): Promise<void>;
23
31
  }
24
32
  //# sourceMappingURL=messageStream.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"messageStream.d.ts","sourceRoot":"","sources":["../../../../../src/views/chat/messages/stream/messageStream.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,QAAQ,EAAC,MAAM,4BAA4B,CAAC;AAGpD,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAI7C,qBAAa,aAAa;IACxB,MAAM,CAAC,QAAQ,CAAC,aAAa,sBAAsB;IACnD,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,gBAAgB,CAAM;IAC9B,OAAO,CAAC,WAAW,CAA4B;IAC/C,OAAO,CAAC,SAAS,CAAC,CAAkB;IACpC,OAAO,CAAC,eAAe,CAAS;IAChC,OAAO,CAAC,kBAAkB,CAAC,CAAS;IACpC,OAAO,CAAC,QAAQ,CAAC,CAAkB;IACnC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAe;IACzC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,wBAAwB,CAAqB;gBAEzD,QAAQ,EAAE,YAAY;IAI3B,qBAAqB,CAAC,QAAQ,CAAC,EAAE,QAAQ;IAkBhD,OAAO,CAAC,eAAe;IAgBvB,OAAO,CAAC,iBAAiB;IAMzB,OAAO,CAAC,UAAU;IAMlB,OAAO,CAAC,UAAU;IAYX,uBAAuB;IAsBvB,aAAa;IAIb,UAAU;CAQlB"}
1
+ {"version":3,"file":"messageStream.d.ts","sourceRoot":"","sources":["../../../../../src/views/chat/messages/stream/messageStream.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,WAAW,EAAC,MAAM,+BAA+B,CAAC;AAC1D,OAAO,EAAkB,QAAQ,EAAC,MAAM,aAAa,CAAC;AACtD,OAAO,EAAC,QAAQ,EAAC,MAAM,4BAA4B,CAAC;AAGpD,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAG7C,qBAAa,aAAa;IACxB,MAAM,CAAC,QAAQ,CAAC,aAAa,sBAAsB;IACnD,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,gBAAgB,CAAM;IAC9B,OAAO,CAAC,WAAW,CAA4B;IAC/C,OAAO,CAAC,SAAS,CAAC,CAAkB;IACpC,OAAO,CAAC,eAAe,CAAS;IAChC,OAAO,CAAC,kBAAkB,CAAC,CAAS;IACpC,OAAO,CAAC,QAAQ,CAAC,CAAkB;IACnC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAe;IACzC,OAAO,CAAC,wBAAwB,CAAC,CAAU;IAC3C,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,wBAAwB,CAAqB;gBAEzD,QAAQ,EAAE,YAAY;IAI3B,qBAAqB,CAAC,QAAQ,CAAC,EAAE,QAAQ;IAkBhD,OAAO,CAAC,eAAe;IAgBvB,OAAO,CAAC,iBAAiB;IAMzB,OAAO,CAAC,UAAU;IAMlB,OAAO,CAAC,UAAU;IAYX,uBAAuB;IAuBvB,aAAa;IAIb,UAAU;IAUJ,4BAA4B,CACrC,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;QAAC,KAAK,CAAC,EAAE,WAAW,EAAE,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAC,CAAC;CAQ1F"}
@@ -1,4 +1,5 @@
1
1
  import { TextToSpeechConfig } from '../../../../types/textToSpeech';
2
+
2
3
  export type ProcessedTextToSpeechConfig = {
3
4
  lang?: string;
4
5
  pitch?: number;
@@ -1,4 +1,5 @@
1
1
  import { ServiceIO } from '../../services/serviceIO';
2
+
2
3
  export declare class InsertKeyView {
3
4
  private static createCautionText;
4
5
  private static createHelpLink;
@@ -1,4 +1,5 @@
1
1
  import { ServiceIO } from '../../services/serviceIO';
2
+
2
3
  export declare class ValidateKeyPropertyView {
3
4
  private static onLoad;
4
5
  private static createElements;
@@ -1,9 +1,10 @@
1
- import { IntroMessage } from '../types/messages';
1
+ import { DeepChat } from '../deepChat';
2
+ import { Messages } from '../views/chat/messages/messages';
3
+ import { MessageContentI } from '../types/messagesInternal';
2
4
  import { BaseServiceIO } from '../services/utils/baseServiceIO';
5
+ import { IntroMessage } from '../types/messages';
6
+
3
7
  import * as WebLLM from '../types/webModel/webLLM/webLLM';
4
- import { MessageContentI } from '../types/messagesInternal';
5
- import { Messages } from '../views/chat/messages/messages';
6
- import { DeepChat } from '../deepChat';
7
8
  declare global {
8
9
  interface Window {
9
10
  webLLM: typeof WebLLM;
@@ -1,4 +1,5 @@
1
1
  import { WebModelIntro } from '../types/webModel/webModel';
2
+
2
3
  export declare class WebModelIntroMessage {
3
4
  private static readonly DOWNLOAD_BUTTON_CLASS;
4
5
  private static readonly UPLOAD_BUTTON_CLASS;