@bigbinary/neeto-assist-frontend 1.2.0 → 1.3.0-beta1
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 +430 -21
- package/app/javascript/src/translations/ar.json +7 -1
- package/app/javascript/src/translations/bg.json +7 -1
- package/app/javascript/src/translations/ca.json +7 -1
- package/app/javascript/src/translations/cs.json +7 -1
- package/app/javascript/src/translations/da.json +7 -1
- package/app/javascript/src/translations/de.json +7 -1
- package/app/javascript/src/translations/en.json +39 -2
- package/app/javascript/src/translations/es-MX.json +7 -1
- package/app/javascript/src/translations/es.json +7 -1
- package/app/javascript/src/translations/et.json +7 -1
- package/app/javascript/src/translations/fi.json +7 -1
- package/app/javascript/src/translations/fil.json +7 -1
- package/app/javascript/src/translations/fr.json +7 -1
- package/app/javascript/src/translations/he.json +7 -1
- package/app/javascript/src/translations/hi.json +7 -1
- package/app/javascript/src/translations/hr.json +7 -1
- package/app/javascript/src/translations/hu.json +7 -1
- package/app/javascript/src/translations/id.json +7 -1
- package/app/javascript/src/translations/it.json +7 -1
- package/app/javascript/src/translations/ja.json +7 -1
- package/app/javascript/src/translations/ko.json +7 -1
- package/app/javascript/src/translations/lv.json +7 -1
- package/app/javascript/src/translations/nl.json +7 -1
- package/app/javascript/src/translations/pl.json +7 -1
- package/app/javascript/src/translations/pt-BR.json +7 -1
- package/app/javascript/src/translations/pt.json +7 -1
- package/app/javascript/src/translations/ro.json +7 -1
- package/app/javascript/src/translations/ru.json +7 -1
- package/app/javascript/src/translations/sk.json +7 -1
- package/app/javascript/src/translations/sl.json +7 -1
- package/app/javascript/src/translations/sv.json +7 -1
- package/app/javascript/src/translations/th.json +7 -1
- package/app/javascript/src/translations/tr.json +7 -1
- package/app/javascript/src/translations/uk.json +7 -1
- package/app/javascript/src/translations/vi.json +7 -1
- package/app/javascript/src/translations/zh-CN.json +7 -1
- package/app/javascript/src/translations/zh-TW.json +7 -1
- package/dist/.ready +1 -1
- package/dist/NeetoAssistButton.js +13 -6
- package/dist/NeetoAssistButton.js.map +1 -1
- package/dist/NeetoAssistPane.js +1469 -166
- package/dist/NeetoAssistPane.js.map +1 -1
- package/dist/cjs/NeetoAssistButton.js +16 -9
- package/dist/cjs/NeetoAssistButton.js.map +1 -1
- package/dist/cjs/NeetoAssistPane.js +1491 -188
- package/dist/cjs/NeetoAssistPane.js.map +1 -1
- package/dist/cjs/index.js +11 -5
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/useNeetoAssistAssistant.js +43 -0
- package/dist/cjs/useNeetoAssistAssistant.js.map +1 -0
- package/dist/cjs/useNeetoAssistStatus.js +3 -1
- package/dist/cjs/useNeetoAssistStatus.js.map +1 -1
- package/dist/index.js +10 -5
- package/dist/index.js.map +1 -1
- package/dist/neeto_assist-COp7BR77.js +249 -0
- package/dist/neeto_assist-COp7BR77.js.map +1 -0
- package/dist/neeto_assist-D1wzZ3ou.js +219 -0
- package/dist/neeto_assist-D1wzZ3ou.js.map +1 -0
- package/dist/useNeetoAssistAssistant.js +41 -0
- package/dist/useNeetoAssistAssistant.js.map +1 -0
- package/dist/useNeetoAssistStatus.js +3 -1
- package/dist/useNeetoAssistStatus.js.map +1 -1
- package/dist/useNeetoAssistStore-Bj6niQdc.js +103 -0
- package/dist/useNeetoAssistStore-Bj6niQdc.js.map +1 -0
- package/dist/useNeetoAssistStore-Dgt8aV52.js +101 -0
- package/dist/useNeetoAssistStore-Dgt8aV52.js.map +1 -0
- package/dist/{useNeetoAssistStore-InICsbe8.js → useRunsApi-BgsICthX.js} +228 -113
- package/dist/useRunsApi-BgsICthX.js.map +1 -0
- package/dist/{useNeetoAssistStore-VaZp3268.js → useRunsApi-Rh6xXOwm.js} +232 -112
- package/dist/useRunsApi-Rh6xXOwm.js.map +1 -0
- package/package.json +4 -4
- package/types.d.ts +81 -8
- package/dist/neeto_assist-CpUBA-3Z.js +0 -135
- package/dist/neeto_assist-CpUBA-3Z.js.map +0 -1
- package/dist/neeto_assist-CznTN_YY.js +0 -157
- package/dist/neeto_assist-CznTN_YY.js.map +0 -1
- package/dist/useNeetoAssistStore-InICsbe8.js.map +0 -1
- package/dist/useNeetoAssistStore-VaZp3268.js.map +0 -1
|
@@ -4,14 +4,19 @@ var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
|
4
4
|
var react = require('react');
|
|
5
5
|
var neetoAtoms = require('@bigbinary/neeto-atoms');
|
|
6
6
|
var reactI18next = require('react-i18next');
|
|
7
|
-
var
|
|
7
|
+
var neeto_assist = require('../neeto_assist-COp7BR77.js');
|
|
8
|
+
var useRunsApi = require('../useRunsApi-Rh6xXOwm.js');
|
|
9
|
+
var useNeetoAssistStore = require('../useNeetoAssistStore-Bj6niQdc.js');
|
|
8
10
|
var jsxRuntime = require('react/jsx-runtime');
|
|
9
11
|
require('@babel/runtime/helpers/objectWithoutProperties');
|
|
10
|
-
require('@tanstack/react-query');
|
|
11
|
-
require('@bigbinary/neeto-commons-frontend/v2/react-utils');
|
|
12
|
-
require('../neeto_assist-CznTN_YY.js');
|
|
13
12
|
require('axios');
|
|
13
|
+
require('@babel/runtime/helpers/asyncToGenerator');
|
|
14
14
|
require('@babel/runtime/helpers/toConsumableArray');
|
|
15
|
+
require('@babel/runtime/helpers/typeof');
|
|
16
|
+
require('@babel/runtime/regenerator');
|
|
17
|
+
require('@tanstack/react-query');
|
|
18
|
+
require('@bigbinary/neeto-cist');
|
|
19
|
+
require('@bigbinary/neeto-commons-frontend/v2/react-utils');
|
|
15
20
|
require('@babel/runtime/helpers/toArray');
|
|
16
21
|
require('ramda');
|
|
17
22
|
require('@bigbinary/neeto-commons-frontend/v2/utils');
|
|
@@ -20,7 +25,7 @@ require('zustand');
|
|
|
20
25
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
21
26
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
22
27
|
var NeetoAssistIcon = function NeetoAssistIcon(props) {
|
|
23
|
-
return /*#__PURE__*/jsxRuntime.jsx(
|
|
28
|
+
return /*#__PURE__*/jsxRuntime.jsx(useRunsApi.Sparkle, _objectSpread(_objectSpread({}, props), {}, {
|
|
24
29
|
className: "text-purple-600"
|
|
25
30
|
}));
|
|
26
31
|
};
|
|
@@ -28,7 +33,9 @@ var NeetoAssistIcon = function NeetoAssistIcon(props) {
|
|
|
28
33
|
// Goes on the ticket: it opens the pane, and tells the pane which ticket it is
|
|
29
34
|
// about for as long as the button is on screen, along with the host's words
|
|
30
35
|
// for what the rep is looking at. A dot says a suggested reply is waiting,
|
|
31
|
-
// since the pane is closed until the rep asks for it.
|
|
36
|
+
// since the pane is closed until the rep asks for it. While the pane shows the
|
|
37
|
+
// person's assistant instead, the button is not pressed, and a click brings
|
|
38
|
+
// the ticket back.
|
|
32
39
|
var NeetoAssistButton = function NeetoAssistButton(_ref) {
|
|
33
40
|
var conversationId = _ref.conversationId,
|
|
34
41
|
contextLabel = _ref.contextLabel,
|
|
@@ -37,7 +44,7 @@ var NeetoAssistButton = function NeetoAssistButton(_ref) {
|
|
|
37
44
|
var _useTranslation = reactI18next.useTranslation(),
|
|
38
45
|
t = _useTranslation.t;
|
|
39
46
|
var isOpen = useNeetoAssistStore.useNeetoAssistStore(function (state) {
|
|
40
|
-
return state.isOpen;
|
|
47
|
+
return state.isOpen && state.mode !== neeto_assist.PANE_MODES.ASSISTANT;
|
|
41
48
|
});
|
|
42
49
|
var toggle = useNeetoAssistStore.useNeetoAssistStore(function (state) {
|
|
43
50
|
return state.toggle;
|
|
@@ -51,12 +58,12 @@ var NeetoAssistButton = function NeetoAssistButton(_ref) {
|
|
|
51
58
|
var seenDraftId = useNeetoAssistStore.useNeetoAssistStore(function (state) {
|
|
52
59
|
return state.seenDrafts[conversationId];
|
|
53
60
|
});
|
|
54
|
-
var _useFetchRuns =
|
|
61
|
+
var _useFetchRuns = useRunsApi.useFetchRuns(conversationId),
|
|
55
62
|
_useFetchRuns$data = _useFetchRuns.data,
|
|
56
63
|
_useFetchRuns$data2 = _useFetchRuns$data === void 0 ? {} : _useFetchRuns$data,
|
|
57
64
|
_useFetchRuns$data2$r = _useFetchRuns$data2.runs,
|
|
58
65
|
runs = _useFetchRuns$data2$r === void 0 ? [] : _useFetchRuns$data2$r;
|
|
59
|
-
var draftId =
|
|
66
|
+
var draftId = useRunsApi.latestDraftId(runs);
|
|
60
67
|
var hasUnseenDraft = !isOpen && !!draftId && draftId !== seenDraftId;
|
|
61
68
|
|
|
62
69
|
// The host's handlers change on every render. Only whether there is one for
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NeetoAssistButton.js","sources":["../../app/javascript/src/components/NeetoAssistButton/index.jsx"],"sourcesContent":["import { useEffect, useRef } from \"react\";\n\nimport { Button } from \"neetoatoms\";\nimport { useTranslation } from \"react-i18next\";\n\nimport Sparkle from \"components/commons/Sparkle\";\nimport { useFetchRuns } from \"hooks/reactQuery/useRunsApi\";\nimport useNeetoAssistStore from \"stores/useNeetoAssistStore\";\nimport { latestDraftId } from \"utils/runs\";\n\nconst NeetoAssistIcon = props => (\n <Sparkle {...props} className=\"text-purple-600\" />\n);\n\n// Goes on the ticket: it opens the pane, and tells the pane which ticket it is\n// about for as long as the button is on screen, along with the host's words\n// for what the rep is looking at. A dot says a suggested reply is waiting,\n// since the pane is closed until the rep asks for it.\nconst NeetoAssistButton = ({\n conversationId,\n contextLabel,\n onActionApplied,\n onUseReply,\n}) => {\n const { t } = useTranslation();\n const isOpen = useNeetoAssistStore(state => state.isOpen);\n const toggle = useNeetoAssistStore(state => state.toggle);\n const setConversation = useNeetoAssistStore(state => state.setConversation);\n const clearConversation = useNeetoAssistStore(\n state => state.clearConversation\n );\n\n const seenDraftId = useNeetoAssistStore(\n state => state.seenDrafts[conversationId]\n );\n\n const { data: { runs = [] } = {} } = useFetchRuns(conversationId);\n const draftId = latestDraftId(runs);\n const hasUnseenDraft = !isOpen && !!draftId && draftId !== seenDraftId;\n\n // The host's handlers change on every render. Only whether there is one for\n // \"Use reply\" matters to the pane, and one for an applied action changes\n // nothing it shows, so the pane gets stand-ins that call the latest.\n const useReplyRef = useRef(onUseReply);\n const actionAppliedRef = useRef(onActionApplied);\n const canUseReply = !!onUseReply;\n useEffect(() => {\n useReplyRef.current = onUseReply;\n actionAppliedRef.current = onActionApplied;\n });\n\n useEffect(() => {\n // The answer to a click on Apply can arrive after the button has moved on\n // to another ticket. It then goes to the handler the host last gave for\n // this ticket, not to the one for the ticket now on screen.\n let handlerOnLeaving;\n let hasLeft = false;\n\n setConversation({\n id: conversationId,\n contextLabel,\n onUseReply: canUseReply\n ? (text, html) => useReplyRef.current?.(text, html)\n : undefined,\n onActionApplied: action =>\n (hasLeft ? handlerOnLeaving : actionAppliedRef.current)?.(action),\n });\n\n return () => {\n handlerOnLeaving = actionAppliedRef.current;\n hasLeft = true;\n clearConversation(conversationId);\n };\n }, [\n canUseReply,\n clearConversation,\n contextLabel,\n conversationId,\n setConversation,\n ]);\n\n return (\n <span className=\"relative inline-flex\">\n <Button\n aria-pressed={isOpen}\n data-testid=\"neeto-assist-button\"\n icon={NeetoAssistIcon}\n iconPosition=\"left\"\n label={t(\"neetoAssist.askButton\")}\n size=\"sm\"\n variant={isOpen ? \"secondary\" : \"outline\"}\n tooltipProps={\n hasUnseenDraft ? { content: t(\"neetoAssist.draftReady\") } : undefined\n }\n onClick={toggle}\n />\n {hasUnseenDraft && (\n <span\n aria-label={t(\"neetoAssist.draftReady\")}\n className=\"ring-background absolute -end-0.5 -top-0.5 size-2.5 rounded-full bg-purple-600 ring-2\"\n data-testid=\"neeto-assist-draft-dot\"\n role=\"status\"\n />\n )}\n </span>\n );\n};\n\nexport default NeetoAssistButton;\n"],"names":["NeetoAssistIcon","props","_jsx","Sparkle","_objectSpread","className","NeetoAssistButton","_ref","conversationId","contextLabel","onActionApplied","onUseReply","_useTranslation","useTranslation","t","isOpen","useNeetoAssistStore","state","toggle","setConversation","clearConversation","seenDraftId","seenDrafts","_useFetchRuns","useFetchRuns","_useFetchRuns$data","data","_useFetchRuns$data2","_useFetchRuns$data2$r","runs","draftId","latestDraftId","hasUnseenDraft","useReplyRef","useRef","actionAppliedRef","canUseReply","useEffect","current","handlerOnLeaving","hasLeft","id","text","html","_useReplyRef$current","call","undefined","action","_ref2","_jsxs","children","Button","icon","iconPosition","label","size","variant","tooltipProps","content","onClick","role"],"mappings":"
|
|
1
|
+
{"version":3,"file":"NeetoAssistButton.js","sources":["../../app/javascript/src/components/NeetoAssistButton/index.jsx"],"sourcesContent":["import { useEffect, useRef } from \"react\";\n\nimport { Button } from \"neetoatoms\";\nimport { useTranslation } from \"react-i18next\";\n\nimport { PANE_MODES } from \"common/constants\";\nimport Sparkle from \"components/commons/Sparkle\";\nimport { useFetchRuns } from \"hooks/reactQuery/useRunsApi\";\nimport useNeetoAssistStore from \"stores/useNeetoAssistStore\";\nimport { latestDraftId } from \"utils/runs\";\n\nconst NeetoAssistIcon = props => (\n <Sparkle {...props} className=\"text-purple-600\" />\n);\n\n// Goes on the ticket: it opens the pane, and tells the pane which ticket it is\n// about for as long as the button is on screen, along with the host's words\n// for what the rep is looking at. A dot says a suggested reply is waiting,\n// since the pane is closed until the rep asks for it. While the pane shows the\n// person's assistant instead, the button is not pressed, and a click brings\n// the ticket back.\nconst NeetoAssistButton = ({\n conversationId,\n contextLabel,\n onActionApplied,\n onUseReply,\n}) => {\n const { t } = useTranslation();\n const isOpen = useNeetoAssistStore(\n state => state.isOpen && state.mode !== PANE_MODES.ASSISTANT\n );\n const toggle = useNeetoAssistStore(state => state.toggle);\n const setConversation = useNeetoAssistStore(state => state.setConversation);\n const clearConversation = useNeetoAssistStore(\n state => state.clearConversation\n );\n\n const seenDraftId = useNeetoAssistStore(\n state => state.seenDrafts[conversationId]\n );\n\n const { data: { runs = [] } = {} } = useFetchRuns(conversationId);\n const draftId = latestDraftId(runs);\n const hasUnseenDraft = !isOpen && !!draftId && draftId !== seenDraftId;\n\n // The host's handlers change on every render. Only whether there is one for\n // \"Use reply\" matters to the pane, and one for an applied action changes\n // nothing it shows, so the pane gets stand-ins that call the latest.\n const useReplyRef = useRef(onUseReply);\n const actionAppliedRef = useRef(onActionApplied);\n const canUseReply = !!onUseReply;\n useEffect(() => {\n useReplyRef.current = onUseReply;\n actionAppliedRef.current = onActionApplied;\n });\n\n useEffect(() => {\n // The answer to a click on Apply can arrive after the button has moved on\n // to another ticket. It then goes to the handler the host last gave for\n // this ticket, not to the one for the ticket now on screen.\n let handlerOnLeaving;\n let hasLeft = false;\n\n setConversation({\n id: conversationId,\n contextLabel,\n onUseReply: canUseReply\n ? (text, html) => useReplyRef.current?.(text, html)\n : undefined,\n onActionApplied: action =>\n (hasLeft ? handlerOnLeaving : actionAppliedRef.current)?.(action),\n });\n\n return () => {\n handlerOnLeaving = actionAppliedRef.current;\n hasLeft = true;\n clearConversation(conversationId);\n };\n }, [\n canUseReply,\n clearConversation,\n contextLabel,\n conversationId,\n setConversation,\n ]);\n\n return (\n <span className=\"relative inline-flex\">\n <Button\n aria-pressed={isOpen}\n data-testid=\"neeto-assist-button\"\n icon={NeetoAssistIcon}\n iconPosition=\"left\"\n label={t(\"neetoAssist.askButton\")}\n size=\"sm\"\n variant={isOpen ? \"secondary\" : \"outline\"}\n tooltipProps={\n hasUnseenDraft ? { content: t(\"neetoAssist.draftReady\") } : undefined\n }\n onClick={toggle}\n />\n {hasUnseenDraft && (\n <span\n aria-label={t(\"neetoAssist.draftReady\")}\n className=\"ring-background absolute -end-0.5 -top-0.5 size-2.5 rounded-full bg-purple-600 ring-2\"\n data-testid=\"neeto-assist-draft-dot\"\n role=\"status\"\n />\n )}\n </span>\n );\n};\n\nexport default NeetoAssistButton;\n"],"names":["NeetoAssistIcon","props","_jsx","Sparkle","_objectSpread","className","NeetoAssistButton","_ref","conversationId","contextLabel","onActionApplied","onUseReply","_useTranslation","useTranslation","t","isOpen","useNeetoAssistStore","state","mode","PANE_MODES","ASSISTANT","toggle","setConversation","clearConversation","seenDraftId","seenDrafts","_useFetchRuns","useFetchRuns","_useFetchRuns$data","data","_useFetchRuns$data2","_useFetchRuns$data2$r","runs","draftId","latestDraftId","hasUnseenDraft","useReplyRef","useRef","actionAppliedRef","canUseReply","useEffect","current","handlerOnLeaving","hasLeft","id","text","html","_useReplyRef$current","call","undefined","action","_ref2","_jsxs","children","Button","icon","iconPosition","label","size","variant","tooltipProps","content","onClick","role"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAWA,IAAMA,eAAe,GAAG,SAAlBA,eAAeA,CAAGC,KAAK,EAAA;EAAA,oBAC3BC,cAAA,CAACC,kBAAO,EAAAC,aAAA,CAAAA,aAAA,KAAKH,KAAK,CAAA,EAAA,EAAA,EAAA;AAAEI,IAAAA,SAAS,EAAC;AAAiB,GAAA,CAAE,CAAC;AAAA,CACnD;;AAED;AACA;AACA;AACA;AACA;AACA;AACA,IAAMC,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAAC,IAAA,EAKjB;AAAA,EAAA,IAJJC,cAAc,GAAAD,IAAA,CAAdC,cAAc;IACdC,YAAY,GAAAF,IAAA,CAAZE,YAAY;IACZC,eAAe,GAAAH,IAAA,CAAfG,eAAe;IACfC,UAAU,GAAAJ,IAAA,CAAVI,UAAU;AAEV,EAAA,IAAAC,eAAA,GAAcC,2BAAc,EAAE;IAAtBC,CAAC,GAAAF,eAAA,CAADE,CAAC;AACT,EAAA,IAAMC,MAAM,GAAGC,uCAAmB,CAChC,UAAAC,KAAK,EAAA;IA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