reachat 2.1.0-alpha.20 → 2.1.0-alpha.21
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/{CSVFileRenderer-B7eSDub6.js → CSVFileRenderer-GYEEFRXD.js} +2 -2
- package/dist/{CSVFileRenderer-B7eSDub6.js.map → CSVFileRenderer-GYEEFRXD.js.map} +1 -1
- package/dist/{DefaultFileRenderer-CszY8p_0.js → DefaultFileRenderer-CUcl0kc2.js} +2 -2
- package/dist/{DefaultFileRenderer-CszY8p_0.js.map → DefaultFileRenderer-CUcl0kc2.js.map} +1 -1
- package/dist/{index-DNefh8rs.js → index-CwH75cwk.js} +9 -5
- package/dist/{index-DNefh8rs.js.map → index-CwH75cwk.js.map} +1 -1
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +6 -2
- package/dist/index.umd.cjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
console.error("vite-plugin-css-injected-by-js", e);
|
|
11
11
|
}
|
|
12
12
|
})();
|
|
13
|
-
import { A, b, c, C, d, e, F, M, j, k, m, n, o, p, q, N, i, w, x, s, t, u, v, y, z, T, g, f, B, h, D, l, r } from "./index-
|
|
13
|
+
import { A, b, c, C, d, e, F, M, j, k, m, n, o, p, q, N, i, w, x, s, t, u, v, y, z, T, g, f, B, h, D, l, r } from "./index-CwH75cwk.js";
|
|
14
14
|
import "react/jsx-runtime";
|
|
15
15
|
import "motion/react";
|
|
16
16
|
import "reablocks";
|
package/dist/index.umd.cjs
CHANGED
|
@@ -1953,11 +1953,15 @@ ${response}`),
|
|
|
1953
1953
|
const ref = React.useRef(null);
|
|
1954
1954
|
const calculateTruncation = React.useCallback(() => {
|
|
1955
1955
|
const el = ref.current;
|
|
1956
|
-
|
|
1956
|
+
if (el) {
|
|
1957
|
+
setTruncated(el.scrollHeight > el.clientHeight);
|
|
1958
|
+
}
|
|
1957
1959
|
}, []);
|
|
1958
1960
|
React.useEffect(() => {
|
|
1959
1961
|
const el = ref.current;
|
|
1960
|
-
if (!el || previewLineClamp === false)
|
|
1962
|
+
if (!el || previewLineClamp === false) {
|
|
1963
|
+
return;
|
|
1964
|
+
}
|
|
1961
1965
|
calculateTruncation();
|
|
1962
1966
|
const resizeObserver = new ResizeObserver(() => {
|
|
1963
1967
|
calculateTruncation();
|