@versini/ui-truncate 8.0.10 → 8.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -1
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { default as React_2 } from 'react';
|
|
2
2
|
|
|
3
|
-
export declare const Truncate: ({ children, length, mode, enableRichTruncation, noBorder, }: TruncateProps) => JSX.Element;
|
|
3
|
+
export declare const Truncate: ({ children, length, mode, enableRichTruncation, noBorder, }: TruncateProps) => React_2.JSX.Element;
|
|
4
4
|
|
|
5
5
|
declare type TruncateProps = {
|
|
6
6
|
/**
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
@versini/ui-truncate v8.0.
|
|
2
|
+
@versini/ui-truncate v8.0.11
|
|
3
3
|
© 2026 gizmette.com
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -10,6 +10,8 @@ import { isValidElement, useMemo, useState } from "react";
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
+
|
|
14
|
+
|
|
13
15
|
const DEFAULT_LENGTH = 200;
|
|
14
16
|
/**
|
|
15
17
|
* This function will truncate the string at the last word boundary
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@versini/ui-truncate",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.11",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Arno Versini",
|
|
6
6
|
"publishConfig": {
|
|
@@ -40,11 +40,11 @@
|
|
|
40
40
|
"@testing-library/jest-dom": "6.9.1"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@versini/ui-button": "15.0.
|
|
44
|
-
"tailwindcss": "4.3.
|
|
43
|
+
"@versini/ui-button": "15.0.5",
|
|
44
|
+
"tailwindcss": "4.3.1"
|
|
45
45
|
},
|
|
46
46
|
"sideEffects": [
|
|
47
47
|
"**/*.css"
|
|
48
48
|
],
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "f25e4b557175f745705c249d10e2e77dc02ed462"
|
|
50
50
|
}
|