@seamly/web-ui 24.4.0 → 24.4.1
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/build/dist/lib/index.debug.js +5 -4
- package/build/dist/lib/index.debug.js.map +1 -1
- package/build/dist/lib/index.debug.min.js +1 -1
- package/build/dist/lib/index.debug.min.js.map +1 -1
- package/build/dist/lib/index.js +5 -4
- package/build/dist/lib/index.js.map +1 -1
- package/build/dist/lib/index.min.js +1 -1
- package/build/dist/lib/index.min.js.map +1 -1
- package/build/dist/lib/styles.css +1 -1
- package/package.json +1 -1
- package/src/javascripts/core/ui/components/conversation/event/upload.tsx +2 -1
- package/src/javascripts/core/ui/components/entry/text-entry/hooks.ts +4 -2
- package/src/stylesheets/5-components/_message-body.scss +2 -0
package/build/dist/lib/index.js
CHANGED
|
@@ -5427,7 +5427,7 @@ class API {
|
|
|
5427
5427
|
return {
|
|
5428
5428
|
clientName: "@seamly/web-ui",
|
|
5429
5429
|
clientVariant: this.#layoutMode,
|
|
5430
|
-
clientVersion: "24.4.
|
|
5430
|
+
clientVersion: "24.4.1",
|
|
5431
5431
|
currentUrl: window.location.toString(),
|
|
5432
5432
|
screenResolution: `${window.screen.width}x${window.screen.height}`,
|
|
5433
5433
|
timezone: getTimeZone(),
|
|
@@ -18042,8 +18042,9 @@ const UploadContent = ({
|
|
|
18042
18042
|
}) => {
|
|
18043
18043
|
if (fileId && !isDeleted) {
|
|
18044
18044
|
return /*#__PURE__*/(0,jsx_runtime_namespaceObject.jsx)("button", {
|
|
18045
|
+
type: "button",
|
|
18045
18046
|
onClick: onClickHandler,
|
|
18046
|
-
className: css_className(['
|
|
18047
|
+
className: css_className(['download', 'download-link']),
|
|
18047
18048
|
children: children
|
|
18048
18049
|
});
|
|
18049
18050
|
}
|
|
@@ -19376,9 +19377,9 @@ function useCharacterLimit(controlName) {
|
|
|
19376
19377
|
const [{
|
|
19377
19378
|
value
|
|
19378
19379
|
}] = useFormControl(controlName);
|
|
19379
|
-
const remainingChars = limit && hasLimit && value ? limit - value.length : limit;
|
|
19380
|
+
const remainingChars = typeof limit === 'number' && hasLimit && value ? limit - value.length : limit;
|
|
19380
19381
|
const reachedCharacterWarning = hasLimit && typeof remainingChars == 'number' ? remainingChars <= maxCharacterWarningLimit : false;
|
|
19381
|
-
const reachedCharacterLimit = hasLimit && remainingChars ? remainingChars < 0 : false;
|
|
19382
|
+
const reachedCharacterLimit = hasLimit && typeof remainingChars === 'number' ? remainingChars < 0 : false;
|
|
19382
19383
|
(0,hooks_.useEffect)(() => {
|
|
19383
19384
|
validateLimit(reachedCharacterWarning, remainingChars);
|
|
19384
19385
|
}, [reachedCharacterWarning, remainingChars, validateLimit]);
|