deep-chat-dev 9.0.162 → 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.
- package/custom-elements.json +9119 -9092
- package/dist/deepChat.bundle.js +1 -1
- package/dist/deepChat.d.ts +24 -23
- package/dist/deepChat.js +1514 -1472
- package/dist/services/assemblyAI/assemblyAIAudioIO.d.ts +6 -5
- package/dist/services/assemblyAI/utils/assemblyAIUtils.d.ts +1 -0
- package/dist/services/azure/azureLanguageIO.d.ts +5 -4
- package/dist/services/azure/azureSpeechIO.d.ts +5 -4
- package/dist/services/azure/azureSpeechToTextIO.d.ts +6 -5
- package/dist/services/azure/azureSummarizationIO.d.ts +7 -6
- package/dist/services/azure/azureTextToSpeechIO.d.ts +7 -6
- package/dist/services/azure/azureTranslationIO.d.ts +6 -5
- package/dist/services/azure/utils/azureUtils.d.ts +2 -1
- package/dist/services/cohere/cohereChatIO.d.ts +6 -5
- package/dist/services/cohere/cohereIO.d.ts +3 -2
- package/dist/services/cohere/cohereSummarizationIO.d.ts +7 -6
- package/dist/services/cohere/cohereTextGenerationIO.d.ts +7 -6
- package/dist/services/cohere/utils/cohereUtils.d.ts +1 -0
- package/dist/services/huggingFace/huggingFaceAudioClassificationIO.d.ts +4 -3
- package/dist/services/huggingFace/huggingFaceAudioRecognitionIO.d.ts +4 -3
- package/dist/services/huggingFace/huggingFaceConversationIO.d.ts +6 -5
- package/dist/services/huggingFace/huggingFaceFileIO.d.ts +7 -6
- package/dist/services/huggingFace/huggingFaceFillMaskIO.d.ts +4 -3
- package/dist/services/huggingFace/huggingFaceIO.d.ts +7 -6
- package/dist/services/huggingFace/huggingFaceImageClassificationIO.d.ts +4 -3
- package/dist/services/huggingFace/huggingFaceQuestionAnswerIO.d.ts +6 -5
- package/dist/services/huggingFace/huggingFaceSummarizationIO.d.ts +4 -3
- package/dist/services/huggingFace/huggingFaceTextGenerationIO.d.ts +4 -3
- package/dist/services/huggingFace/huggingFaceTranslationIO.d.ts +4 -3
- package/dist/services/huggingFace/utils/huggingFaceUtils.d.ts +1 -0
- package/dist/services/mistral/mistralO.d.ts +6 -5
- package/dist/services/mistral/utils/mistralUtils.d.ts +1 -0
- package/dist/services/openAI/openAIAssistantIO.d.ts +7 -6
- package/dist/services/openAI/openAIAssistantIO.d.ts.map +1 -1
- package/dist/services/openAI/openAIChatIO.d.ts +8 -7
- package/dist/services/openAI/openAIImagesIO.d.ts +6 -5
- package/dist/services/openAI/openAISpeechToTextIO.d.ts +6 -5
- package/dist/services/openAI/openAITextToSpeechIO.d.ts +6 -5
- package/dist/services/openAI/utils/openAIAssistantUtils.d.ts +6 -5
- package/dist/services/openAI/utils/openAIAssistantUtils.d.ts.map +1 -1
- package/dist/services/openAI/utils/openAIUtils.d.ts +2 -1
- package/dist/services/serviceIO.d.ts +12 -11
- package/dist/services/serviceIOFactory.d.ts +2 -1
- package/dist/services/stabilityAI/stabilityAIIO.d.ts +6 -5
- package/dist/services/stabilityAI/stabilityAIImageToImageIO.d.ts +6 -5
- package/dist/services/stabilityAI/stabilityAIImageToImageMaskingIO.d.ts +6 -5
- package/dist/services/stabilityAI/stabilityAIImageToImageUpscaleIO.d.ts +6 -5
- package/dist/services/stabilityAI/stabilityAITextToImageIO.d.ts +6 -5
- package/dist/services/stabilityAI/utils/stabilityAIUtils.d.ts +1 -0
- package/dist/services/utils/baseServiceIO.d.ts +10 -9
- package/dist/services/utils/directServiceIO.d.ts +6 -5
- package/dist/services/utils/messageLimitUtils.d.ts +1 -0
- package/dist/services/utils/setFileTypes.d.ts +2 -1
- package/dist/types/avatars.d.ts +1 -0
- package/dist/types/azureResult.d.ts +1 -0
- package/dist/types/button.d.ts +1 -0
- package/dist/types/buttonInternal.d.ts +2 -1
- package/dist/types/buttonTypes.d.ts +1 -0
- package/dist/types/cohere.d.ts +1 -0
- package/dist/types/cohereResult.d.ts +1 -0
- package/dist/types/connect.d.ts +3 -2
- package/dist/types/demo.d.ts +3 -2
- package/dist/types/directConnection.d.ts +8 -7
- package/dist/types/dropupStyles.d.ts +2 -1
- package/dist/types/fileAttachments.d.ts +1 -0
- package/dist/types/fileServiceConfigs.d.ts +6 -5
- package/dist/types/genericInputButton.d.ts +1 -0
- package/dist/types/handler.d.ts +1 -0
- package/dist/types/headers.d.ts +1 -0
- package/dist/types/html.d.ts +1 -0
- package/dist/types/huggingFaceResult.d.ts +1 -0
- package/dist/types/interceptors.d.ts +2 -1
- package/dist/types/keyVerificationDetails.d.ts +1 -0
- package/dist/types/messages.d.ts +3 -2
- package/dist/types/messagesInternal.d.ts +3 -2
- package/dist/types/microphone.d.ts +2 -1
- package/dist/types/names.d.ts +1 -0
- package/dist/types/openAI.d.ts +1 -0
- package/dist/types/openAIInternal.d.ts +2 -1
- package/dist/types/openAIResult.d.ts +2 -0
- package/dist/types/openAIResult.d.ts.map +1 -1
- package/dist/types/response.d.ts +1 -0
- package/dist/types/responseInternal.d.ts +1 -0
- package/dist/types/submitButton.d.ts +1 -0
- package/dist/types/textInput.d.ts +1 -0
- package/dist/types/validationHandler.d.ts +1 -0
- package/dist/types/webModel/webLLM/webLLMChatModule.d.ts +1 -0
- package/dist/types/webModel/webLLM/webLLMClient.d.ts +1 -0
- package/dist/utils/HTTP/HTTPRequest.d.ts +2 -1
- package/dist/utils/HTTP/customHandler.d.ts +3 -2
- package/dist/utils/HTTP/requestUtils.d.ts +7 -6
- package/dist/utils/HTTP/stream.d.ts +5 -4
- package/dist/utils/HTTP/websocket.d.ts +4 -3
- package/dist/utils/buttons/inputButtons.d.ts +1 -0
- package/dist/utils/decorators/property.d.ts +1 -0
- package/dist/utils/decorators/renderControl.d.ts +1 -0
- package/dist/utils/decorators/typeConverters.d.ts +1 -0
- package/dist/utils/demo/demo.d.ts +2 -1
- package/dist/utils/element/statefulEvents.d.ts +1 -0
- package/dist/utils/element/styleUtils.d.ts +1 -0
- package/dist/utils/events/fireEvents.d.ts +2 -1
- package/dist/utils/files/fileTypeButtonIcons.d.ts +1 -0
- package/dist/utils/legacy/legacy.d.ts +4 -3
- package/dist/utils/webComponent/internalHTML.d.ts +2 -1
- package/dist/utils/webComponent/webComponentStyleUtils.d.ts +1 -0
- package/dist/views/chat/chatView.d.ts +2 -1
- package/dist/views/chat/input/buttonContainers/buttonContainers.d.ts +1 -0
- package/dist/views/chat/input/buttons/buttonCSS.d.ts +2 -1
- package/dist/views/chat/input/buttons/camera/cameraButton.d.ts +5 -4
- package/dist/views/chat/input/buttons/customButtonInnerElements.d.ts +1 -0
- package/dist/views/chat/input/buttons/inputButton.d.ts +2 -2
- package/dist/views/chat/input/buttons/microphone/microphoneButton.d.ts +4 -3
- package/dist/views/chat/input/buttons/microphone/recordAudio.d.ts +3 -2
- package/dist/views/chat/input/buttons/microphone/speechToText/silenceSubmit.d.ts +2 -1
- package/dist/views/chat/input/buttons/microphone/speechToText/speechToText.d.ts +6 -5
- package/dist/views/chat/input/buttons/styleAdjustments/inputButtonPositions.d.ts +6 -5
- package/dist/views/chat/input/buttons/styleAdjustments/inputButtonStyleAdjustments.d.ts +2 -1
- package/dist/views/chat/input/buttons/submit/submitButton.d.ts +10 -9
- package/dist/views/chat/input/buttons/submit/submitButton.d.ts.map +1 -1
- package/dist/views/chat/input/buttons/submit/submitButtonStateStyle.d.ts +2 -1
- package/dist/views/chat/input/buttons/uploadFile/uploadFileButton.d.ts +5 -4
- package/dist/views/chat/input/dropup/dropup.d.ts +6 -5
- package/dist/views/chat/input/dropup/dropupItem.d.ts +3 -2
- package/dist/views/chat/input/dropup/dropupMenu.d.ts +2 -1
- package/dist/views/chat/input/fileAttachments/dragAndDrop/dragAndDrop.d.ts +2 -1
- package/dist/views/chat/input/fileAttachments/fileAttachmentTypes/audioFileAttachmentType.d.ts +3 -2
- package/dist/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentTypeFactory.d.ts +4 -3
- package/dist/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.d.ts +3 -2
- package/dist/views/chat/input/fileAttachments/fileAttachments.d.ts +7 -6
- package/dist/views/chat/input/fileAttachments/modal/cameraModal.d.ts +4 -3
- package/dist/views/chat/input/fileAttachments/modal/modal.d.ts +2 -1
- package/dist/views/chat/input/input.d.ts +6 -5
- package/dist/views/chat/input/textInput/textInput.d.ts +3 -2
- package/dist/views/chat/input/textInput/textInputEvents.d.ts +2 -1
- package/dist/views/chat/input/validation/validationHandler.d.ts +5 -4
- package/dist/views/chat/introPanel/introPanel.d.ts +1 -0
- package/dist/views/chat/messages/avatar.d.ts +1 -0
- package/dist/views/chat/messages/fileMessageUtils.d.ts +4 -3
- package/dist/views/chat/messages/fileMessages.d.ts +2 -1
- package/dist/views/chat/messages/html/htmlDeepChatElements.d.ts +3 -2
- package/dist/views/chat/messages/html/htmlMessages.d.ts +3 -2
- package/dist/views/chat/messages/html/htmlUtils.d.ts +2 -1
- package/dist/views/chat/messages/loadingMessageDotsStyle.d.ts +1 -0
- package/dist/views/chat/messages/messageStyleUtils.d.ts +3 -2
- package/dist/views/chat/messages/messageUtils.d.ts +5 -4
- package/dist/views/chat/messages/messages.d.ts +7 -6
- package/dist/views/chat/messages/messagesBase.d.ts +10 -9
- package/dist/views/chat/messages/name.d.ts +1 -0
- package/dist/views/chat/messages/remarkable/remarkableConfig.d.ts +2 -2
- package/dist/views/chat/messages/setupMessages.d.ts +2 -1
- package/dist/views/chat/messages/stream/messageStream.d.ts +9 -1
- package/dist/views/chat/messages/stream/messageStream.d.ts.map +1 -1
- package/dist/views/chat/messages/textToSpeech/textToSpeech.d.ts +1 -0
- package/dist/views/insertKey/insertKeyView.d.ts +1 -0
- package/dist/views/validateKeyProperty/validateKeyPropertyView.d.ts +1 -0
- package/dist/webModel/webModel.d.ts +5 -4
- package/dist/webModel/webModelIntroMessage.d.ts +1 -0
- 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,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,CAAC,QAAQ,CAAC,cAAc,CAAqB;IAC3D,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAY;IACvC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAW;IACrC,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAc;IAC/C,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAkB;IAC/C,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAyB;IACtD,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAqC;IACpE,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAkB;IACnD,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAU;IACzC,OAAO,CAAC,iBAAiB,CAAC,CAAmB;IAC7C,OAAO,CAAC,mBAAmB,CAAC,CAAU;IACtC,OAAO,CAAC,0BAA0B,CAAS;IAC3C,OAAO,CAAC,kBAAkB,CAAC,CAAoB;IAC/C,QAAQ,CAAC,MAAM;;;MAAoD;gBAGvD,QAAQ,EAAE,QAAQ,EAAE,eAAe,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAClG,eAAe,EAAE,eAAe,EAAE,OAAO,EAAE,OAAO;IAqBtD,OAAO,CAAC,mBAAmB;IAW3B,OAAO,CAAC,oBAAoB;IAY5B,OAAO,CAAC,MAAM,CAAC,4BAA4B;IAM3C,OAAO,CAAC,MAAM,CAAC,uBAAuB;IAMtC,OAAO,CAAC,MAAM,CAAC,wBAAwB;IAMvC,OAAO,CAAC,MAAM,CAAC,qBAAqB;IAMpC,OAAO,CAAC,yBAAyB;IAMjC,OAAO,CAAC,4BAA4B;IAepC,OAAO,CAAC,cAAc;IAgBtB,OAAO,CAAC,iBAAiB;IAKzB,OAAO,CAAC,WAAW;IAMN,eAAe;
|
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,CAAC,QAAQ,CAAC,cAAc,CAAqB;IAC3D,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAY;IACvC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAW;IACrC,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAc;IAC/C,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAkB;IAC/C,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAyB;IACtD,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAqC;IACpE,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAkB;IACnD,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAU;IACzC,OAAO,CAAC,iBAAiB,CAAC,CAAmB;IAC7C,OAAO,CAAC,mBAAmB,CAAC,CAAU;IACtC,OAAO,CAAC,0BAA0B,CAAS;IAC3C,OAAO,CAAC,kBAAkB,CAAC,CAAoB;IAC/C,QAAQ,CAAC,MAAM;;;MAAoD;gBAGvD,QAAQ,EAAE,QAAQ,EAAE,eAAe,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAClG,eAAe,EAAE,eAAe,EAAE,OAAO,EAAE,OAAO;IAqBtD,OAAO,CAAC,mBAAmB;IAW3B,OAAO,CAAC,oBAAoB;IAY5B,OAAO,CAAC,MAAM,CAAC,4BAA4B;IAM3C,OAAO,CAAC,MAAM,CAAC,uBAAuB;IAMtC,OAAO,CAAC,MAAM,CAAC,wBAAwB;IAMvC,OAAO,CAAC,MAAM,CAAC,qBAAqB;IAMpC,OAAO,CAAC,yBAAyB;IAMjC,OAAO,CAAC,4BAA4B;IAepC,OAAO,CAAC,cAAc;IAgBtB,OAAO,CAAC,iBAAiB;IAKzB,OAAO,CAAC,WAAW;IAMN,eAAe;IAYf,kBAAkB,CAAC,OAAO,EAAE,WAAW;IAavC,aAAa,CAAC,OAAO,EAAE,YAAY,EAAE,cAAc,UAAQ;YAa1D,aAAa;IAQ3B,OAAO,CAAC,UAAU;IAOlB,OAAO,CAAC,gBAAgB;IASxB,OAAO,CAAC,mBAAmB;IAYpB,kBAAkB;IAelB,oBAAoB,CAAC,cAAc,UAAQ;IAYlD,OAAO,CAAC,mBAAmB;CAS5B"}
|
@@ -1,5 +1,6 @@
|
|
1
|
-
import { SubmitButtonStyles } from '../../../../../types/submitButton';
|
2
1
|
import { SubmitButton } 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(
|
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;
|
package/dist/views/chat/input/fileAttachments/fileAttachmentTypes/audioFileAttachmentType.d.ts
CHANGED
@@ -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?;
|
package/dist/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentTypeFactory.d.ts
CHANGED
@@ -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(
|
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,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,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,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,6 +1,6 @@
|
|
1
|
-
|
1
|
+
import { default as hljs } from 'highlight.js';
|
2
2
|
import { Remarkable } from 'remarkable';
|
3
|
-
|
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;
|
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,9 +1,10 @@
|
|
1
|
-
import {
|
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;
|