0.4.3 (2024-10-22)
- Truncate:: include letter-spacing for more accurate measurements on Truncate (16c5a3b)
0.4.2 (2024-08-18)
- fix: removes dependency on react and react-dom (0918b4a)
0.4.1 (2024-04-23)
- Truncate: fix the calculation result deviation problem of middle truncate (f1625ac)
0.4.0 (2024-04-21)
- MiddleTruncate: ignore omit's props when passed in rests (3ed2714)
- ShowMore: ignore omit's props when passed in rests (ec62636)
- Truncate: fixed a calculation error where end is 0 when middle mode is enabled (84f8424)
- ShowMore: add custom buttons support and toggle state change callback (71bcb94)
- Truncate: add safe and positive integer check for the lines prop value (9f84142)
- Truncate: update comments for types (bf1c365)
0.3.2 (2024-01-20)
- Truncate: when the middle option is enabled, the wrong end fragment is obtained (0f7d2cf)
0.3.1 (2024-01-20)
- MiddleTruncate: omit the prop and set its default value be true (258b46e)
0.3.0 (2024-01-20)
- MiddleTruncate: add a component for truncating string from middle (90fbe81)
- ShowMore: adjust props with MiddleTruncate (7fbb866)
- ShowMore: adjust props with Truncate (253892d)
- Truncate: supports truncating a string at a specified position in the middle and generating an ellipsis symbol at that position (7dec6b4)
0.1.2 (2023-11-26)
- ShowMore: remove redundant width constraints to accommodate parent width changes (01396b1), closes #14
0.1.1 (2023-11-25)
- ShowMore: add default width via parent element (51c06e3)
- Refactor using TypeScript and Functional Components (5ea60d9)