reneco-advanced-input-module 0.0.24 → 0.0.26

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 (74) hide show
  1. package/dist/cjs/{index-BTSzTkSZ.js → index-BtdDZbi5.js} +11 -4
  2. package/dist/cjs/index-BtdDZbi5.js.map +1 -0
  3. package/dist/cjs/loader.cjs.js +3 -4
  4. package/dist/cjs/loader.cjs.js.map +1 -1
  5. package/dist/cjs/ocr-file-uploader.cjs.entry.js +1 -1
  6. package/dist/cjs/voice-input-module.cjs.entry.js +79 -32
  7. package/dist/cjs/voice-input-module.cjs.entry.js.map +1 -1
  8. package/dist/cjs/voice-input-module.cjs.js +3 -4
  9. package/dist/cjs/voice-input-module.cjs.js.map +1 -1
  10. package/dist/cjs/voice-input-module.entry.cjs.js.map +1 -1
  11. package/dist/collection/components/voice-input-module/voice-input-module.css +26 -3
  12. package/dist/collection/components/voice-input-module/voice-input-module.js +70 -26
  13. package/dist/collection/components/voice-input-module/voice-input-module.js.map +1 -1
  14. package/dist/collection/services/llm.service.js +8 -4
  15. package/dist/collection/services/llm.service.js.map +1 -1
  16. package/dist/collection/types/form-schema.types.js.map +1 -1
  17. package/dist/components/voice-input-module.js +79 -31
  18. package/dist/components/voice-input-module.js.map +1 -1
  19. package/dist/esm/{index-jmc2yzBp.js → index-a7QWC-5I.js} +11 -5
  20. package/dist/esm/index-a7QWC-5I.js.map +1 -0
  21. package/dist/esm/loader.js +3 -4
  22. package/dist/esm/loader.js.map +1 -1
  23. package/dist/esm/ocr-file-uploader.entry.js +1 -1
  24. package/dist/esm/voice-input-module.entry.js +79 -32
  25. package/dist/esm/voice-input-module.entry.js.map +1 -1
  26. package/dist/esm/voice-input-module.js +3 -4
  27. package/dist/esm/voice-input-module.js.map +1 -1
  28. package/dist/types/components/voice-input-module/voice-input-module.d.ts +4 -0
  29. package/dist/types/types/form-schema.types.d.ts +1 -0
  30. package/dist/voice-input-module/loader.esm.js.map +1 -1
  31. package/dist/voice-input-module/p-a7QWC-5I.js +3 -0
  32. package/dist/voice-input-module/p-a7QWC-5I.js.map +1 -0
  33. package/dist/voice-input-module/{p-a5eeaf1c.entry.js → p-ba3d83d1.entry.js} +2 -2
  34. package/dist/voice-input-module/p-f14c05d0.entry.js +3 -0
  35. package/dist/voice-input-module/p-f14c05d0.entry.js.map +1 -0
  36. package/dist/voice-input-module/voice-input-module.css +6 -0
  37. package/dist/voice-input-module/voice-input-module.entry.esm.js.map +1 -1
  38. package/dist/voice-input-module/voice-input-module.esm.js +1 -1
  39. package/dist/voice-input-module/voice-input-module.esm.js.map +1 -1
  40. package/package.json +1 -1
  41. package/www/build/loader.esm.js.map +1 -1
  42. package/www/build/p-4e26fbbb.js +2 -0
  43. package/www/build/p-6cd2a3a1.css +6 -0
  44. package/www/build/p-a7QWC-5I.js +3 -0
  45. package/www/build/p-a7QWC-5I.js.map +1 -0
  46. package/www/build/{p-a5eeaf1c.entry.js → p-ba3d83d1.entry.js} +2 -2
  47. package/www/build/p-f14c05d0.entry.js +3 -0
  48. package/www/build/p-f14c05d0.entry.js.map +1 -0
  49. package/www/build/voice-input-module.css +6 -0
  50. package/www/build/voice-input-module.entry.esm.js.map +1 -1
  51. package/www/build/voice-input-module.esm.js +1 -1
  52. package/www/build/voice-input-module.esm.js.map +1 -1
  53. package/www/index.html +9 -9
  54. package/dist/cjs/app-globals-V2Kpy_OQ.js +0 -8
  55. package/dist/cjs/app-globals-V2Kpy_OQ.js.map +0 -1
  56. package/dist/cjs/index-BTSzTkSZ.js.map +0 -1
  57. package/dist/esm/app-globals-DQuL1Twl.js +0 -6
  58. package/dist/esm/app-globals-DQuL1Twl.js.map +0 -1
  59. package/dist/esm/index-jmc2yzBp.js.map +0 -1
  60. package/dist/voice-input-module/p-DQuL1Twl.js +0 -2
  61. package/dist/voice-input-module/p-DQuL1Twl.js.map +0 -1
  62. package/dist/voice-input-module/p-b3bf4feb.entry.js +0 -3
  63. package/dist/voice-input-module/p-b3bf4feb.entry.js.map +0 -1
  64. package/dist/voice-input-module/p-jmc2yzBp.js +0 -3
  65. package/dist/voice-input-module/p-jmc2yzBp.js.map +0 -1
  66. package/www/build/p-3aeb495d.js +0 -2
  67. package/www/build/p-DQuL1Twl.js +0 -2
  68. package/www/build/p-DQuL1Twl.js.map +0 -1
  69. package/www/build/p-b3bf4feb.entry.js +0 -3
  70. package/www/build/p-b3bf4feb.entry.js.map +0 -1
  71. package/www/build/p-jmc2yzBp.js +0 -3
  72. package/www/build/p-jmc2yzBp.js.map +0 -1
  73. /package/dist/voice-input-module/{p-a5eeaf1c.entry.js.map → p-ba3d83d1.entry.js.map} +0 -0
  74. /package/www/build/{p-a5eeaf1c.entry.js.map → p-ba3d83d1.entry.js.map} +0 -0
