@djangocfg/ui-tools 2.1.95 → 2.1.96

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.cjs CHANGED
@@ -5143,7 +5143,9 @@ var MarkdownMessage = /* @__PURE__ */ chunkUQ3XI5MY_cjs.__name(({
5143
5143
  const trimmedContent = content.trim();
5144
5144
  const collapsibleOptions = React17__default.default.useMemo(() => {
5145
5145
  if (!collapsible) return {};
5146
- return { maxLength, maxLines, defaultExpanded };
5146
+ const effectiveMaxLength = maxLength ?? 1e3;
5147
+ const effectiveMaxLines = maxLines ?? 10;
5148
+ return { maxLength: effectiveMaxLength, maxLines: effectiveMaxLines, defaultExpanded };
5147
5149
  }, [collapsible, maxLength, maxLines, defaultExpanded]);
5148
5150
  const {
5149
5151
  isCollapsed,