@telia-ace/knowledge-widget-components-notification-list 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/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const o=require("@telia-ace/knowledge-data-client"),c=require("@telia-ace/knowledge-widget-core"),l=require("@telia-ace/knowledge-widget-ui"),p=s=>{const{events:n}=s.get("$widget"),[d,h]=c.createEventSubscriber(n);return l.createReactComponent(s,"notification-list",Promise.resolve().then(()=>require("./notification-list-
|
|
1
|
+
"use strict";const o=require("@telia-ace/knowledge-data-client"),c=require("@telia-ace/knowledge-widget-core"),l=require("@telia-ace/knowledge-widget-ui"),p=s=>{const{events:n}=s.get("$widget"),[d,h]=c.createEventSubscriber(n);return l.createReactComponent(s,"notification-list",Promise.resolve().then(()=>require("./notification-list-skvBFTui.js")),e=>{const r=t=>{e.writeProperties({...e.properties(),loading:!0,error:void 0,notificationList:void 0}),e.actions.dispatch("fetch",{params:t})};e.actions.create("fetch",({error:t,notificationLists:i})=>{if(t)return e.actions.dispatch("fetched",{error:t,loading:!0,notificationList:void 0});const{category:a,notificationList:f}=e.properties(),u={notificationList:i.find(g=>g.id===a)||f};return e.actions.dispatch("fetched",{...u,loading:!0})}),e.actions.create("fetched",t=>e.writeProperties({...t,loading:!1})),s.getAsync("router").then(t=>{const{params:i}=t.getRouteData();r(i)}),d("router:changed",(t,{current:i})=>{r(i.routeData.params)})}).then(()=>c.extendComponent(s,"notification-list",e=>{e.actions.watch("notification-list.fetch",(r,t)=>o.DataClient.getInstance(s).then(i=>i.fetch(o.DataType.NotificationLists,{categories:[r.params.guideCategory,r.params.contactCategory].filter(a=>!!a),searchPhrase:r.params.phrase})).then(t).catch(i=>{if(i)return t(i)}))})).then(()=>{h()})};module.exports=p;
|
package/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import r from "@emotion/styled";
|
|
3
|
-
import { useContainer as c, useProperties as f, createEmptyComponent as m,
|
|
3
|
+
import { useContainer as c, useProperties as f, createEmptyComponent as m, contentBox as p, NotificationList as l } from "@telia-ace/knowledge-widget-ui";
|
|
4
4
|
import { appendClassNames as d } from "@telia-ace/widget-utilities";
|
|
5
5
|
const L = ({ className: t, ...i }) => {
|
|
6
6
|
const e = c(), {
|
|
@@ -21,8 +21,8 @@ const L = ({ className: t, ...i }) => {
|
|
|
21
21
|
showHeader: s
|
|
22
22
|
}
|
|
23
23
|
);
|
|
24
|
-
}, u = r(
|
|
25
|
-
${(t) =>
|
|
24
|
+
}, u = r(l)`
|
|
25
|
+
${(t) => p(t)}
|
|
26
26
|
`;
|
|
27
27
|
export {
|
|
28
28
|
L as default
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telia-ace/knowledge-widget-components-notification-list",
|
|
3
|
-
"version": "1.3.41
|
|
3
|
+
"version": "1.3.41",
|
|
4
4
|
"main": "./index.js",
|
|
5
5
|
"types": "./index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
}
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@telia-ace/knowledge-widget-core": "^1.3.41
|
|
14
|
-
"@telia-ace/knowledge-widget-ui": "^1.3.41
|
|
15
|
-
"@telia-ace/widget-utilities": "^1.3.41
|
|
16
|
-
"@telia-ace/knowledge-data-client": "^1.3.41
|
|
13
|
+
"@telia-ace/knowledge-widget-core": "^1.3.41",
|
|
14
|
+
"@telia-ace/knowledge-widget-ui": "^1.3.41",
|
|
15
|
+
"@telia-ace/widget-utilities": "^1.3.41",
|
|
16
|
+
"@telia-ace/knowledge-data-client": "^1.3.41",
|
|
17
17
|
"@webprovisions/platform": "^1.1.4"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
File without changes
|