@telia-ace/knowledge-widget-adapters 1.1.1-rc.0 → 1.1.1-rc.2
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-0320d88a.js +8 -0
- package/email-form-component-e475bf63.mjs +53 -0
- package/free-text-component-02e4a06c.js +3 -0
- package/free-text-component-ff1eb8f1.mjs +22 -0
- package/index-36ce2709.mjs +8472 -0
- package/index-ef2f6a78.js +1821 -0
- package/index.js +1 -1
- package/index.mjs +24 -20
- package/link-component-a61eeafc.js +1 -0
- package/link-component-dd5b076c.mjs +24 -0
- package/package.json +6 -6
- package/phone-component-10862503.js +1 -0
- package/phone-component-aa477afb.mjs +21 -0
- package/email-form-component-3389b2c8.js +0 -8
- package/email-form-component-9233b137.mjs +0 -49
- package/free-text-component-6a548f76.mjs +0 -18
- package/free-text-component-e504bf4d.js +0 -3
- package/index-1b0852e7.js +0 -1854
- package/index-9e0ae87d.mjs +0 -12349
- package/link-component-5818d79c.mjs +0 -20
- package/link-component-61f754b0.js +0 -1
- package/phone-component-687b4122.mjs +0 -17
- package/phone-component-6b11e8d6.js +0 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),c=require("@emotion/react"),l=require("@emotion/styled"),e=require("./index-ef2f6a78.js");require("react");require("react-dom");require("react-transition-group");require("react-router-dom");const u=l(e.Html)`
|
|
2
|
+
${e.genericHtml}
|
|
3
|
+
|
|
4
|
+
${t=>{var n;return e.headingElement(t)("h1",c.css`
|
|
5
|
+
font-weight: normal;
|
|
6
|
+
font-size: ${(n=t.theme.fonts)==null?void 0:n.medium};
|
|
7
|
+
`)}}
|
|
8
|
+
`,d=t=>{const{className:n,renderDefault:m=()=>{},body:{form:o},confirmation:r,htmlParseInstruction:s,disabled:i}=t;return r?a.jsx(u,{className:e.appendClassNames(n,"humany-contact-method-confirmation","humany-contact-method-email"),html:r,htmlParseInstruction:s}):o&&!i?a.jsx(e.Form,{...t,className:e.appendClassNames(n,"humany-contact-method-email")}):m()};exports.default=d;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { css as l } from "@emotion/react";
|
|
3
|
+
import c from "@emotion/styled";
|
|
4
|
+
import { H as f, g as d, h, a as e, F as u } from "./index-36ce2709.mjs";
|
|
5
|
+
import "react";
|
|
6
|
+
import "react-dom";
|
|
7
|
+
import "react-transition-group";
|
|
8
|
+
import "react-router-dom";
|
|
9
|
+
const p = c(f)`
|
|
10
|
+
${d}
|
|
11
|
+
|
|
12
|
+
${(t) => {
|
|
13
|
+
var m;
|
|
14
|
+
return h(t)(
|
|
15
|
+
"h1",
|
|
16
|
+
l`
|
|
17
|
+
font-weight: normal;
|
|
18
|
+
font-size: ${(m = t.theme.fonts) == null ? void 0 : m.medium};
|
|
19
|
+
`
|
|
20
|
+
);
|
|
21
|
+
}}
|
|
22
|
+
`, C = (t) => {
|
|
23
|
+
const {
|
|
24
|
+
className: m,
|
|
25
|
+
renderDefault: n = () => {
|
|
26
|
+
},
|
|
27
|
+
body: { form: r },
|
|
28
|
+
confirmation: o,
|
|
29
|
+
htmlParseInstruction: s,
|
|
30
|
+
disabled: i
|
|
31
|
+
} = t;
|
|
32
|
+
return o ? /* @__PURE__ */ a(
|
|
33
|
+
p,
|
|
34
|
+
{
|
|
35
|
+
className: e(
|
|
36
|
+
m,
|
|
37
|
+
"humany-contact-method-confirmation",
|
|
38
|
+
"humany-contact-method-email"
|
|
39
|
+
),
|
|
40
|
+
html: o,
|
|
41
|
+
htmlParseInstruction: s
|
|
42
|
+
}
|
|
43
|
+
) : r && !i ? /* @__PURE__ */ a(
|
|
44
|
+
u,
|
|
45
|
+
{
|
|
46
|
+
...t,
|
|
47
|
+
className: e(m, "humany-contact-method-email")
|
|
48
|
+
}
|
|
49
|
+
) : n();
|
|
50
|
+
};
|
|
51
|
+
export {
|
|
52
|
+
C as default
|
|
53
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),u=require("@emotion/styled");require("@emotion/react");const e=require("./index-ef2f6a78.js");require("react");require("react-dom");require("react-transition-group");require("react-router-dom");const l=({className:s,description:t,body:{freetext:n},htmlParseInstruction:i})=>n?r.jsxs("div",{className:e.appendClassNames(s,"humany-contact-method-free-text"),children:[r.jsx(o,{html:n,htmlParseInstruction:i}),t&&r.jsx(e.Description,{html:t,htmlParseInstruction:i})]}):null,o=u(e.Html)`
|
|
2
|
+
${e.genericHtml};
|
|
3
|
+
`;exports.default=l;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsxs as s, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import a from "@emotion/styled";
|
|
3
|
+
import "@emotion/react";
|
|
4
|
+
import { a as l, D as p, H as i, g as n } from "./index-36ce2709.mjs";
|
|
5
|
+
import "react";
|
|
6
|
+
import "react-dom";
|
|
7
|
+
import "react-transition-group";
|
|
8
|
+
import "react-router-dom";
|
|
9
|
+
const j = ({
|
|
10
|
+
className: e,
|
|
11
|
+
description: t,
|
|
12
|
+
body: { freetext: m },
|
|
13
|
+
htmlParseInstruction: o
|
|
14
|
+
}) => m ? /* @__PURE__ */ s("div", { className: l(e, "humany-contact-method-free-text"), children: [
|
|
15
|
+
/* @__PURE__ */ r(d, { html: m, htmlParseInstruction: o }),
|
|
16
|
+
t && /* @__PURE__ */ r(p, { html: t, htmlParseInstruction: o })
|
|
17
|
+
] }) : null, d = a(i)`
|
|
18
|
+
${n};
|
|
19
|
+
`;
|
|
20
|
+
export {
|
|
21
|
+
j as default
|
|
22
|
+
};
|