svelte-typewriter
Advanced tools
Comparing version 3.1.8 to 3.2.0
@@ -17,3 +17,3 @@ { | ||
}, | ||
"version": "3.1.8", | ||
"version": "3.2.0", | ||
"main": "./package/Typewriter.svelte", | ||
@@ -20,0 +20,0 @@ "type": "module", |
@@ -13,5 +13,6 @@ import { writeEffect } from '../helpers/writeEffect' | ||
if (fullyWritten) { | ||
options.dispatch('done') | ||
options.dispatch('done', 'write') | ||
await typingInterval(options.wordInterval) | ||
await unwriteEffect(currentNode, options) | ||
options.dispatch('done', 'unwrite') | ||
} | ||
@@ -18,0 +19,0 @@ |
@@ -125,5 +125,5 @@ # svelte-typewriter | ||
| Event | Trigger | | ||
| --- | --- | | ||
| `on:done` | Is executed at the end of the animation, if used with one of the loop modes, this event will be fired at the end of each loop | | ||
| Event | Trigger | Detail | | ||
| --- | --- | --- | | ||
| `on:done` | Is executed at the end of the animation, if used with one of the loop modes, this event will be fired after each word gets written and erased | `"write" \| "unwrite" \| null` | | ||
@@ -130,0 +130,0 @@ ### Child attributes |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
885
0
47271
57