@djangocfg/ui-tools 2.1.389 → 2.1.393

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 (183) 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 +9 -17
  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/SpeechRecognition/README.md +1 -1
  29. package/dist/ChatRoot-EFNXQXXN.cjs +0 -15
  30. package/dist/ChatRoot-EFNXQXXN.cjs.map +0 -1
  31. package/dist/ChatRoot-FITF5RVP.mjs +0 -6
  32. package/dist/ChatRoot-FITF5RVP.mjs.map +0 -1
  33. package/dist/ChatRoot-PNNGQCYF.css +0 -7
  34. package/dist/ChatRoot-PNNGQCYF.css.map +0 -1
  35. package/dist/CronScheduler.client-DLMXCPAJ.mjs +0 -67
  36. package/dist/CronScheduler.client-DLMXCPAJ.mjs.map +0 -1
  37. package/dist/CronScheduler.client-WEJF4PWQ.cjs +0 -72
  38. package/dist/CronScheduler.client-WEJF4PWQ.cjs.map +0 -1
  39. package/dist/DictationField-AS2F33WI.cjs +0 -13
  40. package/dist/DictationField-AS2F33WI.cjs.map +0 -1
  41. package/dist/DictationField-WPONUCYE.mjs +0 -4
  42. package/dist/DictationField-WPONUCYE.mjs.map +0 -1
  43. package/dist/DocsLayout-EKASBSP7.mjs +0 -3448
  44. package/dist/DocsLayout-EKASBSP7.mjs.map +0 -1
  45. package/dist/DocsLayout-MBFIB4NO.css +0 -7
  46. package/dist/DocsLayout-MBFIB4NO.css.map +0 -1
  47. package/dist/DocsLayout-OURFYWQE.cjs +0 -3455
  48. package/dist/DocsLayout-OURFYWQE.cjs.map +0 -1
  49. package/dist/JsonSchemaForm-DD7CLRIG.cjs +0 -13
  50. package/dist/JsonSchemaForm-DD7CLRIG.cjs.map +0 -1
  51. package/dist/JsonSchemaForm-XKUIVELK.mjs +0 -4
  52. package/dist/JsonSchemaForm-XKUIVELK.mjs.map +0 -1
  53. package/dist/JsonTree-43PQAJKY.mjs +0 -5
  54. package/dist/JsonTree-43PQAJKY.mjs.map +0 -1
  55. package/dist/JsonTree-MLET23ZA.css +0 -7
  56. package/dist/JsonTree-MLET23ZA.css.map +0 -1
  57. package/dist/JsonTree-X6W5YEVY.cjs +0 -11
  58. package/dist/JsonTree-X6W5YEVY.cjs.map +0 -1
  59. package/dist/LottiePlayer.client-2S7ISJ2S.cjs +0 -168
  60. package/dist/LottiePlayer.client-2S7ISJ2S.cjs.map +0 -1
  61. package/dist/LottiePlayer.client-5LDSSJWS.mjs +0 -161
  62. package/dist/LottiePlayer.client-5LDSSJWS.mjs.map +0 -1
  63. package/dist/MapContainer-AKIPABJK.mjs +0 -4
  64. package/dist/MapContainer-AKIPABJK.mjs.map +0 -1
  65. package/dist/MapContainer-STVDMC36.cjs +0 -17
  66. package/dist/MapContainer-STVDMC36.cjs.map +0 -1
  67. package/dist/Mermaid.client-DDXWXZXY.css +0 -7
  68. package/dist/Mermaid.client-DDXWXZXY.css.map +0 -1
  69. package/dist/Mermaid.client-NL4SVR7F.mjs +0 -481
  70. package/dist/Mermaid.client-NL4SVR7F.mjs.map +0 -1
  71. package/dist/Mermaid.client-NNTI6DFX.cjs +0 -487
  72. package/dist/Mermaid.client-NNTI6DFX.cjs.map +0 -1
  73. package/dist/Player-BRV7XTWR.mjs +0 -4
  74. package/dist/Player-BRV7XTWR.mjs.map +0 -1
  75. package/dist/Player-PM7F7DD7.cjs +0 -13
  76. package/dist/Player-PM7F7DD7.cjs.map +0 -1
  77. package/dist/Player-ZGQKKOWI.css +0 -66
  78. package/dist/Player-ZGQKKOWI.css.map +0 -1
  79. package/dist/PrettyCode.client-GWFAIVFN.css +0 -7
  80. package/dist/PrettyCode.client-GWFAIVFN.css.map +0 -1
  81. package/dist/PrettyCode.client-KOHDVPPN.cjs +0 -285
  82. package/dist/PrettyCode.client-KOHDVPPN.cjs.map +0 -1
  83. package/dist/PrettyCode.client-ZGYGKE7G.mjs +0 -283
  84. package/dist/PrettyCode.client-ZGYGKE7G.mjs.map +0 -1
  85. package/dist/TreeRoot-5COOOSWG.mjs +0 -4
  86. package/dist/TreeRoot-5COOOSWG.mjs.map +0 -1
  87. package/dist/TreeRoot-AABP2J6Y.cjs +0 -19
  88. package/dist/TreeRoot-AABP2J6Y.cjs.map +0 -1
  89. package/dist/chunk-2NG4SXEP.mjs +0 -743
  90. package/dist/chunk-2NG4SXEP.mjs.map +0 -1
  91. package/dist/chunk-4LFB7I5K.cjs +0 -1387
  92. package/dist/chunk-4LFB7I5K.cjs.map +0 -1
  93. package/dist/chunk-5D2OCOPQ.cjs +0 -222
  94. package/dist/chunk-5D2OCOPQ.cjs.map +0 -1
  95. package/dist/chunk-5I5QNGUG.cjs +0 -611
  96. package/dist/chunk-5I5QNGUG.cjs.map +0 -1
  97. package/dist/chunk-6ZX2G25W.mjs +0 -1361
  98. package/dist/chunk-6ZX2G25W.mjs.map +0 -1
  99. package/dist/chunk-76NNDZH6.cjs +0 -1061
  100. package/dist/chunk-76NNDZH6.cjs.map +0 -1
  101. package/dist/chunk-7CWGZPO3.mjs +0 -214
  102. package/dist/chunk-7CWGZPO3.mjs.map +0 -1
  103. package/dist/chunk-7EYHNP3E.cjs +0 -965
  104. package/dist/chunk-7EYHNP3E.cjs.map +0 -1
  105. package/dist/chunk-7IYXZUJO.cjs +0 -769
  106. package/dist/chunk-7IYXZUJO.cjs.map +0 -1
  107. package/dist/chunk-ADEN3UA4.cjs +0 -892
  108. package/dist/chunk-ADEN3UA4.cjs.map +0 -1
  109. package/dist/chunk-B6IR5KSC.mjs +0 -59
  110. package/dist/chunk-B6IR5KSC.mjs.map +0 -1
  111. package/dist/chunk-C6GXVH5J.mjs +0 -338
  112. package/dist/chunk-C6GXVH5J.mjs.map +0 -1
  113. package/dist/chunk-DMX7W4XZ.mjs +0 -1113
  114. package/dist/chunk-DMX7W4XZ.mjs.map +0 -1
  115. package/dist/chunk-ECONRHIG.mjs +0 -212
  116. package/dist/chunk-ECONRHIG.mjs.map +0 -1
  117. package/dist/chunk-FEN5S772.cjs +0 -1227
  118. package/dist/chunk-FEN5S772.cjs.map +0 -1
  119. package/dist/chunk-FP2RLYQZ.cjs +0 -187
  120. package/dist/chunk-FP2RLYQZ.cjs.map +0 -1
  121. package/dist/chunk-FVVF7VCD.cjs +0 -1325
  122. package/dist/chunk-FVVF7VCD.cjs.map +0 -1
  123. package/dist/chunk-GYIO7W7M.mjs +0 -1197
  124. package/dist/chunk-GYIO7W7M.mjs.map +0 -1
  125. package/dist/chunk-KNDLV4PI.cjs +0 -1356
  126. package/dist/chunk-KNDLV4PI.cjs.map +0 -1
  127. package/dist/chunk-KNEQRUBA.mjs +0 -181
  128. package/dist/chunk-KNEQRUBA.mjs.map +0 -1
  129. package/dist/chunk-N2XQF2OL.mjs +0 -14
  130. package/dist/chunk-N4MZYNR4.mjs +0 -1342
  131. package/dist/chunk-N4MZYNR4.mjs.map +0 -1
  132. package/dist/chunk-NTVBIIUD.mjs +0 -1439
  133. package/dist/chunk-NTVBIIUD.mjs.map +0 -1
  134. package/dist/chunk-OBRSGM64.mjs +0 -607
  135. package/dist/chunk-OBRSGM64.mjs.map +0 -1
  136. package/dist/chunk-ODO4GMW7.mjs +0 -79
  137. package/dist/chunk-ODO4GMW7.mjs.map +0 -1
  138. package/dist/chunk-OLISEQHS.cjs +0 -18
  139. package/dist/chunk-PVAX67JG.mjs +0 -1041
  140. package/dist/chunk-PVAX67JG.mjs.map +0 -1
  141. package/dist/chunk-QJ6GTUCO.cjs +0 -81
  142. package/dist/chunk-QJ6GTUCO.cjs.map +0 -1
  143. package/dist/chunk-T3MWM23F.cjs +0 -214
  144. package/dist/chunk-T3MWM23F.cjs.map +0 -1
  145. package/dist/chunk-TBSHZO5R.cjs +0 -1134
  146. package/dist/chunk-TBSHZO5R.cjs.map +0 -1
  147. package/dist/chunk-UNCS5V5F.mjs +0 -887
  148. package/dist/chunk-UNCS5V5F.mjs.map +0 -1
  149. package/dist/chunk-VWQ5WOIL.mjs +0 -2059
  150. package/dist/chunk-VWQ5WOIL.mjs.map +0 -1
  151. package/dist/chunk-W75B7Y6C.cjs +0 -1478
  152. package/dist/chunk-W75B7Y6C.cjs.map +0 -1
  153. package/dist/chunk-Y6UTOBF6.mjs +0 -938
  154. package/dist/chunk-Y6UTOBF6.mjs.map +0 -1
  155. package/dist/chunk-YDPDTOSP.cjs +0 -2061
  156. package/dist/chunk-YDPDTOSP.cjs.map +0 -1
  157. package/dist/chunk-YW5IVWHQ.cjs +0 -346
  158. package/dist/chunk-YW5IVWHQ.cjs.map +0 -1
  159. package/dist/chunk-YXZ6GU7H.cjs +0 -63
  160. package/dist/chunk-YXZ6GU7H.cjs.map +0 -1
  161. package/dist/chunk-ZL7FH4NW.mjs +0 -1274
  162. package/dist/chunk-ZL7FH4NW.mjs.map +0 -1
  163. package/dist/components-EHOGXATG.cjs +0 -22
  164. package/dist/components-EHOGXATG.cjs.map +0 -1
  165. package/dist/components-MQ6DR7TX.cjs +0 -26
  166. package/dist/components-MQ6DR7TX.cjs.map +0 -1
  167. package/dist/components-XRX7QGLB.mjs +0 -5
  168. package/dist/components-XRX7QGLB.mjs.map +0 -1
  169. package/dist/components-YATKRWLH.mjs +0 -5
  170. package/dist/components-YATKRWLH.mjs.map +0 -1
  171. package/dist/index.cjs +0 -3674
  172. package/dist/index.cjs.map +0 -1
  173. package/dist/index.css +0 -234
  174. package/dist/index.css.map +0 -1
  175. package/dist/index.d.cts +0 -4929
  176. package/dist/index.d.ts +0 -4929
  177. package/dist/index.mjs +0 -2912
  178. package/dist/index.mjs.map +0 -1
  179. package/dist/launcher-5Y42OBSN.mjs +0 -6
  180. package/dist/launcher-5Y42OBSN.mjs.map +0 -1
  181. package/dist/launcher-PMW2YB24.cjs +0 -59
  182. package/dist/launcher-PMW2YB24.cjs.map +0 -1
  183. 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';