@@ -1,2 +1,2 @@
1
- import{p as e,b as i}from"./p-jmc2yzBp.js";export{s as setNonce}from"./p-jmc2yzBp.js";import{g as o}from"./p-DQuL1Twl.js";var r=()=>{const i=import.meta.url;const o={};if(i!==""){o.resourcesUrl=new URL(".",i).href}return e(o)};r().then((async e=>{await o();return i([["p-a5eeaf1c",[[257,"ocr-file-uploader",{batch:[4],callback:[16],jsonSchema:[1,"json-schema"],theme:[1],parsedTheme:[32]},null,{theme:["parseTheme"]}]]],["p-b3bf4feb",[[257,"voice-input-module",{formJson:[1,"form-json"],serviceConfig:[1,"service-config"],apiKey:[1,"api-key"],apiProxyUrl:[1,"api-proxy-url"],transcriptionModel:[1,"transcription-model"],completionModel:[1,"completion-model"],transcriptionProvider:[1,"transcription-provider"],completionProvider:[1,"completion-provider"],context:[1],classificationRootUrl:[1,"classification-root-url"],language:[1],inputTypes:[1,"input-types"],theme:[1],debug:[4],renderForm:[4,"render-form"],displayStatus:[4,"display-status"],isRecording:[32],isProcessing:[32],statusMessage:[32],hasError:[32],hasTransientError:[32],transcription:[32],filledData:[32],debugInfo:[32],isReadonlyMode:[32],isInitializing:[32],convertXmlToJson:[64],convertJsonToXml:[64],convertXmlToJsonLegacy:[64],convertJsonToXmlLegacy:[64]},null,{formJson:["initializeServices"],serviceConfig:["initializeServices"],theme:["initializeServices"],transcriptionProvider:["initializeServices"],completionProvider:["initializeServices"],transcriptionModel:["initializeServices"],completionModel:["initializeServices"]}]]]],e)}));
1
+ import{p as e,g as i,b as o}from"./p-a7QWC-5I.js";export{s as setNonce}from"./p-a7QWC-5I.js";var r=()=>{const i=import.meta.url;const o={};if(i!==""){o.resourcesUrl=new URL(".",i).href}return e(o)};r().then((async e=>{await i();return o([["p-ba3d83d1",[[257,"ocr-file-uploader",{batch:[4],callback:[16],jsonSchema:[1,"json-schema"],theme:[1],parsedTheme:[32]},null,{theme:["parseTheme"]}]]],["p-f14c05d0",[[257,"voice-input-module",{formJson:[1,"form-json"],serviceConfig:[1,"service-config"],apiKey:[1,"api-key"],apiProxyUrl:[1,"api-proxy-url"],transcriptionModel:[1,"transcription-model"],completionModel:[1,"completion-model"],transcriptionProvider:[1,"transcription-provider"],completionProvider:[1,"completion-provider"],context:[1],classificationRootUrl:[1,"classification-root-url"],language:[1],inputTypes:[1,"input-types"],theme:[1],debug:[4],renderForm:[4,"render-form"],displayStatus:[4,"display-status"],isRecording:[32],isProcessing:[32],statusMessage:[32],hasError:[32],hasTransientError:[32],transcription:[32],filledData:[32],confidenceScores:[32],debugInfo:[32],isReadonlyMode:[32],isInitializing:[32],convertXmlToJson:[64],convertJsonToXml:[64],convertXmlToJsonLegacy:[64],convertJsonToXmlLegacy:[64]},null,{formJson:["initializeServices"],serviceConfig:["initializeServices"],theme:["initializeServices"],transcriptionProvider:["initializeServices"],completionProvider:["initializeServices"],transcriptionModel:["initializeServices"],completionModel:["initializeServices"]}]]]],e)}));
2
2
  //# sourceMappingURL=voice-input-module.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"voice-input-module.esm.js","sources":["node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.36.2 | MIT Licensed | https://stenciljs.com\n */\n\n// src/client/client-patch-browser.ts\nimport { BUILD, NAMESPACE } from \"@stencil/core/internal/app-data\";\nimport { consoleDevInfo, H, promiseResolve, win } from \"@stencil/core\";\nvar patchBrowser = () => {\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo(\"Running in development mode.\");\n }\n if (BUILD.cloneNodeFix) {\n patchCloneNodeFix(H.prototype);\n }\n const scriptElm = BUILD.scriptDataOpts ? win.document && Array.from(win.document.querySelectorAll(\"script\")).find(\n (s) => new RegExp(`/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) || s.getAttribute(\"data-stencil-namespace\") === NAMESPACE\n ) : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})[\"data-opts\"] || {} : {};\n if (importMeta !== \"\") {\n opts.resourcesUrl = new URL(\".\", importMeta).href;\n }\n return promiseResolve(opts);\n};\nvar patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function(deep) {\n if (this.nodeName === \"TEMPLATE\") {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport {\n patchBrowser\n};\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(async (options) => {\n await globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"names":[],"mappings":";;;;AAAA;AACA;AACA;;AAKA,IAAI,YAAY,GAAG,MAAM;AAUzB,EAAE,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG;AACpC,EAAE,MAAM,IAAI,GAAiE,EAAE;AAC/E,EAAE,IAAI,UAAU,KAAK,EAAE,EAAE;AACzB,IAAI,IAAI,CAAC,YAAY,GAAG,IAAI,GAAG,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC,IAAI;AACrD;AACA,EAAE,OAAO,cAAc,CAAC,IAAI,CAAC;AAC7B,CAAC;;ACnBD,YAAY,EAAE,CAAC,IAAI,CAAC,OAAO,OAAO,KAAK;AACvC,EAAE,MAAM,aAAa,EAAE;AACvB,EAAE,OAAO,aAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC;AAC7D,CAAC,CAAC","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"voice-input-module.esm.js","sources":["node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.36.2 | MIT Licensed | https://stenciljs.com\n */\n\n// src/client/client-patch-browser.ts\nimport { BUILD, NAMESPACE } from \"@stencil/core/internal/app-data\";\nimport { consoleDevInfo, H, promiseResolve, win } from \"@stencil/core\";\nvar patchBrowser = () => {\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo(\"Running in development mode.\");\n }\n if (BUILD.cloneNodeFix) {\n patchCloneNodeFix(H.prototype);\n }\n const scriptElm = BUILD.scriptDataOpts ? win.document && Array.from(win.document.querySelectorAll(\"script\")).find(\n (s) => new RegExp(`/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) || s.getAttribute(\"data-stencil-namespace\") === NAMESPACE\n ) : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})[\"data-opts\"] || {} : {};\n if (importMeta !== \"\") {\n opts.resourcesUrl = new URL(\".\", importMeta).href;\n }\n return promiseResolve(opts);\n};\nvar patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function(deep) {\n if (this.nodeName === \"TEMPLATE\") {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport {\n patchBrowser\n};\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(async (options) => {\n await globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"names":[],"mappings":";;;AAAA;AACA;AACA;;AAKA,IAAI,YAAY,GAAG,MAAM;AAUzB,EAAE,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG;AACpC,EAAE,MAAM,IAAI,GAAiE,EAAE;AAC/E,EAAE,IAAI,UAAU,KAAK,EAAE,EAAE;AACzB,IAAI,IAAI,CAAC,YAAY,GAAG,IAAI,GAAG,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC,IAAI;AACrD;AACA,EAAE,OAAO,cAAc,CAAC,IAAI,CAAC;AAC7B,CAAC;;ACnBD,YAAY,EAAE,CAAC,IAAI,CAAC,OAAO,OAAO,KAAK;AACvC,EAAE,MAAM,aAAa,EAAE;AACvB,EAAE,OAAO,aAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC;AAC7D,CAAC,CAAC","x_google_ignoreList":[0]}
