@myinterview/chatbot 0.1.78-beta-2e65432 → 0.1.78
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/dist/{index-Djcq258X.js → index-BKaveF39.js} +2 -2
- package/dist/{index-Djcq258X.js.map → index-BKaveF39.js.map} +1 -1
- package/dist/{index-B5GEk-QP.js → index-BM74fau_.js} +2 -2
- package/dist/{index-B5GEk-QP.js.map → index-BM74fau_.js.map} +1 -1
- package/dist/{index-q85aFVwg.js → index-B_3V2SsA.js} +2 -2
- package/dist/{index-q85aFVwg.js.map → index-B_3V2SsA.js.map} +1 -1
- package/dist/{index-n3y7yP_-.js → index-BkKh_B9_.js} +2 -2
- package/dist/{index-n3y7yP_-.js.map → index-BkKh_B9_.js.map} +1 -1
- package/dist/{index-B3IpGzFN.js → index-BwnD9b3f.js} +2 -2
- package/dist/{index-B3IpGzFN.js.map → index-BwnD9b3f.js.map} +1 -1
- package/dist/{index-BeNTpLkM.js → index-C9VugPt_.js} +2 -2
- package/dist/{index-BeNTpLkM.js.map → index-C9VugPt_.js.map} +1 -1
- package/dist/{index-CEsC2VHK.js → index-CRTFfAjz.js} +2 -2
- package/dist/{index-CEsC2VHK.js.map → index-CRTFfAjz.js.map} +1 -1
- package/dist/{index-sgxwNh45.js → index-ClFF5jtR.js} +2 -2
- package/dist/{index-sgxwNh45.js.map → index-ClFF5jtR.js.map} +1 -1
- package/dist/{index-CUac65MC.js → index-DXXAEzZX.js} +2 -2
- package/dist/{index-CUac65MC.js.map → index-DXXAEzZX.js.map} +1 -1
- package/dist/index.js +1 -1
- package/dist/{main.react-Cm0XhC0P.js → main.react-EZCAUint.js} +4 -4
- package/dist/{main.react-Cm0XhC0P.js.map → main.react-EZCAUint.js.map} +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as c, jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { c as n, d as _, J as v, P as g } from "./main.react-
|
|
2
|
+
import { c as n, d as _, J as v, P as g } from "./main.react-EZCAUint.js";
|
|
3
3
|
import { useState as a } from "react";
|
|
4
4
|
const S = ({ data: s, completed: r, onSubmitAnswer: d }) => {
|
|
5
5
|
const [l, m] = a(r), [t, o] = a(), h = (e) => {
|
|
@@ -16,4 +16,4 @@ const S = ({ data: s, completed: r, onSubmitAnswer: d }) => {
|
|
|
16
16
|
export {
|
|
17
17
|
S as default
|
|
18
18
|
};
|
|
19
|
-
//# sourceMappingURL=index-
|
|
19
|
+
//# sourceMappingURL=index-BKaveF39.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-BKaveF39.js","sources":["../src/components/modules/SingleSelect/index.tsx"],"sourcesContent":["import { Button, Check, Text } from '@myinterview/component-library';\nimport { useState } from 'react';\nimport classNames from 'classnames';\nimport { MessageModuleProps } from '../../../interfaces/modules';\nimport { ModuleType } from '../../../interfaces/modules/generic';\n\nconst SingleSelect = ({ data, completed, onSubmitAnswer }: MessageModuleProps<ModuleType.SINGLE_SELECT>) => {\n const [isDisabled, setIsDisabled] = useState<boolean>(completed);\n const [selectedOption, setSelectedOption] = useState<typeof data['options'][number] | null>();\n\n const handleChange = (option: typeof data['options'][number]) => {\n if (isDisabled) return;\n setSelectedOption(option);\n };\n\n const handleSubmit = () => {\n if (!selectedOption) return;\n onSubmitAnswer(\n {\n ...data,\n options: data.options.map((option) => ({ ...option, selected: option.id === selectedOption.id })),\n selected_id: selectedOption.id,\n },\n selectedOption.title,\n );\n setIsDisabled(true);\n };\n\n return (\n <div className=\"myinterview-chatbot-single-select\">\n <div className={classNames('myinterview-chatbot-single-select__list', { 'myinterview-chatbot-single-select__list--disabled': isDisabled })}>\n {data.options.map((option) => (\n <div\n key={option.id}\n className=\"myinterview-chatbot-single-select__item\"\n onClick={() => handleChange(option)}\n role=\"presentation\"\n >\n <div className={classNames('myinterview-chatbot-single-select__checkmark', { 'myinterview-chatbot-single-select__checkmark--selected': option.id === selectedOption?.id })}>\n <Check />\n </div>\n <Text className=\"myinterview-chatbot-single-select__title\">{option.title}</Text>\n </div>\n ))}\n </div>\n\n <Button\n size=\"small\"\n onClick={handleSubmit}\n disabled={isDisabled || !selectedOption}\n >\n {data.buttonText || 'Submit'}\n </Button>\n </div>\n );\n};\n\nexport default SingleSelect;\n"],"names":["SingleSelect","data","completed","onSubmitAnswer","isDisabled","setIsDisabled","useState","selectedOption","setSelectedOption","handleChange","option","handleSubmit","_jsxs","_jsx","classNames","Check","Text","Button"],"mappings":";;;AAMA,MAAMA,IAAe,CAAC,EAAE,MAAAC,GAAM,WAAAC,GAAW,gBAAAC,QAAkE;AACzG,QAAM,CAACC,GAAYC,CAAa,IAAIC,EAAkBJ,CAAS,GACzD,CAACK,GAAgBC,CAAiB,IAAIF,EAAA,GAEtCG,IAAe,CAACC,MAA0C;AAC9D,IAAIN,KACJI,EAAkBE,CAAM;AAAA,EAC1B,GAEMC,IAAe,MAAK;AACxB,IAAKJ,MACLJ,EACE;AAAA,MACE,GAAGF;AAAA,MACH,SAASA,EAAK,QAAQ,IAAI,CAACS,OAAY,EAAE,GAAGA,GAAQ,UAAUA,EAAO,OAAOH,EAAe,KAAK;AAAA,MAChG,aAAaA,EAAe;AAAA,IAAA,GAE9BA,EAAe,KAAK,GAEtBF,EAAc,EAAI;AAAA,EACpB;AAEA,SACEO,EAAA,OAAA,EAAK,WAAU,qCAAmC,UAAA,CAChDC,EAAA,OAAA,EAAK,WAAWC,EAAW,2CAA2C,EAAE,qDAAqDV,EAAA,CAAY,GAAC,UACvIH,EAAK,QAAQ,IAAI,CAACS,MACjBE,EAAA,OAAA,EAEE,WAAU,2CACV,SAAS,MAAMH,EAAaC,CAAM,GAClC,MAAK,gBAAc,UAAA,CAEnBG,EAAA,OAAA,EAAK,WAAWC,EAAW,gDAAgD,EAAE,0DAA0DJ,EAAO,QAAOH,KAAA,gBAAAA,EAAgB,IAAA,CAAI,GAAC,UACxKM,EAACE,GAAK,EAAA,GAAG,GAEXF,EAACG,GAAI,EAAC,WAAU,4CAA0C,UAAEN,EAAO,MAAA,CAAK,CAAQ,EAAA,GAR3EA,EAAO,EAAE,CAUjB,EAAA,CAAC,GAGJG,EAACI,GAAM,EACL,MAAK,SACL,SAASN,GACT,UAAUP,KAAc,CAACG,GAAc,UAEtCN,EAAK,cAAc,UAAQ,CACrB,GAAA;AAGf;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as d, jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as I, useState as u, useEffect as x } from "react";
|
|
3
|
-
import { a as C, u as A, b as k, i as q, c as D, M as E, S as V, P as j, C as T } from "./main.react-
|
|
3
|
+
import { a as C, u as A, b as k, i as q, c as D, M as E, S as V, P as j, C as T } from "./main.react-EZCAUint.js";
|
|
4
4
|
var a;
|
|
5
5
|
(function(e) {
|
|
6
6
|
e.IframeModule = "0", e.MobileModule = "1", e.RedirectionModule = "2", e.LiveMobileModule = "3";
|
|
@@ -38,4 +38,4 @@ const m = {
|
|
|
38
38
|
export {
|
|
39
39
|
H as default
|
|
40
40
|
};
|
|
41
|
-
//# sourceMappingURL=index-
|
|
41
|
+
//# sourceMappingURL=index-BM74fau_.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-BM74fau_.js","sources":["../src/interfaces/modules/idAnalyzer.ts","../src/services/idAnalayzer.service.ts","../src/components/modules/IDAnalayzer/index.tsx"],"sourcesContent":["import { ChatModule, IDAnalayzerMethod, ModuleName, ModuleType } from './generic';\n\nexport enum DocuPassModuleType {\n IframeModule = '0',\n MobileModule = '1',\n RedirectionModule = '2',\n LiveMobileModule = '3',\n}\n\nexport const DocuPassModuleTypeResponse: { [k in DocuPassModuleType]: 'iframe' | 'qrcode' | 'url' } = {\n [DocuPassModuleType.IframeModule]: 'iframe',\n [DocuPassModuleType.MobileModule]: 'qrcode',\n [DocuPassModuleType.RedirectionModule]: 'url',\n [DocuPassModuleType.LiveMobileModule]: 'qrcode',\n} as const;\n\nexport type IDAnalayzerModule = ChatModule<ModuleName.ID_ANALYZER, ModuleType.ID_ANALYZER, IDAnalayzerMethod>;\n","import { DocuPassModuleType } from '../interfaces/modules/idAnalyzer';\nimport { axiosInstanceVius } from './axiosInstances.service';\n\nexport const createAnalyzer = async (docPassModuleType: DocuPassModuleType, verificationMethods: string, authorization: string, video_id: string) => axiosInstanceVius.post('/modules/idanalyzer/createVerificationSession', { type: docPassModuleType, documentType: verificationMethods, video_id }, { headers: { authorization } });\n\nexport const confirmAnalyzer = async (authorization: string, controller: AbortController, video_id: string) => axiosInstanceVius.get(`/modules/idanalyzer?video_id=${video_id}`, { headers: { authorization }, timeout: 1e6, signal: controller.signal });\n","import { useEffect, useRef, useState } from 'react';\nimport classNames from 'classnames';\nimport { Button } from '@myinterview/component-library';\n// import { createPortal } from 'react-dom';\nimport { MessageModuleProps } from '../../../interfaces/modules';\nimport { ModuleType } from '../../../interfaces/modules/generic';\nimport { DocuPassModuleType, DocuPassModuleTypeResponse } from '../../../interfaces/modules/idAnalyzer';\nimport { isMobile } from '../../../utils/device.utils';\nimport { useAppSelector } from '../../../store/hooks';\nimport { confirmAnalyzer, createAnalyzer } from '../../../services/idAnalayzer.service';\nimport { conversationsMap } from '../../../utils/sdkObject.utils';\nimport { ReduxConversationAttributes } from '../../../interfaces/mainInterface';\nimport MediaImage from '../../MediaImage';\nimport CloseButton from '../../common/CloseButton';\nimport Skeleton from '../../ui/Skeleton';\n\nconst IDAnalayzer = ({ data, completed }: MessageModuleProps<ModuleType.ID_ANALYZER>) => {\n const auth = useAppSelector((state) => state.chatbotConfig.auth);\n const selectedConversationId = useAppSelector((state) => state.main.selectedConversationId);\n const idAnalyzerController = useRef(new AbortController());\n const videoId = (conversationsMap.get(selectedConversationId)?.attributes as ReduxConversationAttributes).video_id;\n const docModuleType = useRef<DocuPassModuleType>(isMobile ? DocuPassModuleType.IframeModule : DocuPassModuleType.LiveMobileModule);\n const [idAnalyzerUrl, setIdAnalazyerUrl] = useState<string>('');\n const [isOpen, setIsOpen] = useState<boolean>(false);\n const [mediaLoaded, setIsMediaLoaded] = useState<boolean>(false);\n\n const isQRCode = DocuPassModuleTypeResponse[docModuleType.current] === 'qrcode';\n\n const clearIdAnalyzer = () => {\n idAnalyzerController.current.abort();\n setIsOpen(false);\n };\n\n const checkAnalyzerValidation = () => {\n idAnalyzerController.current = new AbortController();\n confirmAnalyzer(auth, idAnalyzerController.current, videoId)\n .then(clearIdAnalyzer)\n .catch((e) => {\n if (e.code !== 'ERR_CANCELED') {\n checkAnalyzerValidation();\n }\n });\n };\n\n const setAnalyzer = () => {\n const verificationMethods = data.methods?.join('');\n createAnalyzer(docModuleType.current, verificationMethods, auth, videoId).then((res) => {\n setIdAnalazyerUrl(res.data.data[DocuPassModuleTypeResponse[docModuleType.current]]);\n });\n };\n\n const openIDAnalayzer = () => {\n setIsOpen(true);\n checkAnalyzerValidation();\n };\n\n useEffect(() => {\n setAnalyzer();\n }, []);\n\n const idAnalayzerClassNames = classNames('myinterview-chatbot-id-analyzer', {\n 'myinterview-chatbot-id-analyzer--qr-code': isQRCode,\n });\n\n if (isQRCode) {\n return (\n <div className={idAnalayzerClassNames}>\n <MediaImage mediaUrl={idAnalyzerUrl} title=\"QR-Code\" disableFetching onMediaReady={() => setIsMediaLoaded(true)} />\n {!mediaLoaded && <Skeleton transparent />}\n </div>\n );\n }\n\n return (\n <div className={idAnalayzerClassNames}>\n <Button onClick={openIDAnalayzer} size=\"small\" disabled={!idAnalyzerUrl || completed}>{data.buttonText || 'Verify ID'}</Button>\n {isOpen\n && (\n <div className=\"myinterview-chatbot-id-analyzer__iframe-container\">\n <CloseButton classNames=\"myinterview-chatbot-id-analyzer__close\" onClick={clearIdAnalyzer} size={16} />\n\n {DocuPassModuleTypeResponse[docModuleType.current] === 'iframe'\n ? <div className=\"myinterview-chatbot-id-analyzer__iframe-wrapper\" dangerouslySetInnerHTML={{ __html: idAnalyzerUrl }} />\n : <iframe src={idAnalyzerUrl} title=\"ID Analyzer\" />}\n </div>\n )}\n </div>\n );\n};\n\nexport default IDAnalayzer;\n"],"names":["DocuPassModuleType","DocuPassModuleTypeResponse","createAnalyzer","docPassModuleType","verificationMethods","authorization","video_id","axiosInstanceVius","confirmAnalyzer","controller","IDAnalayzer","data","completed","auth","useAppSelector","state","selectedConversationId","idAnalyzerController","useRef","videoId","_a","conversationsMap","docModuleType","isMobile","idAnalyzerUrl","setIdAnalazyerUrl","useState","isOpen","setIsOpen","mediaLoaded","setIsMediaLoaded","isQRCode","clearIdAnalyzer","checkAnalyzerValidation","e","setAnalyzer","res","openIDAnalayzer","useEffect","idAnalayzerClassNames","classNames","_jsxs","_jsx","MediaImage","Skeleton","Button","CloseButton"],"mappings":"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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { P as r } from "./main.react-
|
|
2
|
+
import { P as r } from "./main.react-EZCAUint.js";
|
|
3
3
|
import { useState as h } from "react";
|
|
4
4
|
const p = ({ data: i, completed: c, onSubmitAnswer: a }) => {
|
|
5
5
|
const [d, m] = h(c), n = (e) => {
|
|
@@ -15,4 +15,4 @@ const p = ({ data: i, completed: c, onSubmitAnswer: a }) => {
|
|
|
15
15
|
export {
|
|
16
16
|
p as default
|
|
17
17
|
};
|
|
18
|
-
//# sourceMappingURL=index-
|
|
18
|
+
//# sourceMappingURL=index-B_3V2SsA.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-B_3V2SsA.js","sources":["../src/components/modules/YesNo/index.tsx"],"sourcesContent":["import { Button } from '@myinterview/component-library';\nimport { useState } from 'react';\nimport { MessageModuleProps } from '../../../interfaces/modules';\nimport { ModuleType } from '../../../interfaces/modules/generic';\n\nconst SingleSelect = ({ data, completed, onSubmitAnswer }: MessageModuleProps<ModuleType.YES_NO>) => { // TODO: Disable buttons after seleted / completed: true\n const [isDisabled, setIsDisabled] = useState<boolean>(completed);\n\n const handleClick = (selectedOption: typeof data.options[number]) => {\n const { id, title } = selectedOption;\n onSubmitAnswer({\n ...data,\n options: data.options.map((option) => ({ ...option, selected: option.id === id })),\n selected_id: id,\n }, title);\n setIsDisabled(true);\n };\n\n return (\n <div className=\"myinterview-chatbot-yes-no\">\n <div className=\"myinterview-chatbot-yes-no__list\">\n {data.options.map((option) => (\n <Button\n key={option.id}\n size=\"small\"\n className=\"myinterview-chatbot-yes-no__item\"\n onClick={() => handleClick(option)}\n value={option.id}\n disabled={isDisabled}\n >\n {option.title}\n </Button>\n ))}\n </div>\n </div>\n );\n};\n\nexport default SingleSelect;\n"],"names":["SingleSelect","data","completed","onSubmitAnswer","isDisabled","setIsDisabled","useState","handleClick","selectedOption","id","title","option","_jsx","Button"],"mappings":";;;AAKA,MAAMA,IAAe,CAAC,EAAE,MAAAC,GAAM,WAAAC,GAAW,gBAAAC,QAA2D;AAClG,QAAM,CAACC,GAAYC,CAAa,IAAIC,EAAkBJ,CAAS,GAEzDK,IAAc,CAACC,MAA+C;AAClE,UAAM,EAAE,IAAAC,GAAI,OAAAC,EAAA,IAAUF;AACtB,IAAAL,EAAe;AAAA,MACb,GAAGF;AAAA,MACH,SAASA,EAAK,QAAQ,IAAI,CAACU,OAAY,EAAE,GAAGA,GAAQ,UAAUA,EAAO,OAAOF,IAAK;AAAA,MACjF,aAAaA;AAAA,IAAA,GACZC,CAAK,GACRL,EAAc,EAAI;AAAA,EACpB;AAEA,SACEO,EAAA,OAAA,EAAK,WAAU,8BAA4B,UACzCA,EAAA,OAAA,EAAK,WAAU,oCAAkC,UAC9CX,EAAK,QAAQ,IAAI,CAACU,MACjBC,EAACC,GAAM,EAEL,MAAK,SACL,WAAU,oCACV,SAAS,MAAMN,EAAYI,CAAM,GACjC,OAAOA,EAAO,IACd,UAAUP,GAAU,UAEnBO,EAAO,MAAA,GAPHA,EAAO,EAAE,CASjB,EAAA,CAAC,GACE;AAGZ;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { P as l } from "./main.react-
|
|
2
|
+
import { P as l } from "./main.react-EZCAUint.js";
|
|
3
3
|
const s = ({ data: i, completed: o, customAction: c }) => {
|
|
4
4
|
var e;
|
|
5
5
|
return t("div", { className: "myinterview-chatbot-tnc-module", children: t(l, { size: "small", onClick: c, disabled: o, children: ((e = i.buttonText) == null ? void 0 : e.cta) ?? "Review Terms" }) });
|
|
@@ -7,4 +7,4 @@ const s = ({ data: i, completed: o, customAction: c }) => {
|
|
|
7
7
|
export {
|
|
8
8
|
s as default
|
|
9
9
|
};
|
|
10
|
-
//# sourceMappingURL=index-
|
|
10
|
+
//# sourceMappingURL=index-BkKh_B9_.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-BkKh_B9_.js","sources":["../src/components/modules/Tnc/index.tsx"],"sourcesContent":["import { Button } from '@myinterview/component-library';\nimport { MessageModuleProps } from '../../../interfaces/modules';\nimport { ModuleType } from '../../../interfaces/modules/generic';\n\nconst Tnc = ({ data, completed, customAction }: MessageModuleProps<ModuleType.TNC>) => (\n <div className=\"myinterview-chatbot-tnc-module\">\n <Button\n size=\"small\"\n onClick={customAction}\n disabled={completed}\n >\n {data.buttonText?.cta ?? 'Review Terms'}\n </Button>\n </div>\n);\n\nexport default Tnc;\n"],"names":["Tnc","data","completed","customAction","_jsx","Button","_a"],"mappings":";;AAIA,MAAMA,IAAM,CAAC,EAAE,MAAAC,GAAM,WAAAC,GAAW,cAAAC,EAAA,MAAY;;AAC1CC,SAAAA,EAAA,OAAA,EAAK,WAAU,kCAAgC,UAC7CA,EAACC,GAAM,EACL,MAAK,SACL,SAASF,GACT,UAAUD,GAAS,YAElBI,IAAAL,EAAK,eAAL,gBAAAK,EAAiB,QAAO,eAAA,CAAc,GAChC;AAAA;"}
|
|
@@ -3,7 +3,7 @@ import * as n2 from "react";
|
|
|
3
3
|
import $, { forwardRef as r2, useState as Fe, useRef as De, useEffect as Ve, useMemo as Ir, useImperativeHandle as i2, useCallback as Tt, createElement as o2, createContext as jp, useLayoutEffect as Fp, useContext as Ga, useDebugValue as b1 } from "react";
|
|
4
4
|
import { createPortal as a2, flushSync as Qw } from "react-dom";
|
|
5
5
|
import { renderToString as Xw } from "react-dom/server";
|
|
6
|
-
import { u as Tc, b as Jw, P as Zw } from "./main.react-
|
|
6
|
+
import { u as Tc, b as Jw, P as Zw } from "./main.react-EZCAUint.js";
|
|
7
7
|
/*! *****************************************************************************
|
|
8
8
|
Copyright (c) Microsoft Corporation.
|
|
9
9
|
|
|
@@ -40953,4 +40953,4 @@ const FU = ({ messageType: e }) => {
|
|
|
40953
40953
|
export {
|
|
40954
40954
|
YU as default
|
|
40955
40955
|
};
|
|
40956
|
-
//# sourceMappingURL=index-
|
|
40956
|
+
//# sourceMappingURL=index-BwnD9b3f.js.map
|