@cplieger/actions 2.0.4 → 2.0.5
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/jsr.json +1 -1
- package/package.json +3 -3
- package/src/loading.ts +1 -4
- package/src/types.ts +1 -3
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cplieger/actions",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"exports": {
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"@eslint/js": "10.0.1",
|
|
20
20
|
"@types/node": "24.13.2",
|
|
21
21
|
"@vitest/coverage-v8": "4.1.9",
|
|
22
|
-
"eslint": "10.
|
|
22
|
+
"eslint": "10.6.0",
|
|
23
23
|
"fast-check": "4.8.0",
|
|
24
24
|
"happy-dom": "20.10.6",
|
|
25
|
-
"prettier": "3.
|
|
25
|
+
"prettier": "3.9.0",
|
|
26
26
|
"typescript-eslint": "8.62.0",
|
|
27
27
|
"vitest": "4.1.9"
|
|
28
28
|
},
|
package/src/loading.ts
CHANGED
|
@@ -18,10 +18,7 @@ import { isPending, pendingCount } from "./registry.js";
|
|
|
18
18
|
|
|
19
19
|
/** Element types that have a `.disabled` writable boolean. */
|
|
20
20
|
type DisableableElement =
|
|
21
|
-
|
|
|
22
|
-
| HTMLInputElement
|
|
23
|
-
| HTMLSelectElement
|
|
24
|
-
| HTMLTextAreaElement;
|
|
21
|
+
HTMLButtonElement | HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;
|
|
25
22
|
|
|
26
23
|
interface BindLoadingOptions {
|
|
27
24
|
ariaBusy?: boolean;
|
package/src/types.ts
CHANGED
|
@@ -50,9 +50,7 @@ export interface ActionInstance<TArgs = unknown, TResult = unknown> {
|
|
|
50
50
|
* computed from action args + result/error at call time. Pass false
|
|
51
51
|
* to opt out of the default notification for that branch. */
|
|
52
52
|
export type NotificationSpec<TArgs, TPayload> =
|
|
53
|
-
| string
|
|
54
|
-
| ((args: TArgs, payload: TPayload) => string)
|
|
55
|
-
| false;
|
|
53
|
+
string | ((args: TArgs, payload: TPayload) => string) | false;
|
|
56
54
|
|
|
57
55
|
/** @deprecated Use {@link NotificationSpec} instead. */
|
|
58
56
|
export type ToastSpec<TArgs, TPayload> = NotificationSpec<TArgs, TPayload>;
|