@silexlabs/grapesjs-notifications 0.0.2 → 0.0.3
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/README.md +1 -0
- package/dist/index.d.ts +3 -0
- package/locale/en.js +4 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -85,6 +85,7 @@ API:
|
|
|
85
85
|
| `icons` | Icons for the notification types | `object` | `{error: '\u2716', warning: '\u26A0', success: '\u2714', info: '\u2139'}` |
|
|
86
86
|
| `i18n` | Internationalization | `object` | Check the values in locale/en.js |
|
|
87
87
|
| `maxNotifications` | Maximum number of notifications to display | `number` | `5` |
|
|
88
|
+
| `reverse` | Reverse the order of the notifications | `boolean` | `false` |
|
|
88
89
|
|
|
89
90
|
## Download
|
|
90
91
|
|
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { StyleInfo } from 'lit/directives/style-map';
|
|
|
4
4
|
|
|
5
5
|
export interface NotificationOptions {
|
|
6
6
|
message: string;
|
|
7
|
+
group?: string;
|
|
7
8
|
timeout?: number;
|
|
8
9
|
component?: string | Component;
|
|
9
10
|
type: "info" | "warning" | "error" | "success";
|
|
@@ -20,6 +21,7 @@ declare class Notification {
|
|
|
20
21
|
protected editor: NotificationEditor;
|
|
21
22
|
protected model: NotificationModel;
|
|
22
23
|
component: Component | null;
|
|
24
|
+
group: string | null;
|
|
23
25
|
timeoutRef: NodeJS.Timeout | undefined;
|
|
24
26
|
message: string;
|
|
25
27
|
type: "info" | "warning" | "error" | "success";
|
|
@@ -36,6 +38,7 @@ export interface NotificationManagerOptions {
|
|
|
36
38
|
style: Readonly<StyleInfo>;
|
|
37
39
|
container: HTMLElement;
|
|
38
40
|
maxNotifications?: number;
|
|
41
|
+
reverse?: boolean;
|
|
39
42
|
timeout?: number;
|
|
40
43
|
storeKey?: string;
|
|
41
44
|
icons?: {
|
package/locale/en.js
CHANGED
|
@@ -6,7 +6,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _default = exports.default = {
|
|
8
8
|
'@silexlabs/grapesjs-notifications': {
|
|
9
|
-
'Close': 'Dismiss',
|
|
10
|
-
'
|
|
9
|
+
'Close': '\u2716 Dismiss',
|
|
10
|
+
'CloseAll': '\u2716 Dismiss all',
|
|
11
|
+
'Select': '\u2713 Select component {componentName}',
|
|
12
|
+
'Show': '\u2193 Show'
|
|
11
13
|
}
|
|
12
14
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexlabs/grapesjs-notifications",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "This GrapesJs plugin is designed to enhance the user experience within the editor by providing a robust notification system. This plugin captures and displays various types of notifications including errors, warnings, and activities, thereby facilitating a more interactive and responsive interface.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"repository": {
|