@omniloy/sofia-sdk 0.0.10 → 0.0.11

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.
@@ -16961,11 +16961,9 @@
16961
16961
  const Multilingual$4 = "متعدد اللغات";
16962
16962
  const Arabic$4 = "عربي";
16963
16963
  const Tamil$4 = "التاميل";
16964
- const Malayalam$4 = "المالايالامية";
16965
16964
  const Telugu$4 = "التيلجو";
16966
16965
  const Kannada$4 = "الكانادا";
16967
16966
  const Hindi$4 = "الهندية";
16968
- const Malay$4 = "لغة الملايو";
16969
16967
  const Thai$4 = "التايلاندية";
16970
16968
  const Filipino$4 = "فلبينية";
16971
16969
  const English$4 = "الإنجليزية";
@@ -17091,12 +17089,11 @@
17091
17089
  Multilingual: Multilingual$4,
17092
17090
  Arabic: Arabic$4,
17093
17091
  Tamil: Tamil$4,
17094
- Malayalam: Malayalam$4,
17092
+ "Malay / Malayalam": "لغة الملايو / المالايالامية",
17095
17093
  Telugu: Telugu$4,
17096
17094
  Kannada: Kannada$4,
17097
17095
  Hindi: Hindi$4,
17098
17096
  "Bahasa Indonesia": "البهاسا الاندونيسية",
17099
- Malay: Malay$4,
17100
17097
  Thai: Thai$4,
17101
17098
  Filipino: Filipino$4,
17102
17099
  English: English$4,
@@ -17188,11 +17185,9 @@
17188
17185
  const Multilingual$3 = "Multilingual";
17189
17186
  const Arabic$3 = "Arabic";
17190
17187
  const Tamil$3 = "Tamil";
17191
- const Malayalam$3 = "Malayalam";
17192
17188
  const Telugu$3 = "Telugu";
17193
17189
  const Kannada$3 = "Kannada";
17194
17190
  const Hindi$3 = "Hindi";
17195
- const Malay$3 = "Malay";
17196
17191
  const Thai$3 = "Thai";
17197
17192
  const Filipino$3 = "Filipino";
17198
17193
  const English$3 = "English";
@@ -17320,12 +17315,11 @@
17320
17315
  Multilingual: Multilingual$3,
17321
17316
  Arabic: Arabic$3,
17322
17317
  Tamil: Tamil$3,
17323
- Malayalam: Malayalam$3,
17318
+ "Malay / Malayalam": "Malay / Malayalam",
17324
17319
  Telugu: Telugu$3,
17325
17320
  Kannada: Kannada$3,
17326
17321
  Hindi: Hindi$3,
17327
17322
  "Bahasa Indonesia": "Bahasa Indonesia",
17328
- Malay: Malay$3,
17329
17323
  Thai: Thai$3,
17330
17324
  Filipino: Filipino$3,
17331
17325
  English: English$3,
@@ -17420,11 +17414,9 @@
17420
17414
  const Multilingual$2 = "Plurilingüe";
17421
17415
  const Arabic$2 = "Árabe";
17422
17416
  const Tamil$2 = "Tamil";
17423
- const Malayalam$2 = "Malayalam";
17424
17417
  const Telugu$2 = "Telugu";
17425
17418
  const Kannada$2 = "Canarés";
17426
17419
  const Hindi$2 = "Hindi";
17427
- const Malay$2 = "Malayo";
17428
17420
  const Thai$2 = "Tailandés";
17429
17421
  const Filipino$2 = "Filipino";
17430
17422
  const English$2 = "Inglés";
@@ -17552,12 +17544,11 @@
17552
17544
  Multilingual: Multilingual$2,
17553
17545
  Arabic: Arabic$2,
17554
17546
  Tamil: Tamil$2,
17555
- Malayalam: Malayalam$2,
17547
+ "Malay / Malayalam": "Malayo / Malayalam",
17556
17548
  Telugu: Telugu$2,
17557
17549
  Kannada: Kannada$2,
17558
17550
  Hindi: Hindi$2,
17559
17551
  "Bahasa Indonesia": "Bahasa Indonesia",
17560
- Malay: Malay$2,
17561
17552
  Thai: Thai$2,
17562
17553
  Filipino: Filipino$2,
17563
17554
  English: English$2,
@@ -17652,11 +17643,9 @@
17652
17643
  const Multilingual$1 = "बहुभाषी";
17653
17644
  const Arabic$1 = "अरबी";
17654
17645
  const Tamil$1 = "तमिल";
17655
- const Malayalam$1 = "मलयालम";
17656
17646
  const Telugu$1 = "तेलुगु";
17657
17647
  const Kannada$1 = "कन्नड़";
17658
17648
  const Hindi$1 = "हिंदी";
