@djangocfg/ui-tools 2.1.126 → 2.1.127
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 +24 -1
- package/dist/JsonTree-5CRPHRP5.mjs +4 -0
- package/dist/{JsonTree-G2TPWQ4C.mjs.map → JsonTree-5CRPHRP5.mjs.map} +1 -1
- package/dist/JsonTree-IIVOSSVZ.cjs +10 -0
- package/dist/{JsonTree-TWXUBBIG.cjs.map → JsonTree-IIVOSSVZ.cjs.map} +1 -1
- package/dist/{PlaygroundLayout-RZMJWH3Y.cjs → PlaygroundLayout-DFVQDA5G.cjs} +4 -4
- package/dist/{PlaygroundLayout-RZMJWH3Y.cjs.map → PlaygroundLayout-DFVQDA5G.cjs.map} +1 -1
- package/dist/{PlaygroundLayout-UQABCZ6K.mjs → PlaygroundLayout-P4J6YXCE.mjs} +3 -3
- package/dist/{PlaygroundLayout-UQABCZ6K.mjs.map → PlaygroundLayout-P4J6YXCE.mjs.map} +1 -1
- package/dist/{chunk-EGYUND4E.cjs → chunk-DFWXRCIC.cjs} +60 -7
- package/dist/chunk-DFWXRCIC.cjs.map +1 -0
- package/dist/{chunk-OYYCGIBF.mjs → chunk-XXFYTIQK.mjs} +61 -8
- package/dist/chunk-XXFYTIQK.mjs.map +1 -0
- package/dist/index.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +32 -1
- package/dist/index.d.ts +32 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -6
- package/src/tools/JsonTree/index.tsx +90 -12
- package/src/tools/JsonTree/lazy.tsx +19 -2
- package/dist/JsonTree-G2TPWQ4C.mjs +0 -4
- package/dist/JsonTree-TWXUBBIG.cjs +0 -10
- package/dist/chunk-EGYUND4E.cjs.map +0 -1
- package/dist/chunk-OYYCGIBF.mjs.map +0 -1
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:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"JsonTree-
|
|
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-
|
|
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
|
|
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
|
-
|
|
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-
|
|
1004
|
-
//# sourceMappingURL=PlaygroundLayout-
|
|
1003
|
+
//# sourceMappingURL=PlaygroundLayout-DFVQDA5G.cjs.map
|
|
1004
|
+
//# sourceMappingURL=PlaygroundLayout-DFVQDA5G.cjs.map
|