@djangocfg/ui-tools 2.1.361 → 2.1.363

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
@@ -51,30 +51,56 @@ This package contains heavy components that are loaded lazily to keep your initi
51
51
 
52
52
  ## Tree-Shakeable Imports
53
53
 
54
- For better bundle optimization, use subpath imports:
54
+ For better bundle optimization, use subpath imports — each path loads only that tool:
55
55
 
56
56
  ```tsx
57
- // Only loads Gallery (~50KB instead of full package)
57
+ import { LazyJsonTree } from '@djangocfg/ui-tools/json-tree';
58
58
  import { Gallery, GalleryLightbox } from '@djangocfg/ui-tools/gallery';
59
-
60
- // Only loads Map (~800KB)
61
59
  import { MapContainer, MapMarker } from '@djangocfg/ui-tools/map';
62
-
63
- // Mermaid builders (no heavy Mermaid dependency until render)
64
- import { FlowDiagram, SequenceDiagram, JourneyDiagram } from '@djangocfg/ui-tools/mermaid';
60
+ import { FlowDiagram, SequenceDiagram } from '@djangocfg/ui-tools/mermaid';
61
+ import { Editor, DiffEditor } from '@djangocfg/ui-tools/code-editor';
62
+ import { LazyOpenapiViewer } from '@djangocfg/ui-tools/openapi-viewer';
63
+ import { LazyAudioPlayer } from '@djangocfg/ui-tools/audio-player';
64
+ import { LazyVideoPlayer } from '@djangocfg/ui-tools/video-player';
65
+ import { LazyChat } from '@djangocfg/ui-tools/chat';
66
+ import { LazyImageViewer } from '@djangocfg/ui-tools/image-viewer';
67
+ import { LazyJsonSchemaForm } from '@djangocfg/ui-tools/json-form';
68
+ import { LazyLottiePlayer } from '@djangocfg/ui-tools/lottie-player';
69
+ import { LazyMermaid } from '@djangocfg/ui-tools/mermaid';
70
+ import { LazyPrettyCode } from '@djangocfg/ui-tools/pretty-code';
71
+ import { LazyCronScheduler } from '@djangocfg/ui-tools/cron-scheduler';
72
+ import { MarkdownEditor } from '@djangocfg/ui-tools/markdown-editor';
73
+ import { FileIcon } from '@djangocfg/ui-tools/file-icon';
74
+ import { Tour } from '@djangocfg/ui-tools/tour';
75
+ import { Tree } from '@djangocfg/ui-tools/tree';
65
76
  ```
66
77
 
67
78
  ## Exports
68
79
 