17659
- const Malay$1 = "मलय";
17660
17649
  const Thai$1 = "थाई";
17661
17650
  const Filipino$1 = "फिलिपिनो";
17662
17651
  const English$1 = "अंग्रेज़ी";
@@ -17782,12 +17771,11 @@
17782
17771
  Multilingual: Multilingual$1,
17783
17772
  Arabic: Arabic$1,
17784
17773
  Tamil: Tamil$1,
17785
- Malayalam: Malayalam$1,
17774
+ "Malay / Malayalam": "मलय / मलयालम",
17786
17775
  Telugu: Telugu$1,
17787
17776
  Kannada: Kannada$1,
17788
17777
  Hindi: Hindi$1,
17789
17778
  "Bahasa Indonesia": "बहासा इंडोनेशिया",
17790
- Malay: Malay$1,
17791
17779
  Thai: Thai$1,
17792
17780
  Filipino: Filipino$1,
17793
17781
  English: English$1,
@@ -17880,11 +17868,9 @@
17880
17868
  const Multilingual = "Multibahasa";
17881
17869
  const Arabic = "Arab";
17882
17870
  const Tamil = "Tamil";
17883
- const Malayalam = "Malayalam";
17884
17871
  const Telugu = "Telugu";
17885
17872
  const Kannada = "Kannada";
17886
17873
  const Hindi = "Hindi";
17887
- const Malay = "Melayu";
17888
17874
  const Thai = "Thai";
17889
17875
  const Filipino = "Filipina";
17890
17876
  const English = "Bahasa Inggris";
@@ -18010,12 +17996,11 @@
18010
17996
  Multilingual,
18011
17997
  Arabic,
18012
17998
  Tamil,
18013
- Malayalam,
17999
+ "Malay / Malayalam": "Melayu / Malayalam",
18014
18000
  Telugu,
18015
18001
  Kannada,
18016
18002
  Hindi,
18017
18003
  "Bahasa Indonesia": "Bahasa Indonesia",
18018
- Malay,
18019
18004
  Thai,
18020
18005
  Filipino,
18021
18006
  English,
@@ -18089,27 +18074,27 @@
18089
18074
  var TranscriptionLanguageCode;
18090
18075
  (function(TranscriptionLanguageCode2) {
18091
18076
  TranscriptionLanguageCode2["ar"] = "ar";
18092
- TranscriptionLanguageCode2["en"] = "en";
18077
+ TranscriptionLanguageCode2["ca"] = "ca";
18078
+ TranscriptionLanguageCode2["cs"] = "cs";
18093
18079
  TranscriptionLanguageCode2["de"] = "de";
18080
+ TranscriptionLanguageCode2["en_GB"] = "en_GB";
18081
+ TranscriptionLanguageCode2["en_US"] = "en_US";
18094
18082
  TranscriptionLanguageCode2["es"] = "es";
18095
- TranscriptionLanguageCode2["fil"] = "fil";
18096
18083
  TranscriptionLanguageCode2["fr"] = "fr";
18097
- TranscriptionLanguageCode2["id"] = "id";
18098
18084
  TranscriptionLanguageCode2["hi"] = "hi";
18085
+ TranscriptionLanguageCode2["id"] = "id";
18086
+ TranscriptionLanguageCode2["it"] = "it";
18099
18087
  TranscriptionLanguageCode2["ja"] = "ja";
18100
18088
  TranscriptionLanguageCode2["kn"] = "kn";
18101
- TranscriptionLanguageCode2["ml"] = "ml";
18102
18089
  TranscriptionLanguageCode2["ms"] = "ms";
18090
+ TranscriptionLanguageCode2["pt"] = "pt";
18091
+ TranscriptionLanguageCode2["sv"] = "sv";
18103
18092
  TranscriptionLanguageCode2["ta"] = "ta";
18104
18093
  TranscriptionLanguageCode2["te"] = "te";
18105
18094
  TranscriptionLanguageCode2["th"] = "th";
18095
+ TranscriptionLanguageCode2["ur"] = "ur";
18106
18096
  TranscriptionLanguageCode2["zh"] = "zh";
18107
- TranscriptionLanguageCode2["it"] = "it";
18108
- TranscriptionLanguageCode2["pt"] = "pt";
18109
- TranscriptionLanguageCode2["ca"] = "ca";
18110
- TranscriptionLanguageCode2["eu"] = "eu";
18111
- TranscriptionLanguageCode2["gl"] = "gl";
18112
- TranscriptionLanguageCode2["multilingual"] = "";
18097
+ TranscriptionLanguageCode2["multilingual"] = "multi";
18113
18098
  })(TranscriptionLanguageCode || (TranscriptionLanguageCode = {}));
18114
18099
  LanguageCode.es;
