@evidence-dev/component-utilities
Advanced tools
Comparing version 3.0.5-features-b.0 to 3.1.0
# @evidence-dev/component-utilities | ||
## 3.0.5-features-b.0 | ||
## 3.1.0 | ||
### Patch Changes | ||
### Minor Changes | ||
- acba0f3a6: Toasts that are created with the same id now UPDATE the existing toast, rather than appearing twice with the same id | ||
- Updated dependencies [dc8f01be2] | ||
- @evidence-dev/sdk@1.2.3-features-b.0 | ||
- 737642a0: Created input slider component and docs | ||
@@ -11,0 +9,0 @@ ## 3.0.4 |
{ | ||
"name": "@evidence-dev/component-utilities", | ||
"version": "3.0.5-features-b.0", | ||
"version": "3.1.0", | ||
"description": "", | ||
@@ -28,3 +28,3 @@ "main": "index.js", | ||
"svelte": "4.2.12", | ||
"@evidence-dev/sdk": "1.2.3-features-b.0" | ||
"@evidence-dev/sdk": "1.2.2" | ||
}, | ||
@@ -31,0 +31,0 @@ "scripts": { |
@@ -56,3 +56,3 @@ import ssf from 'ssf'; | ||
* @param {string} formatString string containing an Excel-style format code, or a format name matching a built-in or custom format | ||
* @param {string} valueType optional - a string representing the data type within the column that will be formatted ('number', 'date', 'boolean', or 'string) | ||
* @param {'number' | 'date' | 'boolean' | 'string'} [valueType] optional - a string representing the data type within the column that will be formatted ('number', 'date', 'boolean', or 'string) | ||
* @returns a format object based on the formatString matching a built-in or custom format name, or a new custom format object containing an Excel-style format code | ||
@@ -59,0 +59,0 @@ */ |
@@ -27,15 +27,3 @@ import { dev } from '$app/environment'; | ||
toast.id = toast.id ?? Math.random().toString(); | ||
update(($toasts) => { | ||
const existing = $toasts.find((t) => t.id === toast.id); | ||
if (existing) { | ||
Object.assign(existing, toast); | ||
if (timeoutMap.has(toast.id)) { | ||
clearTimeout(timeoutMap.get(toast.id)); | ||
timeoutMap.delete(toast.id); | ||
} | ||
} else { | ||
$toasts.push(toast); | ||
} | ||
return $toasts; | ||
}); | ||
update(($toasts) => ($toasts.push(toast), $toasts)); | ||
if (timeout) { | ||
@@ -42,0 +30,0 @@ const timeoutId = setTimeout(() => { |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
290996
47
9283
+ Added@evidence-dev/sdk@1.2.2(transitive)
- Removed@evidence-dev/sdk@1.2.3-features-b.0(transitive)
Updated@evidence-dev/sdk@1.2.2