@djangocfg/ui-tools 2.1.383 → 2.1.385

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 (51) hide show
  1. package/dist/ChatRoot-JVR3M3H2.mjs +5 -0
  2. package/dist/{ChatRoot-6IZFM5HM.mjs.map → ChatRoot-JVR3M3H2.mjs.map} +1 -1
  3. package/dist/ChatRoot-LXIUBOXF.cjs +14 -0
  4. package/dist/{ChatRoot-LW4XNIKP.cjs.map → ChatRoot-LXIUBOXF.cjs.map} +1 -1
  5. package/dist/DictationField-AS2F33WI.cjs +13 -0
  6. package/dist/{DictationField-U25MEYAL.mjs.map → DictationField-AS2F33WI.cjs.map} +1 -1
  7. package/dist/DictationField-WPONUCYE.mjs +4 -0
  8. package/dist/{DictationField-XWR5VOID.cjs.map → DictationField-WPONUCYE.mjs.map} +1 -1
  9. package/dist/{chunk-4PFW7MIJ.cjs → chunk-ADEN3UA4.cjs} +60 -5
  10. package/dist/chunk-ADEN3UA4.cjs.map +1 -0
  11. package/dist/{chunk-OZAU3QWD.cjs → chunk-HPK3EWBF.cjs} +8 -8
  12. package/dist/chunk-HPK3EWBF.cjs.map +1 -0
  13. package/dist/{chunk-UWVP6LCW.mjs → chunk-PEKBT75W.mjs} +8 -8
  14. package/dist/chunk-PEKBT75W.mjs.map +1 -0
  15. package/dist/{chunk-C2YN6WEO.mjs → chunk-UNCS5V5F.mjs} +61 -7
  16. package/dist/chunk-UNCS5V5F.mjs.map +1 -0
  17. package/dist/index.cjs +59 -58
  18. package/dist/index.cjs.map +1 -1
  19. package/dist/index.d.cts +12 -7
  20. package/dist/index.d.ts +12 -7
  21. package/dist/index.mjs +6 -5
  22. package/dist/index.mjs.map +1 -1
  23. package/package.json +6 -6
  24. package/src/tools/Chat/core/audio/defaults.ts +16 -11
  25. package/src/tools/Chat/core/audio/sounds/error.ts +3 -0
  26. package/src/tools/Chat/core/audio/sounds/mention.ts +3 -0
  27. package/src/tools/Chat/core/audio/sounds/notification.ts +3 -0
  28. package/src/tools/Chat/core/audio/sounds/received.ts +3 -0
  29. package/src/tools/Chat/core/audio/sounds/sent.ts +3 -0
  30. package/src/tools/Chat/core/audio/sounds/start.ts +3 -0
  31. package/src/tools/SpeechRecognition/core/audio/defaults.ts +4 -4
  32. package/src/tools/SpeechRecognition/core/index.ts +6 -1
  33. package/src/tools/SpeechRecognition/core/logger.ts +107 -1
  34. package/src/tools/SpeechRecognition/hooks/useSpeechRecognition.ts +15 -4
  35. package/src/tools/SpeechRecognition/index.ts +9 -0
  36. package/src/tools/SpeechRecognition/widgets/VoiceComposerSlot.tsx +37 -2
  37. package/dist/ChatRoot-6IZFM5HM.mjs +0 -5
  38. package/dist/ChatRoot-LW4XNIKP.cjs +0 -14
  39. package/dist/DictationField-U25MEYAL.mjs +0 -4
  40. package/dist/DictationField-XWR5VOID.cjs +0 -13
  41. package/dist/chunk-4PFW7MIJ.cjs.map +0 -1
  42. package/dist/chunk-C2YN6WEO.mjs.map +0 -1
  43. package/dist/chunk-OZAU3QWD.cjs.map +0 -1
  44. package/dist/chunk-UWVP6LCW.mjs.map +0 -1
  45. package/src/audio-assets.d.ts +0 -8
  46. package/src/tools/Chat/core/audio/sounds/error.mp3 +0 -0
  47. package/src/tools/Chat/core/audio/sounds/mention.mp3 +0 -0
  48. package/src/tools/Chat/core/audio/sounds/notification.mp3 +0 -0
  49. package/src/tools/Chat/core/audio/sounds/received.mp3 +0 -0
  50. package/src/tools/Chat/core/audio/sounds/sent.mp3 +0 -0
  51. package/src/tools/Chat/core/audio/sounds/start.mp3 +0 -0