18115
18100
  const languages = [
@@ -18142,25 +18127,31 @@
18142
18127
  const transcriptionLanguages = [
18143
18128
  { label: "Multilingual", value: TranscriptionLanguageCode.multilingual },
18144
18129
  { label: "Español", value: TranscriptionLanguageCode.es },
18145
- { label: "English", value: TranscriptionLanguageCode.en },
18130
+ {
18131
+ label: "English (US)",
18132
+ value: TranscriptionLanguageCode.en_US
18133
+ },
18134
+ {
18135
+ label: "English (UK)",
18136
+ value: TranscriptionLanguageCode.en_GB
18137
+ },
18146
18138
  { label: "Français", value: TranscriptionLanguageCode.fr },
18147
18139
  { label: "Deutsch", value: TranscriptionLanguageCode.de },
18148
18140
  { label: "Italiano", value: TranscriptionLanguageCode.it },
18149
18141
  { label: "Português", value: TranscriptionLanguageCode.pt },
18150
18142
  { label: "Català", value: TranscriptionLanguageCode.ca },
18151
- { label: "Euskera", value: TranscriptionLanguageCode.eu },
18152
- { label: "Galego", value: TranscriptionLanguageCode.gl },
18153
18143
  { label: "Arabic", value: TranscriptionLanguageCode.ar },
18144
+ { label: "Čeština", value: TranscriptionLanguageCode.cs },
18154
18145
  { label: "Bahasa Indonesia", value: TranscriptionLanguageCode.id },
18155
18146
  { label: "Chinese", value: TranscriptionLanguageCode.zh },
18156
- { label: "Filipino", value: TranscriptionLanguageCode.fil },
18157
18147
  { label: "Hindi", value: TranscriptionLanguageCode.hi },
18158
18148
  { label: "Japanese", value: TranscriptionLanguageCode.ja },
18159
18149
  { label: "Kannada", value: TranscriptionLanguageCode.kn },
18160
- { label: "Malay", value: TranscriptionLanguageCode.ms },
18161
- { label: "Malayalam", value: TranscriptionLanguageCode.ml },
18150
+ { label: "Malay / Malayalam", value: TranscriptionLanguageCode.ms },
18162
18151
  { label: "Tamil", value: TranscriptionLanguageCode.ta },
18163
18152
  { label: "Telugu", value: TranscriptionLanguageCode.te },
18153
+ { label: "Urdu", value: TranscriptionLanguageCode.ur },
18154
+ { label: "Svenska", value: TranscriptionLanguageCode.sv },
18164
18155
  { label: "Thai", value: TranscriptionLanguageCode.th }
18165
18156
  ];
18166
18157
 
@@ -22009,7 +22000,7 @@
22009
22000
  mergeConfig: mergeConfig$1
22010
22001
  } = axios;
22011
22002
 
22012
- const version$1 = "0.0.10";
22003
+ const version$1 = "0.0.11";
22013
22004
 
