@telia-ace/knowledge-widget-adapters 1.0.53 → 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/email-form-component-3389b2c8.js +8 -0
- package/email-form-component-9233b137.mjs +49 -0
- package/free-text-component-6a548f76.mjs +18 -0
- package/free-text-component-e504bf4d.js +3 -0
- package/index-1b0852e7.js +1854 -0
- package/index-9e0ae87d.mjs +12349 -0
- package/index.js +1 -0
- package/index.mjs +25 -0
- package/link-component-5818d79c.mjs +20 -0
- package/link-component-61f754b0.js +1 -0
- package/package.json +17 -38
- package/phone-component-687b4122.mjs +17 -0
- package/phone-component-6b11e8d6.js +1 -0
- package/LICENSE.txt +0 -6
- package/README.md +0 -3
- package/dist/email-form-component.fa2f8d54.js +0 -65
- package/dist/email-form-component.fa2f8d54.js.map +0 -1
- package/dist/free-text-component.692c762b.js +0 -20
- package/dist/free-text-component.692c762b.js.map +0 -1
- package/dist/index.5fee08c6.js +0 -578
- package/dist/index.5fee08c6.js.map +0 -1
- package/dist/index.js +0 -30
- package/dist/index.js.map +0 -1
- package/dist/link-component.484bbcf2.js +0 -18
- package/dist/link-component.484bbcf2.js.map +0 -1
- package/dist/phone-component.0c878514.js +0 -15
- package/dist/phone-component.0c878514.js.map +0 -1
- /package/{dist/contact-methods → contact-methods}/chat-popup/chat-popup-plugin.d.ts +0 -0
- /package/{dist/contact-methods → contact-methods}/chat-popup/index.d.ts +0 -0
- /package/{dist/contact-methods → contact-methods}/email/email-form-component.d.ts +0 -0
- /package/{dist/contact-methods → contact-methods}/email/email-plugin.d.ts +0 -0
- /package/{dist/contact-methods → contact-methods}/email/index.d.ts +0 -0
- /package/{dist/contact-methods → contact-methods}/free-text/free-text-component.d.ts +0 -0
- /package/{dist/contact-methods → contact-methods}/free-text/free-text-plugin.d.ts +0 -0
- /package/{dist/contact-methods → contact-methods}/free-text/index.d.ts +0 -0
- /package/{dist/contact-methods → contact-methods}/index.d.ts +0 -0
- /package/{dist/contact-methods → contact-methods}/link/index.d.ts +0 -0
- /package/{dist/contact-methods → contact-methods}/link/link-component.d.ts +0 -0
- /package/{dist/contact-methods → contact-methods}/link/link-plugin.d.ts +0 -0
- /package/{dist/contact-methods → contact-methods}/phone/index.d.ts +0 -0
- /package/{dist/contact-methods → contact-methods}/phone/phone-component.d.ts +0 -0
- /package/{dist/contact-methods → contact-methods}/phone/phone-plugin.d.ts +0 -0
- /package/{dist/contact-methods → contact-methods}/platform.d.ts +0 -0
- /package/{dist/contact-methods → contact-methods}/ui/confirmation.d.ts +0 -0
- /package/{dist/contact-methods → contact-methods}/ui/contact-list.d.ts +0 -0
- /package/{dist/contact-methods → contact-methods}/ui/contact-method.d.ts +0 -0
- /package/{dist/contact-methods → contact-methods}/ui/description.d.ts +0 -0
- /package/{dist/contact-methods → contact-methods}/ui/form.d.ts +0 -0
- /package/{dist/contact-methods → contact-methods}/ui/index.d.ts +0 -0
- /package/{dist/contact-methods → contact-methods}/ui/use-contact-method.d.ts +0 -0
- /package/{dist/contact-methods → contact-methods}/web-service/index.d.ts +0 -0
- /package/{dist/contact-methods → contact-methods}/web-service/web-service-plugin.d.ts +0 -0
- /package/{dist/create-adapter.d.ts → create-adapter.d.ts} +0 -0
- /package/{dist/default-contact-methods-plugin.d.ts → default-contact-methods-plugin.d.ts} +0 -0
- /package/{dist/index.d.ts → index.d.ts} +0 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),e=require("./index-1b0852e7.js");require("react");require("react-dom");const l=e.newStyled(e.Html)`
|
|
2
|
+
${e.genericHtml}
|
|
3
|
+
|
|
4
|
+
${t=>{var n;return e.headingElement(t)("h1",e.css`
|
|
5
|
+
font-weight: normal;
|
|
6
|
+
font-size: ${(n=t.theme.fonts)==null?void 0:n.medium};
|
|
7
|
+
`)}}
|
|
8
|
+
`,c=t=>{const{className:n,renderDefault:o=()=>{},body:{form:r},confirmation:m,htmlParseInstruction:s,disabled:i}=t;return m?a.jsx(l,{className:e.appendClassNames(n,"humany-contact-method-confirmation","humany-contact-method-email"),html:m,htmlParseInstruction:s}):r&&!i?a.jsx(e.Form,{...t,className:e.appendClassNames(n,"humany-contact-method-email")}):o()};exports.default=c;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { n as l, H as c, g as d, h, c as f, a as n, F as u } from "./index-9e0ae87d.mjs";
|
|
3
|
+
import "react";
|
|
4
|
+
import "react-dom";
|
|
5
|
+
const y = l(c)`
|
|
6
|
+
${d}
|
|
7
|
+
|
|
8
|
+
${(t) => {
|
|
9
|
+
var a;
|
|
10
|
+
return h(t)(
|
|
11
|
+
"h1",
|
|
12
|
+
f`
|
|
13
|
+
font-weight: normal;
|
|
14
|
+
font-size: ${(a = t.theme.fonts) == null ? void 0 : a.medium};
|
|
15
|
+
`
|
|
16
|
+
);
|
|
17
|
+
}}
|
|
18
|
+
`, F = (t) => {
|
|
19
|
+
const {
|
|
20
|
+
className: a,
|
|
21
|
+
renderDefault: o = () => {
|
|
22
|
+
},
|
|
23
|
+
body: { form: s },
|
|
24
|
+
confirmation: m,
|
|
25
|
+
htmlParseInstruction: r,
|
|
26
|
+
disabled: i
|
|
27
|
+
} = t;
|
|
28
|
+
return m ? /* @__PURE__ */ e(
|
|
29
|
+
y,
|
|
30
|
+
{
|
|
31
|
+
className: n(
|
|
32
|
+
a,
|
|
33
|
+
"humany-contact-method-confirmation",
|
|
34
|
+
"humany-contact-method-email"
|
|
35
|
+
),
|
|
36
|
+
html: m,
|
|
37
|
+
htmlParseInstruction: r
|
|
38
|
+
}
|
|
39
|
+
) : s && !i ? /* @__PURE__ */ e(
|
|
40
|
+
u,
|
|
41
|
+
{
|
|
42
|
+
...t,
|
|
43
|
+
className: n(a, "humany-contact-method-email")
|
|
44
|
+
}
|
|
45
|
+
) : o();
|
|
46
|
+
};
|
|
47
|
+
export {
|
|
48
|
+
F as default
|
|
49
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsxs as o, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { a as l, D as n, n as r, H as p, g as d } from "./index-9e0ae87d.mjs";
|
|
3
|
+
import "react";
|
|
4
|
+
import "react-dom";
|
|
5
|
+
const x = ({
|
|
6
|
+
className: s,
|
|
7
|
+
description: t,
|
|
8
|
+
body: { freetext: e },
|
|
9
|
+
htmlParseInstruction: m
|
|
10
|
+
}) => e ? /* @__PURE__ */ o("div", { className: l(s, "humany-contact-method-free-text"), children: [
|
|
11
|
+
/* @__PURE__ */ a(i, { html: e, htmlParseInstruction: m }),
|
|
12
|
+
t && /* @__PURE__ */ a(n, { html: t, htmlParseInstruction: m })
|
|
13
|
+
] }) : null, i = r(p)`
|
|
14
|
+
${d};
|
|
15
|
+
`;
|
|
16
|
+
export {
|
|
17
|
+
x as default
|
|
18
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),e=require("./index-1b0852e7.js");require("react");require("react-dom");const i=({className:s,description:n,body:{freetext:r},htmlParseInstruction:l})=>r?t.jsxs("div",{className:e.appendClassNames(s,"humany-contact-method-free-text"),children:[t.jsx(o,{html:r,htmlParseInstruction:l}),n&&t.jsx(e.Description,{html:n,htmlParseInstruction:l})]}):null,o=e.newStyled(e.Html)`
|
|
2
|
+
${e.genericHtml};
|
|
3
|
+
`;exports.default=i;
|