package/dist/index.d.cts CHANGED
@@ -3371,13 +3371,18 @@ declare const useChatAudioPrefs: zustand.UseBoundStore<zustand.StoreApi<AudioPre
3371
3371
  /**
3372
3372
  * Built-in chat notification sounds.
3373
3373
  *
3374
- * Bundled into the JS at build time as base64 data URLs (`tsup.config.ts`
3375
- * loader: `.mp3 → dataurl`). Total 136KB, gzipped 130KB added to
3376
- * the lazy Chat tool so hosts get notification sounds with zero setup.
3377
- *
3378
- * Source files live in `./sounds/`. Re-encode via ffmpeg if you tweak:
3379
- *
3380
- * ffmpeg -i in.mp3 -ac 2 -ar 44100 -b:a 128k -af 'atrim=0:1.4,afade=t=out:st=1.22:d=0.18' out.mp3
3374
+ * Sounds are inlined as base64 data URLs inside each `./sounds/<name>.ts`
3375
+ * module — no `.mp3` loader / `*.d.ts` shim required on the consumer
3376
+ * side. Total 136KB bundled into the lazy Chat chunk.
3377
+ *
3378
+ * To re-encode after a source edit:
3379
+ * 1. Drop the new mp3 next to this file (e.g. `./sounds/sent.source.mp3`).
3380
+ * 2. `base64 -i sent.source.mp3` and paste into `./sounds/sent.ts`.
3381
+ * 3. Delete the temporary source mp3 — only the `.ts` ships.
3382
+ *
3383
+ * Encoding cheat-sheet:
3384
+ * ffmpeg -i in.mp3 -ac 2 -ar 44100 -b:a 128k \
3385
+ * -af 'atrim=0:1.4,afade=t=out:st=1.22:d=0.18' out.mp3
3381
3386
  */
3382
3387
 
3383
3388
  /**
package/dist/index.d.ts CHANGED
@@ -3371,13 +3371,18 @@ declare const useChatAudioPrefs: zustand.UseBoundStore<zustand.StoreApi<AudioPre
3371
3371
  /**
3372
3372
  * Built-in chat notification sounds.
3373
3373
  *
3374
- * Bundled into the JS at build time as base64 data URLs (`tsup.config.ts`
3375
- * loader: `.mp3 → dataurl`). Total 136KB, gzipped 130KB added to
3376
- * the lazy Chat tool so hosts get notification sounds with zero setup.
3377
- *
3378
- * Source files live in `./sounds/`. Re-encode via ffmpeg if you tweak:
3379
- *
3380
- * ffmpeg -i in.mp3 -ac 2 -ar 44100 -b:a 128k -af 'atrim=0:1.4,afade=t=out:st=1.22:d=0.18' out.mp3
3374
+ * Sounds are inlined as base64 data URLs inside each `./sounds/<name>.ts`
3375
+ * module — no `.mp3` loader / `*.d.ts` shim required on the consumer
3376
+ * side. Total 136KB bundled into the lazy Chat chunk.
3377
+ *
3378
+ * To re-encode after a source edit:
3379
+ * 1. Drop the new mp3 next to this file (e.g. `./sounds/sent.source.mp3`).
3380
+ * 2. `base64 -i sent.source.mp3` and paste into `./sounds/sent.ts`.
3381
+ * 3. Delete the temporary source mp3 — only the `.ts` ships.
3382
+ *
3383
+ * Encoding cheat-sheet:
3384
+ * ffmpeg -i in.mp3 -ac 2 -ar 44100 -b:a 128k \
3385
+ * -af 'atrim=0:1.4,afade=t=out:st=1.22:d=0.18' out.mp3
3381
3386
  */
3382
3387
 
