@tsirosgeorge/toastnotification 5.3.1 โ†’ 5.3.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.
Files changed (3) hide show
  1. package/LICENSE +42 -0
  2. package/Readme.md +9 -3
  3. package/package.json +7 -4
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.1/toast.min.js"></script>
11
+ <script src="https://cdn.jsdelivr.net/npm/@tsirosgeorge/toastnotification@5.3.3/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" | "swal"` | โ€” | Set to show a confirm dialog with Yes/No buttons. |
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
 
@@ -149,4 +155,4 @@ This software is provided "as is", without warranty of any kind. Use at your own
149
155
 
150
156
  ---
151
157
 
152
- **Note:** This package is marked as `UNLICENSED` in `package.json` to reflect these restrictions.
158
+ **Note:** See the [LICENSE](LICENSE) file included in this package for full terms and conditions.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsirosgeorge/toastnotification",
3
- "version": "5.3.1",
3
+ "version": "5.3.3",
4
4
  "description": "a toast notification plugin",
5
5
  "main": "toast.min.js",
6
6
  "module": "toast.module.js",
@@ -16,7 +16,8 @@
16
16
  "build:js": "terser toast.js --compress --mangle --output toast.min.js",
17
17
  "build": "npm run build:css && npm run build:js",
18
18
  "prepublishOnly": "npm run build",
19
- "release": "npm version && git push origin main --follow-tags && npm publish --access public"
19
+ "release": "npm version && git push origin main --follow-tags && npm publish --access public",
20
+ "publish": "npm run build && git add -A && git commit -m \"Release v5.3.2: Add LICENSE file and license documentation\" && git tag v5.3.2 && git push origin main --tags && npm publish --access public"
20
21
  },
21
22
  "files": [
22
23
  "toast.js",
@@ -24,7 +25,9 @@
24
25
  "toast.module.js",
25
26
  "assets/css/toast.css",
26
27
  "assets/css/toast.min.css",
27
- "assets/img/"
28
+ "assets/img/",
29
+ "LICENSE",
30
+ "README.md"
28
31
  ],
29
32
  "repository": {
30
33
  "type": "git",
@@ -36,7 +39,7 @@
36
39
  "alert"
37
40
  ],
38
41
  "author": "George Tsiros",
39
- "license": "UNLICENSED",
42
+ "license": "SEE LICENSE IN LICENSE",
40
43
  "private": false,
41
44
  "publishConfig": {
42
45
  "access": "public"