package/www/index.html CHANGED
@@ -1,4 +1,4 @@
1
- <!doctype html><html dir="ltr" lang="en"><head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0"> <title>Voice Input Module Demo</title> <link rel="modulepreload" href="/build/p-3aeb495d.js"><script type="module" src="/build/p-3aeb495d.js" data-stencil data-resources-url="/build/" data-stencil-namespace="voice-input-module"></script> <script nomodule="" src="/build/voice-input-module.js" data-stencil></script> <script type="module">
1
+ <!doctype html><html dir="ltr" lang="en"><head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0"> <title>Voice Input Module Demo</title> <link rel="modulepreload" href="/build/p-4e26fbbb.js"><script type="module" src="/build/p-4e26fbbb.js" data-stencil data-resources-url="/build/" data-stencil-namespace="voice-input-module"></script> <script nomodule="" src="/build/voice-input-module.js" data-stencil></script> <script type="module">
2
2
  import { config } from '/config.js';
3
3
  window.APP_CONFIG = config;
4
4
 
@@ -28,10 +28,10 @@
28
28
  component.setAttribute('classification-root-url', 'http://localhost:8888');
29
29
  component.setAttribute('input-types', "['voice', 'ocr', 'audio']");
30
30
 
31
- component.setAttribute('transcription-provider', "mistral");
32
- component.setAttribute('completion-provider', "mistral");
33
- component.setAttribute('transcription-model', "voxtral-mini-latest");
34
- component.setAttribute('completion-model', "mistral-large-latest");
31
+ // component.setAttribute('transcription-provider', "mistral");
32
+ // component.setAttribute('completion-provider', "mistral");
33
+ // component.setAttribute('transcription-model', "voxtral-mini-latest");
34
+ // component.setAttribute('completion-model', "mistral-large-latest");
35
35
 
