@sapia-ai/chatbot 2.31.0
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/CHANGELOG.md +865 -0
- package/README.md +366 -0
- package/RootApp.d.ts +2 -0
- package/apis/FIApis.d.ts +152 -0
- package/apis/hooks/useGetApplicationJobRequisition.d.ts +12 -0
- package/apis/hooks/useGetJobRequisition.d.ts +10 -0
- package/apis/types/apiRequest.d.ts +1 -0
- package/apis/types/apiResponse.d.ts +16 -0
- package/apis/types/branding.d.ts +17 -0
- package/apis/types/jobRequisition.d.ts +20 -0
- package/commitlint.config.js +1 -0
- package/components/AccessVerificationForm/__tests__/AccessVerificationForm.test.d.ts +1 -0
- package/components/AccessVerificationForm/index.d.ts +1 -0
- package/components/AccessVerificationForm/view.d.ts +11 -0
- package/components/AgcWarningModal/__tests__/AGCWarningModal.test.d.ts +1 -0
- package/components/AgcWarningModal/index.d.ts +1 -0
- package/components/AgcWarningModal/view.d.ts +7 -0
- package/components/AssessmentProgressBar/__tests__/AssessmentProgressBar.test.d.ts +1 -0
- package/components/AssessmentProgressBar/index.d.ts +7 -0
- package/components/AssessmentProgressBar/view.d.ts +2 -0
- package/components/AutoScrollText/__tests__/AutoScrollText.test.d.ts +1 -0
- package/components/AutoScrollText/__tests__/useAutoScrollText.test.d.ts +1 -0
- package/components/AutoScrollText/useAutoScrollText.d.ts +7 -0
- package/components/AutoScrollText/view.d.ts +4 -0
- package/components/ButtonGroup/index.d.ts +1 -0
- package/components/ButtonGroup/view.d.ts +10 -0
- package/components/CancelEditButton/index.d.ts +1 -0
- package/components/CancelEditButton/view.d.ts +7 -0
- package/components/ChatbotApp/index.d.ts +1 -0
- package/components/ChatbotApp/view.d.ts +10 -0
- package/components/Dropdown/index.d.ts +3 -0
- package/components/Dropdown/view.d.ts +10 -0
- package/components/EditButton/__tests__/EditButton.test.d.ts +1 -0
- package/components/EditButton/index.d.ts +3 -0
- package/components/EditButton/view.d.ts +10 -0
- package/components/FTQResponse/__tests__/FTQResponse.test.d.ts +1 -0
- package/components/FTQResponse/index.d.ts +3 -0
- package/components/FTQResponse/view.d.ts +11 -0
- package/components/FullScreenSpinner/__tests__/FullScreenSpinner.test.d.ts +1 -0
- package/components/FullScreenSpinner/index.d.ts +1 -0
- package/components/FullScreenSpinner/view.d.ts +2 -0
- package/components/Icons/Close/Close.d.ts +5 -0
- package/components/Icons/Close/index.d.ts +1 -0
- package/components/Icons/DislikeEmoji/DislikeEmoji.d.ts +5 -0
- package/components/Icons/DislikeEmoji/index.d.ts +1 -0
- package/components/Icons/Error/index.d.ts +1 -0
- package/components/Icons/Error/view.d.ts +6 -0
- package/components/Icons/LikeEmoji/LikeEmoji.d.ts +5 -0
- package/components/Icons/LikeEmoji/index.d.ts +1 -0
- package/components/Icons/Pause/Pause.d.ts +6 -0
- package/components/Icons/Pause/index.d.ts +1 -0
- package/components/Icons/Play/Play.d.ts +6 -0
- package/components/Icons/Play/index.d.ts +1 -0
- package/components/Icons/Question/Question.d.ts +6 -0
- package/components/Icons/Question/index.d.ts +1 -0
- package/components/Icons/ReRecord/ReRecord.d.ts +5 -0
- package/components/Icons/ReRecord/index.d.ts +1 -0
- package/components/Icons/Record/Record.d.ts +6 -0
- package/components/Icons/Record/index.d.ts +1 -0
- package/components/Icons/RecordingTip/RecordingTip.d.ts +6 -0
- package/components/Icons/RecordingTip/index.d.ts +1 -0
- package/components/Icons/Retry/Retry.d.ts +6 -0
- package/components/Icons/Retry/index.d.ts +1 -0
- package/components/Icons/Save/Save.d.ts +5 -0
- package/components/Icons/Save/index.d.ts +1 -0
- package/components/Icons/Stop/Stop.d.ts +6 -0
- package/components/Icons/Stop/index.d.ts +1 -0
- package/components/Icons/index.d.ts +13 -0
- package/components/IosChromeError/index.d.ts +7 -0
- package/components/IosChromeError/view.d.ts +3 -0
- package/components/Loading/index.d.ts +3 -0
- package/components/Loading/view.d.ts +9 -0
- package/components/NameEditor/NameEditor.d.ts +26 -0
- package/components/NameEditor/__tests__/NameEditor.FirstName.test.d.ts +1 -0
- package/components/NameEditor/__tests__/NameEditor.FullName.test.d.ts +1 -0
- package/components/NameEditor/__tests__/NameEditor.LastName.test.d.ts +1 -0
- package/components/NameEditor/__tests__/NameEditor.test.d.ts +1 -0
- package/components/NameEditor/__tests__/useHumanNameExtraction.FirstName.test.d.ts +1 -0
- package/components/NameEditor/__tests__/useHumanNameExtraction.FullName.test.d.ts +1 -0
- package/components/NameEditor/__tests__/useHumanNameExtraction.LastName.test.d.ts +1 -0
- package/components/NameEditor/__tests__/useHumanNameExtraction.test.d.ts +1 -0
- package/components/NameEditor/useHumanNameExtraction.d.ts +22 -0
- package/components/NameExtractionConfirmModal/__tests__/NameExtractionConfirmModal.test.d.ts +1 -0
- package/components/NameExtractionConfirmModal/index.d.ts +1 -0
- package/components/NameExtractionConfirmModal/view.d.ts +15 -0
- package/components/OptionList/index.d.ts +3 -0
- package/components/OptionList/view.d.ts +11 -0
- package/components/PHEditor/DesktopQuillEditor/index.d.ts +1 -0
- package/components/PHEditor/DesktopQuillEditor/view.d.ts +37 -0
- package/components/PHEditor/MobileEditor/ClickableBar.d.ts +7 -0
- package/components/PHEditor/MobileEditor/__tests__/ClickableBar.test.d.ts +1 -0
- package/components/PHEditor/MobileEditor/view.d.ts +28 -0
- package/components/PHEditor/PlainTextEditor/index.d.ts +3 -0
- package/components/PHEditor/PlainTextEditor/view.d.ts +26 -0
- package/components/PHEditor/TextDictationModal/index.d.ts +1 -0
- package/components/PHEditor/TextDictationModal/view.d.ts +6 -0
- package/components/PHEditor/TextDictationTip/index.d.ts +1 -0
- package/components/PHEditor/TextDictationTip/view.d.ts +4 -0
- package/components/PHEditor/WordCount/index.d.ts +1 -0
- package/components/PHEditor/WordCount/view.d.ts +12 -0
- package/components/PHEditor/__tests__/DesktopQuillEditor.test.d.ts +1 -0
- package/components/PHEditor/__tests__/PlainTextEditor.test.d.ts +1 -0
- package/components/PHEditor/__tests__/utils.test.d.ts +1 -0
- package/components/PHEditor/index.d.ts +2 -0
- package/components/PHEditor/types.d.ts +8 -0
- package/components/PHEditor/utils.d.ts +20 -0
- package/components/PHError/index.d.ts +7 -0
- package/components/PHError/view.d.ts +4 -0
- package/components/PHIconFont/index.d.ts +7 -0
- package/components/PHIconFont/view.d.ts +2 -0
- package/components/PHSelect/__tests__/PHSelect.test.d.ts +1 -0
- package/components/PHSelect/index.d.ts +1 -0
- package/components/PHSelect/view.d.ts +8 -0
- package/components/PHVideo/DesktopVideo/__tests__/utils/formatTime.test.d.ts +1 -0
- package/components/PHVideo/DesktopVideo/components/Video/index.d.ts +3 -0
- package/components/PHVideo/DesktopVideo/components/Video/view.d.ts +42 -0
- package/components/PHVideo/DesktopVideo/components/VideoPreviewControls/index.d.ts +3 -0
- package/components/PHVideo/DesktopVideo/components/VideoPreviewControls/view.d.ts +10 -0
- package/components/PHVideo/DesktopVideo/index.d.ts +3 -0
- package/components/PHVideo/DesktopVideo/utils.d.ts +1 -0
- package/components/PHVideo/DesktopVideo/view.d.ts +10 -0
- package/components/PHVideo/MobileVideo/index.d.ts +3 -0
- package/components/PHVideo/MobileVideo/view.d.ts +9 -0
- package/components/PhoneCodeSelect/__tests__/PhoneCodeSelect.test.d.ts +1 -0
- package/components/PhoneCodeSelect/index.d.ts +1 -0
- package/components/PhoneCodeSelect/sources.d.ts +8 -0
- package/components/PhoneCodeSelect/view.d.ts +6 -0
- package/components/PhoneEditor/__tests__/PhoneEditor.test.d.ts +1 -0
- package/components/PhoneEditor/index.d.ts +3 -0
- package/components/PhoneEditor/view.d.ts +16 -0
- package/components/PlacesAutoComplete/api.d.ts +17 -0
- package/components/PlacesAutoComplete/constants.d.ts +8 -0
- package/components/PlacesAutoComplete/hooks/usePlacesAutoComplete.d.ts +21 -0
- package/components/PlacesAutoComplete/index.d.ts +6 -0
- package/components/PlacesAutoComplete/types.d.ts +53 -0
- package/components/PlacesAutoComplete/view.d.ts +16 -0
- package/components/ReRecordVideoButton/index.d.ts +3 -0
- package/components/ReRecordVideoButton/view.d.ts +7 -0
- package/components/ReciteMeWrapper/ReciteMeWrapper.d.ts +16 -0
- package/components/ReciteMeWrapper/index.d.ts +1 -0
- package/components/SendAnswerFailedModal/index.d.ts +1 -0
- package/components/SendAnswerFailedModal/view.d.ts +6 -0
- package/components/SendCircleButton/__tests__/SendCircleButton.test.d.ts +1 -0
- package/components/SendCircleButton/index.d.ts +3 -0
- package/components/SendCircleButton/view.d.ts +11 -0
- package/components/Slider/__tests__/Slider.test.d.ts +1 -0
- package/components/Slider/index.d.ts +3 -0
- package/components/Slider/view.d.ts +9 -0
- package/components/TextBubble/__tests__/TextBubble.test.d.ts +1 -0
- package/components/TextBubble/index.d.ts +3 -0
- package/components/TextBubble/view.d.ts +23 -0
- package/components/Tooltip/index.d.ts +3 -0
- package/components/Tooltip/view.d.ts +6 -0
- package/components/UnsupportedBrowserGuard/index.d.ts +3 -0
- package/components/UnsupportedBrowserGuard/view.d.ts +5 -0
- package/components/UploadVideoFailedMessage/index.d.ts +9 -0
- package/components/UploadVideoFailedMessage/view.d.ts +4 -0
- package/components/UploadVideoProgressBar/index.d.ts +9 -0
- package/components/UploadVideoProgressBar/view.d.ts +4 -0
- package/components/VideoPlayer/index.d.ts +3 -0
- package/components/VideoPlayer/view.d.ts +7 -0
- package/components/VideoResponse/index.d.ts +3 -0
- package/components/VideoResponse/view.d.ts +5 -0
- package/components/WarningButton/index.d.ts +3 -0
- package/components/WarningButton/view.d.ts +4 -0
- package/components/WarningModal/index.d.ts +3 -0
- package/components/WarningModal/view.d.ts +10 -0
- package/components/hooks/useCharacterCountLimit.d.ts +3 -0
- package/components/hooks/useCheckScreenSize.d.ts +3 -0
- package/components/hooks/useSubmitShortcut.d.ts +1 -0
- package/components/hooks/useWordCountLimit.d.ts +4 -0
- package/config.d.ts +16 -0
- package/constants/browser.d.ts +7 -0
- package/constants/common.d.ts +48 -0
- package/constants/mockDataForDemo.d.ts +14 -0
- package/constants/theme.d.ts +10 -0
- package/contexts/AssessmentStateContext/AssessmentStateContext.d.ts +6 -0
- package/contexts/AssessmentStateContext/__tests__/AssessmentStateContext.test.d.ts +1 -0
- package/contexts/AssessmentStateContext/assessmentStateReducer/__tests__/action.test.d.ts +1 -0
- package/contexts/AssessmentStateContext/assessmentStateReducer/__tests__/assessmentStateReducer.test.d.ts +1 -0
- package/contexts/AssessmentStateContext/assessmentStateReducer/action.d.ts +3 -0
- package/contexts/AssessmentStateContext/assessmentStateReducer/assessmentStateReducer.d.ts +2 -0
- package/contexts/AssessmentStateContext/type.d.ts +22 -0
- package/contexts/ChatbotStateContext/ChatbotStateContext.d.ts +12 -0
- package/contexts/ChatbotStateContext/__tests__/ChatbotStateContext/ChatbotStateContext-render-error.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/__tests__/ChatbotStateContext/ChatbotStateContext-render-normal.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/__tests__/ChatbotStateContext/handleEditAnswer.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/__tests__/ChatbotStateContext/handleExitEditAnswer.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/__tests__/ChatbotStateContext/handleSelectOption.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/__tests__/ChatbotStateContext/handleSubmitRating.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/__tests__/ChatbotStateContext/handleUploadDataVideo.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/__tests__/bubble-util/addCandidateResponseMessageBubble.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/__tests__/bubble-util/checkShouldLoadNext.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/__tests__/bubble-util/convertMessageBubbles.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/__tests__/bubble-util/convertRawAgentResponseToMessageBubble.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/__tests__/bubble-util/convertRawCandidateResponseToMessageBubble.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/__tests__/bubble-util/convertRawResponseToMessageBubble.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/__tests__/bubble-util/updateAnswerForCandidateMessageBubble.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/__tests__/bubble-util/updateMessageBubbleStatus.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/__tests__/bubble-util/updateMessageBubbleStatusInList.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/__tests__/useOrder.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/__tests__/useUploadVideo/getDisplayVideoUrl.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/__tests__/useUploadVideo/getVideoRetryNum.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/__tests__/useUploadVideo/uploadDataVideo.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/bubble-util.d.ts +193 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/action/addAgentBubbleActionFn.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/action/addCandidateResponseMessageBubbleActionFn.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/action/addVideoUploadStatusBubbleActionFn.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/action/agentNextResponseCompletedActionFn.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/action/agentNextResponseStartingActionFn.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/action/chatLogsLoadCompletedActionFn.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/action/checkAgcCompletedActionFn.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/action/convertRawBrandingTheme.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/action/editAnswerRequestCompletedActionFn.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/action/editModeEnterActionFn.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/action/editModeExitActionFn.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/action/removeFailedMessageBubbleActionFn.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/action/renderCandidateBubbleManuallyActionFn.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/action/replaceVideoUploadStatusBubbleActionFn.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/action/updateCandidateMessageBubbleStatusActionFn.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/action/updateRecordedVideoInfoActionFn.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/action/updateRerecordVideoInfoActionFn.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/chatbotStateReducer/chatbotStateReducer-ADD_AGENT_BUBBLE.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/chatbotStateReducer/chatbotStateReducer-ADD_CANDIDATE_RESPONSE_BUBBLE.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/chatbotStateReducer/chatbotStateReducer-ADD_VIDEO_UPLOAD_STATUS_BUBBLE.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/chatbotStateReducer/chatbotStateReducer-AGENT_NEXT_RESPONSE_COMPLETED.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/chatbotStateReducer/chatbotStateReducer-AGENT_NEXT_RESPONSE_STARTING.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/chatbotStateReducer/chatbotStateReducer-CHATLOGS_LOAD_COMPLETED.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/chatbotStateReducer/chatbotStateReducer-DETECT_AGC_COMPLETED.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/chatbotStateReducer/chatbotStateReducer-EDIT_ANSWER_REQUEST_COMPLETED.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/chatbotStateReducer/chatbotStateReducer-EDIT_MODE_ENTER.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/chatbotStateReducer/chatbotStateReducer-EDIT_MODE_EXIT.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/chatbotStateReducer/chatbotStateReducer-REMOVE_FAILED_MESSAGE_BUBBLE.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/chatbotStateReducer/chatbotStateReducer-RENDER_CANDIDATE_BUBBLE_MANUALLY.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/chatbotStateReducer/chatbotStateReducer-REPLACE_VIDEO_UPLOAD_STATUS_BUBBLE.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/chatbotStateReducer/chatbotStateReducer-UPDATE_CANDIDATE_MESSAGE_BUBBLE_STATUS.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/chatbotStateReducer/chatbotStateReducer-UPDATE_RECORDED_VIDEO_INFO.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/chatbotStateReducer/chatbotStateReducer-UPDATE_RERECORD_VIDEO_INFO.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/__tests__/util/phChatbotCbCallbackExecutor.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/action.d.ts +23 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/chatbotStateReducer.d.ts +2 -0
- package/contexts/ChatbotStateContext/chatbotStateReducer/util.d.ts +13 -0
- package/contexts/ChatbotStateContext/type.d.ts +289 -0
- package/contexts/ChatbotStateContext/useDetectAgc/__tests__/useDetectAgc.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/useDetectAgc/useDetectAgc.d.ts +17 -0
- package/contexts/ChatbotStateContext/useLoadNext/__tests__/helper/loadMessage.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/useLoadNext/__tests__/helper/onloadNextSuccess.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/useLoadNext/__tests__/useLoadNext.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/useLoadNext/helper.d.ts +37 -0
- package/contexts/ChatbotStateContext/useLoadNext/useLoadNext.d.ts +31 -0
- package/contexts/ChatbotStateContext/useOrder.d.ts +31 -0
- package/contexts/ChatbotStateContext/useSubmitEditedAnswer/__tests__/useSubmitEditedAnswer.test.d.ts +1 -0
- package/contexts/ChatbotStateContext/useSubmitEditedAnswer/index.d.ts +1 -0
- package/contexts/ChatbotStateContext/useSubmitEditedAnswer/useSubmitEditedAnswer.d.ts +21 -0
- package/contexts/ChatbotStateContext/useUploadVideo.d.ts +29 -0
- package/features/AccessVerification/__tests__/AccessVerification.test.d.ts +1 -0
- package/features/AccessVerification/index.d.ts +1 -0
- package/features/AccessVerification/view.d.ts +10 -0
- package/features/AgentMessageBubble/index.d.ts +3 -0
- package/features/AgentMessageBubble/view.d.ts +5 -0
- package/features/Assessment/__tests__/Assessment.test.d.ts +1 -0
- package/features/Assessment/index.d.ts +3 -0
- package/features/Assessment/view.d.ts +2 -0
- package/features/AssessmentDialogFlow/index.d.ts +3 -0
- package/features/AssessmentDialogFlow/view.d.ts +7 -0
- package/features/AssessmentResponseFlow/index.d.ts +3 -0
- package/features/AssessmentResponseFlow/view.d.ts +5 -0
- package/features/CandidateMessageBubble/index.d.ts +3 -0
- package/features/CandidateMessageBubble/view.d.ts +8 -0
- package/features/Header/__tests__/Header.test.d.ts +1 -0
- package/features/Header/index.d.ts +3 -0
- package/features/Header/view.d.ts +2 -0
- package/features/Introduce/index.d.ts +3 -0
- package/features/Introduce/utils.d.ts +190 -0
- package/features/Introduce/view.d.ts +2 -0
- package/features/Layout/__tests__/Layout.test.d.ts +1 -0
- package/features/Layout/index.d.ts +3 -0
- package/features/Layout/view.d.ts +4 -0
- package/hooks/__tests__/useAccessManagement.test.d.ts +1 -0
- package/hooks/__tests__/useAccessVerification.test.d.ts +1 -0
- package/hooks/__tests__/useChatbotStatesContext.test.d.ts +1 -0
- package/hooks/__tests__/useExtractHumanName.test.d.ts +1 -0
- package/hooks/__tests__/useLocalStorage.test.d.ts +1 -0
- package/hooks/__tests__/useVerifyAccess.test.d.ts +1 -0
- package/hooks/useAccessManagement.d.ts +12 -0
- package/hooks/useAccessVerification.d.ts +13 -0
- package/hooks/useAssessmentStateContext.d.ts +2 -0
- package/hooks/useBeforeUnload.d.ts +2 -0
- package/hooks/useChatbotStatesContext.d.ts +2 -0
- package/hooks/useExtractHumanName.d.ts +15 -0
- package/hooks/useHandleEditorHeightChange.d.ts +7 -0
- package/hooks/useLocalStorage.d.ts +24 -0
- package/hooks/useQuery.d.ts +3 -0
- package/hooks/useVerifyAccess.d.ts +10 -0
- package/index.d.ts +1 -0
- package/package.json +172 -0
- package/pages/App/App.d.ts +11 -0
- package/pages/App/index.d.ts +2 -0
- package/pages/Chatbot/Chatbot.d.ts +3 -0
- package/pages/Chatbot/index.d.ts +2 -0
- package/pages/Home/Home.d.ts +3 -0
- package/pages/Home/index.d.ts +3 -0
- package/pages/LanguageSelectionPage/ApplicationLanguageSelectionPage.d.ts +6 -0
- package/pages/LanguageSelectionPage/GenericLanguageSelectionPage.d.ts +6 -0
- package/pages/LanguageSelectionPage/LanguageSelection.d.ts +13 -0
- package/pages/LanguageSelectionPage/__tests__/LanguageSelection.test.d.ts +1 -0
- package/pages/LanguageSelectionPage/index.d.ts +3 -0
- package/pages/LanguageSelectionPage/useLanguageSelection.d.ts +19 -0
- package/pages/OrderAssessment/OrderAssessment.d.ts +4 -0
- package/pages/OrderAssessment/index.d.ts +1 -0
- package/postcss.config.js +5 -0
- package/predictivehire.d.ts +45 -0
- package/predictivehire.js +71047 -0
- package/predictivehire.umd.js +382 -0
- package/serviceWorker.d.ts +7 -0
- package/static/favicon.ico +0 -0
- package/static/favicon.png +0 -0
- package/static/manifest.json +20 -0
- package/static/reciteme_button.png +0 -0
- package/static/robots.txt +3 -0
- package/tsconfig.build.json +5 -0
- package/types/Api.d.ts +25 -0
- package/types/AtsInformation.d.ts +52 -0
- package/types/ChatBot.d.ts +60 -0
- package/types/Next.d.ts +278 -0
- package/types/UrlParamKey.d.ts +6 -0
- package/utils/TestWrapper.d.ts +32 -0
- package/utils/__tests__/defaultLanguage.test.d.ts +1 -0
- package/utils/__tests__/getEnv.test.d.ts +1 -0
- package/utils/__tests__/messageBubble.test.d.ts +1 -0
- package/utils/__tests__/mockTranslationSource.d.ts +117 -0
- package/utils/__tests__/setTranslationSource.test.d.ts +1 -0
- package/utils/__tests__/translate.test.d.ts +1 -0
- package/utils/convertTheme.d.ts +39 -0
- package/utils/defaultLanguage.d.ts +6 -0
- package/utils/messageBubble.d.ts +11 -0
- package/utils/testUtils.d.ts +6 -0
- package/utils/translation/constants.d.ts +10 -0
- package/utils/translation/fallBackTranslation.d.ts +136 -0
- package/utils/translation/translation.d.ts +25 -0
- package/utils/utils.d.ts +16 -0
- package/vite.chatbot.config.js +90 -0
- package/vite.config.js +77 -0
- package/vitest.setup.d.ts +1 -0
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
export declare enum AssessmentType {
|
|
2
|
+
FI = "FI",
|
|
3
|
+
CI = "CI",
|
|
4
|
+
SI = "SI"
|
|
5
|
+
}
|
|
6
|
+
export declare type CustomerItem = {
|
|
7
|
+
id: string;
|
|
8
|
+
name: string;
|
|
9
|
+
customerInfo: Customer;
|
|
10
|
+
};
|
|
11
|
+
declare type Customer = {
|
|
12
|
+
id: string;
|
|
13
|
+
fiPredictorMaster: string;
|
|
14
|
+
siPredictorMaster?: string;
|
|
15
|
+
workflowId?: string;
|
|
16
|
+
externalCohortId: string;
|
|
17
|
+
cohortTitle?: string;
|
|
18
|
+
};
|
|
19
|
+
export declare type Region = {
|
|
20
|
+
id: string;
|
|
21
|
+
displayName: string;
|
|
22
|
+
code: string;
|
|
23
|
+
};
|
|
24
|
+
export declare type CustomerEnvMap = {
|
|
25
|
+
localhost: CustomerItem[];
|
|
26
|
+
qa: CustomerItem[];
|
|
27
|
+
};
|
|
28
|
+
export declare type CustomerRegionMap = {
|
|
29
|
+
sydney: CustomerEnvMap;
|
|
30
|
+
ireland: CustomerItem[];
|
|
31
|
+
};
|
|
32
|
+
export declare const regionList: {
|
|
33
|
+
id: string;
|
|
34
|
+
displayName: string;
|
|
35
|
+
code: string;
|
|
36
|
+
}[];
|
|
37
|
+
export declare const localCustomer: {
|
|
38
|
+
id: string;
|
|
39
|
+
fiPredictorMaster: string;
|
|
40
|
+
siPredictorMaster: string;
|
|
41
|
+
externalCohortId: string;
|
|
42
|
+
};
|
|
43
|
+
export declare const wooliesQACustomer: {
|
|
44
|
+
id: string;
|
|
45
|
+
fiPredictorMaster: string;
|
|
46
|
+
siPredictorMaster: string;
|
|
47
|
+
workflowId: string;
|
|
48
|
+
externalCohortId: string;
|
|
49
|
+
};
|
|
50
|
+
export declare const wooliesIndigenousQACustomer: {
|
|
51
|
+
id: string;
|
|
52
|
+
fiPredictorMaster: string;
|
|
53
|
+
siPredictorMaster: string;
|
|
54
|
+
workflowId: string;
|
|
55
|
+
externalCohortId: string;
|
|
56
|
+
cohortTitle: string;
|
|
57
|
+
};
|
|
58
|
+
export declare const wooliesMetroQACustomer: {
|
|
59
|
+
id: string;
|
|
60
|
+
fiPredictorMaster: string;
|
|
61
|
+
workflowId: string;
|
|
62
|
+
externalCohortId: string;
|
|
63
|
+
};
|
|
64
|
+
export declare const wooliesBigWQACustomer: {
|
|
65
|
+
id: string;
|
|
66
|
+
fiPredictorMaster: string;
|
|
67
|
+
workflowId: string;
|
|
68
|
+
externalCohortId: string;
|
|
69
|
+
};
|
|
70
|
+
export declare const wooliesBigWIndigenousQACustomer: {
|
|
71
|
+
id: string;
|
|
72
|
+
fiPredictorMaster: string;
|
|
73
|
+
siPredictorMaster: string;
|
|
74
|
+
workflowId: string;
|
|
75
|
+
externalCohortId: string;
|
|
76
|
+
cohortTitle: string;
|
|
77
|
+
};
|
|
78
|
+
export declare const wooliesDanMurphyQACustomer: {
|
|
79
|
+
id: string;
|
|
80
|
+
fiPredictorMaster: string;
|
|
81
|
+
workflowId: string;
|
|
82
|
+
externalCohortId: string;
|
|
83
|
+
};
|
|
84
|
+
export declare const wooliesBwsQACustomer: {
|
|
85
|
+
id: string;
|
|
86
|
+
fiPredictorMaster: string;
|
|
87
|
+
workflowId: string;
|
|
88
|
+
externalCohortId: string;
|
|
89
|
+
};
|
|
90
|
+
export declare const nibAusQACustomer: {
|
|
91
|
+
id: string;
|
|
92
|
+
fiPredictorMaster: string;
|
|
93
|
+
workflowId: string;
|
|
94
|
+
externalCohortId: string;
|
|
95
|
+
};
|
|
96
|
+
export declare const phAusDemoQACustomer: {
|
|
97
|
+
id: string;
|
|
98
|
+
fiPredictorMaster: string;
|
|
99
|
+
siPredictorMaster: string;
|
|
100
|
+
workflowId: string;
|
|
101
|
+
externalCohortId: string;
|
|
102
|
+
};
|
|
103
|
+
export declare const localCustomerList: CustomerItem[];
|
|
104
|
+
export declare const sydneyQACustomerList: CustomerItem[];
|
|
105
|
+
export declare const predictiveHireEUQACustomer: {
|
|
106
|
+
id: string;
|
|
107
|
+
fiPredictorMaster: string;
|
|
108
|
+
siPredictorMaster: string;
|
|
109
|
+
workflowId: string;
|
|
110
|
+
externalCohortId: string;
|
|
111
|
+
};
|
|
112
|
+
export declare const irelandQACustomerList: CustomerItem[];
|
|
113
|
+
export declare const sydneyCustomerEnvMap: {
|
|
114
|
+
localhost: CustomerItem[];
|
|
115
|
+
dev: CustomerItem[];
|
|
116
|
+
qa: CustomerItem[];
|
|
117
|
+
sandbox: CustomerItem[];
|
|
118
|
+
};
|
|
119
|
+
export declare const irelandCustomerEnvMap: {
|
|
120
|
+
localhost: CustomerItem[];
|
|
121
|
+
dev: CustomerItem[];
|
|
122
|
+
qa: CustomerItem[];
|
|
123
|
+
sandbox: CustomerItem[];
|
|
124
|
+
};
|
|
125
|
+
export declare const customerRegionMap: {
|
|
126
|
+
sydney: {
|
|
127
|
+
localhost: CustomerItem[];
|
|
128
|
+
dev: CustomerItem[];
|
|
129
|
+
qa: CustomerItem[];
|
|
130
|
+
sandbox: CustomerItem[];
|
|
131
|
+
};
|
|
132
|
+
ireland: {
|
|
133
|
+
localhost: CustomerItem[];
|
|
134
|
+
dev: CustomerItem[];
|
|
135
|
+
qa: CustomerItem[];
|
|
136
|
+
sandbox: CustomerItem[];
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
export declare const parseFullName: (fullName: string) => {
|
|
140
|
+
firstName: string;
|
|
141
|
+
lastName: string;
|
|
142
|
+
};
|
|
143
|
+
export declare const generateMockOrderAssessmentBody: ({ candidateName, candidateEmail, customer, type }: {
|
|
144
|
+
candidateName: string;
|
|
145
|
+
candidateEmail?: string;
|
|
146
|
+
customer: Customer;
|
|
147
|
+
type: AssessmentType;
|
|
148
|
+
}) => {
|
|
149
|
+
atsApplicationInput: {
|
|
150
|
+
predictorMasterId: string;
|
|
151
|
+
externalApplicantId: string;
|
|
152
|
+
externalApplicationId: string;
|
|
153
|
+
externalAssessmentId: string;
|
|
154
|
+
cohortInfo: {
|
|
155
|
+
customerId: string;
|
|
156
|
+
ownerUserId: string;
|
|
157
|
+
externalId: string;
|
|
158
|
+
title: string;
|
|
159
|
+
description: string;
|
|
160
|
+
managers: {
|
|
161
|
+
externalId: string;
|
|
162
|
+
firstName: string;
|
|
163
|
+
lastName: string;
|
|
164
|
+
email: string;
|
|
165
|
+
}[];
|
|
166
|
+
};
|
|
167
|
+
candidateInfo: {
|
|
168
|
+
personalInformation: {
|
|
169
|
+
firstName: string;
|
|
170
|
+
lastName: string;
|
|
171
|
+
email: string;
|
|
172
|
+
phoneNumber: string;
|
|
173
|
+
};
|
|
174
|
+
location: {
|
|
175
|
+
address: string;
|
|
176
|
+
coordinate: {
|
|
177
|
+
lat: number;
|
|
178
|
+
lng: number;
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
atsInfo: {
|
|
183
|
+
name: string;
|
|
184
|
+
metaData: {
|
|
185
|
+
workflowId: string;
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PHChatBotCallback } from "@/types/ChatBot";
|
|
2
|
+
export declare const useAccessManagement: ({ assessmentId, phChatBotCallback }: {
|
|
3
|
+
assessmentId: string;
|
|
4
|
+
phChatBotCallback: PHChatBotCallback;
|
|
5
|
+
}) => {
|
|
6
|
+
gettingAccessManagement: boolean;
|
|
7
|
+
getAccessManagementCall: () => Promise<{
|
|
8
|
+
shouldAuthenticate: boolean;
|
|
9
|
+
emailHint: string;
|
|
10
|
+
language: string;
|
|
11
|
+
}>;
|
|
12
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PHChatBotCallback } from "@/types/ChatBot";
|
|
2
|
+
export declare const useAccessVerification: ({ assessmentId, phChatBotCallback }: {
|
|
3
|
+
assessmentId: string;
|
|
4
|
+
phChatBotCallback: PHChatBotCallback;
|
|
5
|
+
}) => {
|
|
6
|
+
shouldShowAccessVerification: boolean;
|
|
7
|
+
emailHint: string;
|
|
8
|
+
shouldShowAccessVerificationChecking: boolean;
|
|
9
|
+
verifyingAccess: boolean;
|
|
10
|
+
verifyAccess: (candidateEmail: string) => Promise<{
|
|
11
|
+
allowToAccess: boolean;
|
|
12
|
+
}>;
|
|
13
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { PHChatbotErrorCallPayload } from "@/types/ChatBot";
|
|
2
|
+
import { PiiNameQuestionType } from "@/types/Next";
|
|
3
|
+
export declare const useExtractHumanName: ({ assessmentId, onExtractHumanNameFailedCallback }: {
|
|
4
|
+
assessmentId: string;
|
|
5
|
+
onExtractHumanNameFailedCallback?: (payload?: PHChatbotErrorCallPayload) => void;
|
|
6
|
+
}) => {
|
|
7
|
+
isExtractingHumanName: boolean;
|
|
8
|
+
extractHumanName: (args_0: {
|
|
9
|
+
userText: string;
|
|
10
|
+
piiQuestionType: PiiNameQuestionType;
|
|
11
|
+
}) => Promise<{
|
|
12
|
+
success: boolean;
|
|
13
|
+
data: import("../apis/types/apiResponse").PostExtractHumanNameApiResponse;
|
|
14
|
+
}>;
|
|
15
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { RefObject } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* This hook will observe an editor and scroll the assessment dialog flow to bottom if editor height changes
|
|
4
|
+
* @param ref - The RefObject of the editor to observe its height
|
|
5
|
+
*/
|
|
6
|
+
export declare const useHandleEditorHeightChange: (ref: RefObject<HTMLElement>) => void;
|
|
7
|
+
export default useHandleEditorHeightChange;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ThrottleOptions } from "ahooks/lib/useThrottle/throttleOptions";
|
|
2
|
+
export declare enum LocalStorageKey {
|
|
3
|
+
"ANSWER" = "ANSWER",
|
|
4
|
+
"VIDEO_RETRY_RECORDS" = "VIDEO_RETRY_RECORDS",
|
|
5
|
+
"DO_NOT_SHOW_LESS_WORD_COUNT_POP_UP_AGAIN" = "DO_NOT_SHOW_LESS_WORD_COUNT_POP_UP_AGAIN",
|
|
6
|
+
"ASSESSMENT_CACHE" = "ASSESSMENT_CACHE",
|
|
7
|
+
"ASSESSMENT_TAB_COUNT" = "ASSESSMENT_TAB_COUNT",
|
|
8
|
+
"ACCESS_VERIFICATION_INFO" = "ACCESS_VERIFICATION_INFO"
|
|
9
|
+
}
|
|
10
|
+
export declare const useLocalStorage: ({ key, throttleOptions }: {
|
|
11
|
+
key?: LocalStorageKey;
|
|
12
|
+
throttleOptions?: ThrottleOptions;
|
|
13
|
+
}) => {
|
|
14
|
+
getItem: <T = any>(accessKey?: LocalStorageKey) => T;
|
|
15
|
+
removeItem: (accessKey?: LocalStorageKey) => void;
|
|
16
|
+
updateItemWithThrottle: <T_1>({ accessKey, value }: {
|
|
17
|
+
accessKey?: LocalStorageKey;
|
|
18
|
+
value: string | T_1;
|
|
19
|
+
}) => void;
|
|
20
|
+
setItem: ({ accessKey, value }: {
|
|
21
|
+
accessKey?: LocalStorageKey;
|
|
22
|
+
value: string | any;
|
|
23
|
+
}) => void;
|
|
24
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PHChatBotCallback } from "@/types/ChatBot";
|
|
2
|
+
export declare const useVerifyAccess: ({ assessmentId, phChatBotCallback }: {
|
|
3
|
+
assessmentId: string;
|
|
4
|
+
phChatBotCallback: PHChatBotCallback;
|
|
5
|
+
}) => {
|
|
6
|
+
verifyingAccess: boolean;
|
|
7
|
+
verifyAccessCall: (candidateEmail: string) => Promise<{
|
|
8
|
+
allowToAccess: boolean;
|
|
9
|
+
}>;
|
|
10
|
+
};
|
package/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "antd/dist/antd.css";
|
package/package.json
ADDED
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@sapia-ai/chatbot",
|
|
3
|
+
"version": "2.31.0",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "predictivehire.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"start": "vite --host",
|
|
8
|
+
"build": "yarn build-chatbot && vite build",
|
|
9
|
+
"serve": "vite preview",
|
|
10
|
+
"test": "vitest",
|
|
11
|
+
"test:coverage": "vitest run --coverage",
|
|
12
|
+
"lint": "eslint --max-warnings 0 --ext .js,.jsx,.ts,.tsx ./src",
|
|
13
|
+
"lint:fix": "eslint --fix .",
|
|
14
|
+
"clean-chatbot": "rm -rf dist-chatbot",
|
|
15
|
+
"build-chatbot": "yarn clean-chatbot && vite build --config vite.chatbot.config.js && tsc -p tsconfig.build.json --emitDeclarationOnly --noEmit false",
|
|
16
|
+
"version": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md",
|
|
17
|
+
"version:get-bump": "conventional-recommended-bump -p angular",
|
|
18
|
+
"version:auto": "yarn version --no-commit-hooks --$(yarn -s version:get-bump)",
|
|
19
|
+
"prettier:lint": "yarn prettier --config .prettierrc.yml --check './src/**/*.{ts,tsx}'",
|
|
20
|
+
"prettier:fix": "yarn prettier --config .prettierrc.yml --write './src/**/*.{ts,tsx}'",
|
|
21
|
+
"prepare": "ncu && husky install",
|
|
22
|
+
"dep:upgrade": "ncu -u && yarn install",
|
|
23
|
+
"semantic-release": "semantic-release"
|
|
24
|
+
},
|
|
25
|
+
"eslintConfig": {
|
|
26
|
+
"extends": [
|
|
27
|
+
"react-app",
|
|
28
|
+
"react-app/jest"
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
"author": "",
|
|
32
|
+
"license": "ISC",
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@babel/plugin-transform-runtime": "^7.16.0",
|
|
35
|
+
"@babel/preset-env": "^7.21.5",
|
|
36
|
+
"@babel/preset-typescript": "^7.16.0",
|
|
37
|
+
"@commitlint/cli": "^17.1.2",
|
|
38
|
+
"@commitlint/config-conventional": "^17.1.0",
|
|
39
|
+
"@rollup/plugin-babel": "^6.0.3",
|
|
40
|
+
"@semantic-release/git": "^10.0.1",
|
|
41
|
+
"@testing-library/dom": "^8.11.1",
|
|
42
|
+
"@testing-library/jest-dom": "^5.15.0",
|
|
43
|
+
"@testing-library/react": "^12.1.2",
|
|
44
|
+
"@testing-library/react-hooks": "^7.0.2",
|
|
45
|
+
"@testing-library/user-event": "^14.4.3",
|
|
46
|
+
"@types/jest": "^27.0.2",
|
|
47
|
+
"@types/markdown-draft-js": "^2.2.4",
|
|
48
|
+
"@types/node": "^16.11.7",
|
|
49
|
+
"@types/react": "^17.0.34",
|
|
50
|
+
"@types/react-dom": "^17.0.11",
|
|
51
|
+
"@types/react-draft-wysiwyg": "^1.13.3",
|
|
52
|
+
"@types/react-loadable": "^5.5.6",
|
|
53
|
+
"@types/react-places-autocomplete": "^7.2.9",
|
|
54
|
+
"@types/recordrtc": "^5.6.8",
|
|
55
|
+
"@types/uuid": "^8.3.1",
|
|
56
|
+
"@types/validator": "^13.6.6",
|
|
57
|
+
"@types/video.js": "^7.3.27",
|
|
58
|
+
"@typescript-eslint/eslint-plugin": "^5.3.1",
|
|
59
|
+
"@typescript-eslint/parser": "^5.3.1",
|
|
60
|
+
"@vitejs/plugin-react": "^3.1.0",
|
|
61
|
+
"@vitest/coverage-c8": "^0.30.1",
|
|
62
|
+
"@vitest/coverage-istanbul": "^0.34.6",
|
|
63
|
+
"autoprefixer": "^10.4.14",
|
|
64
|
+
"babel-plugin-import": "^1.13.3",
|
|
65
|
+
"babel-plugin-transform-class-properties": "^6.24.1",
|
|
66
|
+
"commitizen": "^4.2.4",
|
|
67
|
+
"conventional-changelog-cli": "^2.1.1",
|
|
68
|
+
"conventional-recommended-bump": "^6.1.0",
|
|
69
|
+
"cpx": "^1.5.0",
|
|
70
|
+
"customize-cra": "^1.0.0",
|
|
71
|
+
"cz-conventional-changelog": "^3.3.0",
|
|
72
|
+
"eslint": "^8.39.0",
|
|
73
|
+
"eslint-config-prettier": "^8.3.0",
|
|
74
|
+
"eslint-import-resolver-alias": "^1.1.2",
|
|
75
|
+
"eslint-plugin-import": "^2.25.3",
|
|
76
|
+
"eslint-plugin-node": "^11.1.0",
|
|
77
|
+
"eslint-plugin-prettier": "^4.0.0",
|
|
78
|
+
"eslint-plugin-promise": "^5.1.1",
|
|
79
|
+
"eslint-plugin-react": "^7.27.0",
|
|
80
|
+
"eslint-plugin-react-hooks": "^4.3.0",
|
|
81
|
+
"eslint-plugin-simple-import-sort": "^7.0.0",
|
|
82
|
+
"husky": "^7.0.4",
|
|
83
|
+
"identity-obj-proxy": "^3.0.0",
|
|
84
|
+
"jsdom": "^21.1.1",
|
|
85
|
+
"mockdate": "^3.0.5",
|
|
86
|
+
"npm-check-updates": "^12.0.2",
|
|
87
|
+
"postcss": "^8.4.23",
|
|
88
|
+
"prettier": "^2.4.1",
|
|
89
|
+
"react": "^17.0.2",
|
|
90
|
+
"react-dom": "^17.0.2",
|
|
91
|
+
"react-test-renderer": "^17.0.2",
|
|
92
|
+
"semantic-release": "^19.0.3",
|
|
93
|
+
"tscpaths": "^0.0.9",
|
|
94
|
+
"typescript": "^4.4.4",
|
|
95
|
+
"typescript-plugin-css-modules": "^3.4.0",
|
|
96
|
+
"vite": "^4.2.1",
|
|
97
|
+
"vite-plugin-checker": "^0.6.1",
|
|
98
|
+
"vite-plugin-css-injected-by-js": "^3.1.0",
|
|
99
|
+
"vite-plugin-eslint": "^1.8.1",
|
|
100
|
+
"vitest": "^0.30.1",
|
|
101
|
+
"webpack-cli": "^4.9.1"
|
|
102
|
+
},
|
|
103
|
+
"dependencies": {
|
|
104
|
+
"@ant-design/icons": "^4.7.0",
|
|
105
|
+
"@types/marked": "^6.0.0",
|
|
106
|
+
"@types/react-router-dom": "^5.3.2",
|
|
107
|
+
"@types/turndown": "^5.0.5",
|
|
108
|
+
"ahooks": "^2.10.12",
|
|
109
|
+
"antd": "4.17.0",
|
|
110
|
+
"axios": "^1.6.0",
|
|
111
|
+
"babel-loader": "8.1.0",
|
|
112
|
+
"bowser": "^2.11.0",
|
|
113
|
+
"classnames": "^2.3.1",
|
|
114
|
+
"detect-browser": "^5.2.1",
|
|
115
|
+
"emoji-regex": "^10.0.0",
|
|
116
|
+
"i18next": "^22.4.10",
|
|
117
|
+
"is-mobile": "^3.0.0",
|
|
118
|
+
"less": "^4.1.2",
|
|
119
|
+
"less-loader": "^5.0.0",
|
|
120
|
+
"libphonenumber-js": "^1.10.39",
|
|
121
|
+
"marked": "^15.0.11",
|
|
122
|
+
"quill-emoji": "^0.2.0",
|
|
123
|
+
"react-app-polyfill": "^2.0.0",
|
|
124
|
+
"react-google-autocomplete": "^2.6.0",
|
|
125
|
+
"react-loadable": "^5.5.0",
|
|
126
|
+
"react-markdown": "^5.0.3",
|
|
127
|
+
"react-places-autocomplete": "^7.3.0",
|
|
128
|
+
"react-player": "2.11.2",
|
|
129
|
+
"react-quill": "^2.0.0",
|
|
130
|
+
"react-router-dom": "^6.0.2",
|
|
131
|
+
"recordrtc": "^5.6.2",
|
|
132
|
+
"ts-ebml": "^2.0.2",
|
|
133
|
+
"turndown": "^7.2.0",
|
|
134
|
+
"url-loader": "^4.1.1",
|
|
135
|
+
"uuid": "^8.3.2",
|
|
136
|
+
"validator": "^13.7.0",
|
|
137
|
+
"video.js": "^7.15.4",
|
|
138
|
+
"videojs-record": "^4.5.0"
|
|
139
|
+
},
|
|
140
|
+
"peerDependencies": {
|
|
141
|
+
"react": ">=16.8.0",
|
|
142
|
+
"react-dom": ">=16.8.0"
|
|
143
|
+
},
|
|
144
|
+
"browserslist": {
|
|
145
|
+
"production": [
|
|
146
|
+
">0.2%",
|
|
147
|
+
"not dead",
|
|
148
|
+
"not op_mini all"
|
|
149
|
+
],
|
|
150
|
+
"development": [
|
|
151
|
+
"last 1 chrome version",
|
|
152
|
+
"last 1 firefox version",
|
|
153
|
+
"last 1 safari version"
|
|
154
|
+
]
|
|
155
|
+
},
|
|
156
|
+
"config": {
|
|
157
|
+
"commitizen": {
|
|
158
|
+
"path": "./node_modules/cz-conventional-changelog"
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
"repository": {
|
|
162
|
+
"type": "git",
|
|
163
|
+
"url": "git+https://github.com/PredictiveHire/phapp-fi-widget.git"
|
|
164
|
+
},
|
|
165
|
+
"publishConfig": {
|
|
166
|
+
"access": "public"
|
|
167
|
+
},
|
|
168
|
+
"volta": {
|
|
169
|
+
"node": "20.11.0",
|
|
170
|
+
"yarn": "1.22.17"
|
|
171
|
+
}
|
|
172
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import "@/styles/index.less";
|
|
3
|
+
import { PHChatBotCallback, Theme } from "@/types/ChatBot";
|
|
4
|
+
export declare const App: ({ assessmentId, region, brandingTheme, callbacks, showHeader, isInternalUser }: {
|
|
5
|
+
assessmentId: string;
|
|
6
|
+
region: string;
|
|
7
|
+
brandingTheme: Theme;
|
|
8
|
+
callbacks: PHChatBotCallback;
|
|
9
|
+
showHeader?: boolean;
|
|
10
|
+
isInternalUser?: boolean;
|
|
11
|
+
}) => JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { PHChatBotCallback } from "@/types/ChatBot";
|
|
3
|
+
export declare const GenericLanguageSelectionPage: ({ callbacks, jobRequisitionShortcode }: {
|
|
4
|
+
callbacks: PHChatBotCallback;
|
|
5
|
+
jobRequisitionShortcode: string;
|
|
6
|
+
}) => JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { JobRequisition } from "@/apis/types/jobRequisition";
|
|
3
|
+
import { PHChatBotCallback, Theme } from "@/types/ChatBot";
|
|
4
|
+
export declare const LanguageSelection: ({ jobRequisition, theme, logoUrl, handleOrderAssessment, isSubmittingOrderAssessment, phChatBotCallback }: {
|
|
5
|
+
jobRequisition: JobRequisition;
|
|
6
|
+
theme: Theme;
|
|
7
|
+
logoUrl: string;
|
|
8
|
+
handleOrderAssessment: ({ selectedWorkflowId }: {
|
|
9
|
+
selectedWorkflowId: string;
|
|
10
|
+
}) => Promise<void>;
|
|
11
|
+
isSubmittingOrderAssessment: boolean;
|
|
12
|
+
phChatBotCallback: PHChatBotCallback;
|
|
13
|
+
}) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { JobRequisition, WorkflowOption } from "@/apis/types/jobRequisition";
|
|
2
|
+
import { PHChatBotCallback } from "@/types/ChatBot";
|
|
3
|
+
declare type WorkflowSelectOption = {
|
|
4
|
+
label: string;
|
|
5
|
+
value: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const getDefaultWorkflow: (workflowOptions: WorkflowOption[]) => WorkflowOption;
|
|
8
|
+
export declare const useLanguageSelection: ({ jobRequisition, phChatBotCallback }: {
|
|
9
|
+
jobRequisition: JobRequisition;
|
|
10
|
+
phChatBotCallback: PHChatBotCallback;
|
|
11
|
+
}) => {
|
|
12
|
+
selectedWorkflow: WorkflowSelectOption;
|
|
13
|
+
workflowOptions: {
|
|
14
|
+
label: string;
|
|
15
|
+
value: string;
|
|
16
|
+
}[];
|
|
17
|
+
handleWorkflowSelected: (workflowId: string) => Promise<void>;
|
|
18
|
+
};
|
|
19
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./OrderAssessment";
|