@telia-ace/knowledge-widget-adapters 1.1.1-rc.1 → 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
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-ef2f6a78.js");require("react/jsx-runtime");require("@emotion/styled");require("@emotion/react");require("react");require("react-transition-group");require("react-dom");require("react-router-dom");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,25 +1,29 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as m, C as r, e as p, f as c, o as d, F as P, k as f, l as C, m as g, p as h, w as b, b as F, d as L, n as M, i as k, j as v, s as S, v as x, u as D } from "./index-36ce2709.mjs";
|
|
2
2
|
import "react/jsx-runtime";
|
|
3
|
+
import "@emotion/styled";
|
|
4
|
+
import "@emotion/react";
|
|
3
5
|
import "react";
|
|
6
|
+
import "react-transition-group";
|
|
4
7
|
import "react-dom";
|
|
8
|
+
import "react-router-dom";
|
|
5
9
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
10
|
+
m as ChatPopupPlugin,
|
|
11
|
+
r as ContactList,
|
|
12
|
+
p as ContactMethod,
|
|
13
|
+
c as ContactMethodPlatform,
|
|
14
|
+
d as DefaultContactMethodsPlugin,
|
|
15
|
+
P as DefaultForm,
|
|
16
|
+
f as EmailFormPlugin,
|
|
17
|
+
C as FreeTextPlugin,
|
|
18
|
+
g as LinkPlugin,
|
|
19
|
+
h as PhonePlugin,
|
|
20
|
+
b as WebServicePlugin,
|
|
21
|
+
F as contactItemList,
|
|
22
|
+
L as contactLink,
|
|
23
|
+
M as createSubmitAdapter,
|
|
24
|
+
k as defaultComplete,
|
|
25
|
+
v as defaultEvaluate,
|
|
26
|
+
S as defaultSubmit,
|
|
27
|
+
x as defaultValidate,
|
|
28
|
+
D as useContactMethod
|
|
25
29
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index-ef2f6a78.js");require("react/jsx-runtime");require("@emotion/styled");require("@emotion/react");require("react");require("react-transition-group");require("react-dom");require("react-router-dom");const a=({className:e,body:r,renderDefault:t=()=>{}})=>{const{uri:i,target:u,protocol:n}=r;return t({target:u,className:o.appendClassNames(e,"humany-contact-method-link"),href:`${n}${i}`})};exports.default=a;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { a as i } from "./index-36ce2709.mjs";
|
|
2
|
+
import "react/jsx-runtime";
|
|
3
|
+
import "@emotion/styled";
|
|
4
|
+
import "@emotion/react";
|
|
5
|
+
import "react";
|
|
6
|
+
import "react-transition-group";
|
|
7
|
+
import "react-dom";
|
|
8
|
+
import "react-router-dom";
|
|
9
|
+
const h = ({
|
|
10
|
+
className: t,
|
|
11
|
+
body: o,
|
|
12
|
+
renderDefault: r = () => {
|
|
13
|
+
}
|
|
14
|
+
}) => {
|
|
15
|
+
const { uri: m, target: p, protocol: a } = o;
|
|
16
|
+
return r({
|
|
17
|
+
target: p,
|
|
18
|
+
className: i(t, "humany-contact-method-link"),
|
|
19
|
+
href: `${a}${m}`
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
export {
|
|
23
|
+
h as default
|
|
24
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telia-ace/knowledge-widget-adapters",
|
|
3
|
-
"version": "1.1.1-rc.
|
|
3
|
+
"version": "1.1.1-rc.2",
|
|
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.1.1-rc.
|
|
15
|
-
"@telia-ace/knowledge-widget-ui": "^1.1.1-rc.
|
|
16
|
-
"@telia-ace/widget-forms": "^1.1.1-rc.
|
|
17
|
-
"@telia-ace/widget-routing": "^1.1.1-rc.
|
|
18
|
-
"@telia-ace/widget-utilities": "^1.1.1-rc.
|
|
14
|
+
"@telia-ace/knowledge-widget-core": "^1.1.1-rc.2",
|
|
15
|
+
"@telia-ace/knowledge-widget-ui": "^1.1.1-rc.2",
|
|
16
|
+
"@telia-ace/widget-forms": "^1.1.1-rc.2",
|
|
17
|
+
"@telia-ace/widget-routing": "^1.1.1-rc.2",
|
|
18
|
+
"@telia-ace/widget-utilities": "^1.1.1-rc.2",
|
|
19
19
|
"@webprovisions/platform": "^1.1.4"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-ef2f6a78.js");require("react/jsx-runtime");require("@emotion/styled");require("@emotion/react");require("react");require("react-transition-group");require("react-dom");require("react-router-dom");const u=({className:r,body:{phoneNumber:e},renderDefault:t=()=>{}})=>t({title:e,className:i.appendClassNames(r,"humany-contact-method-phone"),href:`tel: ${e}`});exports.default=u;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { a as p } from "./index-36ce2709.mjs";
|
|
2
|
+
import "react/jsx-runtime";
|
|
3
|
+
import "@emotion/styled";
|
|
4
|
+
import "@emotion/react";
|
|
5
|
+
import "react";
|
|
6
|
+
import "react-transition-group";
|
|
7
|
+
import "react-dom";
|
|
8
|
+
import "react-router-dom";
|
|
9
|
+
const d = ({
|
|
10
|
+
className: o,
|
|
11
|
+
body: { phoneNumber: t },
|
|
12
|
+
renderDefault: m = () => {
|
|
13
|
+
}
|
|
14
|
+
}) => m({
|
|
15
|
+
title: t,
|
|
16
|
+
className: p(o, "humany-contact-method-phone"),
|
|
17
|
+
href: `tel: ${t}`
|
|
18
|
+
});
|
|
19
|
+
export {
|
|
20
|
+
d as default
|
|
21
|
+
};
|
|
@@ -1,8 +0,0 @@
|
|
|
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;
|
|
@@ -1,49 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,3 +0,0 @@
|
|
|
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;
|