deep-chat-dev 1.1.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +132 -0
- package/assets/machine-learning.svg +21 -0
- package/assets/person-avatar.png +0 -0
- package/custom-elements.json +31889 -0
- package/dist/deepChat.bundle.js +1 -0
- package/dist/deepChat.d.ts +71 -0
- package/dist/deepChat.d.ts.map +1 -0
- package/dist/deepChat.js +6700 -0
- package/dist/icons/audioIcon.d.ts +2 -0
- package/dist/icons/audioIcon.d.ts.map +1 -0
- package/dist/icons/cameraIcon.d.ts +2 -0
- package/dist/icons/cameraIcon.d.ts.map +1 -0
- package/dist/icons/captureIcon.d.ts +2 -0
- package/dist/icons/captureIcon.d.ts.map +1 -0
- package/dist/icons/closeIcon.d.ts +2 -0
- package/dist/icons/closeIcon.d.ts.map +1 -0
- package/dist/icons/fileIcon.d.ts +2 -0
- package/dist/icons/fileIcon.d.ts.map +1 -0
- package/dist/icons/gifIcon.d.ts +2 -0
- package/dist/icons/gifIcon.d.ts.map +1 -0
- package/dist/icons/imageIcon.d.ts +2 -0
- package/dist/icons/imageIcon.d.ts.map +1 -0
- package/dist/icons/microphone.d.ts +2 -0
- package/dist/icons/microphone.d.ts.map +1 -0
- package/dist/icons/mixedFilesIcon.d.ts +2 -0
- package/dist/icons/mixedFilesIcon.d.ts.map +1 -0
- package/dist/icons/notVisibilityIcon.d.ts +2 -0
- package/dist/icons/notVisibilityIcon.d.ts.map +1 -0
- package/dist/icons/playIcon.d.ts +2 -0
- package/dist/icons/playIcon.d.ts.map +1 -0
- package/dist/icons/plusIcon.d.ts +2 -0
- package/dist/icons/plusIcon.d.ts.map +1 -0
- package/dist/icons/refreshIcon.d.ts +2 -0
- package/dist/icons/refreshIcon.d.ts.map +1 -0
- package/dist/icons/stopIcon.d.ts +2 -0
- package/dist/icons/stopIcon.d.ts.map +1 -0
- package/dist/icons/submitIcon.d.ts +2 -0
- package/dist/icons/submitIcon.d.ts.map +1 -0
- package/dist/icons/tickIcon.d.ts +2 -0
- package/dist/icons/tickIcon.d.ts.map +1 -0
- package/dist/icons/visibleIcon.d.ts +2 -0
- package/dist/icons/visibleIcon.d.ts.map +1 -0
- package/dist/services/assemblyAI/assemblyAIAudioIO.d.ts +20 -0
- package/dist/services/assemblyAI/assemblyAIAudioIO.d.ts.map +1 -0
- package/dist/services/assemblyAI/utils/assemblyAIUtils.d.ts +13 -0
- package/dist/services/assemblyAI/utils/assemblyAIUtils.d.ts.map +1 -0
- package/dist/services/azure/azureLanguageIO.d.ts +12 -0
- package/dist/services/azure/azureLanguageIO.d.ts.map +1 -0
- package/dist/services/azure/azureSpeechIO.d.ts +11 -0
- package/dist/services/azure/azureSpeechIO.d.ts.map +1 -0
- package/dist/services/azure/azureSpeechToTextIO.d.ts +18 -0
- package/dist/services/azure/azureSpeechToTextIO.d.ts.map +1 -0
- package/dist/services/azure/azureSummarizationIO.d.ts +33 -0
- package/dist/services/azure/azureSummarizationIO.d.ts.map +1 -0
- package/dist/services/azure/azureTextToSpeechIO.d.ts +17 -0
- package/dist/services/azure/azureTextToSpeechIO.d.ts.map +1 -0
- package/dist/services/azure/azureTranslationIO.d.ts +18 -0
- package/dist/services/azure/azureTranslationIO.d.ts.map +1 -0
- package/dist/services/azure/utils/azureUtils.d.ts +25 -0
- package/dist/services/azure/utils/azureUtils.d.ts.map +1 -0
- package/dist/services/cohere/cohereChatIO.d.ts +15 -0
- package/dist/services/cohere/cohereChatIO.d.ts.map +1 -0
- package/dist/services/cohere/cohereIO.d.ts +12 -0
- package/dist/services/cohere/cohereIO.d.ts.map +1 -0
- package/dist/services/cohere/cohereSummarizationIO.d.ts +14 -0
- package/dist/services/cohere/cohereSummarizationIO.d.ts.map +1 -0
- package/dist/services/cohere/cohereTextGenerationIO.d.ts +14 -0
- package/dist/services/cohere/cohereTextGenerationIO.d.ts.map +1 -0
- package/dist/services/cohere/utils/cohereUtils.d.ts +11 -0
- package/dist/services/cohere/utils/cohereUtils.d.ts.map +1 -0
- package/dist/services/huggingFace/huggingFaceAudioClassificationIO.d.ts +9 -0
- package/dist/services/huggingFace/huggingFaceAudioClassificationIO.d.ts.map +1 -0
- package/dist/services/huggingFace/huggingFaceAudioRecognitionIO.d.ts +9 -0
- package/dist/services/huggingFace/huggingFaceAudioRecognitionIO.d.ts.map +1 -0
- package/dist/services/huggingFace/huggingFaceConversationIO.d.ts +15 -0
- package/dist/services/huggingFace/huggingFaceConversationIO.d.ts.map +1 -0
- package/dist/services/huggingFace/huggingFaceFileIO.d.ts +17 -0
- package/dist/services/huggingFace/huggingFaceFileIO.d.ts.map +1 -0
- package/dist/services/huggingFace/huggingFaceFillMaskIO.d.ts +11 -0
- package/dist/services/huggingFace/huggingFaceFillMaskIO.d.ts.map +1 -0
- package/dist/services/huggingFace/huggingFaceIO.d.ts +34 -0
- package/dist/services/huggingFace/huggingFaceIO.d.ts.map +1 -0
- package/dist/services/huggingFace/huggingFaceImageClassificationIO.d.ts +9 -0
- package/dist/services/huggingFace/huggingFaceImageClassificationIO.d.ts.map +1 -0
- package/dist/services/huggingFace/huggingFaceQuestionAnswerIO.d.ts +16 -0
- package/dist/services/huggingFace/huggingFaceQuestionAnswerIO.d.ts.map +1 -0
- package/dist/services/huggingFace/huggingFaceSummarizationIO.d.ts +9 -0
- package/dist/services/huggingFace/huggingFaceSummarizationIO.d.ts.map +1 -0
- package/dist/services/huggingFace/huggingFaceTextGenerationIO.d.ts +9 -0
- package/dist/services/huggingFace/huggingFaceTextGenerationIO.d.ts.map +1 -0
- package/dist/services/huggingFace/huggingFaceTranslationIO.d.ts +9 -0
- package/dist/services/huggingFace/huggingFaceTranslationIO.d.ts.map +1 -0
- package/dist/services/huggingFace/utils/huggingFaceUtils.d.ts +10 -0
- package/dist/services/huggingFace/utils/huggingFaceUtils.d.ts.map +1 -0
- package/dist/services/openAI/openAIAudioIO.d.ts +27 -0
- package/dist/services/openAI/openAIAudioIO.d.ts.map +1 -0
- package/dist/services/openAI/openAIChatIO.d.ts +21 -0
- package/dist/services/openAI/openAIChatIO.d.ts.map +1 -0
- package/dist/services/openAI/openAICompletionsIO.d.ts +20 -0
- package/dist/services/openAI/openAICompletionsIO.d.ts.map +1 -0
- package/dist/services/openAI/openAIImagesIO.d.ts +25 -0
- package/dist/services/openAI/openAIImagesIO.d.ts.map +1 -0
- package/dist/services/openAI/utils/openAIConverseBaseBody.d.ts +12 -0
- package/dist/services/openAI/utils/openAIConverseBaseBody.d.ts.map +1 -0
- package/dist/services/openAI/utils/openAIUtils.d.ts +12 -0
- package/dist/services/openAI/utils/openAIUtils.d.ts.map +1 -0
- package/dist/services/serviceIO.d.ts +65 -0
- package/dist/services/serviceIO.d.ts.map +1 -0
- package/dist/services/serviceIOFactory.d.ts +6 -0
- package/dist/services/serviceIOFactory.d.ts.map +1 -0
- package/dist/services/stabilityAI/stabilityAIIO.d.ts +13 -0
- package/dist/services/stabilityAI/stabilityAIIO.d.ts.map +1 -0
- package/dist/services/stabilityAI/stabilityAIImageToImageIO.d.ts +19 -0
- package/dist/services/stabilityAI/stabilityAIImageToImageIO.d.ts.map +1 -0
- package/dist/services/stabilityAI/stabilityAIImageToImageMaskingIO.d.ts +20 -0
- package/dist/services/stabilityAI/stabilityAIImageToImageMaskingIO.d.ts.map +1 -0
- package/dist/services/stabilityAI/stabilityAIImageToImageUpscaleIO.d.ts +18 -0
- package/dist/services/stabilityAI/stabilityAIImageToImageUpscaleIO.d.ts.map +1 -0
- package/dist/services/stabilityAI/stabilityAITextToImageIO.d.ts +19 -0
- package/dist/services/stabilityAI/stabilityAITextToImageIO.d.ts.map +1 -0
- package/dist/services/stabilityAI/utils/stabilityAIUtils.d.ts +10 -0
- package/dist/services/stabilityAI/utils/stabilityAIUtils.d.ts.map +1 -0
- package/dist/services/utils/baseServiceIO.d.ts +39 -0
- package/dist/services/utils/baseServiceIO.d.ts.map +1 -0
- package/dist/services/utils/directServiceIO.d.ts +19 -0
- package/dist/services/utils/directServiceIO.d.ts.map +1 -0
- package/dist/services/utils/messageLimitUtils.d.ts +9 -0
- package/dist/services/utils/messageLimitUtils.d.ts.map +1 -0
- package/dist/services/utils/setFileTypes.d.ts +14 -0
- package/dist/services/utils/setFileTypes.d.ts.map +1 -0
- package/dist/types/APIKey.d.ts +5 -0
- package/dist/types/APIKey.d.ts.map +1 -0
- package/dist/types/assemblyAI.d.ts +4 -0
- package/dist/types/assemblyAI.d.ts.map +1 -0
- package/dist/types/assemblyAIResult.d.ts +5 -0
- package/dist/types/assemblyAIResult.d.ts.map +1 -0
- package/dist/types/avatars.d.ts +17 -0
- package/dist/types/avatars.d.ts.map +1 -0
- package/dist/types/azure.d.ts +28 -0
- package/dist/types/azure.d.ts.map +1 -0
- package/dist/types/azureResult.d.ts +47 -0
- package/dist/types/azureResult.d.ts.map +1 -0
- package/dist/types/button.d.ts +17 -0
- package/dist/types/button.d.ts.map +1 -0
- package/dist/types/buttonInternal.d.ts +12 -0
- package/dist/types/buttonInternal.d.ts.map +1 -0
- package/dist/types/buttonTypes.d.ts +3 -0
- package/dist/types/buttonTypes.d.ts.map +1 -0
- package/dist/types/camera.d.ts +12 -0
- package/dist/types/camera.d.ts.map +1 -0
- package/dist/types/chatLimits.d.ts +5 -0
- package/dist/types/chatLimits.d.ts.map +1 -0
- package/dist/types/cohere.d.ts +34 -0
- package/dist/types/cohere.d.ts.map +1 -0
- package/dist/types/cohereResult.d.ts +21 -0
- package/dist/types/cohereResult.d.ts.map +1 -0
- package/dist/types/customService.d.ts +6 -0
- package/dist/types/customService.d.ts.map +1 -0
- package/dist/types/demo.d.ts +13 -0
- package/dist/types/demo.d.ts.map +1 -0
- package/dist/types/directConnection.d.ts +18 -0
- package/dist/types/directConnection.d.ts.map +1 -0
- package/dist/types/dropupStyles.d.ts +13 -0
- package/dist/types/dropupStyles.d.ts.map +1 -0
- package/dist/types/fileAttachments.d.ts +12 -0
- package/dist/types/fileAttachments.d.ts.map +1 -0
- package/dist/types/fileServiceConfigs.d.ts +23 -0
- package/dist/types/fileServiceConfigs.d.ts.map +1 -0
- package/dist/types/fileTypes.d.ts +2 -0
- package/dist/types/fileTypes.d.ts.map +1 -0
- package/dist/types/genericInputButton.d.ts +5 -0
- package/dist/types/genericInputButton.d.ts.map +1 -0
- package/dist/types/headers.d.ts +3 -0
- package/dist/types/headers.d.ts.map +1 -0
- package/dist/types/huggingFace.d.ts +67 -0
- package/dist/types/huggingFace.d.ts.map +1 -0
- package/dist/types/huggingFaceResult.d.ts +30 -0
- package/dist/types/huggingFaceResult.d.ts.map +1 -0
- package/dist/types/interceptors.d.ts +8 -0
- package/dist/types/interceptors.d.ts.map +1 -0
- package/dist/types/keyVerificationDetails.d.ts +9 -0
- package/dist/types/keyVerificationDetails.d.ts.map +1 -0
- package/dist/types/messageFile.d.ts +8 -0
- package/dist/types/messageFile.d.ts.map +1 -0
- package/dist/types/messages.d.ts +44 -0
- package/dist/types/messages.d.ts.map +1 -0
- package/dist/types/microphone.d.ts +29 -0
- package/dist/types/microphone.d.ts.map +1 -0
- package/dist/types/names.d.ts +13 -0
- package/dist/types/names.d.ts.map +1 -0
- package/dist/types/object.d.ts +4 -0
- package/dist/types/object.d.ts.map +1 -0
- package/dist/types/openAI.d.ts +34 -0
- package/dist/types/openAI.d.ts.map +1 -0
- package/dist/types/openAIInternal.d.ts +10 -0
- package/dist/types/openAIInternal.d.ts.map +1 -0
- package/dist/types/openAIResult.d.ts +39 -0
- package/dist/types/openAIResult.d.ts.map +1 -0
- package/dist/types/request.d.ts +9 -0
- package/dist/types/request.d.ts.map +1 -0
- package/dist/types/result.d.ts +6 -0
- package/dist/types/result.d.ts.map +1 -0
- package/dist/types/stabilityAI.d.ts +37 -0
- package/dist/types/stabilityAI.d.ts.map +1 -0
- package/dist/types/stabilityAIResult.d.ts +7 -0
- package/dist/types/stabilityAIResult.d.ts.map +1 -0
- package/dist/types/stream.d.ts +4 -0
- package/dist/types/stream.d.ts.map +1 -0
- package/dist/types/styles.d.ts +7 -0
- package/dist/types/styles.d.ts.map +1 -0
- package/dist/types/submitButton.d.ts +8 -0
- package/dist/types/submitButton.d.ts.map +1 -0
- package/dist/types/textInput.d.ts +17 -0
- package/dist/types/textInput.d.ts.map +1 -0
- package/dist/types/textToSpeech.d.ts +8 -0
- package/dist/types/textToSpeech.d.ts.map +1 -0
- package/dist/types/typeConverters.d.ts +6 -0
- package/dist/types/typeConverters.d.ts.map +1 -0
- package/dist/types/utilityTypes.d.ts +11 -0
- package/dist/types/utilityTypes.d.ts.map +1 -0
- package/dist/types/validateMessageBeforeSending.d.ts +2 -0
- package/dist/types/validateMessageBeforeSending.d.ts.map +1 -0
- package/dist/utils/HTTP/HTTPRequest.d.ts +10 -0
- package/dist/utils/HTTP/HTTPRequest.d.ts.map +1 -0
- package/dist/utils/HTTP/requestUtils.d.ts +9 -0
- package/dist/utils/HTTP/requestUtils.d.ts.map +1 -0
- package/dist/utils/HTTP/stream.d.ts +9 -0
- package/dist/utils/HTTP/stream.d.ts.map +1 -0
- package/dist/utils/HTTP/websocket.d.ts +9 -0
- package/dist/utils/HTTP/websocket.d.ts.map +1 -0
- package/dist/utils/browser/browser.d.ts +5 -0
- package/dist/utils/browser/browser.d.ts.map +1 -0
- package/dist/utils/buttons/inputButtons.d.ts +3 -0
- package/dist/utils/buttons/inputButtons.d.ts.map +1 -0
- package/dist/utils/buttons/keyboardKeys.d.ts +14 -0
- package/dist/utils/buttons/keyboardKeys.d.ts.map +1 -0
- package/dist/utils/decorators/property.d.ts +3 -0
- package/dist/utils/decorators/property.d.ts.map +1 -0
- package/dist/utils/decorators/renderControl.d.ts +6 -0
- package/dist/utils/decorators/renderControl.d.ts.map +1 -0
- package/dist/utils/decorators/typeConverters.d.ts +5 -0
- package/dist/utils/decorators/typeConverters.d.ts.map +1 -0
- package/dist/utils/demo/demo.d.ts +15 -0
- package/dist/utils/demo/demo.d.ts.map +1 -0
- package/dist/utils/element/elementUtils.d.ts +7 -0
- package/dist/utils/element/elementUtils.d.ts.map +1 -0
- package/dist/utils/element/imageUtils.d.ts +2 -0
- package/dist/utils/element/imageUtils.d.ts.map +1 -0
- package/dist/utils/element/statefulEvents.d.ts +9 -0
- package/dist/utils/element/statefulEvents.d.ts.map +1 -0
- package/dist/utils/element/styleUtils.d.ts +8 -0
- package/dist/utils/element/styleUtils.d.ts.map +1 -0
- package/dist/utils/errorMessages/errorMessages.d.ts +9 -0
- package/dist/utils/errorMessages/errorMessages.d.ts.map +1 -0
- package/dist/utils/events/fireEvents.d.ts +7 -0
- package/dist/utils/events/fireEvents.d.ts.map +1 -0
- package/dist/utils/fileTypes/fileTypeButtonIcons.d.ts +11 -0
- package/dist/utils/fileTypes/fileTypeButtonIcons.d.ts.map +1 -0
- package/dist/utils/svg/svgIconUtils.d.ts +4 -0
- package/dist/utils/svg/svgIconUtils.d.ts.map +1 -0
- package/dist/utils/webComponent/googleFont.d.ts +5 -0
- package/dist/utils/webComponent/googleFont.d.ts.map +1 -0
- package/dist/utils/webComponent/internalHTML.d.ts +14 -0
- package/dist/utils/webComponent/internalHTML.d.ts.map +1 -0
- package/dist/utils/webComponent/webComponentStyleUtils.d.ts +6 -0
- package/dist/utils/webComponent/webComponentStyleUtils.d.ts.map +1 -0
- package/dist/views/chat/chatView.d.ts +7 -0
- package/dist/views/chat/chatView.d.ts.map +1 -0
- package/dist/views/chat/input/buttonContainers/buttonContainers.d.ts +9 -0
- package/dist/views/chat/input/buttonContainers/buttonContainers.d.ts.map +1 -0
- package/dist/views/chat/input/buttons/buttonCSS.d.ts +9 -0
- package/dist/views/chat/input/buttons/buttonCSS.d.ts.map +1 -0
- package/dist/views/chat/input/buttons/camera/cameraButton.d.ts +16 -0
- package/dist/views/chat/input/buttons/camera/cameraButton.d.ts.map +1 -0
- package/dist/views/chat/input/buttons/customButtonInnerElements.d.ts +10 -0
- package/dist/views/chat/input/buttons/customButtonInnerElements.d.ts.map +1 -0
- package/dist/views/chat/input/buttons/inputButton.d.ts +25 -0
- package/dist/views/chat/input/buttons/inputButton.d.ts.map +1 -0
- package/dist/views/chat/input/buttons/microphone/microphoneButton.d.ts +24 -0
- package/dist/views/chat/input/buttons/microphone/microphoneButton.d.ts.map +1 -0
- package/dist/views/chat/input/buttons/microphone/recordAudio.d.ts +18 -0
- package/dist/views/chat/input/buttons/microphone/recordAudio.d.ts.map +1 -0
- package/dist/views/chat/input/buttons/microphone/speechToText.d.ts +15 -0
- package/dist/views/chat/input/buttons/microphone/speechToText.d.ts.map +1 -0
- package/dist/views/chat/input/buttons/styleAdjustments/inputButtonPositions.d.ts +27 -0
- package/dist/views/chat/input/buttons/styleAdjustments/inputButtonPositions.d.ts.map +1 -0
- package/dist/views/chat/input/buttons/styleAdjustments/inputButtonStyleAdjustments.d.ts +13 -0
- package/dist/views/chat/input/buttons/styleAdjustments/inputButtonStyleAdjustments.d.ts.map +1 -0
- package/dist/views/chat/input/buttons/submit/submitButton.d.ts +35 -0
- package/dist/views/chat/input/buttons/submit/submitButton.d.ts.map +1 -0
- package/dist/views/chat/input/buttons/submit/submitButtonStateStyle.d.ts +5 -0
- package/dist/views/chat/input/buttons/submit/submitButtonStateStyle.d.ts.map +1 -0
- package/dist/views/chat/input/buttons/uploadFile/uploadFileButton.d.ts +23 -0
- package/dist/views/chat/input/buttons/uploadFile/uploadFileButton.d.ts.map +1 -0
- package/dist/views/chat/input/dropup/dropup.d.ts +22 -0
- package/dist/views/chat/input/dropup/dropup.d.ts.map +1 -0
- package/dist/views/chat/input/dropup/dropupItem.d.ts +11 -0
- package/dist/views/chat/input/dropup/dropupItem.d.ts.map +1 -0
- package/dist/views/chat/input/dropup/dropupItemNavigation.d.ts +5 -0
- package/dist/views/chat/input/dropup/dropupItemNavigation.d.ts.map +1 -0
- package/dist/views/chat/input/dropup/dropupMenu.d.ts +16 -0
- package/dist/views/chat/input/dropup/dropupMenu.d.ts.map +1 -0
- package/dist/views/chat/input/fileAttachments/dragAndDrop/dragAndDrop.d.ts +12 -0
- package/dist/views/chat/input/fileAttachments/dragAndDrop/dragAndDrop.d.ts.map +1 -0
- package/dist/views/chat/input/fileAttachments/fileAttachmentTypes/audioFileAttachmentType.d.ts +21 -0
- package/dist/views/chat/input/fileAttachments/fileAttachmentTypes/audioFileAttachmentType.d.ts.map +1 -0
- package/dist/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentTypeFactory.d.ts +7 -0
- package/dist/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentTypeFactory.d.ts.map +1 -0
- package/dist/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.d.ts +31 -0
- package/dist/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.d.ts.map +1 -0
- package/dist/views/chat/input/fileAttachments/fileAttachments.d.ts +23 -0
- package/dist/views/chat/input/fileAttachments/fileAttachments.d.ts.map +1 -0
- package/dist/views/chat/input/fileAttachments/modal/cameraModal.d.ts +28 -0
- package/dist/views/chat/input/fileAttachments/modal/cameraModal.d.ts.map +1 -0
- package/dist/views/chat/input/fileAttachments/modal/modal.d.ts +27 -0
- package/dist/views/chat/input/fileAttachments/modal/modal.d.ts.map +1 -0
- package/dist/views/chat/input/fileAttachments/newFileName.d.ts +4 -0
- package/dist/views/chat/input/fileAttachments/newFileName.d.ts.map +1 -0
- package/dist/views/chat/input/input.d.ts +12 -0
- package/dist/views/chat/input/input.d.ts.map +1 -0
- package/dist/views/chat/input/textInput/focusUtils.d.ts +5 -0
- package/dist/views/chat/input/textInput/focusUtils.d.ts.map +1 -0
- package/dist/views/chat/input/textInput/inputLimit.d.ts +8 -0
- package/dist/views/chat/input/textInput/inputLimit.d.ts.map +1 -0
- package/dist/views/chat/input/textInput/pasteUtils.d.ts +4 -0
- package/dist/views/chat/input/textInput/pasteUtils.d.ts.map +1 -0
- package/dist/views/chat/input/textInput/textInput.d.ts +22 -0
- package/dist/views/chat/input/textInput/textInput.d.ts.map +1 -0
- package/dist/views/chat/introPanel/introPanel.d.ts +11 -0
- package/dist/views/chat/introPanel/introPanel.d.ts.map +1 -0
- package/dist/views/chat/messages/avatar.d.ts +9 -0
- package/dist/views/chat/messages/avatar.d.ts.map +1 -0
- package/dist/views/chat/messages/fileMessageUtils.d.ts +12 -0
- package/dist/views/chat/messages/fileMessageUtils.d.ts.map +1 -0
- package/dist/views/chat/messages/fileMessages.d.ts +11 -0
- package/dist/views/chat/messages/fileMessages.d.ts.map +1 -0
- package/dist/views/chat/messages/loadingMessageDotsStyle.d.ts +6 -0
- package/dist/views/chat/messages/loadingMessageDotsStyle.d.ts.map +1 -0
- package/dist/views/chat/messages/messageStyleUtils.d.ts +11 -0
- package/dist/views/chat/messages/messageStyleUtils.d.ts.map +1 -0
- package/dist/views/chat/messages/messages.d.ts +62 -0
- package/dist/views/chat/messages/messages.d.ts.map +1 -0
- package/dist/views/chat/messages/name.d.ts +9 -0
- package/dist/views/chat/messages/name.d.ts.map +1 -0
- package/dist/views/chat/messages/remarkable/remarkableConfig.d.ts +11 -0
- package/dist/views/chat/messages/remarkable/remarkableConfig.d.ts.map +1 -0
- package/dist/views/chat/messages/textToSpeech/textToSpeech.d.ts +14 -0
- package/dist/views/chat/messages/textToSpeech/textToSpeech.d.ts.map +1 -0
- package/dist/views/error/errorView.d.ts +4 -0
- package/dist/views/error/errorView.d.ts.map +1 -0
- package/dist/views/insertKey/insertKeyView.d.ts +18 -0
- package/dist/views/insertKey/insertKeyView.d.ts.map +1 -0
- package/dist/views/insertKey/visibilityIcon.d.ts +7 -0
- package/dist/views/insertKey/visibilityIcon.d.ts.map +1 -0
- package/dist/views/validateKeyProperty/validateKeyPropertyView.d.ts +7 -0
- package/dist/views/validateKeyProperty/validateKeyPropertyView.d.ts.map +1 -0
- package/package.json +70 -0
@@ -0,0 +1,9 @@
|
|
1
|
+
declare function getInvalidResponseMessage(result: object, messageType: string, isInterceptor: boolean, postInterceptor?: object): string;
|
2
|
+
export declare const ErrorMessages: {
|
3
|
+
INVALID_KEY: string;
|
4
|
+
CONNECTION_FAILED: string;
|
5
|
+
INVALID_RESPONSE: typeof getInvalidResponseMessage;
|
6
|
+
INVALID_STREAM_RESPONSE: string;
|
7
|
+
};
|
8
|
+
export {};
|
9
|
+
//# sourceMappingURL=errorMessages.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"errorMessages.d.ts","sourceRoot":"","sources":["../../../../src/utils/errorMessages/errorMessages.ts"],"names":[],"mappings":"AAQA,iBAAS,yBAAyB,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,eAAe,CAAC,EAAE,MAAM,UAYvH;AAED,eAAO,MAAM,aAAa;;;;;CASzB,CAAC"}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { MessageContent } from '../../types/messages';
|
2
|
+
import { DeepChat } from '../../deepChat';
|
3
|
+
export declare class FireEvents {
|
4
|
+
static onNewMessage(deepChat: DeepChat, message: MessageContent, isInitial: boolean): void;
|
5
|
+
static onRender(deepChat: DeepChat): void;
|
6
|
+
}
|
7
|
+
//# sourceMappingURL=fireEvents.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"fireEvents.d.ts","sourceRoot":"","sources":["../../../../src/utils/events/fireEvents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAC,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AAExC,qBAAa,UAAU;WACP,YAAY,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,OAAO;WAM5E,QAAQ,CAAC,QAAQ,EAAE,QAAQ;CAI1C"}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { FILE_TYPES } from '../../types/fileTypes';
|
2
|
+
type ServiceFileTypes = {
|
3
|
+
[key in FILE_TYPES]: {
|
4
|
+
id: string;
|
5
|
+
svgString: string;
|
6
|
+
dropupText: string;
|
7
|
+
};
|
8
|
+
};
|
9
|
+
export declare const FILE_TYPE_BUTTON_ICONS: ServiceFileTypes;
|
10
|
+
export {};
|
11
|
+
//# sourceMappingURL=fileTypeButtonIcons.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"fileTypeButtonIcons.d.ts","sourceRoot":"","sources":["../../../../src/utils/fileTypes/fileTypeButtonIcons.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,UAAU,EAAC,MAAM,uBAAuB,CAAC;AAEjD,KAAK,gBAAgB,GAAG;KACrB,GAAG,IAAI,UAAU,GAAG;QACnB,EAAE,EAAE,MAAM,CAAC;QACX,SAAS,EAAE,MAAM,CAAC;QAClB,UAAU,EAAE,MAAM,CAAC;KACpB;CACF,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,gBAKpC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"svgIconUtils.d.ts","sourceRoot":"","sources":["../../../../src/utils/svg/svgIconUtils.ts"],"names":[],"mappings":"AAAA,qBAAa,YAAY;WACT,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,kBAAkB;CAKtE"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"googleFont.d.ts","sourceRoot":"","sources":["../../../../src/utils/webComponent/googleFont.ts"],"names":[],"mappings":"AAAA,qBAAa,UAAU;IACrB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAA8E;WAEhG,sBAAsB;CAYrC"}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { AttributeTypeConverter } from '../../types/typeConverters';
|
2
|
+
import { GenericObject } from '../../types/object';
|
3
|
+
export declare class InternalHTML extends HTMLElement {
|
4
|
+
_waitingToRender_: boolean;
|
5
|
+
_propUpdated_: boolean;
|
6
|
+
static _attributes_: GenericObject<AttributeTypeConverter>;
|
7
|
+
static _attributeToProperty_: GenericObject<string>;
|
8
|
+
static get observedAttributes(): string[];
|
9
|
+
constructor();
|
10
|
+
private constructPropertyAccessors;
|
11
|
+
attributeChangedCallback(attributeName: string, oldValue: string, newValue: string): void;
|
12
|
+
onRender(): void;
|
13
|
+
}
|
14
|
+
//# sourceMappingURL=internalHTML.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"internalHTML.d.ts","sourceRoot":"","sources":["../../../../src/utils/webComponent/internalHTML.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,sBAAsB,EAAC,MAAM,4BAA4B,CAAC;AAElE,OAAO,EAAC,aAAa,EAAC,MAAM,oBAAoB,CAAC;AAEjD,qBAAa,YAAa,SAAQ,WAAW;IAC3C,iBAAiB,UAAS;IAC1B,aAAa,UAAS;IACtB,MAAM,CAAC,YAAY,EAAE,aAAa,CAAC,sBAAsB,CAAC,CAAM;IAChE,MAAM,CAAC,qBAAqB,EAAE,aAAa,CAAC,MAAM,CAAC,CAAM;IAEzD,MAAM,KAAK,kBAAkB,aAE5B;;IAWD,OAAO,CAAC,0BAA0B;IAelC,wBAAwB,CAAC,aAAa,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAOlF,QAAQ;CACT"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"webComponentStyleUtils.d.ts","sourceRoot":"","sources":["../../../../src/utils/webComponent/webComponentStyleUtils.ts"],"names":[],"mappings":"AAAA,qBAAa,sBAAsB;WACnB,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,GAAG,IAAI;IAUhE,OAAO,CAAC,MAAM,CAAC,eAAe;IAM9B,OAAO,CAAC,MAAM,CAAC,eAAe;CAK/B"}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { ServiceIO } from '../../services/serviceIO';
|
2
|
+
import { DeepChat } from '../../deepChat';
|
3
|
+
export declare class ChatView {
|
4
|
+
private static createElements;
|
5
|
+
static render(deepChat: DeepChat, containerRef: HTMLElement, serviceIO: ServiceIO, panel?: HTMLElement): void;
|
6
|
+
}
|
7
|
+
//# sourceMappingURL=chatView.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"chatView.d.ts","sourceRoot":"","sources":["../../../../src/views/chat/chatView.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,SAAS,EAAC,MAAM,0BAA0B,CAAC;AAEnD,OAAO,EAAC,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AAGxC,qBAAa,QAAQ;IACnB,OAAO,CAAC,MAAM,CAAC,cAAc;WAUf,MAAM,CAAC,QAAQ,EAAE,QAAQ,EAAE,YAAY,EAAE,WAAW,EAAE,SAAS,EAAE,SAAS,EAAE,KAAK,CAAC,EAAE,WAAW;CAI9G"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { ButtonPosition } from '../../../../types/button';
|
2
|
+
export type ButtonContainersT = readonly [HTMLDivElement, HTMLDivElement, HTMLDivElement, HTMLDivElement];
|
3
|
+
export declare class ButtonContainers {
|
4
|
+
static create(): ButtonContainersT;
|
5
|
+
static add(inputContainer: HTMLElement, buttonContainers: ButtonContainersT): void;
|
6
|
+
private static getContainerIndex;
|
7
|
+
static addButton(buttonContainers: ButtonContainersT, elementRef: HTMLElement, position: ButtonPosition): void;
|
8
|
+
}
|
9
|
+
//# sourceMappingURL=buttonContainers.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"buttonContainers.d.ts","sourceRoot":"","sources":["../../../../../../src/views/chat/input/buttonContainers/buttonContainers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,0BAA0B,CAAC;AAGxD,MAAM,MAAM,iBAAiB,GAAG,SAAS,CAAC,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,CAAC,CAAC;AAE1G,qBAAa,gBAAgB;WACb,MAAM;WAUN,GAAG,CAAC,cAAc,EAAE,WAAW,EAAE,gBAAgB,EAAE,iBAAiB;IAOlF,OAAO,CAAC,MAAM,CAAC,iBAAiB;WAOlB,SAAS,CAAC,gBAAgB,EAAE,iBAAiB,EAAE,UAAU,EAAE,WAAW,EAAE,QAAQ,EAAE,cAAc;CAO/G"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { StatefulStyles } from '../../../../types/styles';
|
2
|
+
import { ButtonStyles } from '../../../../types/button';
|
3
|
+
export declare class ButtonCSS {
|
4
|
+
static unsetAllCSS(button: HTMLElement, styles: ButtonStyles): void;
|
5
|
+
static unsetActionCSS(button: HTMLElement, styles: ButtonStyles): void;
|
6
|
+
static setElementsCSS(button: HTMLElement, styles: ButtonStyles, style: keyof StatefulStyles): void;
|
7
|
+
static setElementCssUpToState(button: HTMLElement, styles: ButtonStyles, style: keyof StatefulStyles): void;
|
8
|
+
}
|
9
|
+
//# sourceMappingURL=buttonCSS.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"buttonCSS.d.ts","sourceRoot":"","sources":["../../../../../../src/views/chat/input/buttons/buttonCSS.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,cAAc,EAAC,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAC,YAAY,EAAC,MAAM,0BAA0B,CAAC;AAEtD,qBAAa,SAAS;WACN,WAAW,CAAC,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,YAAY;WAMrD,cAAc,CAAC,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,YAAY;WAMxD,cAAc,CAAC,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,cAAc;WAMrF,sBAAsB,CAAC,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,cAAc;CAO5G"}
|
@@ -0,0 +1,16 @@
|
|
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
|
+
import { InputButton } from '../inputButton';
|
6
|
+
type Styles = DefinedButtonStateStyles<GenericInputButtonStyles>;
|
7
|
+
export declare class CameraButton extends InputButton<Styles> {
|
8
|
+
constructor(containerElement: HTMLElement, fileAttachmentsType: FileAttachmentsType, fileService: ServiceIO['camera']);
|
9
|
+
private createInnerElements;
|
10
|
+
private createInnerElement;
|
11
|
+
private static createButtonElement;
|
12
|
+
private static createSVGIconElement;
|
13
|
+
private addClickEvent;
|
14
|
+
}
|
15
|
+
export {};
|
16
|
+
//# sourceMappingURL=cameraButton.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"cameraButton.d.ts","sourceRoot":"","sources":["../../../../../../../src/views/chat/input/buttons/camera/cameraButton.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAC,MAAM,+DAA+D,CAAC;AAClG,OAAO,EAAC,wBAAwB,EAAC,MAAM,yCAAyC,CAAC;AACjF,OAAO,EAAC,wBAAwB,EAAC,MAAM,qCAAqC,CAAC;AAK7E,OAAO,EAAC,SAAS,EAAC,MAAM,mCAAmC,CAAC;AAG5D,OAAO,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAE3C,KAAK,MAAM,GAAG,wBAAwB,CAAC,wBAAwB,CAAC,CAAC;AAEjE,qBAAa,YAAa,SAAQ,WAAW,CAAC,MAAM,CAAC;gBACvC,gBAAgB,EAAE,WAAW,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,WAAW,EAAE,SAAS,CAAC,QAAQ,CAAC;IAWrH,OAAO,CAAC,mBAAmB;IAM3B,OAAO,CAAC,kBAAkB;IAI1B,OAAO,CAAC,MAAM,CAAC,mBAAmB;IAMlC,OAAO,CAAC,MAAM,CAAC,oBAAoB;IAOnC,OAAO,CAAC,aAAa;CAMtB"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { ButtonInnerElements, ButtonStateStyles } from '../../../../types/buttonInternal';
|
2
|
+
export declare class CustomButtonInnerElements {
|
3
|
+
private static createTextElement;
|
4
|
+
private static createElement;
|
5
|
+
private static createCustomElement;
|
6
|
+
private static processElement;
|
7
|
+
static createSpecificStateElement<T>(parentEl: HTMLElement, state: keyof T, customStyles?: ButtonStateStyles<T>): HTMLDivElement | SVGGraphicsElement | undefined;
|
8
|
+
static create<T>(parentEl: HTMLElement, states: (keyof T)[], styles?: ButtonStateStyles<T>): ButtonInnerElements<T>;
|
9
|
+
}
|
10
|
+
//# sourceMappingURL=customButtonInnerElements.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"customButtonInnerElements.d.ts","sourceRoot":"","sources":["../../../../../../src/views/chat/input/buttons/customButtonInnerElements.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAE,iBAAiB,EAAC,MAAM,kCAAkC,CAAC;AAGxF,qBAAa,yBAAyB;IACpC,OAAO,CAAC,MAAM,CAAC,iBAAiB;IAOhC,OAAO,CAAC,MAAM,CAAC,aAAa;IAI5B,OAAO,CAAC,MAAM,CAAC,mBAAmB;IAOlC,OAAO,CAAC,MAAM,CAAC,cAAc;WAQf,0BAA0B,CAAC,CAAC,EACtC,QAAQ,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,CAAC,EAAE,YAAY,CAAC,EAAE,iBAAiB,CAAC,CAAC,CAAC;WAShE,MAAM,CAAC,CAAC,EAClB,QAAQ,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC,MAAM,CAAC,CAAC,EAAE,EAAE,MAAM,CAAC,EAAE,iBAAiB,CAAC,CAAC,CAAC,GAAG,mBAAmB,CAAC,CAAC,CAAC;CAgBvG"}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { ButtonPosition as ButtonPositionT } from '../../../../types/button';
|
2
|
+
import { StatefulStyles } from '../../../../types/styles';
|
3
|
+
import { ButtonStyles } from '../../../../types/button';
|
4
|
+
interface MouseState {
|
5
|
+
state: keyof StatefulStyles;
|
6
|
+
}
|
7
|
+
export declare class InputButton<T extends {
|
8
|
+
[key: string]: ButtonStyles;
|
9
|
+
} = {}> {
|
10
|
+
readonly elementRef: HTMLElement;
|
11
|
+
protected readonly _mouseState: MouseState;
|
12
|
+
protected readonly _customStyles?: T;
|
13
|
+
readonly position?: ButtonPositionT;
|
14
|
+
readonly dropupText?: string;
|
15
|
+
constructor(buttonElement: HTMLElement, position?: ButtonPositionT, customStyles?: T, dropupText?: string);
|
16
|
+
private buttonMouseLeave;
|
17
|
+
private buttonMouseEnter;
|
18
|
+
private buttonMouseUp;
|
19
|
+
private buttonMouseDown;
|
20
|
+
private setEvents;
|
21
|
+
unsetCustomStateStyles(unsetTypes: (keyof T)[]): void;
|
22
|
+
reapplyStateStyle(setType: keyof T, unsetTypes?: (keyof T)[]): void;
|
23
|
+
}
|
24
|
+
export {};
|
25
|
+
//# sourceMappingURL=inputButton.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"inputButton.d.ts","sourceRoot":"","sources":["../../../../../../src/views/chat/input/buttons/inputButton.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,IAAI,eAAe,EAAC,MAAM,0BAA0B,CAAC;AAC3E,OAAO,EAAC,cAAc,EAAC,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAC,YAAY,EAAC,MAAM,0BAA0B,CAAC;AAGtD,UAAU,UAAU;IAClB,KAAK,EAAE,MAAM,cAAc,CAAC;CAC7B;AAED,qBAAa,WAAW,CAAC,CAAC,SAAS;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY,CAAA;CAAC,GAAG,EAAE;IACnE,QAAQ,CAAC,UAAU,EAAE,WAAW,CAAC;IACjC,SAAS,CAAC,QAAQ,CAAC,WAAW,EAAE,UAAU,CAAsB;IAChE,SAAS,CAAC,QAAQ,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC;IACrC,QAAQ,CAAC,QAAQ,CAAC,EAAE,eAAe,CAAC;IACpC,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;gBAEjB,aAAa,EAAE,WAAW,EAAE,QAAQ,CAAC,EAAE,eAAe,EAAE,YAAY,CAAC,EAAE,CAAC,EAAE,UAAU,CAAC,EAAE,MAAM;IAOzG,OAAO,CAAC,gBAAgB;IAQxB,OAAO,CAAC,gBAAgB;IAKxB,OAAO,CAAC,aAAa;IAKrB,OAAO,CAAC,eAAe;IAMvB,OAAO,CAAC,SAAS;IAOV,sBAAsB,CAAC,UAAU,EAAE,CAAC,MAAM,CAAC,CAAC,EAAE;IAS9C,iBAAiB,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,UAAU,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,EAAE;CAOpE"}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { DefinedButtonStateStyles } from '../../../../../types/buttonInternal';
|
2
|
+
import { MicrophoneStyles } from '../../../../../types/microphone';
|
3
|
+
import { ButtonStyles } from '../../../../../types/button';
|
4
|
+
import { InputButton } from '../inputButton';
|
5
|
+
type AllMicrophoneStyles = MicrophoneStyles & {
|
6
|
+
commandMode?: ButtonStyles;
|
7
|
+
};
|
8
|
+
type Styles = DefinedButtonStateStyles<AllMicrophoneStyles>;
|
9
|
+
export declare class MicrophoneButton extends InputButton<Styles> {
|
10
|
+
private readonly _innerElements;
|
11
|
+
isActive: boolean;
|
12
|
+
constructor(styles?: AllMicrophoneStyles);
|
13
|
+
private createInnerElements;
|
14
|
+
private createInnerElement;
|
15
|
+
private static createMicrophoneElement;
|
16
|
+
private static createSVGIconElement;
|
17
|
+
changeToActive(): void;
|
18
|
+
changeToDefault(): void;
|
19
|
+
changeToCommandMode(): void;
|
20
|
+
changeToUnsupported(): void;
|
21
|
+
private toggleIconFilter;
|
22
|
+
}
|
23
|
+
export {};
|
24
|
+
//# sourceMappingURL=microphoneButton.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"microphoneButton.d.ts","sourceRoot":"","sources":["../../../../../../../src/views/chat/input/buttons/microphone/microphoneButton.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,wBAAwB,EAAC,MAAM,qCAAqC,CAAC;AAIzG,OAAO,EAAC,gBAAgB,EAAC,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAC,YAAY,EAAC,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAI3C,KAAK,mBAAmB,GAAG,gBAAgB,GAAG;IAAC,WAAW,CAAC,EAAE,YAAY,CAAA;CAAC,CAAC;AAE3E,KAAK,MAAM,GAAG,wBAAwB,CAAC,mBAAmB,CAAC,CAAC;AAE5D,qBAAa,gBAAiB,SAAQ,WAAW,CAAC,MAAM,CAAC;IACvD,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAqC;IACpE,QAAQ,UAAS;gBAEL,MAAM,CAAC,EAAE,mBAAmB;IAOxC,OAAO,CAAC,mBAAmB;IAW3B,OAAO,CAAC,kBAAkB;IAK1B,OAAO,CAAC,MAAM,CAAC,uBAAuB;IAOtC,OAAO,CAAC,MAAM,CAAC,oBAAoB;IAM5B,cAAc;IAOd,eAAe;IAOf,mBAAmB;IAMnB,mBAAmB;IAM1B,OAAO,CAAC,gBAAgB;CAmBzB"}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { AudioFileAttachmentType } from '../../fileAttachments/fileAttachmentTypes/audioFileAttachmentType';
|
2
|
+
import { MicrophoneFilesServiceConfig } from '../../../../../types/fileServiceConfigs';
|
3
|
+
import { MicrophoneButton } from './microphoneButton';
|
4
|
+
export declare class RecordAudio extends MicrophoneButton {
|
5
|
+
private _mediaRecorder?;
|
6
|
+
private _mediaStream?;
|
7
|
+
private _waitingForBrowserApproval;
|
8
|
+
private readonly _audioType;
|
9
|
+
private readonly _extension;
|
10
|
+
private readonly _maxDurationSeconds?;
|
11
|
+
private readonly _newFilePrefix?;
|
12
|
+
constructor(audioType: AudioFileAttachmentType, recordAudioConfig: MicrophoneFilesServiceConfig);
|
13
|
+
private buttonClick;
|
14
|
+
private stop;
|
15
|
+
private record;
|
16
|
+
private createFile;
|
17
|
+
}
|
18
|
+
//# sourceMappingURL=recordAudio.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"recordAudio.d.ts","sourceRoot":"","sources":["../../../../../../../src/views/chat/input/buttons/microphone/recordAudio.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,uBAAuB,EAAC,MAAM,mEAAmE,CAAC;AAC1G,OAAO,EAAC,4BAA4B,EAAC,MAAM,yCAAyC,CAAC;AAGrF,OAAO,EAAC,gBAAgB,EAAC,MAAM,oBAAoB,CAAC;AAEpD,qBAAa,WAAY,SAAQ,gBAAgB;IAC/C,OAAO,CAAC,cAAc,CAAC,CAAgB;IACvC,OAAO,CAAC,YAAY,CAAC,CAAc;IACnC,OAAO,CAAC,0BAA0B,CAAS;IAC3C,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA0B;IACrD,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAc;IACzC,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAC,CAAS;IAC9C,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAS;gBAE7B,SAAS,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,4BAA4B;IAS/F,OAAO,CAAC,WAAW;IAUnB,OAAO,CAAC,IAAI;IAWZ,OAAO,CAAC,MAAM;IAuBd,OAAO,CAAC,UAAU;CAUnB"}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { TextInputEl } from '../../textInput/textInput';
|
2
|
+
import { Messages } from '../../../messages/messages';
|
3
|
+
import { MicrophoneButton } from './microphoneButton';
|
4
|
+
import { DeepChat } from '../../../../../deepChat';
|
5
|
+
export type AddErrorMessage = Messages['addNewErrorMessage'];
|
6
|
+
export declare class SpeechToText extends MicrophoneButton {
|
7
|
+
private readonly _addErrorMessage;
|
8
|
+
constructor(deepChat: DeepChat, textInput: TextInputEl, addErrorMessage: AddErrorMessage);
|
9
|
+
private static processConfiguration;
|
10
|
+
private static getServiceName;
|
11
|
+
private buttonClick;
|
12
|
+
private onCommandModeTrigger;
|
13
|
+
private onError;
|
14
|
+
}
|
15
|
+
//# sourceMappingURL=speechToText.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"speechToText.d.ts","sourceRoot":"","sources":["../../../../../../../src/views/chat/input/buttons/microphone/speechToText.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,WAAW,EAAC,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAC,QAAQ,EAAC,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAC,gBAAgB,EAAC,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAC,QAAQ,EAAC,MAAM,yBAAyB,CAAC;AAKjD,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC,oBAAoB,CAAC,CAAC;AAE7D,qBAAa,YAAa,SAAQ,gBAAgB;IAChD,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAkB;gBAEvC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,eAAe,EAAE,eAAe;IAaxF,OAAO,CAAC,MAAM,CAAC,oBAAoB;IA6BnC,OAAO,CAAC,MAAM,CAAC,cAAc;IAU7B,OAAO,CAAC,WAAW;IAanB,OAAO,CAAC,oBAAoB;IAQ5B,OAAO,CAAC,OAAO;CAGhB"}
|
@@ -0,0 +1,27 @@
|
|
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
|
+
import { InputButton } from '../inputButton';
|
7
|
+
export type Positions = {
|
8
|
+
[key in ButtonPosition]: ButtonProps[];
|
9
|
+
};
|
10
|
+
type ButtonProps = {
|
11
|
+
button: InputButton;
|
12
|
+
buttonType?: BUTTON_TYPES;
|
13
|
+
fileType?: FileAttachmentsType;
|
14
|
+
};
|
15
|
+
type Buttons = {
|
16
|
+
[key in BUTTON_TYPES]?: ButtonProps;
|
17
|
+
};
|
18
|
+
export declare class InputButtonPositions {
|
19
|
+
private static addToDropup;
|
20
|
+
private static addToSideContainer;
|
21
|
+
private static setPosition;
|
22
|
+
private static createPositionsObj;
|
23
|
+
private static generatePositions;
|
24
|
+
static addButtons(buttonContainers: ButtonContainersT, buttons: Buttons, container: HTMLElement, dropupStyles?: DropupStyles): Positions;
|
25
|
+
}
|
26
|
+
export {};
|
27
|
+
//# sourceMappingURL=inputButtonPositions.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"inputButtonPositions.d.ts","sourceRoot":"","sources":["../../../../../../../src/views/chat/input/buttons/styleAdjustments/inputButtonPositions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAC,MAAM,+DAA+D,CAAC;AAClG,OAAO,EAAmB,iBAAiB,EAAC,MAAM,yCAAyC,CAAC;AAE5F,OAAO,EAAC,YAAY,EAAC,MAAM,mCAAmC,CAAC;AAC/D,OAAO,EAAC,YAAY,EAAC,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAC,cAAc,EAAC,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAG3C,MAAM,MAAM,SAAS,GAAG;KAAE,GAAG,IAAI,cAAc,GAAG,WAAW,EAAE;CAAC,CAAC;AAEjE,KAAK,WAAW,GAAG;IAAC,MAAM,EAAE,WAAW,CAAC;IAAC,UAAU,CAAC,EAAE,YAAY,CAAC;IAAC,QAAQ,CAAC,EAAE,mBAAmB,CAAA;CAAC,CAAC;AAEpG,KAAK,OAAO,GAAG;KACZ,GAAG,IAAI,YAAY,CAAC,CAAC,EAAE,WAAW;CACpC,CAAC;AAEF,qBAAa,oBAAoB;IAE/B,OAAO,CAAC,MAAM,CAAC,WAAW;IAiB1B,OAAO,CAAC,MAAM,CAAC,kBAAkB;IAUjC,OAAO,CAAC,MAAM,CAAC,WAAW;IAM1B,OAAO,CAAC,MAAM,CAAC,kBAAkB;IAWjC,OAAO,CAAC,MAAM,CAAC,iBAAiB;WAgDlB,UAAU,CAAC,gBAAgB,EAAE,iBAAiB,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,WAAW,EAClG,YAAY,CAAC,EAAE,YAAY;CAQhC"}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { ButtonContainersT } from '../../buttonContainers/buttonContainers';
|
2
|
+
import { Positions } from './inputButtonPositions';
|
3
|
+
export declare class InputButtonStyleAdjustments {
|
4
|
+
private static readonly INPUT_OUTSIDE_LEFT_ADJUSTMENT_CLASS;
|
5
|
+
private static readonly INPUT_OUTSIDE_RIGHT_ADJUSTMENT_CLASS;
|
6
|
+
private static readonly INPUT_OUTSIDE_LEFT_SMALL_ADJUSTMENT_CLASS;
|
7
|
+
private static readonly INPUT_OUTSIDE_RIGHT_SMALL_ADJUSTMENT_CLASS;
|
8
|
+
private static adjustInputPadding;
|
9
|
+
private static adjustForOutsideButton;
|
10
|
+
private static adjustOutsideSubmit;
|
11
|
+
static set(textInputEl: HTMLElement, containers: ButtonContainersT, fileAtt: HTMLElement, positions: Positions): void;
|
12
|
+
}
|
13
|
+
//# sourceMappingURL=inputButtonStyleAdjustments.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"inputButtonStyleAdjustments.d.ts","sourceRoot":"","sources":["../../../../../../../src/views/chat/input/buttons/styleAdjustments/inputButtonStyleAdjustments.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,iBAAiB,EAAC,MAAM,yCAAyC,CAAC;AAC1E,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAEjD,qBAAa,2BAA2B;IACtC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,mCAAmC,CAA0C;IACrG,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,oCAAoC,CAA2C;IACvG,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,yCAAyC,CAAgD;IACjH,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,0CAA0C,CAAiD;IAEnH,OAAO,CAAC,MAAM,CAAC,kBAAkB;IASjC,OAAO,CAAC,MAAM,CAAC,sBAAsB;IAYrC,OAAO,CAAC,MAAM,CAAC,mBAAmB;WAgBpB,GAAG,CAAC,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,iBAAiB,EAAE,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,SAAS;CAKtH"}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import { DefinedButtonStateStyles } from '../../../../../types/buttonInternal';
|
2
|
+
import { FileAttachments } from '../../fileAttachments/fileAttachments';
|
3
|
+
import { SubmitButtonStyles } from '../../../../../types/submitButton';
|
4
|
+
import { ServiceIO } from '../../../../../services/serviceIO';
|
5
|
+
import { Messages } from '../../../messages/messages';
|
6
|
+
import { DeepChat } from '../../../../../deepChat';
|
7
|
+
import { InputButton } from '../inputButton';
|
8
|
+
type Styles = DefinedButtonStateStyles<SubmitButtonStyles>;
|
9
|
+
export declare class SubmitButton extends InputButton<Styles> {
|
10
|
+
private _isRequestInProgress;
|
11
|
+
private _isLoadingActive;
|
12
|
+
private readonly _serviceIO;
|
13
|
+
private readonly _messages;
|
14
|
+
private readonly _inputElementRef;
|
15
|
+
private readonly _abortStream;
|
16
|
+
private readonly _innerElements;
|
17
|
+
private readonly _fileAttachments;
|
18
|
+
private _isSVGLoadingIconOverriden;
|
19
|
+
constructor(deepChat: DeepChat, inputElementRef: HTMLElement, messages: Messages, serviceIO: ServiceIO, fileAttachments: FileAttachments);
|
20
|
+
private createInnerElements;
|
21
|
+
private static createButtonContainerElement;
|
22
|
+
private static createSubmitIconElement;
|
23
|
+
private static createLoadingIconElement;
|
24
|
+
private static createStopIconElement;
|
25
|
+
private attemptOverwriteLoadingStyle;
|
26
|
+
private assignHandlers;
|
27
|
+
submitFromInput(): void;
|
28
|
+
submit(programmatic: boolean, userText: string): Promise<void>;
|
29
|
+
private stopStream;
|
30
|
+
private changeToStopIcon;
|
31
|
+
private changeToLoadingIcon;
|
32
|
+
private changeToSubmitIcon;
|
33
|
+
}
|
34
|
+
export {};
|
35
|
+
//# sourceMappingURL=submitButton.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"submitButton.d.ts","sourceRoot":"","sources":["../../../../../../../src/views/chat/input/buttons/submit/submitButton.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,wBAAwB,EAAC,MAAM,qCAAqC,CAAC;AAEzG,OAAO,EAAC,eAAe,EAAC,MAAM,uCAAuC,CAAC;AACtE,OAAO,EAAC,kBAAkB,EAAC,MAAM,mCAAmC,CAAC;AAIrE,OAAO,EAAC,SAAS,EAAC,MAAM,mCAAmC,CAAC;AAE5D,OAAO,EAAC,QAAQ,EAAC,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAC,QAAQ,EAAC,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAE3C,KAAK,MAAM,GAAG,wBAAwB,CAAC,kBAAkB,CAAC,CAAC;AAE3D,qBAAa,YAAa,SAAQ,WAAW,CAAC,MAAM,CAAC;IACnD,OAAO,CAAC,oBAAoB,CAAS;IACrC,OAAO,CAAC,gBAAgB,CAAS;IACjC,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,cAAc,CAAqC;IACpE,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAkB;IACnD,OAAO,CAAC,0BAA0B,CAAS;gBAG/B,QAAQ,EAAE,QAAQ,EAAE,eAAe,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAClG,eAAe,EAAE,eAAe;IAcpC,OAAO,CAAC,mBAAmB;IAU3B,OAAO,CAAC,MAAM,CAAC,4BAA4B;IAM3C,OAAO,CAAC,MAAM,CAAC,uBAAuB;IAMtC,OAAO,CAAC,MAAM,CAAC,wBAAwB;IAMvC,OAAO,CAAC,MAAM,CAAC,qBAAqB;IAOpC,OAAO,CAAC,4BAA4B;IAepC,OAAO,CAAC,cAAc;IAef,eAAe;IAWT,MAAM,CAAC,YAAY,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM;IAyB3D,OAAO,CAAC,UAAU;IAKlB,OAAO,CAAC,gBAAgB;IAQxB,OAAO,CAAC,mBAAmB;IAU3B,OAAO,CAAC,kBAAkB;CAQ3B"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"submitButtonStateStyle.d.ts","sourceRoot":"","sources":["../../../../../../../src/views/chat/input/buttons/submit/submitButtonStateStyle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAE5C,qBAAa,sBAAsB;WACnB,WAAW,CAAC,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,OAAO;CAQ1E"}
|
@@ -0,0 +1,23 @@
|
|
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
|
+
import { InputButton } from '../inputButton';
|
6
|
+
type Styles = DefinedButtonStateStyles<GenericInputButtonStyles>;
|
7
|
+
export declare class UploadFileButton extends InputButton<Styles> {
|
8
|
+
private readonly _inputElement;
|
9
|
+
private readonly _fileAttachmentsType;
|
10
|
+
private _openModalOnce?;
|
11
|
+
constructor(containerElement: HTMLElement, fileAttachmentsType: FileAttachmentsType, fileService: FileServiceIO, iconId: string, iconSVGString: string, dropupText?: string);
|
12
|
+
private createInnerElements;
|
13
|
+
private triggerImportPrompt;
|
14
|
+
private import;
|
15
|
+
private static createInputElement;
|
16
|
+
private createInnerElement;
|
17
|
+
private static createButtonElement;
|
18
|
+
private static createSVGIconElement;
|
19
|
+
private addClickEvent;
|
20
|
+
private click;
|
21
|
+
}
|
22
|
+
export {};
|
23
|
+
//# sourceMappingURL=uploadFileButton.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"uploadFileButton.d.ts","sourceRoot":"","sources":["../../../../../../../src/views/chat/input/buttons/uploadFile/uploadFileButton.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAC,MAAM,+DAA+D,CAAC;AAClG,OAAO,EAAC,wBAAwB,EAAC,MAAM,yCAAyC,CAAC;AACjF,OAAO,EAAC,wBAAwB,EAAC,MAAM,qCAAqC,CAAC;AAI7E,OAAO,EAAC,aAAa,EAAC,MAAM,mCAAmC,CAAC;AAEhE,OAAO,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAE3C,KAAK,MAAM,GAAG,wBAAwB,CAAC,wBAAwB,CAAC,CAAC;AAEjE,qBAAa,gBAAiB,SAAQ,WAAW,CAAC,MAAM,CAAC;IACvD,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAmB;IACjD,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAsB;IAC3D,OAAO,CAAC,cAAc,CAAC,CAAsB;gBAGjC,gBAAgB,EAAE,WAAW,EAAE,mBAAmB,EAAE,mBAAmB,EAC/E,WAAW,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM;IAY1F,OAAO,CAAC,mBAAmB;IAO3B,OAAO,CAAC,mBAAmB;IAK3B,OAAO,CAAC,MAAM;IAKd,OAAO,CAAC,MAAM,CAAC,kBAAkB;IASjC,OAAO,CAAC,kBAAkB;IAI1B,OAAO,CAAC,MAAM,CAAC,mBAAmB;IAMlC,OAAO,CAAC,MAAM,CAAC,oBAAoB;IAMnC,OAAO,CAAC,aAAa;IAMrB,OAAO,CAAC,KAAK;CAQd"}
|
@@ -0,0 +1,22 @@
|
|
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
|
+
import { InputButton } from '../buttons/inputButton';
|
6
|
+
type Styles = DefinedButtonStateStyles<GenericInputButtonStyles>;
|
7
|
+
export declare class Dropup extends InputButton<Styles> {
|
8
|
+
private readonly _menu;
|
9
|
+
readonly buttonContainer: HTMLElement;
|
10
|
+
constructor(containerElement: HTMLElement, styles?: DropupStyles);
|
11
|
+
private static createButtonElement;
|
12
|
+
private createInnerElements;
|
13
|
+
private createInnerElement;
|
14
|
+
private static createSVGIconElement;
|
15
|
+
private addClickEvent;
|
16
|
+
private static createButtonContainer;
|
17
|
+
addItem(buttonProps: InputButton): void;
|
18
|
+
private addContainerEvents;
|
19
|
+
static getPosition(positions: Positions, dropupStyles?: DropupStyles): import("../../../../types/button").ButtonPosition;
|
20
|
+
}
|
21
|
+
export {};
|
22
|
+
//# sourceMappingURL=dropup.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"dropup.d.ts","sourceRoot":"","sources":["../../../../../../src/views/chat/input/dropup/dropup.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,wBAAwB,EAAC,MAAM,sCAAsC,CAAC;AAC9E,OAAO,EAAC,SAAS,EAAC,MAAM,kDAAkD,CAAC;AAC3E,OAAO,EAAC,wBAAwB,EAAC,MAAM,kCAAkC,CAAC;AAE1E,OAAO,EAAC,YAAY,EAAC,MAAM,gCAAgC,CAAC;AAE5D,OAAO,EAAC,WAAW,EAAC,MAAM,wBAAwB,CAAC;AAGnD,KAAK,MAAM,GAAG,wBAAwB,CAAC,wBAAwB,CAAC,CAAC;AAEjE,qBAAa,MAAO,SAAQ,WAAW,CAAC,MAAM,CAAC;IAC7C,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAa;IACnC,QAAQ,CAAC,eAAe,EAAE,WAAW,CAAC;gBAE1B,gBAAgB,EAAE,WAAW,EAAE,MAAM,CAAC,EAAE,YAAY;IAchE,OAAO,CAAC,MAAM,CAAC,mBAAmB;IAMlC,OAAO,CAAC,mBAAmB;IAM3B,OAAO,CAAC,kBAAkB;IAI1B,OAAO,CAAC,MAAM,CAAC,oBAAoB;IAMnC,OAAO,CAAC,aAAa;IAIrB,OAAO,CAAC,MAAM,CAAC,qBAAqB;IAMpC,OAAO,CAAC,WAAW,EAAE,WAAW;IAIhC,OAAO,CAAC,kBAAkB;IAM1B,MAAM,CAAC,WAAW,CAAC,SAAS,EAAE,SAAS,EAAE,YAAY,CAAC,EAAE,YAAY;CAOrE"}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { DropupMenuStyles } from '../../../../types/dropupStyles';
|
2
|
+
import { InputButton } from '../buttons/inputButton';
|
3
|
+
import { DropupMenu } from './dropupMenu';
|
4
|
+
export declare class DropupItem {
|
5
|
+
private static addItemEvents;
|
6
|
+
private static createItemText;
|
7
|
+
private static createItemIcon;
|
8
|
+
private static populateItem;
|
9
|
+
static createItem(menu: DropupMenu, inputButton: InputButton, styles?: DropupMenuStyles): HTMLDivElement;
|
10
|
+
}
|
11
|
+
//# sourceMappingURL=dropupItem.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"dropupItem.d.ts","sourceRoot":"","sources":["../../../../../../src/views/chat/input/dropup/dropupItem.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,gBAAgB,EAAC,MAAM,gCAAgC,CAAC;AAEhE,OAAO,EAAC,WAAW,EAAC,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AAExC,qBAAa,UAAU;IACrB,OAAO,CAAC,MAAM,CAAC,aAAa;IAa5B,OAAO,CAAC,MAAM,CAAC,cAAc;IAQ7B,OAAO,CAAC,MAAM,CAAC,cAAc;IAQ7B,OAAO,CAAC,MAAM,CAAC,YAAY;WAWb,UAAU,CAAC,IAAI,EAAE,UAAU,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,CAAC,EAAE,gBAAgB;CAW/F"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"dropupItemNavigation.d.ts","sourceRoot":"","sources":["../../../../../../src/views/chat/input/dropup/dropupItemNavigation.ts"],"names":[],"mappings":"AAAA,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,MAAM,CAAC,mBAAmB;WAOpB,gBAAgB,CAAC,WAAW,EAAE,WAAW,EACnD,aAAa,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,UAAQ,GAAG,IAAI;CAY3E"}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { DropupMenuStyles } from '../../../../types/dropupStyles';
|
2
|
+
import { InputButton } from '../buttons/inputButton';
|
3
|
+
export declare class DropupMenu {
|
4
|
+
readonly elementRef: HTMLElement;
|
5
|
+
private _isOpen;
|
6
|
+
highlightedItem?: HTMLElement;
|
7
|
+
private readonly _styles?;
|
8
|
+
constructor(containerElement: HTMLElement, styles?: DropupMenuStyles);
|
9
|
+
private static createElement;
|
10
|
+
private open;
|
11
|
+
close(): void;
|
12
|
+
toggle(): void;
|
13
|
+
addItem(inputButton: InputButton): void;
|
14
|
+
private addWindowEvents;
|
15
|
+
}
|
16
|
+
//# sourceMappingURL=dropupMenu.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"dropupMenu.d.ts","sourceRoot":"","sources":["../../../../../../src/views/chat/input/dropup/dropupMenu.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,gBAAgB,EAAC,MAAM,gCAAgC,CAAC;AAGhE,OAAO,EAAC,WAAW,EAAC,MAAM,wBAAwB,CAAC;AAGnD,qBAAa,UAAU;IACrB,QAAQ,CAAC,UAAU,EAAE,WAAW,CAAC;IACjC,OAAO,CAAC,OAAO,CAAQ;IACvB,eAAe,CAAC,EAAE,WAAW,CAAC;IAC9B,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAmB;gBAEhC,gBAAgB,EAAE,WAAW,EAAE,MAAM,CAAC,EAAE,gBAAgB;IAOpE,OAAO,CAAC,MAAM,CAAC,aAAa;IAO5B,OAAO,CAAC,IAAI;IAKZ,KAAK;IAOL,MAAM;IAQN,OAAO,CAAC,WAAW,EAAE,WAAW;IAMhC,OAAO,CAAC,eAAe;CA2BxB"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { CustomStyle } from '../../../../../types/styles';
|
2
|
+
import { FileAttachments } from '../fileAttachments';
|
3
|
+
export declare class DragAndDrop {
|
4
|
+
static create(containerElement: HTMLElement, fileAttachments: FileAttachments, dnd?: boolean | CustomStyle): void;
|
5
|
+
private static createElement;
|
6
|
+
private static addEvents;
|
7
|
+
private static uploadFile;
|
8
|
+
private static display;
|
9
|
+
private static hide;
|
10
|
+
static isEnabled(fileAttachments: FileAttachments, dragAndDrop?: boolean | CustomStyle): boolean;
|
11
|
+
}
|
12
|
+
//# sourceMappingURL=dragAndDrop.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"dragAndDrop.d.ts","sourceRoot":"","sources":["../../../../../../../src/views/chat/input/fileAttachments/dragAndDrop/dragAndDrop.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,6BAA6B,CAAC;AACxD,OAAO,EAAC,eAAe,EAAC,MAAM,oBAAoB,CAAC;AAEnD,qBAAa,WAAW;WACR,MAAM,CAAC,gBAAgB,EAAE,WAAW,EAAE,eAAe,EAAE,eAAe,EAAE,GAAG,CAAC,EAAE,OAAO,GAAG,WAAW;IAMjH,OAAO,CAAC,MAAM,CAAC,aAAa;IAO5B,OAAO,CAAC,MAAM,CAAC,SAAS;IAmBxB,OAAO,CAAC,MAAM,CAAC,UAAU;IAKzB,OAAO,CAAC,MAAM,CAAC,OAAO;IAItB,OAAO,CAAC,MAAM,CAAC,IAAI;WAIL,SAAS,CAAC,eAAe,EAAE,eAAe,EAAE,WAAW,CAAC,EAAE,OAAO,GAAG,WAAW;CAI9F"}
|
package/dist/views/chat/input/fileAttachments/fileAttachmentTypes/audioFileAttachmentType.d.ts
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
import { FileAttachmentsType } from './fileAttachmentsType';
|
2
|
+
import { FileAttachments } from '../../../../../types/fileAttachments';
|
3
|
+
export declare class AudioFileAttachmentType extends FileAttachmentsType {
|
4
|
+
stopPlaceholderCallback?: () => Promise<void>;
|
5
|
+
private _activePlaceholderTimer?;
|
6
|
+
private _activePlaceholderAttachment?;
|
7
|
+
private static readonly TIMER_LIMIT_S;
|
8
|
+
constructor(fileAttachments: FileAttachments, toggleContainer: (display: boolean) => void, container: HTMLElement);
|
9
|
+
private static createAudioContainer;
|
10
|
+
private static addAudioElements;
|
11
|
+
static createAudioAttachment(fileReaderResult: string): HTMLDivElement;
|
12
|
+
private createTimer;
|
13
|
+
private createPlaceholderAudioAttachment;
|
14
|
+
private addPlaceholderAudioAttachmentEvents;
|
15
|
+
addPlaceholderAttachment(stopCallback: () => Promise<void>, customTimeLimit?: number): void;
|
16
|
+
completePlaceholderAttachment(file: File, fileReaderResult: string): void;
|
17
|
+
removePlaceholderAttachment(): void;
|
18
|
+
private clearTimer;
|
19
|
+
static stopAttachmentPlayback(attachmentContainerEl: HTMLElement): void;
|
20
|
+
}
|
21
|
+
//# sourceMappingURL=audioFileAttachmentType.d.ts.map
|
package/dist/views/chat/input/fileAttachments/fileAttachmentTypes/audioFileAttachmentType.d.ts.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"audioFileAttachmentType.d.ts","sourceRoot":"","sources":["../../../../../../../src/views/chat/input/fileAttachments/fileAttachmentTypes/audioFileAttachmentType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,mBAAmB,EAAC,MAAM,uBAAuB,CAAC;AAE5E,OAAO,EAAC,eAAe,EAAC,MAAM,sCAAsC,CAAC;AAMrE,qBAAa,uBAAwB,SAAQ,mBAAmB;IAC9D,uBAAuB,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9C,OAAO,CAAC,uBAAuB,CAAC,CAAS;IACzC,OAAO,CAAC,4BAA4B,CAAC,CAAmB;IACxD,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAQ;gBAEjC,eAAe,EAAE,eAAe,EAAE,eAAe,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,EAAE,SAAS,EAAE,WAAW;IAIjH,OAAO,CAAC,MAAM,CAAC,oBAAoB;IAOnC,OAAO,CAAC,MAAM,CAAC,gBAAgB;WA6BjB,qBAAqB,CAAC,gBAAgB,EAAE,MAAM;IAM5D,OAAO,CAAC,WAAW;IAmBnB,OAAO,CAAC,gCAAgC;IAgBxC,OAAO,CAAC,mCAAmC;IAS3C,wBAAwB,CAAC,YAAY,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,EAAE,eAAe,CAAC,EAAE,MAAM;IAOpF,6BAA6B,CAAC,IAAI,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM;IAYlE,2BAA2B;IAQ3B,OAAO,CAAC,UAAU;WAQJ,sBAAsB,CAAC,qBAAqB,EAAE,WAAW;CAKxE"}
|
package/dist/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentTypeFactory.d.ts
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
import { FileAttachments } from '../../../../../types/fileAttachments';
|
2
|
+
import { ServiceFileTypes } from '../../../../../services/serviceIO';
|
3
|
+
import { FileAttachmentsType } from './fileAttachmentsType';
|
4
|
+
export declare class FileAttachmentTypeFactory {
|
5
|
+
static create(files: FileAttachments, toggleContainer: (display: boolean) => void, container: HTMLElement, type: keyof ServiceFileTypes): FileAttachmentsType;
|
6
|
+
}
|
7
|
+
//# sourceMappingURL=fileAttachmentTypeFactory.d.ts.map
|
package/dist/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentTypeFactory.d.ts.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"fileAttachmentTypeFactory.d.ts","sourceRoot":"","sources":["../../../../../../../src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentTypeFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAC,gBAAgB,EAAC,MAAM,mCAAmC,CAAC;AAEnE,OAAO,EAAC,mBAAmB,EAAC,MAAM,uBAAuB,CAAC;AAE1D,qBAAa,yBAAyB;WAEtB,MAAM,CAAC,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,EACpF,SAAS,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,gBAAgB;CAMzD"}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import { FileAttachments } from '../../../../../types/fileAttachments';
|
2
|
+
import { MessageFileType } from '../../../../../types/messageFile';
|
3
|
+
export interface AttachmentObject {
|
4
|
+
file: File;
|
5
|
+
fileType: MessageFileType;
|
6
|
+
attachmentContainerElement: HTMLElement;
|
7
|
+
removeButton?: HTMLElement;
|
8
|
+
}
|
9
|
+
export declare class FileAttachmentsType {
|
10
|
+
private readonly _attachments;
|
11
|
+
private readonly _fileCountLimit;
|
12
|
+
private readonly _toggleContainerDisplay;
|
13
|
+
private readonly _fileAttachmentsContainerRef;
|
14
|
+
private readonly _acceptedFormat;
|
15
|
+
constructor(fileAttachments: FileAttachments, toggleContainer: (display: boolean) => void, container: HTMLElement);
|
16
|
+
attemptAddFile(file: File, fileReaderResult: string): boolean;
|
17
|
+
private static isFileTypeValid;
|
18
|
+
private addAttachmentBasedOnType;
|
19
|
+
private static createImageAttachment;
|
20
|
+
private static createAnyFileAttachment;
|
21
|
+
addFileAttachment(file: File, fileType: MessageFileType, attachmentElement: HTMLElement, removable: boolean): AttachmentObject;
|
22
|
+
private static createContainer;
|
23
|
+
createRemoveAttachmentButton(attachmentObject: AttachmentObject): HTMLDivElement;
|
24
|
+
removeAttachment(attachmentObject: AttachmentObject): void;
|
25
|
+
getFiles(): {
|
26
|
+
file: File;
|
27
|
+
type: MessageFileType;
|
28
|
+
}[];
|
29
|
+
removeAllAttachments(): void;
|
30
|
+
}
|
31
|
+
//# sourceMappingURL=fileAttachmentsType.d.ts.map
|
package/dist/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.d.ts.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"fileAttachmentsType.d.ts","sourceRoot":"","sources":["../../../../../../../src/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,sCAAsC,CAAC;AAErE,OAAO,EAAC,eAAe,EAAC,MAAM,kCAAkC,CAAC;AAGjE,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,IAAI,CAAC;IACX,QAAQ,EAAE,eAAe,CAAC;IAC1B,0BAA0B,EAAE,WAAW,CAAC;IACxC,YAAY,CAAC,EAAE,WAAW,CAAC;CAC5B;AAED,qBAAa,mBAAmB;IAC9B,OAAO,CAAC,QAAQ,CAAC,YAAY,CAA0B;IACvD,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAc;IAC9C,OAAO,CAAC,QAAQ,CAAC,uBAAuB,CAA6B;IACrE,OAAO,CAAC,QAAQ,CAAC,4BAA4B,CAAc;IAC3D,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAc;gBAElC,eAAe,EAAE,eAAe,EAAE,eAAe,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,EAAE,SAAS,EAAE,WAAW;IAOjH,cAAc,CAAC,IAAI,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM;IAQnD,OAAO,CAAC,MAAM,CAAC,eAAe;IAqB9B,OAAO,CAAC,wBAAwB;IAahC,OAAO,CAAC,MAAM,CAAC,qBAAqB;IAOpC,OAAO,CAAC,MAAM,CAAC,uBAAuB;IActC,iBAAiB,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,eAAe,EAAE,iBAAiB,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO;IAqB3G,OAAO,CAAC,MAAM,CAAC,eAAe;IAO9B,4BAA4B,CAAC,gBAAgB,EAAE,gBAAgB;IAW/D,gBAAgB,CAAC,gBAAgB,EAAE,gBAAgB;IASnD,QAAQ;;;;IAIR,oBAAoB;CAMrB"}
|