@goodandready/dsh-tts 0.3.9 → 0.3.10

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 (2) hide show
  1. package/lib/client.js +22 -9
  2. package/package.json +1 -1
package/lib/client.js CHANGED
@@ -4,6 +4,17 @@ window.__ModuleLoader__.load({
4
4
  var module = { exports: {} }
5
5
  var exports = module.exports
6
6
  const React = require('react')
7
+
8
+ // Значок раскрытия — ядровый; свой SVG только как фолбэк для сборок
9
+ // без набора примитивов. Иконка всегда смотрит вниз, раскрытие
10
+ // поворачивает её классом.
11
+ let ChevronIcon = null
12
+ try {
13
+ const primitives = require('@deepseek-ai/dsh-client-ui-primitives')
14
+ ChevronIcon = primitives && primitives.IconChevronDownOutline14
15
+ } catch (noPrimitives) {
16
+ ChevronIcon = null
17
+ }
7
18
  const NS = 'dsh-tts'
8
19
  const PROVIDERS = [
9
20
  'openai', 'elevenlabs', 'google', 'azure', 'groq', 'deepgram', 'openrouter',
@@ -770,15 +781,17 @@ window.__ModuleLoader__.load({
770
781
  React.createElement('div', { className: 'dts-title' }, t('title')),
771
782
  React.createElement('div', { className: 'dts-sub' }, t('cardHint')),
772
783
  ),
773
- React.createElement('svg', {
774
- className: 'dts-chev' + (open ? ' dts-chevOpen' : ''),
775
- width: 16, height: 16, viewBox: '0 0 16 16', fill: 'none',
776
- },
777
- React.createElement('path', {
778
- d: 'M4 6l4 4 4-4', stroke: 'currentColor', 'stroke-width': 1.5,
779
- 'stroke-linecap': 'round', 'stroke-linejoin': 'round',
780
- }),
781
- ),
784
+ ChevronIcon
785
+ ? React.createElement(ChevronIcon, { className: 'dts-chev' + (open ? ' dts-chevOpen' : '') })
786
+ : React.createElement('svg', {
787
+ className: 'dts-chev' + (open ? ' dts-chevOpen' : ''),
788
+ width: 14, height: 14, viewBox: '0 0 16 16', fill: 'none',
789
+ },
790
+ React.createElement('path', {
791
+ d: 'M4 6l4 4 4-4', stroke: 'currentColor', 'stroke-width': 1.5,
792
+ 'stroke-linecap': 'round', 'stroke-linejoin': 'round',
793
+ }),
794
+ ),
782
795
  ),
783
796
  open ? React.createElement('div', { className: 'dts-body' },
784
797
  React.createElement(TtsSection, Object.assign({}, props, { compact: true })),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodandready/dsh-tts",
3
- "version": "0.3.9",
3
+ "version": "0.3.10",
4
4
  "description": "Text-to-speech for DeepSeek Harness: speak agent replies in the Web UI with a provider fallback chain (OpenAI, ElevenLabs, Google, Azure, Groq, Deepgram, OpenRouter, Edge, Piper, eSpeak).",
5
5
  "license": "MIT",
6
6
  "type": "module",