@telia-ace/knowledge-widget-components-notification-list 1.0.28-next.1 → 1.0.34-next.0
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/index.js
CHANGED
|
@@ -32,16 +32,19 @@ const k = (i) => {
|
|
|
32
32
|
} = h();
|
|
33
33
|
return !(n != null && n.notifications.length) && !c ? x(d, r(s({}, o), {
|
|
34
34
|
className: w(t, "humany-notification-list")
|
|
35
|
-
})) : /* @__PURE__ */ B.createElement(
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
35
|
+
})) : /* @__PURE__ */ B.createElement(
|
|
36
|
+
H,
|
|
37
|
+
r(s({}, o), {
|
|
38
|
+
className: t,
|
|
39
|
+
notificationList: n,
|
|
40
|
+
loading: c,
|
|
41
|
+
showHeader: u
|
|
42
|
+
})
|
|
43
|
+
);
|
|
41
44
|
}, H = L(E)`
|
|
42
45
|
${(t) => $(t)}
|
|
43
46
|
`;
|
|
44
47
|
export {
|
|
45
48
|
k as default
|
|
46
49
|
};
|
|
47
|
-
//# sourceMappingURL=notification-list.
|
|
50
|
+
//# sourceMappingURL=notification-list.4eb10bb7.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification-list.
|
|
1
|
+
{"version":3,"file":"notification-list.4eb10bb7.js","sources":["../src/notification-list.tsx"],"sourcesContent":["import styled from '@emotion/styled';\nimport {\n contentBox,\n createEmptyComponent,\n NotificationList as NotificationListUi,\n useContainer,\n useProperties,\n} from '@telia-ace/knowledge-widget-ui';\nimport { appendClassNames } from '@telia-ace/widget-utilities';\nimport React from 'react';\nimport { NotificationListComponentProps } from './notification-list-component';\n\ntype Props = {\n className: string;\n};\n\nconst NotificationList: React.FC<Props> = ({ className, ...other }) => {\n const container = useContainer();\n const {\n showHeader,\n notificationList,\n loading = false,\n } = useProperties<NotificationListComponentProps>();\n\n if (!notificationList?.notifications.length && !loading) {\n return createEmptyComponent(container, {\n ...other,\n className: appendClassNames(className, 'humany-notification-list'),\n });\n }\n\n return (\n <StyledNotificationList\n {...other}\n className={className}\n notificationList={notificationList}\n loading={loading}\n showHeader={showHeader}\n />\n );\n};\n\nconst StyledNotificationList = styled(NotificationListUi)`\n ${(p) => contentBox(p)}\n`;\n\nexport default NotificationList;\n"],"names":["NotificationList","_a","_b","className","other","__objRest","container","useContainer","showHeader","notificationList","loading","useProperties","createEmptyComponent","__spreadProps","__spreadValues","appendClassNames","React","StyledNotificationList","styled","NotificationListUi","p","contentBox"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAgBA,MAAMA,IAAoC,CAACC,MAA4B;AAA5B,MAAAC,IAAAD,GAAE,aAAAE,MAAFD,GAAgBE,IAAAC,EAAhBH,GAAgB,CAAd;AACzC,QAAMI,IAAYC,KACZ;AAAA,IACF,YAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,SAAAC,IAAU;AAAA,MACVC,EAA8C;AAElD,SAAI,EAACF,KAAA,QAAAA,EAAkB,cAAc,WAAU,CAACC,IACrCE,EAAqBN,GAAWO,EAAAC,EAAA,IAChCV,IADgC;AAAA,IAEnC,WAAWW,EAAiBZ,GAAW,0BAA0B;AAAA,EAAA,EACpE,IAID,gBAAAa,EAAA;AAAA,IAACC;AAAA,IAAAJ,EAAAC,EAAA,IACOV,IADP;AAAA,MAEG,WAAAD;AAAA,MACA,kBAAAM;AAAA,MACA,SAAAC;AAAA,MACA,YAAAF;AAAA,IAAA;AAAA,EAAA;AAGZ,GAEMS,IAAyBC,EAAOC,CAAkB;AAAA,MAClD,CAACC,MAAMC,EAAWD,CAAC;AAAA;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telia-ace/knowledge-widget-components-notification-list",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.34-next.0",
|
|
4
4
|
"description": "Notification list component for ACE Knowledge Widgets.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"author": "Telia Company AB",
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
},
|
|
22
22
|
"sideEffects": false,
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@telia-ace/knowledge-widget-core": "^1.0.
|
|
25
|
-
"@telia-ace/knowledge-widget-types-grid": "^1.0.
|
|
26
|
-
"@telia-ace/knowledge-widget-ui": "^1.0.
|
|
27
|
-
"@telia-ace/widget-utilities": "^1.0.7-next.
|
|
24
|
+
"@telia-ace/knowledge-widget-core": "^1.0.30-next.0",
|
|
25
|
+
"@telia-ace/knowledge-widget-types-grid": "^1.0.41-next.0",
|
|
26
|
+
"@telia-ace/knowledge-widget-ui": "^1.0.36-next.0",
|
|
27
|
+
"@telia-ace/widget-utilities": "^1.0.7-next.7",
|
|
28
28
|
"@webprovisions/platform": "^1.1.2"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|