@djangocfg/ui-tools 2.1.390 → 2.1.394

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.
Files changed (184) hide show
  1. package/README.md +7 -10
  2. package/dist/chunk-PAWJFY3S.mjs +6 -0
  3. package/dist/{chunk-N2XQF2OL.mjs.map → chunk-PAWJFY3S.mjs.map} +1 -1
  4. package/dist/chunk-PK6SKIKE.cjs +8 -0
  5. package/dist/{chunk-OLISEQHS.cjs.map → chunk-PK6SKIKE.cjs.map} +1 -1
  6. package/dist/file-icon/index.cjs +6 -6
  7. package/dist/file-icon/index.d.cts +1 -1
  8. package/dist/file-icon/index.d.ts +1 -1
  9. package/dist/file-icon/index.mjs +1 -1
  10. package/dist/tree/index.cjs +1372 -143
  11. package/dist/tree/index.cjs.map +1 -1
  12. package/dist/tree/index.d.cts +2 -2
  13. package/dist/tree/index.d.ts +2 -2
  14. package/dist/tree/index.mjs +1322 -3
  15. package/dist/tree/index.mjs.map +1 -1
  16. package/dist/{types-CevSbyfD.d.cts → types-B_zhyAqR.d.cts} +1 -1
  17. package/dist/{types-CevSbyfD.d.ts → types-B_zhyAqR.d.ts} +1 -1
  18. package/package.json +6 -14
  19. package/src/tools/AudioPlayer/README.md +4 -4
  20. package/src/tools/Chat/README.md +6 -6
  21. package/src/tools/CronScheduler/index.tsx +1 -1
  22. package/src/tools/CronScheduler/lazy.tsx +1 -1
  23. package/src/tools/ImageViewer/README.md +1 -1
  24. package/src/tools/JsonForm/README.md +2 -2
  25. package/src/tools/MarkdownEditor/README.md +3 -3
  26. package/src/tools/MarkdownMessage/README.md +2 -2
  27. package/src/tools/OpenapiViewer/components/DocsLayout/grouping.ts +5 -1
  28. package/src/tools/PrettyCode/lazy.tsx +6 -0
  29. package/src/tools/SpeechRecognition/README.md +1 -1
  30. package/dist/ChatRoot-EFNXQXXN.cjs +0 -15
  31. package/dist/ChatRoot-EFNXQXXN.cjs.map +0 -1
  32. package/dist/ChatRoot-FITF5RVP.mjs +0 -6
  33. package/dist/ChatRoot-FITF5RVP.mjs.map +0 -1
  34. package/dist/ChatRoot-PNNGQCYF.css +0 -7
  35. package/dist/ChatRoot-PNNGQCYF.css.map +0 -1
  36. package/dist/CronScheduler.client-DLMXCPAJ.mjs +0 -67
  37. package/dist/CronScheduler.client-DLMXCPAJ.mjs.map +0 -1
  38. package/dist/CronScheduler.client-WEJF4PWQ.cjs +0 -72
  39. package/dist/CronScheduler.client-WEJF4PWQ.cjs.map +0 -1
  40. package/dist/DictationField-AS2F33WI.cjs +0 -13
  41. package/dist/DictationField-AS2F33WI.cjs.map +0 -1
  42. package/dist/DictationField-WPONUCYE.mjs +0 -4
  43. package/dist/DictationField-WPONUCYE.mjs.map +0 -1
  44. package/dist/DocsLayout-EKASBSP7.mjs +0 -3448
  45. package/dist/DocsLayout-EKASBSP7.mjs.map +0 -1
  46. package/dist/DocsLayout-MBFIB4NO.css +0 -7
  47. package/dist/DocsLayout-MBFIB4NO.css.map +0 -1
  48. package/dist/DocsLayout-OURFYWQE.cjs +0 -3455
  49. package/dist/DocsLayout-OURFYWQE.cjs.map +0 -1
  50. package/dist/JsonSchemaForm-DD7CLRIG.cjs +0 -13
  51. package/dist/JsonSchemaForm-DD7CLRIG.cjs.map +0 -1
  52. package/dist/JsonSchemaForm-XKUIVELK.mjs +0 -4
  53. package/dist/JsonSchemaForm-XKUIVELK.mjs.map +0 -1
  54. package/dist/JsonTree-43PQAJKY.mjs +0 -5
  55. package/dist/JsonTree-43PQAJKY.mjs.map +0 -1
  56. package/dist/JsonTree-MLET23ZA.css +0 -7
  57. package/dist/JsonTree-MLET23ZA.css.map +0 -1
  58. package/dist/JsonTree-X6W5YEVY.cjs +0 -11
  59. package/dist/JsonTree-X6W5YEVY.cjs.map +0 -1
  60. package/dist/LottiePlayer.client-2S7ISJ2S.cjs +0 -168
  61. package/dist/LottiePlayer.client-2S7ISJ2S.cjs.map +0 -1
  62. package/dist/LottiePlayer.client-5LDSSJWS.mjs +0 -161
  63. package/dist/LottiePlayer.client-5LDSSJWS.mjs.map +0 -1
  64. package/dist/MapContainer-AKIPABJK.mjs +0 -4
  65. package/dist/MapContainer-AKIPABJK.mjs.map +0 -1
  66. package/dist/MapContainer-STVDMC36.cjs +0 -17
  67. package/dist/MapContainer-STVDMC36.cjs.map +0 -1
  68. package/dist/Mermaid.client-DDXWXZXY.css +0 -7
  69. package/dist/Mermaid.client-DDXWXZXY.css.map +0 -1
  70. package/dist/Mermaid.client-NL4SVR7F.mjs +0 -481
  71. package/dist/Mermaid.client-NL4SVR7F.mjs.map +0 -1
  72. package/dist/Mermaid.client-NNTI6DFX.cjs +0 -487
  73. package/dist/Mermaid.client-NNTI6DFX.cjs.map +0 -1
  74. package/dist/Player-BRV7XTWR.mjs +0 -4
  75. package/dist/Player-BRV7XTWR.mjs.map +0 -1
  76. package/dist/Player-PM7F7DD7.cjs +0 -13
  77. package/dist/Player-PM7F7DD7.cjs.map +0 -1
  78. package/dist/Player-ZGQKKOWI.css +0 -66
  79. package/dist/Player-ZGQKKOWI.css.map +0 -1
  80. package/dist/PrettyCode.client-GWFAIVFN.css +0 -7
  81. package/dist/PrettyCode.client-GWFAIVFN.css.map +0 -1
  82. package/dist/PrettyCode.client-KOHDVPPN.cjs +0 -285
  83. package/dist/PrettyCode.client-KOHDVPPN.cjs.map +0 -1
  84. package/dist/PrettyCode.client-ZGYGKE7G.mjs +0 -283
  85. package/dist/PrettyCode.client-ZGYGKE7G.mjs.map +0 -1
  86. package/dist/TreeRoot-5COOOSWG.mjs +0 -4
  87. package/dist/TreeRoot-5COOOSWG.mjs.map +0 -1
  88. package/dist/TreeRoot-AABP2J6Y.cjs +0 -19
  89. package/dist/TreeRoot-AABP2J6Y.cjs.map +0 -1
  90. package/dist/chunk-2NG4SXEP.mjs +0 -743
  91. package/dist/chunk-2NG4SXEP.mjs.map +0 -1
  92. package/dist/chunk-4LFB7I5K.cjs +0 -1387
  93. package/dist/chunk-4LFB7I5K.cjs.map +0 -1
  94. package/dist/chunk-5D2OCOPQ.cjs +0 -222
  95. package/dist/chunk-5D2OCOPQ.cjs.map +0 -1
  96. package/dist/chunk-5I5QNGUG.cjs +0 -611
  97. package/dist/chunk-5I5QNGUG.cjs.map +0 -1
  98. package/dist/chunk-6ZX2G25W.mjs +0 -1361
  99. package/dist/chunk-6ZX2G25W.mjs.map +0 -1
  100. package/dist/chunk-76NNDZH6.cjs +0 -1061
  101. package/dist/chunk-76NNDZH6.cjs.map +0 -1
  102. package/dist/chunk-7CWGZPO3.mjs +0 -214
  103. package/dist/chunk-7CWGZPO3.mjs.map +0 -1
  104. package/dist/chunk-7EYHNP3E.cjs +0 -965
  105. package/dist/chunk-7EYHNP3E.cjs.map +0 -1
  106. package/dist/chunk-7IYXZUJO.cjs +0 -769
  107. package/dist/chunk-7IYXZUJO.cjs.map +0 -1
  108. package/dist/chunk-ADEN3UA4.cjs +0 -892
  109. package/dist/chunk-ADEN3UA4.cjs.map +0 -1
  110. package/dist/chunk-B6IR5KSC.mjs +0 -59
  111. package/dist/chunk-B6IR5KSC.mjs.map +0 -1
  112. package/dist/chunk-C6GXVH5J.mjs +0 -338
  113. package/dist/chunk-C6GXVH5J.mjs.map +0 -1
  114. package/dist/chunk-DMX7W4XZ.mjs +0 -1113
  115. package/dist/chunk-DMX7W4XZ.mjs.map +0 -1
  116. package/dist/chunk-ECONRHIG.mjs +0 -212
  117. package/dist/chunk-ECONRHIG.mjs.map +0 -1
  118. package/dist/chunk-FEN5S772.cjs +0 -1227
  119. package/dist/chunk-FEN5S772.cjs.map +0 -1
  120. package/dist/chunk-FP2RLYQZ.cjs +0 -187
  121. package/dist/chunk-FP2RLYQZ.cjs.map +0 -1
  122. package/dist/chunk-FVVF7VCD.cjs +0 -1325
  123. package/dist/chunk-FVVF7VCD.cjs.map +0 -1
  124. package/dist/chunk-GYIO7W7M.mjs +0 -1197
  125. package/dist/chunk-GYIO7W7M.mjs.map +0 -1
  126. package/dist/chunk-KNDLV4PI.cjs +0 -1356
  127. package/dist/chunk-KNDLV4PI.cjs.map +0 -1
  128. package/dist/chunk-KNEQRUBA.mjs +0 -181
  129. package/dist/chunk-KNEQRUBA.mjs.map +0 -1
  130. package/dist/chunk-N2XQF2OL.mjs +0 -14
  131. package/dist/chunk-N4MZYNR4.mjs +0 -1342
  132. package/dist/chunk-N4MZYNR4.mjs.map +0 -1
  133. package/dist/chunk-NTVBIIUD.mjs +0 -1439
  134. package/dist/chunk-NTVBIIUD.mjs.map +0 -1
  135. package/dist/chunk-OBRSGM64.mjs +0 -607
  136. package/dist/chunk-OBRSGM64.mjs.map +0 -1
  137. package/dist/chunk-ODO4GMW7.mjs +0 -79
  138. package/dist/chunk-ODO4GMW7.mjs.map +0 -1
  139. package/dist/chunk-OLISEQHS.cjs +0 -18
  140. package/dist/chunk-PVAX67JG.mjs +0 -1041
  141. package/dist/chunk-PVAX67JG.mjs.map +0 -1
  142. package/dist/chunk-QJ6GTUCO.cjs +0 -81
  143. package/dist/chunk-QJ6GTUCO.cjs.map +0 -1
  144. package/dist/chunk-T3MWM23F.cjs +0 -214
  145. package/dist/chunk-T3MWM23F.cjs.map +0 -1
  146. package/dist/chunk-TBSHZO5R.cjs +0 -1134
  147. package/dist/chunk-TBSHZO5R.cjs.map +0 -1
  148. package/dist/chunk-UNCS5V5F.mjs +0 -887
  149. package/dist/chunk-UNCS5V5F.mjs.map +0 -1
  150. package/dist/chunk-VWQ5WOIL.mjs +0 -2059
  151. package/dist/chunk-VWQ5WOIL.mjs.map +0 -1
  152. package/dist/chunk-W75B7Y6C.cjs +0 -1478
  153. package/dist/chunk-W75B7Y6C.cjs.map +0 -1
  154. package/dist/chunk-Y6UTOBF6.mjs +0 -938
  155. package/dist/chunk-Y6UTOBF6.mjs.map +0 -1
  156. package/dist/chunk-YDPDTOSP.cjs +0 -2061
  157. package/dist/chunk-YDPDTOSP.cjs.map +0 -1
  158. package/dist/chunk-YW5IVWHQ.cjs +0 -346
  159. package/dist/chunk-YW5IVWHQ.cjs.map +0 -1
  160. package/dist/chunk-YXZ6GU7H.cjs +0 -63
  161. package/dist/chunk-YXZ6GU7H.cjs.map +0 -1
  162. package/dist/chunk-ZL7FH4NW.mjs +0 -1274
  163. package/dist/chunk-ZL7FH4NW.mjs.map +0 -1
  164. package/dist/components-EHOGXATG.cjs +0 -22
  165. package/dist/components-EHOGXATG.cjs.map +0 -1
  166. package/dist/components-MQ6DR7TX.cjs +0 -26
  167. package/dist/components-MQ6DR7TX.cjs.map +0 -1
  168. package/dist/components-XRX7QGLB.mjs +0 -5
  169. package/dist/components-XRX7QGLB.mjs.map +0 -1
  170. package/dist/components-YATKRWLH.mjs +0 -5
  171. package/dist/components-YATKRWLH.mjs.map +0 -1
  172. package/dist/index.cjs +0 -3674
  173. package/dist/index.cjs.map +0 -1
  174. package/dist/index.css +0 -234
  175. package/dist/index.css.map +0 -1
  176. package/dist/index.d.cts +0 -4929
  177. package/dist/index.d.ts +0 -4929
  178. package/dist/index.mjs +0 -2912
  179. package/dist/index.mjs.map +0 -1
  180. package/dist/launcher-5Y42OBSN.mjs +0 -6
  181. package/dist/launcher-5Y42OBSN.mjs.map +0 -1
  182. package/dist/launcher-PMW2YB24.cjs +0 -59
  183. package/dist/launcher-PMW2YB24.cjs.map +0 -1
  184. package/src/index.ts +0 -157
