@columenlabs/lumen-ui 0.1.155 → 0.1.156

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.
@@ -6,6 +6,8 @@ import { Suspense, lazy } from 'react';
6
6
  import { cn } from './lib/utils.js';
7
7
  import { Skeleton } from './ui/skeleton.js';
8
8
  const Impl = lazy(() => import('./lumen-code-editor-impl.js'));
9
+ // Its width comes from where it sits, never from its longest line (contain: inline-size), so a
10
+ // long line scrolls inside the editor instead of pushing a drawer or form past its edge.
9
11
  export function LumenCodeEditor({ className, ...props }) {
10
- return (_jsx("div", { "data-slot": "lumen-code-editor", className: cn('min-h-0 overflow-hidden rounded-lg border text-xs', className), children: _jsx(Suspense, { fallback: _jsx(Skeleton, { className: "h-full w-full rounded-none" }), children: _jsx(Impl, { ...props, className: "lumen-code-editor h-full" }) }) }));
12
+ return (_jsx("div", { "data-slot": "lumen-code-editor", className: cn('min-h-0 w-full min-w-0 max-w-full overflow-hidden rounded-lg border text-xs [contain:inline-size]', className), children: _jsx(Suspense, { fallback: _jsx(Skeleton, { className: "h-full w-full rounded-none" }), children: _jsx(Impl, { ...props, className: "lumen-code-editor h-full" }) }) }));
11
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@columenlabs/lumen-ui",
3
- "version": "0.1.155",
3
+ "version": "0.1.156",
4
4
  "description": "Lumen: shared React components (frame, views, widgets, charts, drawers).",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -49,7 +49,7 @@
49
49
  "@codemirror/lang-javascript": "6.2.5",
50
50
  "@codemirror/lang-json": "6.0.2",
51
51
  "@codemirror/lang-sql": "6.10.0",
52
- "@columenlabs/lumen-ui-types": "0.1.155",
52
+ "@columenlabs/lumen-ui-types": "0.1.156",
53
53
  "@dnd-kit/core": "6.3.1",
54
54
  "@dnd-kit/sortable": "10.0.0",
55
55
  "@dnd-kit/utilities": "3.2.2",