reneco-advanced-input-module 0.0.2 → 0.0.3
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.
- package/dist/cjs/app-globals-V2Kpy_OQ.js +8 -0
- package/dist/cjs/app-globals-V2Kpy_OQ.js.map +1 -0
- package/dist/cjs/index-BTSzTkSZ.js +1494 -0
- package/dist/cjs/index-BTSzTkSZ.js.map +1 -0
- package/dist/cjs/index.cjs.js +5 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +16 -0
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/ocr-file-uploader.voice-input-module.entry.cjs.js.map +1 -0
- package/dist/cjs/ocr-file-uploader_2.cjs.entry.js +4486 -0
- package/dist/cjs/ocr-file-uploader_2.cjs.entry.js.map +1 -0
- package/dist/cjs/voice-input-module.cjs.js +28 -0
- package/dist/cjs/voice-input-module.cjs.js.map +1 -0
- package/dist/collection/collection-manifest.json +19 -0
- package/dist/collection/components/voice-input-module/voice-input-module.css +327 -0
- package/dist/collection/components/voice-input-module/voice-input-module.js +1021 -0
- package/dist/collection/components/voice-input-module/voice-input-module.js.map +1 -0
- package/dist/collection/index.js +12 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/services/audio-recorder.service.js +66 -0
- package/dist/collection/services/audio-recorder.service.js.map +1 -0
- package/dist/collection/services/llm.service.js +193 -0
- package/dist/collection/services/llm.service.js.map +1 -0
- package/dist/collection/services/speech-to-text.service.js +60 -0
- package/dist/collection/services/speech-to-text.service.js.map +1 -0
- package/dist/collection/types/form-schema.types.js +2 -0
- package/dist/collection/types/form-schema.types.js.map +1 -0
- package/dist/collection/types/service-providers.types.js +2 -0
- package/dist/collection/types/service-providers.types.js.map +1 -0
- package/dist/collection/utils/schema-converter.js +422 -0
- package/dist/collection/utils/schema-converter.js.map +1 -0
- package/dist/components/index.js +4 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/ocr-file-uploader.js +9 -0
- package/dist/components/ocr-file-uploader.js.map +1 -0
- package/{www/build/ocr-file-uploader.entry.js → dist/components/ocr-file-uploader2.js} +28 -9
- package/dist/components/ocr-file-uploader2.js.map +1 -0
- package/{www/build/voice-input-module.entry.js → dist/components/voice-input-module.js} +64 -75
- package/dist/components/voice-input-module.js.map +1 -0
- package/dist/esm/app-globals-DQuL1Twl.js +6 -0
- package/dist/esm/app-globals-DQuL1Twl.js.map +1 -0
- package/dist/esm/index-jmc2yzBp.js +1487 -0
- package/dist/esm/index-jmc2yzBp.js.map +1 -0
- package/dist/esm/index.js +4 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/loader.js +14 -0
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/ocr-file-uploader.voice-input-module.entry.js.map +1 -0
- package/dist/{voice-input-module/voice-input-module.entry.js → esm/ocr-file-uploader_2.entry.js} +89 -73
- package/dist/esm/ocr-file-uploader_2.entry.js.map +1 -0
- package/dist/esm/voice-input-module.js +24 -0
- package/dist/esm/voice-input-module.js.map +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/voice-input-module/index.esm.js +0 -12
- package/dist/voice-input-module/index.esm.js.map +1 -1
- package/dist/voice-input-module/loader.esm.js.map +1 -1
- package/dist/voice-input-module/ocr-file-uploader.voice-input-module.entry.esm.js.map +1 -0
- package/dist/voice-input-module/p-37de1da2.entry.js +3 -0
- package/dist/voice-input-module/p-37de1da2.entry.js.map +1 -0
- package/dist/voice-input-module/p-DQuL1Twl.js +2 -0
- package/dist/voice-input-module/p-DQuL1Twl.js.map +1 -0
- package/dist/voice-input-module/p-jmc2yzBp.js +3 -0
- package/dist/voice-input-module/p-jmc2yzBp.js.map +1 -0
- package/dist/voice-input-module/voice-input-module.esm.js +1 -49
- package/dist/voice-input-module/voice-input-module.esm.js.map +1 -1
- package/package.json +1 -1
- package/www/build/index.esm.js +0 -12
- package/www/build/index.esm.js.map +1 -1
- package/www/build/loader.esm.js.map +1 -1
- package/www/build/ocr-file-uploader.voice-input-module.entry.esm.js.map +1 -0
- package/www/build/p-37de1da2.entry.js +3 -0
- package/www/build/p-37de1da2.entry.js.map +1 -0
- package/www/build/p-6438474d.js +2 -0
- package/www/build/p-DQuL1Twl.js +2 -0
- package/www/build/p-DQuL1Twl.js.map +1 -0
- package/www/build/p-jmc2yzBp.js +3 -0
- package/www/build/p-jmc2yzBp.js.map +1 -0
- package/www/build/voice-input-module.esm.js +1 -49
- package/www/build/voice-input-module.esm.js.map +1 -1
- package/www/index.html +2 -11
- package/dist/voice-input-module/index-Lt4F-TYq.js +0 -4334
- package/dist/voice-input-module/index-Lt4F-TYq.js.map +0 -1
- package/dist/voice-input-module/ocr-file-uploader.entry.esm.js.map +0 -1
- package/dist/voice-input-module/ocr-file-uploader.entry.js +0 -83
- package/dist/voice-input-module/ocr-file-uploader.entry.js.map +0 -1
- package/dist/voice-input-module/voice-input-module.entry.esm.js.map +0 -1
- package/dist/voice-input-module/voice-input-module.entry.js.map +0 -1
- package/www/build/index-Lt4F-TYq.js +0 -4334
- package/www/build/index-Lt4F-TYq.js.map +0 -1
- package/www/build/ocr-file-uploader.entry.esm.js.map +0 -1
- package/www/build/ocr-file-uploader.entry.js.map +0 -1
- package/www/build/voice-input-module.entry.esm.js.map +0 -1
- package/www/build/voice-input-module.entry.js.map +0 -1
|
@@ -1,50 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
export { s as setNonce } from './index-Lt4F-TYq.js';
|
|
3
|
-
|
|
4
|
-
/*
|
|
5
|
-
Stencil Client Patch Browser v4.36.2 | MIT Licensed | https://stenciljs.com
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
var patchBrowser = () => {
|
|
9
|
-
if (BUILD.isDev && !BUILD.isTesting) {
|
|
10
|
-
consoleDevInfo("Running in development mode.");
|
|
11
|
-
}
|
|
12
|
-
if (BUILD.cloneNodeFix) {
|
|
13
|
-
patchCloneNodeFix(H.prototype);
|
|
14
|
-
}
|
|
15
|
-
const scriptElm = BUILD.scriptDataOpts ? win.document && Array.from(win.document.querySelectorAll("script")).find(
|
|
16
|
-
(s) => new RegExp(`/${NAMESPACE}(\\.esm)?\\.js($|\\?|#)`).test(s.src) || s.getAttribute("data-stencil-namespace") === NAMESPACE
|
|
17
|
-
) : null;
|
|
18
|
-
const importMeta = import.meta.url;
|
|
19
|
-
const opts = BUILD.scriptDataOpts ? (scriptElm || {})["data-opts"] || {} : {};
|
|
20
|
-
if (importMeta !== "") {
|
|
21
|
-
opts.resourcesUrl = new URL(".", importMeta).href;
|
|
22
|
-
}
|
|
23
|
-
return promiseResolve(opts);
|
|
24
|
-
};
|
|
25
|
-
var patchCloneNodeFix = (HTMLElementPrototype) => {
|
|
26
|
-
const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;
|
|
27
|
-
HTMLElementPrototype.cloneNode = function(deep) {
|
|
28
|
-
if (this.nodeName === "TEMPLATE") {
|
|
29
|
-
return nativeCloneNodeFn.call(this, deep);
|
|
30
|
-
}
|
|
31
|
-
const clonedNode = nativeCloneNodeFn.call(this, false);
|
|
32
|
-
const srcChildNodes = this.childNodes;
|
|
33
|
-
if (deep) {
|
|
34
|
-
for (let i = 0; i < srcChildNodes.length; i++) {
|
|
35
|
-
if (srcChildNodes[i].nodeType !== 2) {
|
|
36
|
-
clonedNode.appendChild(srcChildNodes[i].cloneNode(true));
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
return clonedNode;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
patchBrowser().then(async (options) => {
|
|
45
|
-
await globalScripts();
|
|
46
|
-
return bootstrapLazy([["ocr-file-uploader",[[257,"ocr-file-uploader",{"batch":[4],"callback":[16],"jsonSchema":[1,"json-schema"]}]]],["voice-input-module",[[257,"voice-input-module",{"formJson":[1,"form-json"],"serviceConfig":[1,"service-config"],"apiKey":[1,"api-key"],"context":[1],"classificationRootUrl":[1,"classification-root-url"],"language":[1],"inputTypes":[1,"input-types"],"debug":[4],"renderForm":[4,"render-form"],"displayStatus":[4,"display-status"],"isRecording":[32],"isProcessing":[32],"statusMessage":[32],"hasError":[32],"transcription":[32],"filledData":[32],"debugInfo":[32],"isReadonlyMode":[32],"convertXmlToJson":[64],"convertJsonToXml":[64],"convertXmlToJsonLegacy":[64],"convertJsonToXmlLegacy":[64]},null,{"formJson":["initializeServices"],"serviceConfig":["initializeServices"]}]]]], options);
|
|
47
|
-
});
|
|
48
|
-
//# sourceMappingURL=voice-input-module.esm.js.map
|
|
49
|
-
|
|
1
|
+
import{p as o,b as e}from"./p-jmc2yzBp.js";export{s as setNonce}from"./p-jmc2yzBp.js";import{g as i}from"./p-DQuL1Twl.js";var r=()=>{const e=import.meta.url;const s={};if(e!==""){s.resourcesUrl=new URL(".",e).href}return o(s)};r().then((async o=>{await i();return e([["p-37de1da2",[[257,"voice-input-module",{formJson:[1,"form-json"],serviceConfig:[1,"service-config"],apiKey:[1,"api-key"],context:[1],classificationRootUrl:[1,"classification-root-url"],language:[1],inputTypes:[1,"input-types"],debug:[4],renderForm:[4,"render-form"],displayStatus:[4,"display-status"],isRecording:[32],isProcessing:[32],statusMessage:[32],hasError:[32],transcription:[32],filledData:[32],debugInfo:[32],isReadonlyMode:[32],convertXmlToJson:[64],convertJsonToXml:[64],convertXmlToJsonLegacy:[64],convertJsonToXmlLegacy:[64]},null,{formJson:["initializeServices"],serviceConfig:["initializeServices"]}],[257,"ocr-file-uploader",{batch:[4],callback:[16],jsonSchema:[1,"json-schema"]}]]]],o)}));
|
|
50
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":"
|
|
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> <script type="module" src="/build/
|
|
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-6438474d.js"><link rel="modulepreload" href="/build/p-jmc2yzBp.js"><script type="module" src="/build/p-6438474d.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> <style>body {
|
|
2
2
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
3
3
|
margin: 0;
|
|
4
4
|
padding: 2rem;
|
|
@@ -1659,13 +1659,4 @@
|
|
|
1659
1659
|
}
|
|
1660
1660
|
}
|
|
1661
1661
|
|
|
1662
|
-
</script>
|
|
1663
|
-
if ('serviceWorker' in navigator && location.protocol !== 'file:') {
|
|
1664
|
-
// auto-unregister service worker during dev mode
|
|
1665
|
-
navigator.serviceWorker.getRegistration().then(function(registration) {
|
|
1666
|
-
if (registration) {
|
|
1667
|
-
registration.unregister().then(function() { location.reload(true) });
|
|
1668
|
-
}
|
|
1669
|
-
});
|
|
1670
|
-
}
|
|
1671
|
-
</script></body></html>
|
|
1662
|
+
</script> </body></html>
|