@hiogawa/tiny-toast
Advanced tools
Comparing version 0.0.1-pre.4 to 0.0.1-pre.5
@@ -88,2 +88,7 @@ // src/utils.ts | ||
} | ||
dismissAll() { | ||
for (const item of this.items) { | ||
this.dismiss(item.id); | ||
} | ||
} | ||
remove(id) { | ||
@@ -93,2 +98,6 @@ this.items = this.items.filter((item) => item.id !== id); | ||
} | ||
removeAll() { | ||
this.items = []; | ||
this.notify(); | ||
} | ||
pause(paused) { | ||
@@ -95,0 +104,0 @@ this.paused = paused; |
@@ -43,3 +43,5 @@ type PauseableTimeoutState = { | ||
dismiss(id: string): void; | ||
dismissAll(): void; | ||
remove(id: string): void; | ||
removeAll(): void; | ||
pause(paused: boolean): void; | ||
@@ -46,0 +48,0 @@ private listeners; |
@@ -88,2 +88,7 @@ // src/utils.ts | ||
} | ||
dismissAll() { | ||
for (const item of this.items) { | ||
this.dismiss(item.id); | ||
} | ||
} | ||
remove(id) { | ||
@@ -93,2 +98,6 @@ this.items = this.items.filter((item) => item.id !== id); | ||
} | ||
removeAll() { | ||
this.items = []; | ||
this.notify(); | ||
} | ||
pause(paused) { | ||
@@ -95,0 +104,0 @@ this.paused = paused; |
@@ -91,2 +91,7 @@ // src/utils.ts | ||
} | ||
dismissAll() { | ||
for (const item of this.items) { | ||
this.dismiss(item.id); | ||
} | ||
} | ||
remove(id) { | ||
@@ -96,2 +101,6 @@ this.items = this.items.filter((item) => item.id !== id); | ||
} | ||
removeAll() { | ||
this.items = []; | ||
this.notify(); | ||
} | ||
pause(paused) { | ||
@@ -98,0 +107,0 @@ this.paused = paused; |
{ | ||
"name": "@hiogawa/tiny-toast", | ||
"version": "0.0.1-pre.4", | ||
"version": "0.0.1-pre.5", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
69449
1764