@telia-ace/knowledge-widget-adapters 1.3.41-rc.1 → 1.3.41
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-methods/email/email-plugin.d.ts +1 -1
- package/contact-methods/platform.d.ts +14 -14
- package/contact-methods/ui/contact-method.d.ts +42 -0
- package/{email-form-component-d156932f.js → email-form-component-BH0fpxsr.js} +1 -1
- package/{email-form-component-b618db4a.mjs → email-form-component-BWOyYs-S.mjs} +9 -11
- package/{free-text-component-a4724ece.mjs → free-text-component-_JCU7mWa.mjs} +8 -10
- package/free-text-component-m6o_GGCc.js +3 -0
- package/{index-3c56a15f.js → index-Bj6NPYaU.js} +1 -1
- package/{index-4b2ec2f4.mjs → index-C0zDP2YF.mjs} +19 -19
- package/index.js +1 -1
- package/index.mjs +20 -28
- package/package.json +6 -6
- package/free-text-component-6da84bfa.js +0 -3
- /package/{link-component-6fbdc8fb.js → link-component-C9N5NmxE.js} +0 -0
- /package/{link-component-1c24e6af.mjs → link-component-DF4eUDlU.mjs} +0 -0
- /package/{phone-component-25f3e937.mjs → phone-component-CcbcEUTQ.mjs} +0 -0
- /package/{phone-component-ebf50e0d.js → phone-component-Cs-2D-oo.js} +0 -0
|
@@ -2,7 +2,7 @@ import { SubmissionApiResult } from '@telia-ace/knowledge-serviceclient';
|
|
|
2
2
|
import { Container } from '@webprovisions/platform';
|
|
3
3
|
import { ContactMethodType } from '../ui';
|
|
4
4
|
|
|
5
|
-
export declare const submit: (container: Container, contactMethod: ContactMethodType, transform?: (
|
|
5
|
+
export declare const submit: (container: Container, contactMethod: ContactMethodType, transform?: (response: any) => SubmissionApiResult) => Promise<string>;
|
|
6
6
|
export declare const validate: (container: Container, contactMethod: ContactMethodType) => Promise<{
|
|
7
7
|
valid: boolean;
|
|
8
8
|
errors: {
|
|
@@ -39,20 +39,20 @@ declare class ContactMethodPlatform {
|
|
|
39
39
|
private subs;
|
|
40
40
|
static create(container: Container): Promise<ContactMethodPlatform>;
|
|
41
41
|
handleAdapters(cm: ContactMethodProps): Promise<Merge<import('./ui').ContactMethodType, {
|
|
42
|
-
className?: string
|
|
43
|
-
onClick?: (
|
|
44
|
-
renderDefault?: (
|
|
45
|
-
htmlParseInstruction?: import('../../../../ui/src/index.ts').HtmlParseInstruction
|
|
46
|
-
href?: string
|
|
47
|
-
target?: string
|
|
48
|
-
disabled?: boolean
|
|
49
|
-
action?: (
|
|
50
|
-
dispatch?: import('../../../../ui/src/index.ts').DispatchAction
|
|
51
|
-
symbol?: import('../../../core/src/index.ts').Symbol
|
|
52
|
-
description?: string
|
|
53
|
-
confirmation?: string
|
|
54
|
-
guideId?: string
|
|
55
|
-
autoFocus?: boolean
|
|
42
|
+
className?: string;
|
|
43
|
+
onClick?: (event: React.MouseEvent, properties: ContactMethodProps) => void;
|
|
44
|
+
renderDefault?: (extraProps?: Partial<ContactMethodProps>) => any;
|
|
45
|
+
htmlParseInstruction?: import('../../../../ui/src/index.ts').HtmlParseInstruction;
|
|
46
|
+
href?: string;
|
|
47
|
+
target?: string;
|
|
48
|
+
disabled?: boolean;
|
|
49
|
+
action?: (action: string, value: any) => void;
|
|
50
|
+
dispatch?: import('../../../../ui/src/index.ts').DispatchAction;
|
|
51
|
+
symbol?: import('../../../core/src/index.ts').Symbol;
|
|
52
|
+
description?: string;
|
|
53
|
+
confirmation?: string;
|
|
54
|
+
guideId?: string;
|
|
55
|
+
autoFocus?: boolean;
|
|
56
56
|
}>>;
|
|
57
57
|
constructor(container: Container, componentPlatform: ComponentPlatform);
|
|
58
58
|
static getInstance(container: Container, key?: string): Promise<ContactMethodPlatform>;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Theme } from '@emotion/react';
|
|
2
|
+
import { Symbol } from '../../../../core/src/index.ts';
|
|
3
|
+
import { DispatchAction, HtmlParseInstruction } from '../../../../ui/src/index.ts';
|
|
4
|
+
import { default as React } from 'react';
|
|
5
|
+
|
|
6
|
+
export type ContactMethodType = {
|
|
7
|
+
id: string;
|
|
8
|
+
title: string;
|
|
9
|
+
symbol?: Symbol;
|
|
10
|
+
clientName: string;
|
|
11
|
+
expanded: boolean;
|
|
12
|
+
inline: boolean;
|
|
13
|
+
body: {
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
};
|
|
16
|
+
description?: string;
|
|
17
|
+
confirmation?: string;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
guideId?: string;
|
|
20
|
+
};
|
|
21
|
+
export type Props = Merge<ContactMethodType, {
|
|
22
|
+
className?: string;
|
|
23
|
+
onClick?: (event: React.MouseEvent, properties: Props) => void;
|
|
24
|
+
renderDefault?: (extraProps?: Partial<Props>) => any;
|
|
25
|
+
htmlParseInstruction?: HtmlParseInstruction;
|
|
26
|
+
href?: string;
|
|
27
|
+
target?: string;
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
action?: (action: string, value: any) => void;
|
|
30
|
+
dispatch?: DispatchAction;
|
|
31
|
+
symbol?: Symbol;
|
|
32
|
+
description?: string;
|
|
33
|
+
confirmation?: string;
|
|
34
|
+
guideId?: string;
|
|
35
|
+
autoFocus?: boolean;
|
|
36
|
+
}>;
|
|
37
|
+
declare const ContactMethod: React.FC<Props>;
|
|
38
|
+
export default ContactMethod;
|
|
39
|
+
export declare const contactLink: (p: {
|
|
40
|
+
theme: Theme;
|
|
41
|
+
description?: string;
|
|
42
|
+
}) => import('@emotion/react').SerializedStyles;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),l=require("@emotion/react"),u=require("@emotion/styled"),n=require("@telia-ace/knowledge-widget-ui"),o=require("@telia-ace/widget-utilities"),d=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),l=require("@emotion/react"),u=require("@emotion/styled"),n=require("@telia-ace/knowledge-widget-ui"),o=require("@telia-ace/widget-utilities"),d=require("./index-Bj6NPYaU.js");require("react");const h=u(n.Html)`
|
|
2
2
|
${n.genericHtml}
|
|
3
3
|
|
|
4
4
|
${e=>{var t;return n.headingElement(e)("h1",l.css`
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { css as l } from "@emotion/react";
|
|
3
3
|
import c from "@emotion/styled";
|
|
4
|
-
import {
|
|
4
|
+
import { genericHtml as f, headingElement as d, Html as h } from "@telia-ace/knowledge-widget-ui";
|
|
5
5
|
import { appendClassNames as r } from "@telia-ace/widget-utilities";
|
|
6
|
-
import { F as
|
|
6
|
+
import { F as u } from "./index-C0zDP2YF.mjs";
|
|
7
7
|
import "react";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const u = c(f)`
|
|
11
|
-
${d}
|
|
8
|
+
const p = c(h)`
|
|
9
|
+
${f}
|
|
12
10
|
|
|
13
11
|
${(t) => {
|
|
14
12
|
var m;
|
|
15
|
-
return
|
|
13
|
+
return d(t)(
|
|
16
14
|
"h1",
|
|
17
15
|
l`
|
|
18
16
|
font-weight: normal;
|
|
@@ -20,7 +18,7 @@ const u = c(f)`
|
|
|
20
18
|
`
|
|
21
19
|
);
|
|
22
20
|
}}
|
|
23
|
-
`,
|
|
21
|
+
`, x = (t) => {
|
|
24
22
|
const {
|
|
25
23
|
className: m,
|
|
26
24
|
renderDefault: n = () => {
|
|
@@ -31,7 +29,7 @@ const u = c(f)`
|
|
|
31
29
|
disabled: s
|
|
32
30
|
} = t;
|
|
33
31
|
return o ? /* @__PURE__ */ e(
|
|
34
|
-
|
|
32
|
+
p,
|
|
35
33
|
{
|
|
36
34
|
className: r(
|
|
37
35
|
m,
|
|
@@ -42,7 +40,7 @@ const u = c(f)`
|
|
|
42
40
|
htmlParseInstruction: i
|
|
43
41
|
}
|
|
44
42
|
) : a && !s ? /* @__PURE__ */ e(
|
|
45
|
-
|
|
43
|
+
u,
|
|
46
44
|
{
|
|
47
45
|
...t,
|
|
48
46
|
className: r(m, "humany-contact-method-email")
|
|
@@ -50,5 +48,5 @@ const u = c(f)`
|
|
|
50
48
|
) : n();
|
|
51
49
|
};
|
|
52
50
|
export {
|
|
53
|
-
|
|
51
|
+
x as default
|
|
54
52
|
};
|
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import { jsxs as l, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import p from "@emotion/styled";
|
|
3
|
+
import { genericHtml as s, Html as i } from "@telia-ace/knowledge-widget-ui";
|
|
4
4
|
import { appendClassNames as n } from "@telia-ace/widget-utilities";
|
|
5
|
-
import { D as a } from "./index-
|
|
5
|
+
import { D as a } from "./index-C0zDP2YF.mjs";
|
|
6
6
|
import "@telia-ace/widget-forms";
|
|
7
7
|
import "react";
|
|
8
|
-
|
|
9
|
-
import "@emotion/react";
|
|
10
|
-
const D = ({
|
|
8
|
+
const j = ({
|
|
11
9
|
className: e,
|
|
12
10
|
description: t,
|
|
13
11
|
body: { freetext: m },
|
|
14
12
|
htmlParseInstruction: o
|
|
15
|
-
}) => m ? /* @__PURE__ */
|
|
13
|
+
}) => m ? /* @__PURE__ */ l(
|
|
16
14
|
"div",
|
|
17
15
|
{
|
|
18
16
|
className: n(e, "humany-contact-method-free-text"),
|
|
@@ -27,9 +25,9 @@ const D = ({
|
|
|
27
25
|
)
|
|
28
26
|
]
|
|
29
27
|
}
|
|
30
|
-
) : null, d = i
|
|
28
|
+
) : null, d = p(i)`
|
|
31
29
|
${s};
|
|
32
30
|
`;
|
|
33
31
|
export {
|
|
34
|
-
|
|
32
|
+
j as default
|
|
35
33
|
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),l=require("@emotion/styled"),n=require("@telia-ace/knowledge-widget-ui"),o=require("@telia-ace/widget-utilities"),u=require("./index-Bj6NPYaU.js");require("@telia-ace/widget-forms");require("react");const c=({className:s,description:t,body:{freetext:r},htmlParseInstruction:i})=>r?e.jsxs("div",{className:o.appendClassNames(s,"humany-contact-method-free-text"),children:[e.jsx(d,{html:r,htmlParseInstruction:i}),t&&e.jsx(u.Description,{html:t,htmlParseInstruction:i})]}):null,d=l(n.Html)`
|
|
2
|
+
${n.genericHtml};
|
|
3
|
+
`;exports.default=c;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Z=Object.defineProperty;var _=(t,e,n)=>e in t?Z(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var N=(t,e,n)=>
|
|
1
|
+
"use strict";var Z=Object.defineProperty;var _=(t,e,n)=>e in t?Z(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var N=(t,e,n)=>_(t,typeof e!="symbol"?e+"":e,n);const C=require("@telia-ace/widget-forms"),I=require("@telia-ace/knowledge-widget-core"),k=require("@telia-ace/widget-utilities"),P=require("react"),u=require("react/jsx-runtime"),w=require("@emotion/react"),f=require("@emotion/styled"),m=require("@telia-ace/knowledge-widget-ui"),S=(t,e,n=!1)=>t.getManyAsync("matchingClient","router").then(i=>{const{formData:o}=new C.FormReader(e.body.form).export(n),{router:c,matchingClient:r}=i,{params:s}=c.getRouteData();return e.guideId=e.body.guideId||s.guideId,r.customRequest(`contactmethods/${e.id}${n?"/validatedwithpayload":""}`,"POST",{body:o,configuration:{guideId:e.body.guideId||s.guideId}})}),A=(t,e,n)=>S(t,e).then(i=>n?n(i):i).then(({ConfirmationText:i})=>i),y=(t,e)=>S(t,e,!0).then(n=>({valid:n.Validation.IsValid,errors:n.Validation.Errors,errorTypes:n.Validation.ErrorTypes})),j=(t,e)=>S(t,e,!0).then(n=>C.FormBuilder.fromLegacyForm(e.id,n.ContactMethod.Form).get()),b=(t,e)=>t.getAsync("matchingClient").then(n=>{n.completeContactMethod(e.id,{guideId:e.guideId})});function F(t){t.getAsync("contactMethods").then(e=>{e.create({clientName:"email.form",render:Promise.resolve().then(()=>require("./email-form-component-BH0fpxsr.js")),onEvaluate:n=>j(t,n),onValidate:n=>y(t,n),onSubmit:n=>A(t,n),onComplete:n=>b(t,n)})})}const q=(t,e,n)=>{const{url:i,width:o,height:c}=e,r=n||{},s=document.createElement("a");return s.href=i,s.search.replace("?","").split("&").forEach(a=>{const[d,l]=a.split("=");typeof l<"u"&&(r[d]=l)}),s.search=Object.keys(r).map(a=>`${a}=${r[a]}`).join("&"),window.open(s.href,t,`width=${o},height=${c}`),""};function M(t){t.getAsync("contactMethods").then(e=>{e.create({clientName:"chat.popup",render:"email.form",handleClick:n=>{const{title:i,body:o}=n,{form:c,guideId:r,confirmationFallback:s,...a}=o;return c?()=>{}:d=>{d.preventDefault(),q(i,a)}},onValidate:n=>y(t,n),onComplete:n=>b(t,n),onSubmit:n=>{const{title:i,body:o}=n,{form:c,guideId:r,confirmationFallback:s,...a}=o,d=new C.FormReader(c).export().values;return q(i,a,d),s}})})}function V(t){t.getAsync("contactMethods").then(e=>{e.create({clientName:"custom.freetext",render:Promise.resolve().then(()=>require("./free-text-component-m6o_GGCc.js"))})})}function z(t){t.getAsync("contactMethods").then(e=>{e.create({clientName:"custom.link",render:Promise.resolve().then(()=>require("./link-component-C9N5NmxE.js"))})})}function H(t){t.getAsync("contactMethods").then(e=>{e.create({clientName:"phone.text",render:Promise.resolve().then(()=>require("./phone-component-Cs-2D-oo.js"))})})}const ee=async(t,e)=>{const n=t.get(e.clientName);let{description:i,disabled:o,onClick:c}=e;if(n){const{handleClick:r,handleDescription:s,handleDisabled:a}=n;typeof r=="function"&&(c=await Promise.resolve(r(e))),typeof s=="function"&&(i=await Promise.resolve(s(e))),typeof a=="function"&&(o=await Promise.resolve(a(e)))}return Promise.resolve({...e,description:i,disabled:o,onClick:c})};class x{constructor(e,n){N(this,"adapters",new Map);N(this,"subs",[]);if(this.container=e,this.componentPlatform=n,n){n.components().ofType("contact-list").select().actions.watch("contact-list.fetched",async(r,s)=>{const{contactMethods:a}=r;if(a){const d=Promise.all(a.map(l=>this.handleAdapters(l)));await Promise.resolve(d).then(l=>{r.contactMethods=l})}return s(r)});const o=n.components().ofType("guide").select();o.actions.watch("guide.fetched",async(r,s)=>{const{contactMethods:a}=r;if(a){const d=Promise.all(a.map(l=>this.handleAdapters(l)));await Promise.resolve(d).then(l=>{r.contactMethods=l})}return s(r)}),o.actions.watch("guide.handover",async(r,s)=>{const{handoverContactMethods:a}=r;if(a){const d=Promise.all(a.map(l=>this.handleAdapters(l)));await Promise.resolve(d).then(l=>{r.handoverContactMethods=l})}return s(r)}),n.components().ofType("contact-method").select().actions.watch("contact-method.fetched",async(r,s)=>{const{contactMethod:a}=r;return a?this.handleAdapters(a).then(d=>s({...r,contactMethod:d})):s(r)})}}static create(e){return I.ComponentPlatform.getInstance(e).then(n=>new x(e,n))}handleAdapters(e){return ee(this.adapters,e)}static getInstance(e,n="contactMethods"){return k.lock(e)(()=>e.getAsync(n).then(i=>{let o=i;return o||I.ComponentPlatform.getInstance(e).then(c=>(o=new x(e,c),e.registerAsync(n,()=>o),o))}))}track(e={},n){const{events:i}=this.container.get("$widget");i.dispatch("tracking:service-client-response",{type:n,data:e})}complete(e){const{id:n,title:i,clientName:o,expanded:c,body:r}=e;this.track({contactMethod:{id:n,title:i,expanded:c,type:o},hasGuide:!!r.guideId},"contact-method-complete");const s=this.adapters.get(o);if(s&&s.onComplete)return s.onComplete(e)}evaluate(e){const{clientName:n}=e,i=this.adapters.get(n);return i&&i.onEvaluate?Promise.resolve(i.onEvaluate(e)):Promise.resolve(e.body.form)}validate(e){const{id:n,title:i,clientName:o}=e,c=this.adapters.get(o);return c&&c.onValidate?Promise.resolve(c.onValidate(e)).then(r=>{this.track({contactMethod:{id:n,title:i,type:o},isValid:r.valid},"contact-method-validate");const{events:s}=this.container.get("$widget");return s.dispatch("form:validated",{isValid:r.valid}),r}):Promise.resolve({valid:!0})}submit(e){const{clientName:n}=e,i=this.adapters.get(n);return i&&i.onSubmit?Promise.resolve(i.onSubmit(e)).then(o=>(this.complete(e),o)):Promise.resolve("")}create(e){const{clientName:n,render:i}=e;return this.adapters.set(n,{onValidate:o=>y(this.container,o),onEvaluate:o=>j(this.container,o),onComplete:o=>b(this.container,o),...e}),this.container.getAsync("componentResolver").then(o=>{typeof i=="string"?this.subs.push(o.registerAlias(n,i)):this.subs.push(o.registerComponent(n,P.lazy(()=>i)))})}dispose(){this.subs.forEach(e=>e())}}f(m.Paragraph)`
|
|
2
2
|
${t=>{var e;return m.headingElement(t)("h1",w.css`
|
|
3
3
|
font-weight: normal;
|
|
4
4
|
font-size: ${(e=t.theme.fonts)==null?void 0:e.medium};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var B = Object.defineProperty;
|
|
2
2
|
var K = (t, e, n) => e in t ? B(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
|
-
var $ = (t, e, n) =>
|
|
3
|
+
var $ = (t, e, n) => K(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
4
|
import { FormBuilder as G, FormReader as w, FormComponent as U } from "@telia-ace/widget-forms";
|
|
5
5
|
import { ComponentPlatform as S, Plugin as W } from "@telia-ace/knowledge-widget-core";
|
|
6
6
|
import { lock as J, createParams as Q, formatUrl as X, appendClassNames as Y } from "@telia-ace/widget-utilities";
|
|
@@ -8,7 +8,7 @@ import { lazy as Z, Suspense as _, useState as ee, useEffect as te } from "react
|
|
|
8
8
|
import { jsx as m, jsxs as E } from "react/jsx-runtime";
|
|
9
9
|
import { css as C } from "@emotion/react";
|
|
10
10
|
import f from "@emotion/styled";
|
|
11
|
-
import {
|
|
11
|
+
import { headingElement as D, Paragraph as ne, genericHtml as oe, borderTabStyle as L, linkTabStyle as ie, Html as re, StyledText as ae, Link as se, useComponent as ce, useRouteData as le, Typography as de, SymbolBadge as me, ItemList as he, itemList as ue, useContainer as R } from "@telia-ace/knowledge-widget-ui";
|
|
12
12
|
const P = (t, e, n = !1) => t.getManyAsync("matchingClient", "router").then((i) => {
|
|
13
13
|
const { formData: o } = new w(e.body.form).export(
|
|
14
14
|
n
|
|
@@ -43,7 +43,7 @@ function pe(t) {
|
|
|
43
43
|
t.getAsync("contactMethods").then((e) => {
|
|
44
44
|
e.create({
|
|
45
45
|
clientName: "email.form",
|
|
46
|
-
render: import("./email-form-component-
|
|
46
|
+
render: import("./email-form-component-BWOyYs-S.mjs"),
|
|
47
47
|
onEvaluate: (n) => M(t, n),
|
|
48
48
|
onValidate: (n) => y(t, n),
|
|
49
49
|
onSubmit: (n) => F(t, n),
|
|
@@ -83,7 +83,7 @@ function ge(t) {
|
|
|
83
83
|
t.getAsync("contactMethods").then((e) => {
|
|
84
84
|
e.create({
|
|
85
85
|
clientName: "custom.freetext",
|
|
86
|
-
render: import("./free-text-component-
|
|
86
|
+
render: import("./free-text-component-_JCU7mWa.mjs")
|
|
87
87
|
});
|
|
88
88
|
});
|
|
89
89
|
}
|
|
@@ -91,7 +91,7 @@ function ye(t) {
|
|
|
91
91
|
t.getAsync("contactMethods").then((e) => {
|
|
92
92
|
e.create({
|
|
93
93
|
clientName: "custom.link",
|
|
94
|
-
render: import("./link-component-
|
|
94
|
+
render: import("./link-component-DF4eUDlU.mjs")
|
|
95
95
|
});
|
|
96
96
|
});
|
|
97
97
|
}
|
|
@@ -99,7 +99,7 @@ function be(t) {
|
|
|
99
99
|
t.getAsync("contactMethods").then((e) => {
|
|
100
100
|
e.create({
|
|
101
101
|
clientName: "phone.text",
|
|
102
|
-
render: import("./phone-component-
|
|
102
|
+
render: import("./phone-component-CcbcEUTQ.mjs")
|
|
103
103
|
});
|
|
104
104
|
});
|
|
105
105
|
}
|
|
@@ -268,8 +268,8 @@ f(ne)`
|
|
|
268
268
|
);
|
|
269
269
|
}}
|
|
270
270
|
`;
|
|
271
|
-
const Ce = f(
|
|
272
|
-
${
|
|
271
|
+
const Ce = f(re)`
|
|
272
|
+
${oe}
|
|
273
273
|
font-weight: 300;
|
|
274
274
|
line-height: 1.5em;
|
|
275
275
|
button:focus-visible {
|
|
@@ -277,7 +277,7 @@ const Ce = f(oe)`
|
|
|
277
277
|
}
|
|
278
278
|
|
|
279
279
|
a:focus-visible {
|
|
280
|
-
${
|
|
280
|
+
${ie};
|
|
281
281
|
}
|
|
282
282
|
`, $e = (t) => {
|
|
283
283
|
const e = ce(t.clientName), {
|
|
@@ -605,17 +605,17 @@ export {
|
|
|
605
605
|
Me as C,
|
|
606
606
|
Ce as D,
|
|
607
607
|
ze as F,
|
|
608
|
-
|
|
609
|
-
|
|
608
|
+
$e as a,
|
|
609
|
+
k as b,
|
|
610
610
|
fe as c,
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
611
|
+
Oe as d,
|
|
612
|
+
pe as e,
|
|
613
|
+
ge as f,
|
|
614
|
+
xe as g,
|
|
615
|
+
ke as h,
|
|
616
|
+
He as i,
|
|
617
|
+
b as j,
|
|
618
|
+
M as k,
|
|
619
619
|
ye as l,
|
|
620
620
|
be as p,
|
|
621
621
|
F as s,
|
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-Bj6NPYaU.js");exports.ChatPopupPlugin=t.chatPopupPlugin;exports.ContactList=t.ContactList;exports.ContactMethod=t.ContactMethod;exports.ContactMethodPlatform=t.ContactMethodPlatform;exports.DefaultContactMethodsPlugin=t.DefaultContactMethodsPlugin;exports.DefaultForm=t.Form;exports.EmailFormPlugin=t.emailPlugin;exports.FreeTextPlugin=t.freeTextPlugin;exports.LinkPlugin=t.linkPlugin;exports.PhonePlugin=t.phonePlugin;exports.WebServicePlugin=t.webServicePlugin;exports.contactItemList=t.contactItemList;exports.contactLink=t.contactLink;exports.createSubmitAdapter=t.createSubmitAdapter;exports.defaultComplete=t.complete;exports.defaultEvaluate=t.evaluate;exports.defaultSubmit=t.submit;exports.defaultValidate=t.validate;exports.useContactMethod=t.useContactMethod;
|
package/index.mjs
CHANGED
|
@@ -1,30 +1,22 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import "@telia-ace/widget-forms";
|
|
3
|
-
import "@telia-ace/knowledge-widget-core";
|
|
4
|
-
import "@telia-ace/widget-utilities";
|
|
5
|
-
import "react";
|
|
6
|
-
import "react/jsx-runtime";
|
|
7
|
-
import "@emotion/react";
|
|
8
|
-
import "@emotion/styled";
|
|
9
|
-
import "@telia-ace/knowledge-widget-ui";
|
|
1
|
+
import { c as e, C as s, a as l, b as o, d as u, F as i, e as n, f as c, l as d, p as P, w as f, g as m, h as r, i as g, j as C, k as h, s as p, v as b, u as F } from "./index-C0zDP2YF.mjs";
|
|
10
2
|
export {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
3
|
+
e as ChatPopupPlugin,
|
|
4
|
+
s as ContactList,
|
|
5
|
+
l as ContactMethod,
|
|
6
|
+
o as ContactMethodPlatform,
|
|
7
|
+
u as DefaultContactMethodsPlugin,
|
|
8
|
+
i as DefaultForm,
|
|
9
|
+
n as EmailFormPlugin,
|
|
10
|
+
c as FreeTextPlugin,
|
|
11
|
+
d as LinkPlugin,
|
|
12
|
+
P as PhonePlugin,
|
|
13
|
+
f as WebServicePlugin,
|
|
14
|
+
m as contactItemList,
|
|
15
|
+
r as contactLink,
|
|
16
|
+
g as createSubmitAdapter,
|
|
17
|
+
C as defaultComplete,
|
|
18
|
+
h as defaultEvaluate,
|
|
19
|
+
p as defaultSubmit,
|
|
20
|
+
b as defaultValidate,
|
|
21
|
+
F as useContactMethod
|
|
30
22
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telia-ace/knowledge-widget-adapters",
|
|
3
|
-
"version": "1.3.41
|
|
3
|
+
"version": "1.3.41",
|
|
4
4
|
"main": "./index.js",
|
|
5
5
|
"types": "./index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@telia-ace/knowledge-serviceclient": "^1.0.31",
|
|
14
|
-
"@telia-ace/knowledge-widget-core": "^1.3.41
|
|
15
|
-
"@telia-ace/knowledge-widget-ui": "^1.3.41
|
|
16
|
-
"@telia-ace/widget-forms": "^1.3.41
|
|
17
|
-
"@telia-ace/widget-routing": "^1.3.41
|
|
18
|
-
"@telia-ace/widget-utilities": "^1.3.41
|
|
14
|
+
"@telia-ace/knowledge-widget-core": "^1.3.41",
|
|
15
|
+
"@telia-ace/knowledge-widget-ui": "^1.3.41",
|
|
16
|
+
"@telia-ace/widget-forms": "^1.3.41",
|
|
17
|
+
"@telia-ace/widget-routing": "^1.3.41",
|
|
18
|
+
"@telia-ace/widget-utilities": "^1.3.41",
|
|
19
19
|
"@webprovisions/platform": "^1.1.4"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),l=require("@emotion/styled"),n=require("@telia-ace/knowledge-widget-ui"),u=require("@telia-ace/widget-utilities"),o=require("./index-3c56a15f.js");require("@telia-ace/widget-forms");require("react");require("@telia-ace/knowledge-widget-core");require("@emotion/react");const c=({className:s,description:t,body:{freetext:r},htmlParseInstruction:i})=>r?e.jsxs("div",{className:u.appendClassNames(s,"humany-contact-method-free-text"),children:[e.jsx(d,{html:r,htmlParseInstruction:i}),t&&e.jsx(o.Description,{html:t,htmlParseInstruction:i})]}):null,d=l(n.Html)`
|
|
2
|
-
${n.genericHtml};
|
|
3
|
-
`;exports.default=c;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|