@tsirosgeorge/toastnotification 5.3.1 โ 5.3.2
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 +42 -0
- package/Readme.md +8 -2
- package/package.json +5 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
PROPRIETARY LICENSE
|
|
2
|
+
|
|
3
|
+
Copyright ยฉ 2025 George Tsiros. All rights reserved.
|
|
4
|
+
|
|
5
|
+
This software and associated documentation files (the "Software") are provided
|
|
6
|
+
for use only as distributed by the author.
|
|
7
|
+
|
|
8
|
+
PERMITTED USE:
|
|
9
|
+
You are permitted to use the Software as distributed, without modification, in
|
|
10
|
+
your own projects (commercial or non-commercial).
|
|
11
|
+
|
|
12
|
+
RESTRICTIONS:
|
|
13
|
+
1. You may NOT modify, merge, create derivative works, or alter the Software
|
|
14
|
+
in any way.
|
|
15
|
+
|
|
16
|
+
2. You may NOT redistribute, sublicense, sell, rent, lease, or transfer the
|
|
17
|
+
Software to any third party.
|
|
18
|
+
|
|
19
|
+
3. You may NOT reverse engineer, decompile, disassemble, or attempt to derive
|
|
20
|
+
the source code of the Software.
|
|
21
|
+
|
|
22
|
+
4. You may NOT remove or alter any copyright notices, trademarks, or other
|
|
23
|
+
proprietary markings from the Software.
|
|
24
|
+
|
|
25
|
+
5. This is NOT open source software. You may NOT treat it as such.
|
|
26
|
+
|
|
27
|
+
DISCLAIMER:
|
|
28
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
29
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
30
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
31
|
+
AUTHOR OR COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
32
|
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
|
|
33
|
+
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
34
|
+
|
|
35
|
+
CONTACT:
|
|
36
|
+
For commercial licensing, permissions, or inquiries:
|
|
37
|
+
Email: tsirosgeorge@pm.me
|
|
38
|
+
|
|
39
|
+
TERMINATION:
|
|
40
|
+
This license is effective until terminated. Your rights under this license
|
|
41
|
+
will terminate automatically without notice if you fail to comply with any
|
|
42
|
+
of its terms.
|
package/Readme.md
CHANGED
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
A lightweight, customizable, and dependency-free toast notification system written in vanilla JavaScript.
|
|
4
4
|
|
|
5
|
+
> **License:** Proprietary - See [LICENSE](LICENSE) file. This is NOT open source software.
|
|
6
|
+
|
|
5
7
|
---
|
|
6
8
|
|
|
7
9
|
## ๐ฆ Include package via cdn
|
|
8
10
|
```html
|
|
9
|
-
<script src="https://cdn.jsdelivr.net/npm/@tsirosgeorge/toastnotification@5.3.
|
|
11
|
+
<script src="https://cdn.jsdelivr.net/npm/@tsirosgeorge/toastnotification@5.3.2/toast.min.js"></script>
|
|
10
12
|
```
|
|
11
13
|
|
|
12
14
|
## ๐ฆ Include package via npm
|
|
@@ -115,10 +117,13 @@ t.update('Done!', { type: 'success', duration: 2000 });
|
|
|
115
117
|
### ๐งฉ Confirm-specific options
|
|
116
118
|
| Option | Type | Default | Description |
|
|
117
119
|
|-------|------|---------|-------------|
|
|
118
|
-
| `mode` | `"confirm"
|
|
120
|
+
| `mode` | `"confirm" \| "swal"` | โ | Set to show a confirm dialog with Yes/No buttons. |
|
|
119
121
|
| `title` | `string` | `null` | Optional heading shown above the message. |
|
|
120
122
|
| `confirmText` | `string` | `"Yes"` | Confirm button label. |
|
|
121
123
|
| `cancelText` | `string` | `"No"` | Cancel button label. |
|
|
124
|
+
| `input` | `string \| false` | `false` | Input field type: `'text'`, `'email'`, `'password'`, `'number'`, `'textarea'`, or `false` for no input. |
|
|
125
|
+
| `inputPlaceholder` | `string` | `""` | Placeholder text for the input field. |
|
|
126
|
+
| `inputValue` | `string` | `""` | Default value for the input field. |
|
|
122
127
|
| `useOverlay` | `boolean` | `true` | Dim the background and center the dialog. |
|
|
123
128
|
| `closeOnOverlayClick` | `boolean` | `true` | Clicking the overlay cancels. |
|
|
124
129
|
| `showClose` | `boolean` | `false` | Show a top-right ร button. |
|
|
@@ -130,6 +135,7 @@ t.update('Done!', { type: 'success', duration: 2000 });
|
|
|
130
135
|
### ๐งช Live Demo
|
|
131
136
|
Open the online demo to try all options: https://tsirosgeorge.github.io/toast-notification/
|
|
132
137
|
|
|
138
|
+
---
|
|
133
139
|
|
|
134
140
|
## ๐ License
|
|
135
141
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsirosgeorge/toastnotification",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.2",
|
|
4
4
|
"description": "a toast notification plugin",
|
|
5
5
|
"main": "toast.min.js",
|
|
6
6
|
"module": "toast.module.js",
|
|
@@ -24,7 +24,9 @@
|
|
|
24
24
|
"toast.module.js",
|
|
25
25
|
"assets/css/toast.css",
|
|
26
26
|
"assets/css/toast.min.css",
|
|
27
|
-
"assets/img/"
|
|
27
|
+
"assets/img/",
|
|
28
|
+
"LICENSE",
|
|
29
|
+
"README.md"
|
|
28
30
|
],
|
|
29
31
|
"repository": {
|
|
30
32
|
"type": "git",
|
|
@@ -36,7 +38,7 @@
|
|
|
36
38
|
"alert"
|
|
37
39
|
],
|
|
38
40
|
"author": "George Tsiros",
|
|
39
|
-
"license": "
|
|
41
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
40
42
|
"private": false,
|
|
41
43
|
"publishConfig": {
|
|
42
44
|
"access": "public"
|