@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.mjs CHANGED
@@ -5133,7 +5133,9 @@ var MarkdownMessage = /* @__PURE__ */ __name(({
5133
5133
  const trimmedContent = content.trim();
5134
5134
  const collapsibleOptions = React17.useMemo(() => {
5135
5135
  if (!collapsible) return {};
5136
- return { maxLength, maxLines, defaultExpanded };
5136
+ const effectiveMaxLength = maxLength ?? 1e3;
5137
+ const effectiveMaxLines = maxLines ?? 10;
5138
+ return { maxLength: effectiveMaxLength, maxLines: effectiveMaxLines, defaultExpanded };
5137
5139
  }, [collapsible, maxLength, maxLines, defaultExpanded]);
5138
5140
  const {
5139
5141
  isCollapsed,