@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@djangocfg/ui-tools",
3
- "version": "2.1.95",
3
+ "version": "2.1.96",
4
4
  "description": "Heavy React tools with lazy loading - for Electron, Vite, CRA, Next.js apps",
5
5
  "keywords": [
6
6
  "ui-tools",
@@ -55,7 +55,7 @@
55
55
  "consola": "^3.4.2"
56
56
  },
57
57
  "dependencies": {
58
- "@djangocfg/ui-core": "^2.1.95",
58
+ "@djangocfg/ui-core": "^2.1.96",
59
59
  "@rjsf/core": "^6.1.2",
60
60
  "@rjsf/utils": "^6.1.2",
61
61
  "@rjsf/validator-ajv8": "^6.1.2",
@@ -73,7 +73,7 @@
73
73
  "wavesurfer.js": "^7.12.1"
74
74
  },
75
75
  "devDependencies": {
76
- "@djangocfg/typescript-config": "^2.1.95",
76
+ "@djangocfg/typescript-config": "^2.1.96",
77
77
  "@types/node": "^24.7.2",
78
78
  "@types/react": "^19.1.0",
79
79
  "@types/react-dom": "^19.1.0",
@@ -469,10 +469,13 @@ export const MarkdownMessage: React.FC<MarkdownMessageProps> = ({
469
469
  // Trim content to remove leading/trailing whitespace and empty lines
470
470
  const trimmedContent = content.trim();
471
471
 
472
- // Collapsible content logic
472
+ // Collapsible content logic - use defaults when collapsible is enabled
473
473
  const collapsibleOptions = React.useMemo(() => {
474
474
  if (!collapsible) return {};
475
- return { maxLength, maxLines, defaultExpanded };
475
+ // Default limits when collapsible is enabled but no limits specified
476
+ const effectiveMaxLength = maxLength ?? 1000;
477
+ const effectiveMaxLines = maxLines ?? 10;
478
+ return { maxLength: effectiveMaxLength, maxLines: effectiveMaxLines, defaultExpanded };
476
479
  }, [collapsible, maxLength, maxLines, defaultExpanded]);
477
480
 
478
481
  const {