UNPKG

tiny-essentials

Version:

Collection of small, essential scripts designed to be used across various projects. These simple utilities are crafted for speed, ease of use, and versatility.

39 lines (28 loc) β€’ 1.34 kB
### ✨ New: `TinyTextarea` Say hello to **TinyTextarea** β€” a lightweight utility class that turns your boring `<textarea>` into a smooth, self-resizing input box. **Key features:** * πŸͺ„ Auto-resizes as the user types, up to a maximum number of rows * πŸ”’ Prevents scrollbars until absolutely necessary * βž• Supports extra height padding * πŸ“’ Emits `onResize` and `onInput` events in real-time * 🧼 Includes full lifecycle management (refresh + destroy) * πŸ”Ž Exposes computed properties like line height, max rows, current size, and more --- ### πŸ›‘ Deprecations: `TinySmartScroller` status methods The following status-checking methods in `TinySmartScroller` are now **deprecated**: Deprecated aliases: * `isUserAtCustomBottom()` β†’ use `isAtCustomBottom()` * `isUserAtCustomTop()` β†’ use `isAtCustomTop()` * `isUserAtBottom()` β†’ use `isAtBottom()` * `isUserAtTop()` β†’ use `isAtTop()` We’re consolidating method names to reduce redundancy and promote a cleaner API. The following internal flags will remain accessible via the non-deprecated equivalents: * `isAtTop()` * `isAtBottom()` * `isAtCustomTop()` * `isAtCustomBottom()` * `isPastAtTop()` * `isPastAtBottom()` * `isPastAtCustomTop()` * `isPastAtCustomBottom()` **Full Changelog**: https://github.com/JasminDreasond/Tiny-Essentials/compare/1.20.2...1.20.3