lit-toaster 0.2.7 → 0.2.8
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 +4 -0
- package/dist/index.d.ts +2 -3
- package/dist/lit-toaster.js +2 -12
- package/package.json +36 -35
package/README.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { LitElement, TemplateResult } from 'lit';
|
|
1
|
+
import { LitElement, TemplateResult, CSSResult } from 'lit';
|
|
3
2
|
|
|
4
3
|
type ToastKind = 'success' | 'error' | 'warning' | 'info';
|
|
5
4
|
type ToastPosition = 'top-left' | 'top-right' | 'top-center' | 'bottom-left' | 'bottom-right' | 'bottom-center';
|
|
@@ -42,7 +41,7 @@ declare class ToasterElement extends LitElement {
|
|
|
42
41
|
private dismiss;
|
|
43
42
|
private onToastsLimitChange;
|
|
44
43
|
private onToastsChange;
|
|
45
|
-
static styles:
|
|
44
|
+
static styles: CSSResult;
|
|
46
45
|
}
|
|
47
46
|
|
|
48
47
|
declare global {
|
package/dist/lit-toaster.js
CHANGED
|
@@ -1,18 +1,8 @@
|
|
|
1
|
-
/*! lit-toaster v0.2.
|
|
1
|
+
/*! lit-toaster v0.2.8 Copyright (c) 2026 Bryson Ward and contributors MIT License*/
|
|
2
|
+
import { __decorate } from 'tslib';
|
|
2
3
|
import { css, LitElement, html } from 'lit';
|
|
3
4
|
import { property, state, customElement } from 'lit/decorators.js';
|
|
4
5
|
|
|
5
|
-
function __decorate(decorators, target, key, desc) {
|
|
6
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
7
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
8
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
9
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10
|
-
}
|
|
11
|
-
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
12
|
-
var e = new Error(message);
|
|
13
|
-
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
6
|
var ToastEmitterEvent;
|
|
17
7
|
(function (ToastEmitterEvent) {
|
|
18
8
|
ToastEmitterEvent["TOASTS_LIMIT_CHANGE"] = "toasts-limit-change";
|
package/package.json
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lit-toaster",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.8",
|
|
4
4
|
"engines": {
|
|
5
|
-
"node": ">=24"
|
|
6
|
-
"npm": ">=11.6.2",
|
|
7
|
-
"yarn": "please use npm",
|
|
8
|
-
"pnpm": "please use npm"
|
|
5
|
+
"node": ">=24"
|
|
9
6
|
},
|
|
10
7
|
"description": "Notifications for Lit Web Components",
|
|
11
8
|
"type": "module",
|
|
@@ -16,20 +13,6 @@
|
|
|
16
13
|
"dist",
|
|
17
14
|
"README.md"
|
|
18
15
|
],
|
|
19
|
-
"scripts": {
|
|
20
|
-
"build:full": "npm run build && npm run docs",
|
|
21
|
-
"build": "rollup -c",
|
|
22
|
-
"test": "vitest run",
|
|
23
|
-
"coverage": "vitest run --coverage",
|
|
24
|
-
"lint": "eslint . --ext .js",
|
|
25
|
-
"format": "prettier --write .",
|
|
26
|
-
"docs": "typedoc --plugin typedoc-plugin-markdown",
|
|
27
|
-
"release": "release-it",
|
|
28
|
-
"release:dry": "release-it --dry-run --no-npm",
|
|
29
|
-
"release:info": "release-it --release-version",
|
|
30
|
-
"release:changelog:fix": "auto-changelog -p && git add CHANGELOG.md",
|
|
31
|
-
"size": "size-limit --json > size-report.json"
|
|
32
|
-
},
|
|
33
16
|
"repository": {
|
|
34
17
|
"type": "git",
|
|
35
18
|
"url": "https://github.com/brysonbw/lit-toaster.git"
|
|
@@ -52,12 +35,14 @@
|
|
|
52
35
|
"Bryson Ward (https://github.com/brysonbw)"
|
|
53
36
|
],
|
|
54
37
|
"peerDependencies": {
|
|
55
|
-
"lit": "^3.3.
|
|
38
|
+
"lit": "^3.3.3"
|
|
56
39
|
},
|
|
57
40
|
"dependencies": {
|
|
58
|
-
"lit": "^3.3.
|
|
41
|
+
"lit": "^3.3.3",
|
|
42
|
+
"tslib": "^2.8.1"
|
|
59
43
|
},
|
|
60
44
|
"devDependencies": {
|
|
45
|
+
"@eslint/js": "^9.39.4",
|
|
61
46
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
62
47
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
63
48
|
"@size-limit/file": "^12.1.0",
|
|
@@ -66,25 +51,27 @@
|
|
|
66
51
|
"@types/eslint-plugin-security": "^3.0.1",
|
|
67
52
|
"@types/jest": "^30.0.0",
|
|
68
53
|
"@vitest/coverage-v8": "^4.0.18",
|
|
69
|
-
"auto-changelog": "^2.
|
|
54
|
+
"auto-changelog": "^2.6.0",
|
|
70
55
|
"eslint": "^9.39.4",
|
|
71
56
|
"eslint-config-prettier": "^10.1.8",
|
|
72
57
|
"eslint-plugin-lit": "^2.3.1",
|
|
73
|
-
"eslint-plugin-prettier": "^5.5.
|
|
74
|
-
"eslint-plugin-security": "^
|
|
75
|
-
"
|
|
58
|
+
"eslint-plugin-prettier": "^5.5.6",
|
|
59
|
+
"eslint-plugin-security": "^4.0.1",
|
|
60
|
+
"globals": "^17.6.0",
|
|
61
|
+
"jsdom": "^29.1.1",
|
|
76
62
|
"patch-package": "^8.0.1",
|
|
77
|
-
"prettier": "^3.8.
|
|
63
|
+
"prettier": "^3.8.4",
|
|
78
64
|
"release-it": "^19.2.4",
|
|
79
|
-
"rollup": "^4.
|
|
65
|
+
"rollup": "^4.62.2",
|
|
80
66
|
"rollup-plugin-cleanup": "^3.2.1",
|
|
81
67
|
"rollup-plugin-delete": "^3.0.2",
|
|
82
68
|
"rollup-plugin-dts": "^6.4.1",
|
|
83
69
|
"size-limit": "^12.0.0",
|
|
84
70
|
"typedoc": "^0.28.19",
|
|
85
|
-
"typedoc-plugin-markdown": "^4.
|
|
71
|
+
"typedoc-plugin-markdown": "^4.12.0",
|
|
86
72
|
"typescript": "^5.9.3",
|
|
87
|
-
"typescript-eslint": "^8.
|
|
73
|
+
"typescript-eslint": "^8.61.1",
|
|
74
|
+
"vite": "^8.0.16",
|
|
88
75
|
"vitest": "^4.0.8"
|
|
89
76
|
},
|
|
90
77
|
"release-it": {
|
|
@@ -106,11 +93,11 @@
|
|
|
106
93
|
},
|
|
107
94
|
"hooks": {
|
|
108
95
|
"before:init": [
|
|
109
|
-
"
|
|
110
|
-
"
|
|
96
|
+
"pnpm run lint",
|
|
97
|
+
"pnpm run test"
|
|
111
98
|
],
|
|
112
|
-
"after:bump": "
|
|
113
|
-
"before:release": "
|
|
99
|
+
"after:bump": "pnpm run build:full && git add ./dist ./docs/api-reference ./pnpm-lock.yaml",
|
|
100
|
+
"before:release": "pnpm run release:changelog:fix",
|
|
114
101
|
"after:release": "echo Successfully released ${name} v${version} to ${repo.repository}."
|
|
115
102
|
}
|
|
116
103
|
},
|
|
@@ -133,5 +120,19 @@
|
|
|
133
120
|
"limit": "5kB",
|
|
134
121
|
"gzip": true
|
|
135
122
|
}
|
|
136
|
-
]
|
|
137
|
-
|
|
123
|
+
],
|
|
124
|
+
"scripts": {
|
|
125
|
+
"build:full": "pnpm run build && pnpm run docs",
|
|
126
|
+
"build": "rollup -c",
|
|
127
|
+
"test": "vitest run",
|
|
128
|
+
"coverage": "vitest run --coverage",
|
|
129
|
+
"lint": "eslint . --ext .js",
|
|
130
|
+
"format": "prettier --write .",
|
|
131
|
+
"docs": "typedoc --plugin typedoc-plugin-markdown",
|
|
132
|
+
"release": "release-it",
|
|
133
|
+
"release:dry": "release-it --dry-run --no-npm",
|
|
134
|
+
"release:info": "release-it --release-version",
|
|
135
|
+
"release:changelog:fix": "auto-changelog -p && git add CHANGELOG.md",
|
|
136
|
+
"size": "size-limit --json > size-report.json"
|
|
137
|
+
}
|
|
138
|
+
}
|