@enso-ui/notifications 3.2.8 → 3.2.9

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2026 laravel-enso
3
+ Copyright (c) 2026 Laravel Enso
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -1,28 +1,89 @@
1
- # notifications
1
+ # Notifications
2
2
 
3
- ![npm license](https://img.shields.io/npm/l/@enso-ui/notifications.svg)
4
- ![npm download](https://img.shields.io/npm/dm/@enso-ui/notifications.svg)
5
- ![GitHub top language](https://img.shields.io/github/languages/top/enso-ui/notifications.svg)
6
- ![GitHub issues](https://img.shields.io/github/issues/enso-ui/notifications.svg)
7
- ![npm version](https://img.shields.io/npm/v/@enso-ui/notifications.svg)
3
+ [![License](https://img.shields.io/badge/license-MIT-10b981.svg)](https://github.com/enso-ui/notifications/blob/master/LICENSE)
4
+ [![Stable](https://img.shields.io/badge/stable-3.2.8-2563eb.svg)](https://www.npmjs.com/package/@enso-ui/notifications)
5
+ [![Downloads](https://img.shields.io/npm/dm/@enso-ui/notifications.svg)](https://www.npmjs.com/package/@enso-ui/notifications)
6
+ [![Vue](https://img.shields.io/badge/vue-3.x-42b883.svg)](https://vuejs.org/)
7
+ [![JavaScript](https://img.shields.io/badge/javascript-ES2020-f7df1e.svg)](https://developer.mozilla.org/docs/Web/JavaScript)
8
+ [![SCSS](https://img.shields.io/badge/scss-supported-c6538c.svg)](https://sass-lang.com/)
9
+ [![npm](https://img.shields.io/badge/npm-package-cb3837.svg)](https://www.npmjs.com/package/@enso-ui/notifications)
10
+ [![Issues](https://img.shields.io/github/issues/enso-ui/notifications.svg)](https://github.com/enso-ui/notifications/issues)
11
+ [![Merge Requests](https://img.shields.io/github/issues-pr/enso-ui/notifications.svg)](https://github.com/enso-ui/notifications/pulls)
12
+
13
+ ## Description
14
+
15
+ Notifications provides the routed notifications page, navbar dropdown, and settings widget used by Enso UI applications.
16
+
17
+ ## Installation
18
+
19
+ Install the package:
20
+
21
+ ```bash
22
+ yarn add @enso-ui/notifications
23
+ ```
24
+
25
+ The package is usually consumed from the full `enso-ui` workspace inside an Enso application.
26
+
27
+ ## Features
28
+
29
+ - registers the `/core/notifications/index` page route
30
+ - ships a navbar dropdown that fetches, reads, and marks notifications as read
31
+ - includes a settings widget for toast position selection
32
+ - exports `register.js` to wire navbar and settings items into the host app
8
33
 
9
34
  ## Usage
10
- The component cannot be used outside of the Enso ecosystem.
11
35
 
12
- ### Demo
36
+ ```js
37
+ import notificationsRoute from '@enso-ui/notifications/src/bulma/routes/notifications.js';
38
+ import registerNotifications from '@enso-ui/notifications/src/bulma/register.js';
39
+ ```
40
+
41
+ ## API
42
+
43
+ ### Route and registration modules
13
44
 
14
- For live examples and demos, you may visit [laravel-enso.com](https://www.laravel-enso.com)
45
+ Common imports:
46
+ - `src/bulma/routes/notifications.js`
47
+ - `src/bulma/register.js`
15
48
 
16
- ### Installation, Configuration & Usage
49
+ ### Navbar component
17
50
 
18
- Be sure to check out the full documentation for this package available at [docs.laravel-enso.com](https://docs.laravel-enso.com/frontend/notifications.html)
51
+ `src/bulma/components/navbar/Notifications.vue`
52
+ - wraps the core renderless notifications controller
53
+ - renders unread count, dropdown items, and mark-all-as-read actions
54
+
55
+ ### Settings component
56
+
57
+ `src/bulma/components/settings/ToastrPosition.vue`
58
+ - renders the toastr-position selector through the dropdown package
59
+ - uses the core settings controller to update the preferred position
60
+
61
+ ## Routes
62
+
63
+ ### `/core/notifications/index`
64
+
65
+ Route name:
66
+ - `core.notifications.index`
67
+
68
+ ## Companion Backend Package
69
+
70
+ - [`laravel-enso/notifications`](https://docs.laravel-enso.com/backend/notifications.html) [↗](https://github.com/laravel-enso/notifications)
71
+
72
+ ## Depends On
73
+
74
+ - [`@enso-ui/directives`](https://docs.laravel-enso.com/frontend/directives.html) [↗](https://github.com/enso-ui/directives)
75
+ - [`@enso-ui/dropdown`](https://docs.laravel-enso.com/frontend/dropdown.html) [↗](https://github.com/enso-ui/dropdown)
76
+ - [`@enso-ui/toastr`](https://docs.laravel-enso.com/frontend/toastr.html) [↗](https://github.com/enso-ui/toastr)
77
+ - [`@enso-ui/transitions`](https://docs.laravel-enso.com/frontend/transitions.html) [↗](https://github.com/enso-ui/transitions)
78
+ - [`@enso-ui/ui`](https://docs.laravel-enso.com/frontend/ui.html) [↗](https://github.com/enso-ui/ui)
19
79
 
20
80
  ## Contributions
21
81
 
22
82
  are welcome. Pull requests are great, but issues are good too.
23
83
 
24
- Thank you to all the notifications who already contributed to Enso!
84
+ Thank you to all the people who already contributed to Enso!
25
85
 
26
86
  ## License
27
87
 
28
- [MIT](LICENSE)
88
+ [MIT](https://github.com/enso-ui/notifications/blob/master/LICENSE)
89
+
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@enso-ui/notifications",
3
- "version": "3.2.8",
4
- "description": "Basic notifications package",
3
+ "version": "3.2.9",
4
+ "description": "Notification center pages and navbar widgets for Enso UI",
5
5
  "main": "src/bulma/pages/Index.vue",
6
6
  "repository": {
7
7
  "type": "git",
@@ -2,7 +2,9 @@
2
2
  <div class="level is-mobile">
3
3
  <div class="level-left">
4
4
  <div class="level-item m-0">
5
- {{ i18n('Notifications') }}
5
+ <span class="menu-item-label">
6
+ {{ i18n('Notifications') }}
7
+ </span>
6
8
  </div>
7
9
  </div>
8
10
  <div class="level-right">