22014
22005
  const handleApiError = async (error) => {
22015
22006
  return Promise.reject(error);
@@ -22591,7 +22582,7 @@
22591
22582
  const profile = await SettingsApi.getSettings(templateId, toolArgs);
22592
22583
  const newDictionary = profile?.[SettingsApiKeys.dictionary] || [];
22593
22584
  const newLanguage = profile?.[SettingsApiKeys.language] || (predefinedLanguage ?? getUserDefaultLanguage().code);
22594
- const newTranscriptionLanguage = profile?.[SettingsApiKeys.transcriptionLanguage];
22585
+ const newTranscriptionLanguage = profile?.[SettingsApiKeys.transcriptionLanguage] || TranscriptionLanguageCode.multilingual;
22595
22586
  const newSources = Array.isArray(profile?.[SettingsApiKeys.sources]) ? profile[SettingsApiKeys.sources] : null;
22596
22587
  const newAvailableSources = Array.isArray(profile?.[SettingsApiKeys.availableSources]) ? profile[SettingsApiKeys.availableSources] : [];
22597
22588
  const newCustomTemplate = profile?.[SettingsApiKeys.template] ? {
@@ -22687,7 +22678,7 @@
22687
22678
  try {
22688
22679
  setTranscriptionLanguage(lang);
22689
22680
  SettingsCache.getInstance().setTranscriptionLanguage(lang);
22690
- const dBLanguage = lang === "" ? null : lang;
22681
+ const dBLanguage = lang;
22691
22682
  await SettingsApi.updateSetting(SettingsApiKeys.transcriptionLanguage, dBLanguage);
22692
22683
  } catch (error) {
22693
22684
  logger.settingsError("Error updating transcription language:", error);
@@ -126267,7 +126258,7 @@
126267
126258
  return jsxRuntimeExports.jsxs("div", { className: "omniscribe_report-button-container", children: [renderContent(), jsxRuntimeExports.jsx(LoadingModal, { isLoading: transcriptorLoader || generating || loading, message: loading ? "Por favor espera mientras rellenamos con el reporte" : void 0 })] });
126268
126259
  };
126269
126260
 
126270
- const CustomSelect = ({ options, onChange, selectedNumber = 0 }) => {
126261
+ const CustomSelect = ({ options, onChange, selectedNumber = 0, maxVisibleItems }) => {
126271
126262
  const dropdownRef = reactExports.useRef(null);
126272
126263
  const [selected, setSelected] = reactExports.useState(options[selectedNumber]);
126273
126264
  const [isOpen, setIsOpen] = reactExports.useState(false);
@@ -126307,7 +126298,9 @@
126307
126298
  height: "calc(var(--spacing) * 5)",
126308
126299
  color: "var(--color-gray-900)",
126309
126300
  marginLeft: "calc(var(--spacing) * 2)"
126310
- } })] }), isOpen && jsxRuntimeExports.jsx("div", { className: "omniscribe_select-content-container", children: jsxRuntimeExports.jsx("ul", { className: "omniscribe_select-content-ul scrollbar-pretty", children: options.map((option) => jsxRuntimeExports.jsxs("li", { onMouseDown: (e) => {
126301
+ } })] }), isOpen && jsxRuntimeExports.jsx("div", { className: "omniscribe_select-content-container", children: jsxRuntimeExports.jsx("ul", { className: "omniscribe_select-content-ul scrollbar-pretty", style: maxVisibleItems ? {
126302
+ maxHeight: `calc(var(--spacing) * ${maxVisibleItems * 11} + var(--spacing) * 2)`
126303
+ } : void 0, children: options.map((option) => jsxRuntimeExports.jsxs("li", { onMouseDown: (e) => {
126311
126304
  e.stopPropagation();
126312
126305
  e.preventDefault();
126313
126306
  }, onClick: (e) => handleChangeSelect(option, e), className: "omniscribe_select-content-li", children: [jsxRuntimeExports.jsxs("span", { className: "omniscribe_select-content-li-span", children: [option.icon ?? null, formatMessage({
@@ -126772,7 +126765,7 @@
126772
126765
  const { code } = await getLanguageByCode(value);
126773
126766
  await updateLanguage(code);
126774
126767
  };
126775
- return jsxRuntimeExports.jsx("div", { className: "w-full", "data-testid": "language-selector", children: jsxRuntimeExports.jsx(CustomSelect, { options: langOptions, onChange: handleLanguageChange, selectedNumber, className: "w-full" }) });
126768
+ return jsxRuntimeExports.jsx("div", { className: "w-full", "data-testid": "language-selector", children: jsxRuntimeExports.jsx(CustomSelect, { options: langOptions, onChange: handleLanguageChange, selectedNumber, className: "w-full", maxVisibleItems: 3 }) });
126776
126769
  };
126777
126770
 
126778
126771
  const TranscriptionLanguageSelector = () => {
@@ -126790,7 +126783,7 @@
126790
126783
  logger.settingsError("Error updating transcription language:", error);
126791
126784
  }
126792
126785
  };
126793
- return jsxRuntimeExports.jsx("div", { className: "w-full", "data-testid": "transcription-language-selector", children: jsxRuntimeExports.jsx(CustomSelect, { options: transcriptionLanguageOptions, onChange: handleTranscriptionLanguageChange, selectedNumber: getSelectedIndex, className: "w-full" }) });
126786
+ return jsxRuntimeExports.jsx("div", { className: "w-full", "data-testid": "transcription-language-selector", children: jsxRuntimeExports.jsx(CustomSelect, { options: transcriptionLanguageOptions, onChange: handleTranscriptionLanguageChange, selectedNumber: getSelectedIndex, className: "w-full", maxVisibleItems: 4 }) });
126794
126787
  };
126795
126788
 
126796
126789
  const ConfigSection = ({ description, children, className = "" }) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omniloy/sofia-sdk",
3
- "version": "0.0.10",
3
+ "version": "0.0.11",
4
4
  "description": "Sofia SDK - AI-powered medical assistant web component for healthcare applications",
5
5
  "keywords": [
6
6
  "webcomponent",
@@ -27,7 +27,12 @@
27
27
  "./webcomponents": {
28
28
  "import": "./dist/webcomponents.es.js",
29
29
  "require": "./dist/webcomponents.umd.js"
30
- }
30
+ },
31
+ "./react": {
32
+ "import": "./dist/react/index.es.js",
33
+ "types": "./dist/react/index.d.ts"
34
+ },
35
+ "./react/index.css": "./dist/react/index.css"
31
36
  },
32
37
  "sideEffects": false,
33
38
  "author": "Omniloy",