@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.
Files changed (54) hide show
  1. package/contact-method-a18f6436.mjs +896 -0
  2. package/contact-method-a9506b8c.js +99 -0
  3. package/contact-method-list-814eb03f.mjs +97 -0
  4. package/contact-method-list-b5815c14.js +28 -0
  5. package/feedback-list-04b512a4.mjs +80 -0
  6. package/feedback-list-e7973adc.js +25 -0
  7. package/index-07363705.js +1214 -0
  8. package/index-373df3a5.js +6 -0
  9. package/index-5c9c2abf.mjs +883 -0
  10. package/index-cc31f772.mjs +10810 -0
  11. package/index.js +1 -0
  12. package/index.mjs +7 -0
  13. package/no-good-alternative-2d562ff9.mjs +53 -0
  14. package/no-good-alternative-d31e7d52.js +15 -0
  15. package/notification-list-291a2001.mjs +1449 -0
  16. package/notification-list-876b3f3d.js +546 -0
  17. package/notification-list-9fca63ae.mjs +53 -0
  18. package/notification-list-f9c4cafe.js +8 -0
  19. package/package.json +20 -42
  20. package/styles-15c941d4.js +4 -0
  21. package/{dist/styles.a00306c5.js → styles-ad5c7069.mjs} +3 -4
  22. package/use-dispatch-951d7a5c.js +1 -0
  23. package/use-dispatch-97d3af39.mjs +24 -0
  24. package/{dist/utils.d.ts → utils.d.ts} +1 -1
  25. package/LICENSE.txt +0 -6
  26. package/README.md +0 -12
  27. package/dist/contact-method-list.4fcc98f1.js +0 -128
  28. package/dist/contact-method-list.4fcc98f1.js.map +0 -1
  29. package/dist/contact-method.4e96a7d4.js +0 -136
  30. package/dist/contact-method.4e96a7d4.js.map +0 -1
  31. package/dist/feedback-list.ff7e22da.js +0 -77
  32. package/dist/feedback-list.ff7e22da.js.map +0 -1
  33. package/dist/index.483ca2e8.js +0 -795
  34. package/dist/index.483ca2e8.js.map +0 -1
  35. package/dist/index.js +0 -9
  36. package/dist/index.js.map +0 -1
  37. package/dist/no-good-alternative.e9155cb9.js +0 -50
  38. package/dist/no-good-alternative.e9155cb9.js.map +0 -1
  39. package/dist/notification-list.7fd5ba2b.js +0 -67
  40. package/dist/notification-list.7fd5ba2b.js.map +0 -1
  41. package/dist/styles.a00306c5.js.map +0 -1
  42. /package/{dist/entry-handler.d.ts → entry-handler.d.ts} +0 -0
  43. /package/{dist/http-client.d.ts → http-client.d.ts} +0 -0
  44. /package/{dist/index.d.ts → index.d.ts} +0 -0
  45. /package/{dist/plugin.d.ts → plugin.d.ts} +0 -0
  46. /package/{dist/provider.d.ts → provider.d.ts} +0 -0
  47. /package/{dist/store.d.ts → store.d.ts} +0 -0
  48. /package/{dist/types.d.ts → types.d.ts} +0 -0
  49. /package/{dist/ui → ui}/contact-method-list.d.ts +0 -0
  50. /package/{dist/ui → ui}/contact-method.d.ts +0 -0
  51. /package/{dist/ui → ui}/feedback-list.d.ts +0 -0
  52. /package/{dist/ui → ui}/no-good-alternative.d.ts +0 -0
  53. /package/{dist/ui → ui}/notification-list.d.ts +0 -0
  54. /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,7 @@
1
+ import { K as p } from "./index-cc31f772.mjs";
2
+ import "react/jsx-runtime";
3
+ import "react";
4
+ import "react-dom";
5
+ export {
6
+ p as ConversationPlugin
7
+ };
@@ -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;