@zeitonline/notification 0.1.0 → 0.1.1
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
class i {
|
|
2
2
|
constructor() {
|
|
3
|
-
console.log("Hello here... I am
|
|
3
|
+
console.log("Hello here... I am a Notification!");
|
|
4
4
|
}
|
|
5
5
|
showBottom({ message: t }) {
|
|
6
6
|
console.log(t);
|
|
@@ -10,15 +10,15 @@ class i {
|
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
const n = {
|
|
13
|
-
|
|
13
|
+
notification: new i(),
|
|
14
14
|
showInline({ message: o }) {
|
|
15
|
-
this.
|
|
15
|
+
this.notification.showInline({ message: o });
|
|
16
16
|
},
|
|
17
17
|
showBottom({ message: o }) {
|
|
18
|
-
this.
|
|
18
|
+
this.notification.showBottom({ message: o });
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
21
|
export {
|
|
22
22
|
n as default
|
|
23
23
|
};
|
|
24
|
-
//# sourceMappingURL=
|
|
24
|
+
//# sourceMappingURL=notification.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification.js","sources":["../src/notification.js"],"sourcesContent":["/**\n * @fileOverview\n * @author daniel.kreitschmann@zeit.de\n * @author joseph.mueller@zeit.de\n * @author moritz.stoltenburg@zeit.de\n * @author valentin.vonguttenberg@zeit.de\n * @version 0.6\n */\n\n// Notification manages ui elements and keep you informed about results, warnings and errors.\n// This includes deciding which type of notification to show (e.g., inline or bottom).\nclass Notification {\n\tconstructor() {\n\t\tconsole.log('Hello here... I am a Notification!');\n\t}\n\tshowBottom({ message }) {\n\t\tconsole.log(message);\n\t}\n\tshowInline({ message }) {\n\t\tconsole.log(message);\n\t}\n}\n\nconst notification = {\n\tnotification: new Notification(),\n\tshowInline({ message }) {\n\t\tthis.notification.showInline({ message });\n\t},\n\tshowBottom({ message }) {\n\t\tthis.notification.showBottom({ message });\n\t},\n};\n\nexport default notification;"],"names":["Notification","message","notification"],"mappings":"AAWA,MAAMA,EAAa;AAAA,EAClB,cAAc;AACb,YAAQ,IAAI,oCAAoC;AAAA,EACjD;AAAA,EACA,WAAW,EAAE,SAAAC,KAAW;AACvB,YAAQ,IAAIA,CAAO;AAAA,EACpB;AAAA,EACA,WAAW,EAAE,SAAAA,KAAW;AACvB,YAAQ,IAAIA,CAAO;AAAA,EACpB;AACD;AAEK,MAACC,IAAe;AAAA,EACpB,cAAc,IAAIF,EAAY;AAAA,EAC9B,WAAW,EAAE,SAAAC,KAAW;AACvB,SAAK,aAAa,WAAW,EAAE,SAAAA,EAAO,CAAE;AAAA,EACzC;AAAA,EACA,WAAW,EAAE,SAAAA,KAAW;AACvB,SAAK,aAAa,WAAW,EAAE,SAAAA,EAAO,CAAE;AAAA,EACzC;AACD;"}
|
package/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
1
|
+
import notification from './src/notification';
|
|
2
2
|
|
|
3
|
-
export default
|
|
3
|
+
export default notification;
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"notifications.js","sources":["../src/notifications.js"],"sourcesContent":["/**\n * @fileOverview\n * @author daniel.kreitschmann@zeit.de\n * @author joseph.mueller@zeit.de\n * @author moritz.stoltenburg@zeit.de\n * @author valentin.vonguttenberg@zeit.de\n * @version 0.6\n */\n\n// Notifications manages ui elements and keep you informed about results, warnings and errors.\n// This includes deciding which type of notification to show (e.g., inline or bottom).\nclass Notifications {\n\tconstructor() {\n\t\tconsole.log('Hello here... I am the Notifications!');\n\t}\n\tshowBottom({ message }) {\n\t\tconsole.log(message);\n\t}\n\tshowInline({ message }) {\n\t\tconsole.log(message);\n\t}\n}\n\nconst notification = {\n\tnotifications: new Notifications(),\n\tshowInline({ message }) {\n\t\tthis.notifications.showInline({ message });\n\t},\n\tshowBottom({ message }) {\n\t\tthis.notifications.showBottom({ message });\n\t},\n};\n\nexport default notification;"],"names":["Notifications","message","notification"],"mappings":"AAWA,MAAMA,EAAc;AAAA,EACnB,cAAc;AACb,YAAQ,IAAI,uCAAuC;AAAA,EACpD;AAAA,EACA,WAAW,EAAE,SAAAC,KAAW;AACvB,YAAQ,IAAIA,CAAO;AAAA,EACpB;AAAA,EACA,WAAW,EAAE,SAAAA,KAAW;AACvB,YAAQ,IAAIA,CAAO;AAAA,EACpB;AACD;AAEK,MAACC,IAAe;AAAA,EACpB,eAAe,IAAIF,EAAa;AAAA,EAChC,WAAW,EAAE,SAAAC,KAAW;AACvB,SAAK,cAAc,WAAW,EAAE,SAAAA,EAAO,CAAE;AAAA,EAC1C;AAAA,EACA,WAAW,EAAE,SAAAA,KAAW;AACvB,SAAK,cAAc,WAAW,EAAE,SAAAA,EAAO,CAAE;AAAA,EAC1C;AACD;"}
|