@telia-ace/knowledge-widget-bot-provider 0.0.15-experimental.8 → 0.0.15
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-method-list.70f5e518.js +94 -0
- package/dist/contact-method-list.70f5e518.js.map +1 -0
- package/dist/contact-method.4b049dad.js +123 -0
- package/dist/contact-method.4b049dad.js.map +1 -0
- package/dist/feedback-list.73d8aa69.js +76 -0
- package/dist/feedback-list.73d8aa69.js.map +1 -0
- package/dist/index.a7a0d62d.js +787 -0
- package/dist/index.a7a0d62d.js.map +1 -0
- package/dist/index.js +6 -779
- package/dist/index.js.map +1 -1
- package/dist/no-good-alternative.e5e48f22.js +50 -0
- package/dist/no-good-alternative.e5e48f22.js.map +1 -0
- package/dist/notification-list.c3df3ee1.js +66 -0
- package/dist/notification-list.c3df3ee1.js.map +1 -0
- package/dist/styles.a00306c5.js +12 -0
- package/dist/styles.a00306c5.js.map +1 -0
- package/dist/ui/contact-method-list.d.ts +8 -1
- package/dist/ui/feedback-list.d.ts +6 -1
- package/dist/ui/no-good-alternative.d.ts +4 -1
- package/dist/ui/notification-list.d.ts +9 -1
- package/dist/utils.d.ts +2 -3
- package/package.json +10 -14
- package/dist/contact-method-list.2b3b6ea5.js +0 -5
- package/dist/contact-method-list.2b3b6ea5.js.map +0 -1
- package/dist/contact-method.016a8ec5.js +0 -5
- package/dist/contact-method.016a8ec5.js.map +0 -1
- package/dist/feedback-list.042775aa.js +0 -5
- package/dist/feedback-list.042775aa.js.map +0 -1
- package/dist/new-feedback-list.4dc450c7.js +0 -61
- package/dist/new-feedback-list.4dc450c7.js.map +0 -1
- package/dist/new-no-good-alternative.63439a76.js +0 -48
- package/dist/new-no-good-alternative.63439a76.js.map +0 -1
- package/dist/new-notification-list.17d34093.js +0 -24
- package/dist/new-notification-list.17d34093.js.map +0 -1
- package/dist/no-good-alternative.4e277f5b.js +0 -5
- package/dist/no-good-alternative.4e277f5b.js.map +0 -1
- package/dist/notification-list.399e34ff.js +0 -5
- package/dist/notification-list.399e34ff.js.map +0 -1
- package/dist/ui/new-feedback-list.d.ts +0 -13
- package/dist/ui/new-no-good-alternative.d.ts +0 -8
- package/dist/ui/new-notification-list.d.ts +0 -6
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"new-no-good-alternative.63439a76.js","sources":["../src/ui/new-no-good-alternative.ts"],"sourcesContent":["import { html, LitElement, unsafeCSS } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport styles from './no-good-alternative.scss?inline';\n\n@customElement('ace-knowledge-bot-no-good-alternative')\nexport class NoGoodAlternative extends LitElement {\n static styles = unsafeCSS(styles);\n\n @property({ type: String })\n declare body: string;\n\n constructor() {\n super();\n\n this.body = '';\n }\n\n onClick(event: Event) {\n event.stopPropagation();\n event.preventDefault();\n const ev = new CustomEvent('action', {\n bubbles: true,\n cancelable: true,\n composed: true,\n detail: {\n actionKey: 'help',\n },\n });\n this.dispatchEvent(ev);\n }\n\n render() {\n return html`<div class=\"wrapper\">\n <button @click=${this.onClick} aria-label=${this.body} title=${this.body}>\n <ui-symbol-badge\n .size=${14}\n .symbol=${{ type: 'FontAwesome', content: 'meh-o' }}\n ></ui-symbol-badge>\n <span>${this.body}</span>\n </button>\n </div>`;\n }\n}\n"],"names":["NoGoodAlternative","LitElement","event","ev","html","unsafeCSS","styles","__decorateClass","property","customElement"],"mappings":";;;;;;;;;AAKa,IAAAA,IAAN,cAAgCC,EAAW;AAAA,EAM9C,cAAc;AACJ,aAEN,KAAK,OAAO;AAAA,EAChB;AAAA,EAEA,QAAQC,GAAc;AAClB,IAAAA,EAAM,gBAAgB,GACtBA,EAAM,eAAe;AACf,UAAAC,IAAK,IAAI,YAAY,UAAU;AAAA,MACjC,SAAS;AAAA,MACT,YAAY;AAAA,MACZ,UAAU;AAAA,MACV,QAAQ;AAAA,QACJ,WAAW;AAAA,MACf;AAAA,IAAA,CACH;AACD,SAAK,cAAcA,CAAE;AAAA,EACzB;AAAA,EAEA,SAAS;AACE,WAAAC;AAAA,6BACc,KAAK,sBAAsB,KAAK,cAAc,KAAK;AAAA;AAAA,4BAEpD;AAAA,8BACE,EAAE,MAAM,eAAe,SAAS,QAAQ;AAAA;AAAA,wBAE9C,KAAK;AAAA;AAAA;AAAA,EAGzB;AACJ;AArCaJ,EACF,SAASK,EAAUC,CAAM;AAGxBC,EAAA;AAAA,EADPC,EAAS,EAAE,MAAM,QAAQ;AAAA,GAHjBR,EAID,WAAA,QAAA,CAAA;AAJCA,IAANO,EAAA;AAAA,EADNE,EAAc,uCAAuC;AAAA,GACzCT,CAAA;"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { LitElement as f, html as c, unsafeCSS as m } from "lit";
|
|
2
|
-
import { property as a, customElement as v } from "lit/decorators.js";
|
|
3
|
-
const _ = "";
|
|
4
|
-
var u = Object.defineProperty, y = Object.getOwnPropertyDescriptor, l = (p, e, s, r) => {
|
|
5
|
-
for (var t = r > 1 ? void 0 : r ? y(e, s) : e, i = p.length - 1, n; i >= 0; i--)
|
|
6
|
-
(n = p[i]) && (t = (r ? n(e, s, t) : n(t)) || t);
|
|
7
|
-
return r && t && u(e, s, t), t;
|
|
8
|
-
};
|
|
9
|
-
let o = class extends f {
|
|
10
|
-
render() {
|
|
11
|
-
return c`notificationList`;
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
o.styles = m(_);
|
|
15
|
-
l([
|
|
16
|
-
a({ type: String })
|
|
17
|
-
], o.prototype, "propName", 2);
|
|
18
|
-
o = l([
|
|
19
|
-
v("ace-knowledge-bot-notification-list")
|
|
20
|
-
], o);
|
|
21
|
-
export {
|
|
22
|
-
o as NewNotificationList
|
|
23
|
-
};
|
|
24
|
-
//# sourceMappingURL=new-notification-list.17d34093.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"new-notification-list.17d34093.js","sources":["../src/ui/new-notification-list.ts"],"sourcesContent":["import { html, LitElement, unsafeCSS } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport styles from './notification-list.scss?inline';\n// import {NotificationListUi} from '@telia-ace/knowledge-widget-ui';\n\n@customElement('ace-knowledge-bot-notification-list')\nexport class NewNotificationList extends LitElement {\n static styles = unsafeCSS(styles);\n\n @property({ type: String })\n declare propName: any;\n\n render() {\n return html`notificationList`;\n }\n}\n"],"names":["NewNotificationList","LitElement","html","unsafeCSS","styles","__decorateClass","property","customElement"],"mappings":";;;;;;;;AAMa,IAAAA,IAAN,cAAkCC,EAAW;AAAA,EAMhD,SAAS;AACE,WAAAC;AAAA,EACX;AACJ;AATaF,EACF,SAASG,EAAUC,CAAM;AAGxBC,EAAA;AAAA,EADPC,EAAS,EAAE,MAAM,QAAQ;AAAA,GAHjBN,EAID,WAAA,YAAA,CAAA;AAJCA,IAANK,EAAA;AAAA,EADNE,EAAc,qCAAqC;AAAA,GACvCP,CAAA;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"no-good-alternative.4e277f5b.js","sources":["../src/ui/no-good-alternative.tsx"],"sourcesContent":["import React from 'react';\n\nconst NoGoodAlternative: React.FC<any> = () => {\n return null;\n};\nexport default NoGoodAlternative;\n// import styled from '@emotion/styled';\n// import { borderTabStyle, Button, SymbolBadge, useDispatch } from '@telia-ace/knowledge-widget-ui';\n// import React from 'react';\n// import { messageContentPadding } from './styles';\n\n// type Props = {\n// body: string;\n// };\n// const NoGoodAlternative: React.FC<Props> = ({ body }) => {\n// const dispatch = useDispatch();\n// return (\n// <Wrapper>\n// <StyledButton\n// onClick={() => {\n// dispatch('action', 'help');\n// }}\n// aria-label={body}\n// title={body}\n// >\n// <SymbolBadge\n// size={14}\n// symbol={{\n// type: 'FontAwesome',\n// content: 'meh-o',\n// }}\n// />\n// <span>{body}</span>\n// </StyledButton>\n// </Wrapper>\n// );\n// };\n\n// export default NoGoodAlternative;\n\n// const Wrapper = styled.div`\n// display: flex;\n// align-items: center;\n// justify-content: center;\n// ${messageContentPadding}\n// `;\n\n// const StyledButton = styled(Button)`\n// > i,\n// svg {\n// margin-right: ${(p) => p.theme.sizes?.small};\n// }\n\n// &:focus-visible {\n// ${borderTabStyle}\n// }\n// `;\n"],"names":["NoGoodAlternative"],"mappings":"AAEA,MAAMA,IAAmC,MAC9B;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"notification-list.399e34ff.js","sources":["../src/ui/notification-list.tsx"],"sourcesContent":["// import styled from '@emotion/styled';\n// import { NotificationList as NotificationListUi, Symbol } from '@telia-ace/knowledge-widget-ui';\n// import React, { useMemo } from 'react';\n// import { messageContentPadding } from './styles';\n\n// type Props = {\n// id: string;\n// header: string;\n// items: any[];\n// symbol?: Symbol;\n// className?: string;\n// };\n// const NotificationList: React.FC<Props> = ({ id, header, items, symbol, className, ...other }) => {\n// const list = useMemo(() => {\n// return {\n// id: id,\n// title: header,\n// symbol,\n// defaultHeaderOptions: {\n// visible: true,\n// },\n// notifications: items.map((item) => ({\n// id: item.id.toString(),\n// title: item.title,\n// body: item.body,\n// modified: item.modified,\n// expandable: true,\n// })),\n// };\n// }, [header, items]);\n\n// if (!list) {\n// return null;\n// }\n\n// return (\n// <StyledNotificationListUi\n// className={className}\n// showHeader={true}\n// notificationList={list}\n// loading={false}\n// {...other}\n// />\n// );\n// };\n\n// export default NotificationList;\n\n// const StyledNotificationListUi = styled(NotificationListUi)`\n// ${messageContentPadding}\n// min-width: 10em;\n\n// span {\n// color: ${(p) => p.theme.colors?.text};\n// }\n// `;\n\nimport React from 'react';\n\nconst NotificationList: React.FC<any> = () => {\n return null;\n};\nexport default NotificationList;\n"],"names":["NotificationList"],"mappings":"AA2DA,MAAMA,IAAkC,MAC7B;"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
2
|
-
type FeedbackAction = {
|
|
3
|
-
actionKey: string;
|
|
4
|
-
label: string;
|
|
5
|
-
};
|
|
6
|
-
export declare class FeedbackList extends LitElement {
|
|
7
|
-
static styles: import("lit").CSSResult;
|
|
8
|
-
actions: FeedbackAction[];
|
|
9
|
-
constructor();
|
|
10
|
-
onClick(event: Event, key: string): void;
|
|
11
|
-
render(): import("lit").TemplateResult<1>;
|
|
12
|
-
}
|
|
13
|
-
export {};
|