@telia-ace/knowledge-widget-bot-provider 0.0.24 → 1.1.1-rc.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/contact-method-a18f6436.mjs +896 -0
- package/contact-method-a9506b8c.js +99 -0
- package/contact-method-list-814eb03f.mjs +97 -0
- package/contact-method-list-b5815c14.js +28 -0
- package/feedback-list-04b512a4.mjs +80 -0
- package/feedback-list-e7973adc.js +25 -0
- package/index-07363705.js +1214 -0
- package/index-373df3a5.js +6 -0
- package/index-5c9c2abf.mjs +883 -0
- package/index-cc31f772.mjs +10810 -0
- package/index.js +1 -0
- package/index.mjs +7 -0
- package/no-good-alternative-2d562ff9.mjs +53 -0
- package/no-good-alternative-d31e7d52.js +15 -0
- package/notification-list-291a2001.mjs +1449 -0
- package/notification-list-876b3f3d.js +546 -0
- package/notification-list-9fca63ae.mjs +53 -0
- package/notification-list-f9c4cafe.js +8 -0
- package/package.json +20 -42
- package/styles-15c941d4.js +4 -0
- package/{dist/styles.a00306c5.js → styles-ad5c7069.mjs} +3 -4
- package/use-dispatch-951d7a5c.js +1 -0
- package/use-dispatch-97d3af39.mjs +24 -0
- package/{dist/utils.d.ts → utils.d.ts} +1 -1
- package/LICENSE.txt +0 -6
- package/README.md +0 -12
- package/dist/contact-method-list.4fcc98f1.js +0 -128
- package/dist/contact-method-list.4fcc98f1.js.map +0 -1
- package/dist/contact-method.4e96a7d4.js +0 -136
- package/dist/contact-method.4e96a7d4.js.map +0 -1
- package/dist/feedback-list.ff7e22da.js +0 -77
- package/dist/feedback-list.ff7e22da.js.map +0 -1
- package/dist/index.483ca2e8.js +0 -795
- package/dist/index.483ca2e8.js.map +0 -1
- package/dist/index.js +0 -9
- package/dist/index.js.map +0 -1
- package/dist/no-good-alternative.e9155cb9.js +0 -50
- package/dist/no-good-alternative.e9155cb9.js.map +0 -1
- package/dist/notification-list.7fd5ba2b.js +0 -67
- package/dist/notification-list.7fd5ba2b.js.map +0 -1
- package/dist/styles.a00306c5.js.map +0 -1
- /package/{dist/entry-handler.d.ts → entry-handler.d.ts} +0 -0
- /package/{dist/http-client.d.ts → http-client.d.ts} +0 -0
- /package/{dist/index.d.ts → index.d.ts} +0 -0
- /package/{dist/plugin.d.ts → plugin.d.ts} +0 -0
- /package/{dist/provider.d.ts → provider.d.ts} +0 -0
- /package/{dist/store.d.ts → store.d.ts} +0 -0
- /package/{dist/types.d.ts → types.d.ts} +0 -0
- /package/{dist/ui → ui}/contact-method-list.d.ts +0 -0
- /package/{dist/ui → ui}/contact-method.d.ts +0 -0
- /package/{dist/ui → ui}/feedback-list.d.ts +0 -0
- /package/{dist/ui → ui}/no-good-alternative.d.ts +0 -0
- /package/{dist/ui → ui}/notification-list.d.ts +0 -0
- /package/{dist/ui → ui}/styles.d.ts +0 -0
package/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-07363705.js");require("react/jsx-runtime");require("react");require("react-dom");exports.ConversationPlugin=e.KnowledgeBotProviderPlugin;
|
package/index.mjs
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { jsx as o, jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
import { d as n, n as s, B as a, b as r } from "./index-cc31f772.mjs";
|
|
3
|
+
import "react";
|
|
4
|
+
import "react-dom";
|
|
5
|
+
import { u as l } from "./use-dispatch-97d3af39.mjs";
|
|
6
|
+
import "./notification-list-291a2001.mjs";
|
|
7
|
+
import { m } from "./styles-ad5c7069.mjs";
|
|
8
|
+
const v = ({ body: t }) => {
|
|
9
|
+
const e = l();
|
|
10
|
+
return /* @__PURE__ */ o(c, { className: "humany-bot-no-good-alternative", children: /* @__PURE__ */ i(
|
|
11
|
+
p,
|
|
12
|
+
{
|
|
13
|
+
onClick: () => {
|
|
14
|
+
e("action", "help");
|
|
15
|
+
},
|
|
16
|
+
"aria-label": t,
|
|
17
|
+
title: t,
|
|
18
|
+
children: [
|
|
19
|
+
/* @__PURE__ */ o(
|
|
20
|
+
n,
|
|
21
|
+
{
|
|
22
|
+
size: 14,
|
|
23
|
+
symbol: {
|
|
24
|
+
type: "FontAwesome",
|
|
25
|
+
content: "meh-o"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
),
|
|
29
|
+
/* @__PURE__ */ o("span", { children: t })
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
) });
|
|
33
|
+
}, c = s.div`
|
|
34
|
+
display: flex;
|
|
35
|
+
align-items: center;
|
|
36
|
+
justify-content: center;
|
|
37
|
+
${m}
|
|
38
|
+
`, p = s(a)`
|
|
39
|
+
> i,
|
|
40
|
+
svg {
|
|
41
|
+
margin-right: ${(t) => {
|
|
42
|
+
var e;
|
|
43
|
+
return (e = t.theme.sizes) == null ? void 0 : e.small;
|
|
44
|
+
}};
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&:focus-visible {
|
|
48
|
+
${r}
|
|
49
|
+
}
|
|
50
|
+
`;
|
|
51
|
+
export {
|
|
52
|
+
v as default
|
|
53
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),t=require("./index-07363705.js");require("react");require("react-dom");const i=require("./use-dispatch-951d7a5c.js");require("./notification-list-876b3f3d.js");const r=require("./styles-15c941d4.js"),o=({body:e})=>{const s=i.useDispatch();return n.jsx(l,{className:"humany-bot-no-good-alternative",children:n.jsxs(a,{onClick:()=>{s("action","help")},"aria-label":e,title:e,children:[n.jsx(t.SymbolBadge,{size:14,symbol:{type:"FontAwesome",content:"meh-o"}}),n.jsx("span",{children:e})]})})},l=t.newStyled.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
${r.messageContentPadding}
|
|
6
|
+
`,a=t.newStyled(t.Button)`
|
|
7
|
+
> i,
|
|
8
|
+
svg {
|
|
9
|
+
margin-right: ${e=>{var s;return(s=e.theme.sizes)==null?void 0:s.small}};
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&:focus-visible {
|
|
13
|
+
${t.borderTabStyle}
|
|
14
|
+
}
|
|
15
|
+
`;exports.default=o;
|