@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/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-1b0852e7.js");require("react/jsx-runtime");require("react");require("react-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;
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 { b as i, C as l, f as u, i as n, r as m, F as r, l as c, m as d, o as P, p as f, w as p, d as C, e as g, q as h, j as b, k as F, s as L, v as M, u as k } from "./index-9e0ae87d.mjs";
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
- i as ChatPopupPlugin,
7
- l as ContactList,
8
- u as ContactMethod,
9
- n as ContactMethodPlatform,
10
- m as DefaultContactMethodsPlugin,
11
- r as DefaultForm,
12
- c as EmailFormPlugin,
13
- d as FreeTextPlugin,
14
- P as LinkPlugin,
15
- f as PhonePlugin,
16
- p as WebServicePlugin,
17
- C as contactItemList,
18
- g as contactLink,
19
- h as createSubmitAdapter,
20
- b as defaultComplete,
21
- F as defaultEvaluate,
22
- L as defaultSubmit,
23
- M as defaultValidate,
24
- k as useContactMethod
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.1",
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.1",
15
- "@telia-ace/knowledge-widget-ui": "^1.1.1-rc.1",
16
- "@telia-ace/widget-forms": "^1.1.1-rc.1",
17
- "@telia-ace/widget-routing": "^1.1.1-rc.1",
18
- "@telia-ace/widget-utilities": "^1.1.1-rc.1",
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;