@djangocfg/ui-tools 2.1.126 → 2.1.129

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/README.md CHANGED
@@ -35,7 +35,7 @@ This package contains heavy components that are loaded lazily to keep your initi
35
35
  | `LottiePlayer` | ~200KB | Lottie animation player |
36
36
  | `AudioPlayer` | ~200KB | Audio player with WaveSurfer.js |
37
37
  | `VideoPlayer` | ~150KB | Professional video player with Vidstack |
38
- | `JsonTree` | ~100KB | JSON visualization |
38
+ | `JsonTree` | ~100KB | JSON visualization with modes (full/compact/inline) |
39
39
  | `ImageViewer` | ~50KB | Image viewer with zoom/pan/rotate |
40
40
 
41
41
  ## Tree-Shakeable Imports
@@ -248,6 +248,29 @@ const schema = {
248
248
  |-------|-------------|
249
249
  | `useMediaCacheStore` | Media caching for video/audio players |
250
250
 
251
+ ## JSON Tree
252
+
253
+ JSON visualization with three display modes:
254
+
255
+ ```tsx
256
+ import { LazyJsonTree } from '@djangocfg/ui-tools';
257
+
258
+ // Full mode (default) - with toolbar (Expand All, Copy, Download)
259
+ <LazyJsonTree data={obj} mode="full" />
260
+
261
+ // Compact mode - no toolbar, subtle border
262
+ <LazyJsonTree data={obj} mode="compact" />
263
+
264
+ // Inline mode - minimal, no border, for embedding
265
+ <LazyJsonTree data={obj} mode="inline" />
266
+ ```
267
+
268
+ | Mode | Toolbar | Border | Use Case |
269
+ |------|---------|--------|----------|
270
+ | `full` | Yes | Yes | Standalone viewer |
271
+ | `compact` | No | Subtle | Cards, panels |
272
+ | `inline` | No | No | Embedded in lists, logs |
273
+
251
274
  ## Lazy Loading
252
275
 
253
276
  All heavy tools have unified lazy-loaded versions with built-in Suspense fallbacks:
@@ -0,0 +1,4 @@
1
+ export { JsonTree_default as default } from './chunk-XXFYTIQK.mjs';
2
+ import './chunk-CGILA3WO.mjs';
3
+ //# sourceMappingURL=JsonTree-5CRPHRP5.mjs.map
4
+ //# sourceMappingURL=JsonTree-5CRPHRP5.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"JsonTree-G2TPWQ4C.mjs"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"JsonTree-5CRPHRP5.mjs"}
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ var chunkDFWXRCIC_cjs = require('./chunk-DFWXRCIC.cjs');
4
+ require('./chunk-WGEGR3DF.cjs');
5
+
6
+
7
+
8
+ module.exports = chunkDFWXRCIC_cjs.JsonTree_default;
9
+ //# sourceMappingURL=JsonTree-IIVOSSVZ.cjs.map
10
+ //# sourceMappingURL=JsonTree-IIVOSSVZ.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"JsonTree-TWXUBBIG.cjs"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"JsonTree-IIVOSSVZ.cjs"}
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkOYLQZT62_cjs = require('./chunk-OYLQZT62.cjs');
4
- var chunkEGYUND4E_cjs = require('./chunk-EGYUND4E.cjs');
4
+ var chunkDFWXRCIC_cjs = require('./chunk-DFWXRCIC.cjs');
5
5
  var chunkWGEGR3DF_cjs = require('./chunk-WGEGR3DF.cjs');
6
6
  var lucideReact = require('lucide-react');
7
7
  var components = require('@djangocfg/ui-core/components');
@@ -897,7 +897,7 @@ var ResponseViewer = /* @__PURE__ */ chunkWGEGR3DF_cjs.__name(() => {
897
897
  }
898
898
  if (response.data) {
899
899
  return /* @__PURE__ */ jsxRuntime.jsx(
900
- chunkEGYUND4E_cjs.JsonTree_default,
900
+ chunkDFWXRCIC_cjs.JsonTree_default,
901
901
  {
902
902
  title: "Response Body",
903
903
  data: response.data,
@@ -1000,5 +1000,5 @@ var PlaygroundLayout = /* @__PURE__ */ chunkWGEGR3DF_cjs.__name(() => {
1000
1000
  }, "PlaygroundLayout");
1001
1001
 
1002
1002
  exports.PlaygroundLayout = PlaygroundLayout;
1003
- //# sourceMappingURL=PlaygroundLayout-RZMJWH3Y.cjs.map
1004
- //# sourceMappingURL=PlaygroundLayout-RZMJWH3Y.cjs.map
1003
+ //# sourceMappingURL=PlaygroundLayout-DFVQDA5G.cjs.map
1004
+ //# sourceMappingURL=PlaygroundLayout-DFVQDA5G.cjs.map