@@ -1,6 +0,0 @@
1
- export { ChatDock, ChatFAB, ChatGreeting, ChatHeader, ChatHeaderActionButton, ChatHeaderAudioToggle, ChatHeaderLanguageButton, ChatHeaderModeToggle, ChatHeaderResetButton, ChatLauncher, ChatUnreadPreview, useChatPresence } from './chunk-NTVBIIUD.mjs';
2
- import './chunk-DMX7W4XZ.mjs';
3
- import './chunk-UNCS5V5F.mjs';
4
- import './chunk-N2XQF2OL.mjs';
5
- //# sourceMappingURL=launcher-5Y42OBSN.mjs.map
6
- //# sourceMappingURL=launcher-5Y42OBSN.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"launcher-5Y42OBSN.mjs"}
@@ -1,59 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkW75B7Y6C_cjs = require('./chunk-W75B7Y6C.cjs');
4
- require('./chunk-TBSHZO5R.cjs');
5
- require('./chunk-ADEN3UA4.cjs');
6
- require('./chunk-OLISEQHS.cjs');
7
-
8
-
9
-
10
- Object.defineProperty(exports, "ChatDock", {
11
- enumerable: true,
12
- get: function () { return chunkW75B7Y6C_cjs.ChatDock; }
13
- });
14
- Object.defineProperty(exports, "ChatFAB", {
15
- enumerable: true,
16
- get: function () { return chunkW75B7Y6C_cjs.ChatFAB; }
17
- });
18
- Object.defineProperty(exports, "ChatGreeting", {
19
- enumerable: true,
20
- get: function () { return chunkW75B7Y6C_cjs.ChatGreeting; }
21
- });
22
- Object.defineProperty(exports, "ChatHeader", {
23
- enumerable: true,
24
- get: function () { return chunkW75B7Y6C_cjs.ChatHeader; }
25
- });
26
- Object.defineProperty(exports, "ChatHeaderActionButton", {
27
- enumerable: true,
28
- get: function () { return chunkW75B7Y6C_cjs.ChatHeaderActionButton; }
29
- });
30
- Object.defineProperty(exports, "ChatHeaderAudioToggle", {
31
- enumerable: true,
32
- get: function () { return chunkW75B7Y6C_cjs.ChatHeaderAudioToggle; }
33
- });
34
- Object.defineProperty(exports, "ChatHeaderLanguageButton", {
35
- enumerable: true,
36
- get: function () { return chunkW75B7Y6C_cjs.ChatHeaderLanguageButton; }
37
- });
38
- Object.defineProperty(exports, "ChatHeaderModeToggle", {
39
- enumerable: true,
40
- get: function () { return chunkW75B7Y6C_cjs.ChatHeaderModeToggle; }
41
- });
42
- Object.defineProperty(exports, "ChatHeaderResetButton", {
43
- enumerable: true,
44
- get: function () { return chunkW75B7Y6C_cjs.ChatHeaderResetButton; }
45
- });
46
- Object.defineProperty(exports, "ChatLauncher", {
47
- enumerable: true,
48
- get: function () { return chunkW75B7Y6C_cjs.ChatLauncher; }
49
- });
50
- Object.defineProperty(exports, "ChatUnreadPreview", {
51
- enumerable: true,
52
- get: function () { return chunkW75B7Y6C_cjs.ChatUnreadPreview; }
53
- });
54
- Object.defineProperty(exports, "useChatPresence", {
55
- enumerable: true,
56
- get: function () { return chunkW75B7Y6C_cjs.useChatPresence; }
57
- });
58
- //# sourceMappingURL=launcher-PMW2YB24.cjs.map
59
- //# sourceMappingURL=launcher-PMW2YB24.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"launcher-PMW2YB24.cjs"}
package/src/index.ts DELETED
@@ -1,157 +0,0 @@
1
- /**
2
- * @djangocfg/ui-tools
3
- *
4
- * Heavy React tools with lazy loading (React.lazy + Suspense)
5
- * Works in any React environment: Next.js, Vite, Wails, CRA
6
- *
7
- * Bundle sizes:
8
- * - Map: ~800KB (MapLibre GL maps)
9
- * - Mermaid: ~800KB (diagram rendering)
10
- * - PrettyCode: ~500KB (code syntax highlighting)
11
- * - OpenapiViewer: ~400KB (OpenAPI schema viewer & playground)
12
- * - JsonForm: ~300KB (JSON Schema form generator)
13
- * - LottiePlayer: ~200KB (Lottie animation player)
14
- * - AudioPlayer: ~200KB (Audio player with WaveSurfer.js)
15
- * - VideoPlayer: ~150KB (Professional video player with Vidstack)
16
- * - JsonTree: ~100KB (JSON visualization)
17
- * - Gallery: ~50KB (Image/video gallery)
18
- * - ImageViewer: ~50KB (Image viewer with zoom/pan/rotate)
19
- * - CronScheduler: ~15KB (Cron expression builder)
20
- *
21
- * For tree-shaking, use subpath imports:
22
- * - import { Gallery } from '@djangocfg/ui-tools/gallery'
23
- * - import { MapContainer } from '@djangocfg/ui-tools/map'
24
- */
25
-
26
- 'use client';
27
-
28
- // ============================================================================
29
- // Lazy Loading Utilities
30
- // ============================================================================
31
-
32
- export {
33
- // Components
34
- LazyWrapper,
35
- LoadingFallback,
36
- CardLoadingFallback,
37
- MapLoadingFallback,
38
- Spinner,
39
- // Factory
40
- createLazyComponent,
41
- } from './components';
42
- export type {
43
- LazyWrapperProps,
44
- LoadingFallbackProps,
45
- CreateLazyComponentOptions,
46
- } from './components';
47
-
48
- // ============================================================================
49
- // Lazy Components (heavy tools, loaded on demand)
50
- // ============================================================================
51
-
52
- // Map (~800KB)
53
- export {
54
- LazyMapContainer,
55
- LazyMapView,
56
- } from './tools/Map/lazy';
57
- export type {
58
- MapContainerProps,
59
- MapViewport,
60
- MapStyleKey,
61
- MarkerData,
62
- } from './tools/Map/lazy';
63
-
64
- // Mermaid (~800KB)
65
- export { LazyMermaid } from './tools/Mermaid/lazy';
66
- export type { MermaidProps } from './tools/Mermaid/lazy';
67
-
68
- // PrettyCode (~500KB)
69
- export { LazyPrettyCode } from './tools/PrettyCode/lazy';
70
- export type { PrettyCodeProps } from './tools/PrettyCode/lazy';
71
-
72
- // OpenapiViewer (~400KB)
73
- export { LazyOpenapiViewer } from './tools/OpenapiViewer/lazy';
74
- export type { ApiKey, PlaygroundConfig, SchemaSource, PlaygroundProps } from './tools/OpenapiViewer/lazy';
75
-
76
- // JsonForm (~300KB)
77
- export { LazyJsonSchemaForm } from './tools/JsonForm/lazy';
78
- export type {
79
- JsonSchemaFormProps,
80
- JsonFormDensity,
81
- DisabledWhenRule,
82
- UiGroup,
83
- JsonFormContext,
84
- RJSFSchema,
85
- UiSchema,
86
- CustomJsonSchema7,
87
- CustomJsonSchema7Type,
88
- CustomJsonUiSchema7,
89
- CustomJsonUiGroup,
90
- CustomJsonUiDisabledWhenRule,
91
- } from './tools/JsonForm';
92
- export { evaluateDisabledWhen } from './tools/JsonForm';
93
-
94
- // LottiePlayer (~200KB)
95
- export { LazyLottiePlayer } from './tools/LottiePlayer/lazy';
96
-
97
- // AudioPlayer v6 — under construction (see @dev/@refactoring6-audioplayer/).
98
- export { LazyPlayer as LazyAudioPlayer } from './tools/AudioPlayer/lazy';
99
-
100
- // VideoPlayer (~150KB)
101
- export { LazyVideoPlayer } from './tools/VideoPlayer/lazy';
102
-
103
- // JsonTree (~100KB)
104
- export { LazyJsonTree } from './tools/JsonTree/lazy';
105
- export type { JsonTreeProps } from './tools/JsonTree/lazy';
106
-
107
- // ImageViewer (~50KB)
108
- export { LazyImageViewer } from './tools/ImageViewer/lazy';
109
-
110
- // CronScheduler (~15KB)
111
- export { LazyCronScheduler } from './tools/CronScheduler/lazy';
112
- export type { CronSchedulerProps } from './tools/CronScheduler/lazy';
113
-
114
- // Tree (decomposed shadcn-style tree)
115
- export { LazyTree } from './tools/Tree/lazy';
116
- export type { TreeRootProps as LazyTreeProps } from './tools/Tree/lazy';
117
-
118
- // Chat (decomposed, transport-agnostic)
119
- export { LazyChat } from './tools/Chat/lazy';
120
- export type { ChatRootProps as LazyChatProps } from './tools/Chat/lazy';
121
- export * from './tools/Chat';
122
-
123
- // ============================================================================
124
- // Tools (from ./tools/index.ts) - Direct imports (no lazy loading)
125
- // ============================================================================
126
-
127
- export * from './tools';
128
-
129
- // ============================================================================
130
- // Markdown renderer (sits alongside MarkdownEditor under tools/)
131
- // ============================================================================
132
-
133
- export {
134
- MarkdownMessage,
135
- default as MarkdownMessageDefault,
136
- ChatMessageRow,
137
- ActionRow,
138
- extractTextFromChildren,
139
- type MarkdownMessageProps,
140
- type LinkRule,
141
- } from './tools/MarkdownMessage';
142
-
143
- // ============================================================================
144
- // Shared hooks
145
- // ============================================================================
146
-
147
- export {
148
- useCollapsibleContent,
149
- type UseCollapsibleContentOptions,
150
- type UseCollapsibleContentResult,
151
- } from './hooks/useCollapsibleContent';
152
-
153
- // ============================================================================
154
- // Stores
155
- // ============================================================================
156
-
157
- export * from './stores/mediaCache';