@happyvertical/smrt-svelte 0.34.6 → 0.34.8

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.
@@ -1,4 +1,5 @@
1
1
  <script lang="ts">
2
+ import { Select } from '@happyvertical/smrt-ui/forms';
2
3
  import { useI18n } from '@happyvertical/smrt-ui/i18n';
3
4
  import { Button } from '@happyvertical/smrt-ui/ui';
4
5
  import { useAppState } from '../../../hooks/useAppState.svelte.js';
@@ -111,11 +112,20 @@ function clearLogs() {
111
112
  <div class="controls">
112
113
  <div class="adapter-select">
113
114
  <label for="adapter">Adapter:</label>
114
- <select id="adapter" bind:value={selectedAdapter} disabled={isRecording}>
115
+ <Select
116
+ id="adapter"
117
+ bind:value={
118
+ () => selectedAdapter,
119
+ (v) => {
120
+ selectedAdapter = v as AdapterType;
121
+ }
122
+ }
123
+ disabled={isRecording}
124
+ >
115
125
  <option value="browser-speech">{t(M['ui.stt_test.adapter_browser'])}</option>
116
126
  <option value="whisper-wasm">{t(M['ui.stt_test.adapter_whisper_wasm'])}</option>
117
127
  <option value="whisper-cpp">{t(M['ui.stt_test.adapter_whisper_cpp'])}</option>
118
- </select>
128
+ </Select>
119
129
  </div>
120
130
 
121
131
  <Button
@@ -224,13 +234,6 @@ function clearLogs() {
224
234
  font: var(--smrt-typography-body-medium-font, 500 0.875rem / 1.25 sans-serif);
225
235
  }
226
236
 
227
- .adapter-select select {
228
- padding: var(--smrt-spacing-sm, 8px);
229
- border: 1px solid var(--smrt-color-outline-variant, #c4c6cf);
230
- border-radius: var(--smrt-radius-small, 6px);
231
- font: var(--smrt-typography-body-medium-font, 0.875rem / 1.25 sans-serif);
232
- }
233
-
234
237
  .status {
235
238
  display: flex;
236
239
  gap: var(--smrt-spacing-md, 16px);
@@ -1 +1 @@
1
- {"version":3,"file":"STTTest.svelte.d.ts","sourceRoot":"","sources":["../../../../src/browser-ai/svelte/components/STTTest.svelte.ts"],"names":[],"mappings":"AAWA,kCAAkC;AAClC,MAAM,WAAW,KAAK;IACpB,yBAAyB;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAkLD,QAAA,MAAM,OAAO,2CAAwC,CAAC;AACtD,KAAK,OAAO,GAAG,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC;AAC1C,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"STTTest.svelte.d.ts","sourceRoot":"","sources":["../../../../src/browser-ai/svelte/components/STTTest.svelte.ts"],"names":[],"mappings":"AAYA,kCAAkC;AAClC,MAAM,WAAW,KAAK;IACpB,yBAAyB;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAqLD,QAAA,MAAM,OAAO,2CAAwC,CAAC;AACtD,KAAK,OAAO,GAAG,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC;AAC1C,eAAe,OAAO,CAAC"}
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@happyvertical/smrt-svelte",
3
- "version": "0.34.6",
3
+ "version": "0.34.8",
4
4
  "description": "Svelte 5 components for SMRT user management - auth, users, tenants, roles, permissions, groups",
5
5
  "type": "module",
6
- "smrtRawPrimitives": "strict-buttons",
6
+ "smrtRawPrimitives": "strict",
7
7
  "main": "./dist/index.js",
8
8
  "types": "./dist/index.d.ts",
9
9
  "svelte": "./dist/index.js",
@@ -78,9 +78,9 @@
78
78
  "dependencies": {
79
79
  "@happyvertical/logger": "^0.74.7",
80
80
  "esm-env": "^1.2.2",
81
- "@happyvertical/smrt-languages": "0.34.6",
82
- "@happyvertical/smrt-types": "0.34.6",
83
- "@happyvertical/smrt-ui": "0.34.6"
81
+ "@happyvertical/smrt-languages": "0.34.8",
82
+ "@happyvertical/smrt-types": "0.34.8",
83
+ "@happyvertical/smrt-ui": "0.34.8"
84
84
  },
85
85
  "peerDependencies": {
86
86
  "@huggingface/transformers": ">=3.0.0",