@myinterview/chatbot 0.1.79-beta-c0ad4d7 → 0.1.79

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.
@@ -1,5 +1,5 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
- import { P as r } from "./main.react-DpgU1E8f.js";
2
+ import { P as r } from "./main.react-m_-7A0lY.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-DjPDDfRw.js.map
18
+ //# sourceMappingURL=index-uV-VXrWZ.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-DjPDDfRw.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
+ {"version":3,"file":"index-uV-VXrWZ.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;"}
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("._myinterview-chatbot--component-mode_1hygk_1{width:100%;height:100%}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
- import { e as a, f as e } from "./main.react-DpgU1E8f.js";
2
+ import { e as a, f as e } from "./main.react-m_-7A0lY.js";
3
3
  export {
4
4
  a as ChatbotClient,
5
5
  e as usePopupChatbot
@@ -43634,7 +43634,7 @@ let $l = wN;
43634
43634
  const cwe = (e) => {
43635
43635
  let t = e;
43636
43636
  try {
43637
- t ?? (t = "staging");
43637
+ t ?? (t = "production");
43638
43638
  } catch {
43639
43639
  }
43640
43640
  $l = (() => {
@@ -81198,7 +81198,7 @@ var Tc;
81198
81198
  const h2 = {
81199
81199
  tnc: () => {
81200
81200
  }
81201
- }, _Se = Qa(() => import("./index-BDPszXQ6.js")), bSe = Qa(() => import("./index-CGijTcZd.js")), wSe = Qa(() => import("./index-BB6I3f_d.js")), kSe = Qa(() => import("./index-BjocZQ73.js")), SSe = Qa(() => import("./index-DTESr_Jl.js")), $Se = Qa(() => import("./index-DjPDDfRw.js")), ESe = Qa(() => import("./index-BWzFTnW1.js")), TSe = Qa(() => import("./index-BRhiRnzH.js")), OSe = Qa(() => import("./index-BzddTscq.js")), kT = {
81201
+ }, _Se = Qa(() => import("./index-CxkIhVPi.js")), bSe = Qa(() => import("./index-B5nMQDkY.js")), wSe = Qa(() => import("./index-RodVddTc.js")), kSe = Qa(() => import("./index-BxpQXU3N.js")), SSe = Qa(() => import("./index-CkkHX_II.js")), $Se = Qa(() => import("./index-uV-VXrWZ.js")), ESe = Qa(() => import("./index-VsUesMjT.js")), TSe = Qa(() => import("./index-CF8ln101.js")), OSe = Qa(() => import("./index-BabmD76B.js")), kT = {
81202
81202
  [Wo.TNC]: {
81203
81203
  component: _Se,
81204
81204
  customAction: Tc.SHOW_TNC
@@ -82664,7 +82664,7 @@ const g8e = ({ markdownText: e }) => he("div", { dangerouslySetInnerHTML: (Mr.se
82664
82664
  }, R8e = () => {
82665
82665
  _U() && yU(), ZK({
82666
82666
  dsn: $l.SENTRY_DSN,
82667
- environment: "staging",
82667
+ environment: "production",
82668
82668
  release: "0.1.79",
82669
82669
  integrations: [
82670
82670
  GK(),
@@ -82853,4 +82853,4 @@ export {
82853
82853
  Xo as i,
82854
82854
  Hr as u
82855
82855
  };
82856
- //# sourceMappingURL=main.react-DpgU1E8f.js.map
82856
+ //# sourceMappingURL=main.react-m_-7A0lY.js.map