@telia-ace/knowledge-widget-adapters 1.0.28 → 1.0.29
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/dist/contact-methods/ui/contact-list.d.ts +1 -0
- package/dist/{email-form-component.cb09ca59.js → email-form-component.2814812b.js} +15 -8
- package/dist/{email-form-component.cb09ca59.js.map → email-form-component.2814812b.js.map} +1 -1
- package/dist/{free-text-component.a78d324f.js → free-text-component.ae9f9cd6.js} +2 -2
- package/dist/{free-text-component.a78d324f.js.map → free-text-component.ae9f9cd6.js.map} +1 -1
- package/dist/index.52d085bd.js +612 -0
- package/dist/index.52d085bd.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/link-component.484bbcf2.js.map +1 -1
- package/dist/phone-component.0c878514.js.map +1 -1
- package/package.json +9 -8
- package/dist/index.8912b772.js +0 -559
- package/dist/index.8912b772.js.map +0 -1
|
@@ -14,19 +14,22 @@ import { Html as N, genericHtml as g, headingElement as F } from "@telia-ace/kno
|
|
|
14
14
|
import { appendClassNames as s } from "@telia-ace/widget-utilities";
|
|
15
15
|
import * as l from "react";
|
|
16
16
|
import H, { css as $ } from "styled-components";
|
|
17
|
-
import { F as b } from "./index.
|
|
17
|
+
import { F as b } from "./index.52d085bd.js";
|
|
18
18
|
import "@telia-ace/widget-forms";
|
|
19
19
|
import "@telia-ace/knowledge-widget-core";
|
|
20
20
|
const C = H(N)`
|
|
21
21
|
${g}
|
|
22
22
|
|
|
23
|
-
${F(
|
|
23
|
+
${F(
|
|
24
|
+
"h1",
|
|
25
|
+
$`
|
|
24
26
|
font-weight: normal;
|
|
25
27
|
font-size: ${(m) => {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}};
|
|
29
|
-
`
|
|
28
|
+
var t;
|
|
29
|
+
return (t = m.theme.fonts) == null ? void 0 : t.medium;
|
|
30
|
+
}};
|
|
31
|
+
`
|
|
32
|
+
)}
|
|
30
33
|
`, S = (m) => {
|
|
31
34
|
const {
|
|
32
35
|
className: t,
|
|
@@ -38,7 +41,11 @@ const C = H(N)`
|
|
|
38
41
|
disabled: d
|
|
39
42
|
} = m;
|
|
40
43
|
return o ? /* @__PURE__ */ l.createElement(C, {
|
|
41
|
-
className: s(
|
|
44
|
+
className: s(
|
|
45
|
+
t,
|
|
46
|
+
"humany-contact-method-confirmation",
|
|
47
|
+
"humany-contact-method-email"
|
|
48
|
+
),
|
|
42
49
|
html: o,
|
|
43
50
|
htmlParseInstruction: f
|
|
44
51
|
}) : c && !d ? /* @__PURE__ */ l.createElement(b, i(r({}, m), {
|
|
@@ -48,4 +55,4 @@ const C = H(N)`
|
|
|
48
55
|
export {
|
|
49
56
|
S as default
|
|
50
57
|
};
|
|
51
|
-
//# sourceMappingURL=email-form-component.
|
|
58
|
+
//# sourceMappingURL=email-form-component.2814812b.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"email-form-component.
|
|
1
|
+
{"version":3,"file":"email-form-component.2814812b.js","sources":["../src/contact-methods/email/email-form-component.tsx"],"sourcesContent":["import { genericHtml, headingElement, Html } from '@telia-ace/knowledge-widget-ui';\r\nimport { appendClassNames } from '@telia-ace/widget-utilities';\r\nimport * as React from 'react';\r\nimport styled, { css } from 'styled-components';\r\nimport { ContactMethodProps, Form } from '../ui';\r\n\r\nconst StyledHtml = styled(Html)`\r\n ${genericHtml}\r\n\r\n ${headingElement(\r\n 'h1',\r\n css`\r\n font-weight: normal;\r\n font-size: ${(p) => p.theme.fonts?.medium};\r\n `\r\n )}\r\n`;\r\n\r\nconst EmailFormComponent: React.FC<ContactMethodProps> = (props) => {\r\n const {\r\n className,\r\n renderDefault = () => {},\r\n body: { form },\r\n confirmation,\r\n htmlParseInstruction,\r\n disabled,\r\n } = props;\r\n\r\n if (confirmation) {\r\n return (\r\n <StyledHtml\r\n className={appendClassNames(\r\n className,\r\n 'humany-contact-method-confirmation',\r\n 'humany-contact-method-email'\r\n )}\r\n html={confirmation}\r\n htmlParseInstruction={htmlParseInstruction}\r\n />\r\n );\r\n }\r\n\r\n if (form && !disabled) {\r\n return (\r\n <Form\r\n {...props}\r\n className={appendClassNames(className, 'humany-contact-method-email')}\r\n />\r\n );\r\n }\r\n\r\n return renderDefault();\r\n};\r\n\r\nexport default EmailFormComponent;\r\n"],"names":["StyledHtml","styled","Html","genericHtml","headingElement","css","p","_a","EmailFormComponent","props","className","renderDefault","form","confirmation","htmlParseInstruction","disabled","React","appendClassNames","Form","__spreadProps","__spreadValues"],"mappings":";;;;;;;;;;;;;;;;;;;AAMA,MAAMA,IAAaC,EAAOC,CAAI;AAAA,MACxBC;AAAA;AAAA,MAEAC;AAAA,EACE;AAAA,EACAC;AAAA;AAAA,yBAEiB,CAACC,MAAM;;AAAA,YAAAC,IAAAD,EAAE,MAAM,UAAR,gBAAAC,EAAe;AAAA;AAAA;AAE3C;AAAA,GAGEC,IAAmD,CAACC,MAAU;AAC1D,QAAA;AAAA,IACF,WAAAC;AAAA,IACA,eAAAC,IAAgB,MAAM;AAAA,IAAC;AAAA,IACvB,MAAM,EAAE,MAAAC,EAAK;AAAA,IACb,cAAAC;AAAA,IACA,sBAAAC;AAAA,IACA,UAAAC;AAAA,EACA,IAAAN;AAEJ,SAAII,IAEK,gBAAAG,EAAA,cAAAhB,GAAA;AAAA,IACG,WAAWiB;AAAA,MACPP;AAAA,MACA;AAAA,MACA;AAAA,IACJ;AAAA,IACA,MAAMG;AAAA,IACN,sBAAAC;AAAA,EAAA,CACJ,IAIJF,KAAQ,CAACG,IAEJ,gBAAAC,EAAA,cAAAE,GAAAC,EAAAC,EAAA,IACOX,IADP;AAAA,IAEG,WAAWQ,EAAiBP,GAAW,6BAA6B;AAAA,EAAA,EACxE,IAIDC,EAAc;AACzB;"}
|
|
@@ -2,7 +2,7 @@ import { Html as a, genericHtml as l } from "@telia-ace/knowledge-widget-ui";
|
|
|
2
2
|
import { appendClassNames as n } from "@telia-ace/widget-utilities";
|
|
3
3
|
import * as t from "react";
|
|
4
4
|
import p from "styled-components";
|
|
5
|
-
import { D as c } from "./index.
|
|
5
|
+
import { D as c } from "./index.52d085bd.js";
|
|
6
6
|
import "@telia-ace/widget-forms";
|
|
7
7
|
import "@telia-ace/knowledge-widget-core";
|
|
8
8
|
const E = ({
|
|
@@ -24,4 +24,4 @@ const E = ({
|
|
|
24
24
|
export {
|
|
25
25
|
E as default
|
|
26
26
|
};
|
|
27
|
-
//# sourceMappingURL=free-text-component.
|
|
27
|
+
//# sourceMappingURL=free-text-component.ae9f9cd6.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"free-text-component.
|
|
1
|
+
{"version":3,"file":"free-text-component.ae9f9cd6.js","sources":["../src/contact-methods/free-text/free-text-component.tsx"],"sourcesContent":["import { genericHtml, Html } from '@telia-ace/knowledge-widget-ui';\r\nimport { appendClassNames } from '@telia-ace/widget-utilities';\r\nimport * as React from 'react';\r\nimport styled from 'styled-components';\r\nimport { ContactMethodProps, Description } from '../ui';\r\n\r\nconst FreeTextComponent: React.SFC<ContactMethodProps> = ({\r\n className,\r\n description,\r\n body: { freetext },\r\n htmlParseInstruction,\r\n}) => {\r\n if (!freetext) {\r\n return null;\r\n }\r\n return (\r\n <div className={appendClassNames(className, 'humany-contact-method-free-text')}>\r\n <StyledHtml html={freetext} htmlParseInstruction={htmlParseInstruction} />\r\n {description && (\r\n <Description html={description} htmlParseInstruction={htmlParseInstruction} />\r\n )}\r\n </div>\r\n );\r\n};\r\n\r\nexport default FreeTextComponent;\r\n\r\nconst StyledHtml = styled(Html)`\r\n ${genericHtml};\r\n`;\r\n"],"names":["FreeTextComponent","className","description","freetext","htmlParseInstruction","React","appendClassNames","StyledHtml","Description","styled","Html","genericHtml"],"mappings":";;;;;;;AAMA,MAAMA,IAAmD,CAAC;AAAA,EACtD,WAAAC;AAAA,EACA,aAAAC;AAAA,EACA,MAAM,EAAE,UAAAC,EAAS;AAAA,EACjB,sBAAAC;AACJ,MACSD,IAIA,gBAAAE,EAAA,cAAA,OAAA;AAAA,EAAI,WAAWC,EAAiBL,GAAW,iCAAiC;AAAA,GACxE,gBAAAI,EAAA,cAAAE,GAAA;AAAA,EAAW,MAAMJ;AAAA,EAAU,sBAAAC;AAA4C,CAAA,GACvEF,KACI,gBAAAG,EAAA,cAAAG,GAAA;AAAA,EAAY,MAAMN;AAAA,EAAa,sBAAAE;AAA4C,CAAA,CAEpF,IARO,MAcTG,IAAaE,EAAOC,CAAI;AAAA,MACxBC;AAAA;"}
|