69
- | Path | Content |
70
- |------|---------|
71
- | `@djangocfg/ui-tools` | All tools with lazy loading |
72
- | `@djangocfg/ui-tools/code-editor` | Monaco editor, diff editor, hooks |
73
- | `@djangocfg/ui-tools/gallery` | Gallery components & hooks |
74
- | `@djangocfg/ui-tools/map` | Map components & utilities |
75
- | `@djangocfg/ui-tools/mermaid` | Mermaid component & declarative builders |
76
- | `@djangocfg/ui-tools/styles` | Tailwind source CSS (for Tailwind apps) |
77
- | `@djangocfg/ui-tools/dist.css` | Pre-compiled CSS (for plain Vite/webpack apps without Tailwind) |
80
+ | Path | Tool | Bundle |
81
+ |------|------|--------|
82
+ | `@djangocfg/ui-tools` | All tools (lazy) | full |
83
+ | `@djangocfg/ui-tools/json-tree` | `JsonTree`, `LazyJsonTree` | ~100KB |
84
+ | `@djangocfg/ui-tools/gallery` | `Gallery`, `GalleryLightbox`, hooks | ~50KB |
85
+ | `@djangocfg/ui-tools/map` | `MapContainer`, markers, layers, utils | ~800KB |
86
+ | `@djangocfg/ui-tools/mermaid` | `Mermaid`, declarative builders | ~800KB |
87
+ | `@djangocfg/ui-tools/code-editor` | `Editor`, `DiffEditor`, hooks | ~550KB |
88
+ | `@djangocfg/ui-tools/pretty-code` | `PrettyCode`, `LazyPrettyCode` | ~500KB |
89
+ | `@djangocfg/ui-tools/openapi-viewer` | `OpenapiViewer`, `LazyOpenapiViewer` | ~400KB |
90
+ | `@djangocfg/ui-tools/json-form` | `JsonSchemaForm`, `LazyJsonSchemaForm` | ~300KB |
91
+ | `@djangocfg/ui-tools/markdown-editor` | `MarkdownEditor` | ~200KB |
92
+ | `@djangocfg/ui-tools/lottie-player` | `LottiePlayer`, `LazyLottiePlayer` | ~200KB |
93
+ | `@djangocfg/ui-tools/chat` | `ChatRoot`, `LazyChat`, transports | ~150KB |
94
+ | `@djangocfg/ui-tools/video-player` | `VideoPlayer`, `LazyVideoPlayer` | ~150KB |
95
+ | `@djangocfg/ui-tools/audio-player` | `AudioPlayer`, `LazyAudioPlayer` | ~80KB |
96
+ | `@djangocfg/ui-tools/image-viewer` | `ImageViewer`, `LazyImageViewer` | ~50KB |
97
+ | `@djangocfg/ui-tools/cron-scheduler` | `CronScheduler`, `LazyCronScheduler` | ~15KB |
98
+ | `@djangocfg/ui-tools/tree` | `Tree` (file/folder tree) | ~20KB |
99
+ | `@djangocfg/ui-tools/file-icon` | `FileIcon` | ~10KB |
100
+ | `@djangocfg/ui-tools/tour` | `Tour` | ~10KB |
101
+ | `@djangocfg/ui-tools/upload` | `UploadDropzone` | ~20KB |
102
+ | `@djangocfg/ui-tools/styles` | Tailwind source CSS | — |
103
+ | `@djangocfg/ui-tools/dist.css` | Pre-compiled CSS | — |
78
104
 
79
105
  ## Gallery
80
106
 
@@ -1,4 +1,4 @@
1
- import { deduplicateEndpoints, dereferenceSchema, resolveBaseUrl, usePlaygroundContext, relativePath, toMarkdown, toCompactJson, toRawJson, formatBytes, CODE_SAMPLE_TARGETS, buildHarRequest, resolveAbsolute, renderSnippet, endpointToMarkdown, isValidJson, findApiKeyById, parseRequestHeaders, UrlBuilder, sampleSchemaJson, joinUrl } from './chunk-ZUFTH5IR.mjs';
1
+ import { deduplicateEndpoints, dereferenceSchema, resolveBaseUrl, usePlaygroundContext, relativePath, toMarkdown, toCompactJson, toRawJson, formatBytes, CODE_SAMPLE_TARGETS, buildHarRequest, resolveAbsolute, renderSnippet, endpointToMarkdown, isValidJson, findApiKeyById, parseRequestHeaders, UrlBuilder, sampleSchemaJson, joinUrl } from './chunk-Y6UTOBF6.mjs';
2
2
  import { MarkdownMessage, PrettyCode_default } from './chunk-NWUT327A.mjs';
3
3
  import { JsonTree_default } from './chunk-ECONRHIG.mjs';
4
4
  import './chunk-KNEQRUBA.mjs';
@@ -3444,5 +3444,5 @@ var DocsLayout = /* @__PURE__ */ __name(() => {
3444
3444
  }, "DocsLayout");
3445
3445
 
3446
3446
  export { DocsLayout };
3447
- //# sourceMappingURL=DocsLayout-QNANE3PE.mjs.map
3448
- //# sourceMappingURL=DocsLayout-QNANE3PE.mjs.map
3447
+ //# sourceMappingURL=DocsLayout-2YKPXZYO.mjs.map
3448
+ //# sourceMappingURL=DocsLayout-2YKPXZYO.mjs.map