@corti/dictation-web 0.1.14 → 0.1.15
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/bundle.js +1 -1
- package/dist/constants.js +1 -1
- package/dist/constants.js.map +1 -1
- package/dist/styles/theme.js +49 -49
- package/dist/styles/theme.js.map +1 -1
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
package/dist/bundle.js
CHANGED
|
@@ -1002,7 +1002,7 @@ var SelectStyles = i`
|
|
|
1002
1002
|
var select_default = SelectStyles;
|
|
1003
1003
|
|
|
1004
1004
|
// dist/constants.js
|
|
1005
|
-
var LANGUAGES_SUPPORTED = ["en", "en-GB", "da", "de", "fr", "
|
|
1005
|
+
var LANGUAGES_SUPPORTED = ["en", "en-GB", "da", "de", "fr", "sv"];
|
|
1006
1006
|
var DEFAULT_DICTATION_CONFIG = {
|
|
1007
1007
|
primaryLanguage: "en",
|
|
1008
1008
|
interimResults: true,
|
package/dist/constants.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export const LANGUAGES_SUPPORTED = ['en', 'en-GB', 'da', 'de', 'fr', '
|
|
1
|
+
export const LANGUAGES_SUPPORTED = ['en', 'en-GB', 'da', 'de', 'fr', 'sv'];
|
|
2
2
|
export const DEFAULT_DICTATION_CONFIG = {
|
|
3
3
|
primaryLanguage: 'en',
|
|
4
4
|
interimResults: true,
|
package/dist/constants.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAE,CAAC;AAC5E,MAAM,CAAC,MAAM,wBAAwB,GAAoB;IACvD,eAAe,EAAE,IAAI;IACrB,cAAc,EAAE,IAAI;IACpB,iBAAiB,EAAE,IAAI;IACvB,oBAAoB,EAAE,IAAI;CAC3B,CAAC","sourcesContent":["import { DictationConfig } from './types.js';\n\nexport const LANGUAGES_SUPPORTED = ['en', 'en-GB', 'da', 'de', 'fr', 'sv' ];\nexport const DEFAULT_DICTATION_CONFIG: DictationConfig = {\n primaryLanguage: 'en',\n interimResults: true,\n spokenPunctuation: true,\n automaticPunctuation: true,\n};\n"]}
|
package/dist/styles/theme.js
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
1
|
import { css } from 'lit';
|
|
2
|
-
const ThemeStyles = css `
|
|
3
|
-
:host {
|
|
4
|
-
color-scheme: light dark;
|
|
5
|
-
/* Component Defaults */
|
|
6
|
-
--component-font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, Cantarell, Ubuntu, roboto, noto, helvetica, arial, sans-serif;
|
|
7
|
-
--component-text-color: light-dark(#333, #eee);
|
|
8
|
-
|
|
9
|
-
/* Card Defaults */
|
|
10
|
-
--card-background: light-dark(#fff, #333);
|
|
11
|
-
--card-border-color: light-dark(#ddd, #555);
|
|
12
|
-
--card-padding: 4px;
|
|
13
|
-
--card-border-radius: 8px;
|
|
14
|
-
--card-inner-border-radius: 6px;
|
|
15
|
-
--card-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
|
|
16
|
-
|
|
17
|
-
/* Actions Defaults */
|
|
18
|
-
--action-plain-border-color: light-dark(#ccc, #555);
|
|
19
|
-
--action-plain-background-hover: light-dark(#ddd, #444);
|
|
20
|
-
|
|
21
|
-
--action-accent-background: light-dark(#007bff, #0056b3);
|
|
22
|
-
--action-accent-background-hover: light-dark(#0056b3, #003d80);
|
|
23
|
-
--action-accent-text-color: #fff;
|
|
24
|
-
|
|
25
|
-
--action-red-background: light-dark(#dc3545, #bd2130);
|
|
26
|
-
--action-red-background-hover: light-dark(#bd2130, #a71c24);
|
|
27
|
-
--action-red-text-color: #fff;
|
|
28
|
-
|
|
29
|
-
/* Callout Defaults */
|
|
30
|
-
--callout-info-background: light-dark(#007bff33, #0056b333);
|
|
31
|
-
--callout-info-border: light-dark(#007bff99, #0056b399);
|
|
32
|
-
--callout-info-text: light-dark(#007bff, #0056b3);
|
|
33
|
-
|
|
34
|
-
--callout-error-background: light-dark(#dc354533, #bd213033);
|
|
35
|
-
--callout-error-border: light-dark(#dc354599, #bd213099);
|
|
36
|
-
--callout-error-text: light-dark(#dc3545, #bd2130);
|
|
37
|
-
|
|
38
|
-
--callout-warn-background: light-dark(#fd7e1433, #e06c1233);
|
|
39
|
-
--callout-warn-border: light-dark(#fd7e1499, #e06c1299);
|
|
40
|
-
--callout-warn-text: light-dark(#fd7e14, #e06c12);
|
|
41
|
-
|
|
42
|
-
/* Visualiser Defaults */
|
|
43
|
-
--visualiser-background: light-dark(#e0e0e0, #fff);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
:host {
|
|
47
|
-
box-sizing: border-box;
|
|
48
|
-
font-family: var(--component-font-family);
|
|
49
|
-
color: var(--component-text-color);
|
|
50
|
-
}
|
|
2
|
+
const ThemeStyles = css `
|
|
3
|
+
:host {
|
|
4
|
+
color-scheme: light dark;
|
|
5
|
+
/* Component Defaults */
|
|
6
|
+
--component-font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, Cantarell, Ubuntu, roboto, noto, helvetica, arial, sans-serif;
|
|
7
|
+
--component-text-color: light-dark(#333, #eee);
|
|
8
|
+
|
|
9
|
+
/* Card Defaults */
|
|
10
|
+
--card-background: light-dark(#fff, #333);
|
|
11
|
+
--card-border-color: light-dark(#ddd, #555);
|
|
12
|
+
--card-padding: 4px;
|
|
13
|
+
--card-border-radius: 8px;
|
|
14
|
+
--card-inner-border-radius: 6px;
|
|
15
|
+
--card-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
|
|
16
|
+
|
|
17
|
+
/* Actions Defaults */
|
|
18
|
+
--action-plain-border-color: light-dark(#ccc, #555);
|
|
19
|
+
--action-plain-background-hover: light-dark(#ddd, #444);
|
|
20
|
+
|
|
21
|
+
--action-accent-background: light-dark(#007bff, #0056b3);
|
|
22
|
+
--action-accent-background-hover: light-dark(#0056b3, #003d80);
|
|
23
|
+
--action-accent-text-color: #fff;
|
|
24
|
+
|
|
25
|
+
--action-red-background: light-dark(#dc3545, #bd2130);
|
|
26
|
+
--action-red-background-hover: light-dark(#bd2130, #a71c24);
|
|
27
|
+
--action-red-text-color: #fff;
|
|
28
|
+
|
|
29
|
+
/* Callout Defaults */
|
|
30
|
+
--callout-info-background: light-dark(#007bff33, #0056b333);
|
|
31
|
+
--callout-info-border: light-dark(#007bff99, #0056b399);
|
|
32
|
+
--callout-info-text: light-dark(#007bff, #0056b3);
|
|
33
|
+
|
|
34
|
+
--callout-error-background: light-dark(#dc354533, #bd213033);
|
|
35
|
+
--callout-error-border: light-dark(#dc354599, #bd213099);
|
|
36
|
+
--callout-error-text: light-dark(#dc3545, #bd2130);
|
|
37
|
+
|
|
38
|
+
--callout-warn-background: light-dark(#fd7e1433, #e06c1233);
|
|
39
|
+
--callout-warn-border: light-dark(#fd7e1499, #e06c1299);
|
|
40
|
+
--callout-warn-text: light-dark(#fd7e14, #e06c12);
|
|
41
|
+
|
|
42
|
+
/* Visualiser Defaults */
|
|
43
|
+
--visualiser-background: light-dark(#e0e0e0, #fff);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
:host {
|
|
47
|
+
box-sizing: border-box;
|
|
48
|
+
font-family: var(--component-font-family);
|
|
49
|
+
color: var(--component-text-color);
|
|
50
|
+
}
|
|
51
51
|
`;
|
|
52
52
|
export default ThemeStyles;
|
|
53
53
|
//# sourceMappingURL=theme.js.map
|
package/dist/styles/theme.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.js","sourceRoot":"","sources":["../../src/styles/theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,WAAW,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiDtB,CAAC;AAEF,eAAe,WAAW,CAAC","sourcesContent":["import { css } from 'lit';\
|
|
1
|
+
{"version":3,"file":"theme.js","sourceRoot":"","sources":["../../src/styles/theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,WAAW,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiDtB,CAAC;AAEF,eAAe,WAAW,CAAC","sourcesContent":["import { css } from 'lit';\n\nconst ThemeStyles = css`\n :host {\n color-scheme: light dark;\n /* Component Defaults */\n --component-font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, Cantarell, Ubuntu, roboto, noto, helvetica, arial, sans-serif;\n --component-text-color: light-dark(#333, #eee);\n\n /* Card Defaults */\n --card-background: light-dark(#fff, #333);\n --card-border-color: light-dark(#ddd, #555);\n --card-padding: 4px;\n --card-border-radius: 8px;\n --card-inner-border-radius: 6px;\n --card-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);\n\n /* Actions Defaults */\n --action-plain-border-color: light-dark(#ccc, #555);\n --action-plain-background-hover: light-dark(#ddd, #444);\n\n --action-accent-background: light-dark(#007bff, #0056b3);\n --action-accent-background-hover: light-dark(#0056b3, #003d80);\n --action-accent-text-color: #fff;\n\n --action-red-background: light-dark(#dc3545, #bd2130);\n --action-red-background-hover: light-dark(#bd2130, #a71c24);\n --action-red-text-color: #fff;\n\n /* Callout Defaults */\n --callout-info-background: light-dark(#007bff33, #0056b333);\n --callout-info-border: light-dark(#007bff99, #0056b399);\n --callout-info-text: light-dark(#007bff, #0056b3);\n\n --callout-error-background: light-dark(#dc354533, #bd213033);\n --callout-error-border: light-dark(#dc354599, #bd213099);\n --callout-error-text: light-dark(#dc3545, #bd2130);\n\n --callout-warn-background: light-dark(#fd7e1433, #e06c1233);\n --callout-warn-border: light-dark(#fd7e1499, #e06c1299);\n --callout-warn-text: light-dark(#fd7e14, #e06c12);\n\n /* Visualiser Defaults */\n --visualiser-background: light-dark(#e0e0e0, #fff);\n }\n\n :host {\n box-sizing: border-box;\n font-family: var(--component-font-family);\n color: var(--component-text-color);\n }\n`;\n\nexport default ThemeStyles;\n"]}
|
package/dist/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"","sourcesContent":["export type RecordingState =\
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"","sourcesContent":["export type RecordingState =\n | 'initializing'\n | 'recording'\n | 'stopping'\n | 'stopped';\n\ninterface CommandVariable {\n key: string;\n type: 'enum' | 'string';\n enum?: string[];\n}\n\nexport interface Command {\n id: string;\n phrases: string[];\n variables?: CommandVariable[];\n}\n\nexport interface DictationConfig {\n primaryLanguage: string;\n interimResults: boolean;\n spokenPunctuation: boolean;\n automaticPunctuation: boolean;\n model?: string;\n commands?: Command[];\n}\n\nexport type PartialDictationConfig = Partial<DictationConfig>;\n\nexport interface ServerConfig {\n environment: string;\n tenant: string;\n accessToken: string;\n}\n"]}
|