36
36
  // Pas de thème = couleurs par défaut (rouge/bleu/vert)
37
37
 
@@ -56,10 +56,10 @@
56
56
  componentFr.setAttribute('classification-root-url', 'http://localhost:8888');
57
57
  componentFr.setAttribute('input-types', "['voice', 'ocr', 'audio']");
58
58
 
59
- componentFr.setAttribute('transcription-provider', "mistral");
60
- componentFr.setAttribute('completion-provider', "mistral");
61
- componentFr.setAttribute('transcription-model', "voxtral-mini-latest");
62
- componentFr.setAttribute('completion-model', "mistral-large-latest");
59
+ // componentFr.setAttribute('transcription-provider', "mistral");
60
+ // componentFr.setAttribute('completion-provider', "mistral");
61
+ // componentFr.setAttribute('transcription-model', "voxtral-mini-latest");
62
+ // componentFr.setAttribute('completion-model', "mistral-large-latest");
63
63
 
64
64
  containerFr.appendChild(componentFr);
65
65
 
@@ -1,8 +0,0 @@
1
- 'use strict';
2
-
3
- const globalScripts = () => {};
4
-
5
- exports.globalScripts = globalScripts;
6
- //# sourceMappingURL=app-globals-V2Kpy_OQ.js.map
7
-
8
- //# sourceMappingURL=app-globals-V2Kpy_OQ.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"app-globals-V2Kpy_OQ.js","sources":["@stencil/core/internal/app-globals"],"sourcesContent":["export const globalScripts = () => {};\nexport const globalStyles = \"\";\n"],"names":[],"mappings":";;AAAY,MAAC,aAAa,GAAG,MAAM;;;;"}