3383
3388
  /**
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { useSpeechPrefs, useResolvedLanguage } from './chunk-C2YN6WEO.mjs';
1
+ import { getSpeechLogger, useSpeechPrefs, useResolvedLanguage } from './chunk-UNCS5V5F.mjs';
2
2
  export { ArrayFieldItemTemplate, ArrayFieldTemplate, BaseInputTemplate, CheckboxWidget, ColorWidget, ErrorListTemplate, FieldTemplate, JsonSchemaForm, NumberWidget, ObjectFieldTemplate, SelectWidget, SliderWidget, SwitchWidget, TextWidget, evaluateDisabledWhen, getRequiredFields, hasRequiredFields, mergeDefaults, normalizeFormData, safeJsonParse, safeJsonStringify, validateRequiredFields, validateSchema } from './chunk-GYIO7W7M.mjs';
3
3
  export { useLottie } from './chunk-ODO4GMW7.mjs';
4
4
  export { Player as AudioPlayer } from './chunk-VWQ5WOIL.mjs';
@@ -6,8 +6,8 @@ export { NativeProvider, StreamProvider, VideoControls, VideoErrorFallback, Vide
6
6
  export { ImageViewer } from './chunk-OBRSGM64.mjs';
7
7
  export { generateContentKey, useAudioCache, useBlobUrlCleanup, useImageCache, useMediaCacheStore, useVideoCache, useVideoPlayerSettings } from './chunk-C6GXVH5J.mjs';
8
8
  export { CronSchedulerProvider, CustomInput, DayChips, MonthDayGrid, SchedulePreview, ScheduleTypeSelector, TimeSelector, buildCron, humanizeCron, isValidCron, parseCron, useCronCustom, useCronMonthDays, useCronPreview, useCronScheduler, useCronSchedulerContext, useCronTime, useCronType, useCronWeekDays } from './chunk-PVAX67JG.mjs';
9
- import { LIMITS, createId, useChatContext, useChatContextOptional } from './chunk-UWVP6LCW.mjs';
10
- export { Attachments, AttachmentsGrid, AttachmentsList, CHAT_EVENT_NAME, CSS_VARS, ChatProvider, ChatRoot, Composer, DEFAULT_CHAT_SOUNDS, DEFAULT_LABELS, DEFAULT_SIDEBAR, DEFAULT_Z_INDEX, EmptyState, ErrorBanner, HOTKEYS, JumpToLatest, LIMITS, MessageActions, MessageBubble, MessageList, STORAGE_KEYS, Sources, StreamingIndicator, ToolCalls, createId, createTokenBuffer, deriveInitials, getChatLogger, initialState, isSubmittableDraft, reducer, resolvePersona, sanitizeDraft, useAutoFocusOnStreamEnd, useChat, useChatAudio, useChatBubbleStyles, useChatComposer, useChatContext, useChatContextOptional, useChatDestructiveStyles, useChatLayout, useChatRoleStyles, useFocusOnEmptyClick, useRegisterComposer } from './chunk-UWVP6LCW.mjs';
9
+ import { LIMITS, createId, useChatContext, useChatContextOptional } from './chunk-PEKBT75W.mjs';
10
+ export { Attachments, AttachmentsGrid, AttachmentsList, CHAT_EVENT_NAME, CSS_VARS, ChatProvider, ChatRoot, Composer, DEFAULT_CHAT_SOUNDS, DEFAULT_LABELS, DEFAULT_SIDEBAR, DEFAULT_Z_INDEX, EmptyState, ErrorBanner, HOTKEYS, JumpToLatest, LIMITS, MessageActions, MessageBubble, MessageList, STORAGE_KEYS, Sources, StreamingIndicator, ToolCalls, createId, createTokenBuffer, deriveInitials, getChatLogger, initialState, isSubmittableDraft, reducer, resolvePersona, sanitizeDraft, useAutoFocusOnStreamEnd, useChat, useChatAudio, useChatBubbleStyles, useChatComposer, useChatContext, useChatContextOptional, useChatDestructiveStyles, useChatLayout, useChatRoleStyles, useFocusOnEmptyClick, useRegisterComposer } from './chunk-PEKBT75W.mjs';
11
11
  export { TreeError, TreeSkeleton, createDemoTree } from './chunk-B6IR5KSC.mjs';
12
12
  export { DEFAULT_TREE_APPEARANCE, DEFAULT_TREE_LABELS, TreeRoot as Tree, TreeChevron, TreeContent, TreeEmpty, TreeIcon, TreeIndentGuides, TreeLabel, TreeProvider, TreeRoot, TreeRow, TreeSearchInput, appearanceToStyle, clearTreeState, createChildCache, flattenTree, loadTreeState, resolveAppearance, resolveChildren, saveTreeState, useTreeActions, useTreeContext, useTreeExpansion, useTreeFocus, useTreeKeyboard, useTreeLabels, useTreeRows, useTreeSearch, useTreeSelection, useTreeTypeAhead } from './chunk-ZL7FH4NW.mjs';
13
13
  import { PlaygroundProvider } from './chunk-Y6UTOBF6.mjs';
@@ -350,7 +350,7 @@ var LazyTree = createLazyComponent(
350
350
  }
351
351
  );
352
352
  var LazyChat = createLazyComponent(
353
- () => import('./ChatRoot-6IZFM5HM.mjs').then((m) => ({ default: m.ChatRoot })),
353
+ () => import('./ChatRoot-JVR3M3H2.mjs').then((m) => ({ default: m.ChatRoot })),
354
354
  {
355
355
  displayName: "LazyChat",
356
356
  fallback: /* @__PURE__ */ jsx(LoadingFallback, { minHeight: 320, text: "Loading chat\u2026" })
@@ -1628,9 +1628,10 @@ function countryFromTag(tag) {
1628
1628
  return null;
1629
1629
  }
1630
1630
  __name(countryFromTag, "countryFromTag");
1631
+ getSpeechLogger();
1631
1632
  createContext(null);
1632
1633
  createLazyComponent(
1633
- () => import('./DictationField-U25MEYAL.mjs').then((mod) => ({
1634
+ () => import('./DictationField-WPONUCYE.mjs').then((mod) => ({
1634
1635
  default: mod.DictationField
1635
1636
  })),
1636
1637
  {