@corti/dictation-web 0.1.10 → 0.1.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.
- package/dist/bundle.js +1 -1
- package/dist/styles/theme.js +49 -49
- package/dist/styles/theme.js.map +1 -1
- package/package.json +117 -117
package/dist/bundle.js
CHANGED
|
@@ -1419,7 +1419,7 @@ var ThemeStyles = i`
|
|
|
1419
1419
|
:host {
|
|
1420
1420
|
color-scheme: light dark;
|
|
1421
1421
|
/* Component Defaults */
|
|
1422
|
-
--component-font-family:
|
|
1422
|
+
--component-font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, Cantarell, Ubuntu, roboto, noto, helvetica, arial, sans-serif;
|
|
1423
1423
|
--component-text-color: light-dark(#333, #eee);
|
|
1424
1424
|
|
|
1425
1425
|
/* Card Defaults */
|
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:
|
|
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';\n\nconst ThemeStyles = css`\n :host {\n color-scheme: light dark;\n /* Component Defaults */\n --component-font-family:
|
|
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';\r\n\r\nconst ThemeStyles = css`\r\n :host {\r\n color-scheme: light dark;\r\n /* Component Defaults */\r\n --component-font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, Cantarell, Ubuntu, roboto, noto, helvetica, arial, sans-serif;\r\n --component-text-color: light-dark(#333, #eee);\r\n\r\n /* Card Defaults */\r\n --card-background: light-dark(#fff, #333);\r\n --card-border-color: light-dark(#ddd, #555);\r\n --card-padding: 4px;\r\n --card-border-radius: 8px;\r\n --card-inner-border-radius: 6px;\r\n --card-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);\r\n\r\n /* Actions Defaults */\r\n --action-plain-border-color: light-dark(#ccc, #555);\r\n --action-plain-background-hover: light-dark(#ddd, #444);\r\n\r\n --action-accent-background: light-dark(#007bff, #0056b3);\r\n --action-accent-background-hover: light-dark(#0056b3, #003d80);\r\n --action-accent-text-color: #fff;\r\n\r\n --action-red-background: light-dark(#dc3545, #bd2130);\r\n --action-red-background-hover: light-dark(#bd2130, #a71c24);\r\n --action-red-text-color: #fff;\r\n\r\n /* Callout Defaults */\r\n --callout-info-background: light-dark(#007bff33, #0056b333);\r\n --callout-info-border: light-dark(#007bff99, #0056b399);\r\n --callout-info-text: light-dark(#007bff, #0056b3);\r\n\r\n --callout-error-background: light-dark(#dc354533, #bd213033);\r\n --callout-error-border: light-dark(#dc354599, #bd213099);\r\n --callout-error-text: light-dark(#dc3545, #bd2130);\r\n\r\n --callout-warn-background: light-dark(#fd7e1433, #e06c1233);\r\n --callout-warn-border: light-dark(#fd7e1499, #e06c1299);\r\n --callout-warn-text: light-dark(#fd7e14, #e06c12);\r\n\r\n /* Visualiser Defaults */\r\n --visualiser-background: light-dark(#e0e0e0, #fff);\r\n }\r\n\r\n :host {\r\n box-sizing: border-box;\r\n font-family: var(--component-font-family);\r\n color: var(--component-text-color);\r\n }\r\n`;\r\n\r\nexport default ThemeStyles;\r\n"]}
|
package/package.json
CHANGED
|
@@ -1,117 +1,117 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@corti/dictation-web",
|
|
3
|
-
"description": "Web component for Corti Dictation",
|
|
4
|
-
"author": "Corti ApS",
|
|
5
|
-
"version": "0.1.
|
|
6
|
-
"license": "MIT",
|
|
7
|
-
"type": "module",
|
|
8
|
-
"main": "dist/index.js",
|
|
9
|
-
"module": "dist/index.js",
|
|
10
|
-
"exports": {
|
|
11
|
-
"import": "./dist/index.js",
|
|
12
|
-
"default": "./dist/bundle.js"
|
|
13
|
-
},
|
|
14
|
-
"jsdelivr": "./dist/bundle.js",
|
|
15
|
-
"files": [
|
|
16
|
-
"dist"
|
|
17
|
-
],
|
|
18
|
-
"bugs": {
|
|
19
|
-
"url": "https://help.corti.app",
|
|
20
|
-
"email": "help@corti.ai"
|
|
21
|
-
},
|
|
22
|
-
"repository": "github:corticph/dictation-web-sdk",
|
|
23
|
-
"homepage": "https://help.corti.app/en/articles/10714657-introducing-the-corti-dictation-browser-sdk",
|
|
24
|
-
"keywords": [
|
|
25
|
-
"corti",
|
|
26
|
-
"dictation",
|
|
27
|
-
"web",
|
|
28
|
-
"sdk",
|
|
29
|
-
"speech",
|
|
30
|
-
"recognition",
|
|
31
|
-
"transcription",
|
|
32
|
-
"audio",
|
|
33
|
-
"medical",
|
|
34
|
-
"healthcare"
|
|
35
|
-
],
|
|
36
|
-
"scripts": {
|
|
37
|
-
"analyze": "cem analyze --litelement",
|
|
38
|
-
"build": "tsc && npm run analyze -- --exclude dist",
|
|
39
|
-
"build:bundle": "esbuild dist/index.js --bundle --outfile=dist/bundle.js --format=esm --platform=browser",
|
|
40
|
-
"release": "npm run build && npm run build:bundle && npm publish --access public",
|
|
41
|
-
"start": "npm run build && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"web-dev-server\"",
|
|
42
|
-
"prepublish": "tsc && npm run analyze -- --exclude dist",
|
|
43
|
-
"lint": "eslint --ext .ts,.tsx src --ignore-path .gitignore && prettier \"src/**/*.ts\" --check --ignore-path .gitignore",
|
|
44
|
-
"format": "eslint --ext .ts,.tsx src --fix --ignore-path .gitignore && prettier \"src/**/*.ts\" --write --ignore-path .gitignore",
|
|
45
|
-
"prepare": "husky && husky install",
|
|
46
|
-
"test": "tsc && wtr --coverage",
|
|
47
|
-
"test:watch": "tsc && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"wtr --watch\"",
|
|
48
|
-
"storybook": "tsc && npm run analyze -- --exclude dist && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"storybook dev -p 8080\"",
|
|
49
|
-
"storybook:build": "tsc && npm run analyze -- --exclude dist && storybook build"
|
|
50
|
-
},
|
|
51
|
-
"dependencies": {
|
|
52
|
-
"lit": "^3.1.4"
|
|
53
|
-
},
|
|
54
|
-
"devDependencies": {
|
|
55
|
-
"@custom-elements-manifest/analyzer": "^0.10.3",
|
|
56
|
-
"@open-wc/eslint-config": "^12.0.3",
|
|
57
|
-
"@open-wc/testing": "^4.0.0",
|
|
58
|
-
"@storybook/addon-a11y": "^7.6.20",
|
|
59
|
-
"@storybook/addon-essentials": "^7.6.20",
|
|
60
|
-
"@storybook/addon-links": "^7.6.20",
|
|
61
|
-
"@storybook/web-components": "^7.6.20",
|
|
62
|
-
"@types/mocha": "^10.0.7",
|
|
63
|
-
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
|
64
|
-
"@typescript-eslint/parser": "^7.18.0",
|
|
65
|
-
"@web/dev-server": "^0.4.6",
|
|
66
|
-
"@web/storybook-builder": "^0.1.16",
|
|
67
|
-
"@web/storybook-framework-web-components": "^0.1.2",
|
|
68
|
-
"@web/test-runner": "^0.18.2",
|
|
69
|
-
"concurrently": "^8.2.2",
|
|
70
|
-
"esbuild": "^0.25.0",
|
|
71
|
-
"eslint": "^8.57.0",
|
|
72
|
-
"eslint-config-prettier": "^9.1.0",
|
|
73
|
-
"eslint-plugin-html": "^8.1.2",
|
|
74
|
-
"husky": "^8.0.0",
|
|
75
|
-
"lint-staged": "^15.2.7",
|
|
76
|
-
"prettier": "^3.3.2",
|
|
77
|
-
"sinon": "^19.0.2",
|
|
78
|
-
"storybook": "^7.6.20",
|
|
79
|
-
"tslib": "^2.6.3",
|
|
80
|
-
"typescript": "^5.5.3"
|
|
81
|
-
},
|
|
82
|
-
"customElements": "custom-elements.json",
|
|
83
|
-
"eslintConfig": {
|
|
84
|
-
"parser": "@typescript-eslint/parser",
|
|
85
|
-
"extends": [
|
|
86
|
-
"@open-wc",
|
|
87
|
-
"prettier"
|
|
88
|
-
],
|
|
89
|
-
"plugins": [
|
|
90
|
-
"@typescript-eslint"
|
|
91
|
-
],
|
|
92
|
-
"rules": {
|
|
93
|
-
"no-unused-vars": "off",
|
|
94
|
-
"@typescript-eslint/no-unused-vars": [
|
|
95
|
-
"error"
|
|
96
|
-
],
|
|
97
|
-
"import/no-unresolved": "off",
|
|
98
|
-
"import/extensions": [
|
|
99
|
-
"error",
|
|
100
|
-
"always",
|
|
101
|
-
{
|
|
102
|
-
"ignorePackages": true
|
|
103
|
-
}
|
|
104
|
-
]
|
|
105
|
-
}
|
|
106
|
-
},
|
|
107
|
-
"prettier": {
|
|
108
|
-
"singleQuote": true,
|
|
109
|
-
"arrowParens": "avoid"
|
|
110
|
-
},
|
|
111
|
-
"lint-staged": {
|
|
112
|
-
"*.ts": [
|
|
113
|
-
"eslint --fix",
|
|
114
|
-
"prettier --write"
|
|
115
|
-
]
|
|
116
|
-
}
|
|
117
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@corti/dictation-web",
|
|
3
|
+
"description": "Web component for Corti Dictation",
|
|
4
|
+
"author": "Corti ApS",
|
|
5
|
+
"version": "0.1.11",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"main": "dist/index.js",
|
|
9
|
+
"module": "dist/index.js",
|
|
10
|
+
"exports": {
|
|
11
|
+
"import": "./dist/index.js",
|
|
12
|
+
"default": "./dist/bundle.js"
|
|
13
|
+
},
|
|
14
|
+
"jsdelivr": "./dist/bundle.js",
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
18
|
+
"bugs": {
|
|
19
|
+
"url": "https://help.corti.app",
|
|
20
|
+
"email": "help@corti.ai"
|
|
21
|
+
},
|
|
22
|
+
"repository": "github:corticph/dictation-web-sdk",
|
|
23
|
+
"homepage": "https://help.corti.app/en/articles/10714657-introducing-the-corti-dictation-browser-sdk",
|
|
24
|
+
"keywords": [
|
|
25
|
+
"corti",
|
|
26
|
+
"dictation",
|
|
27
|
+
"web",
|
|
28
|
+
"sdk",
|
|
29
|
+
"speech",
|
|
30
|
+
"recognition",
|
|
31
|
+
"transcription",
|
|
32
|
+
"audio",
|
|
33
|
+
"medical",
|
|
34
|
+
"healthcare"
|
|
35
|
+
],
|
|
36
|
+
"scripts": {
|
|
37
|
+
"analyze": "cem analyze --litelement",
|
|
38
|
+
"build": "tsc && npm run analyze -- --exclude dist",
|
|
39
|
+
"build:bundle": "esbuild dist/index.js --bundle --outfile=dist/bundle.js --format=esm --platform=browser",
|
|
40
|
+
"release": "npm run build && npm run build:bundle && npm publish --access public",
|
|
41
|
+
"start": "npm run build && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"web-dev-server\"",
|
|
42
|
+
"prepublish": "tsc && npm run analyze -- --exclude dist",
|
|
43
|
+
"lint": "eslint --ext .ts,.tsx src --ignore-path .gitignore && prettier \"src/**/*.ts\" --check --ignore-path .gitignore",
|
|
44
|
+
"format": "eslint --ext .ts,.tsx src --fix --ignore-path .gitignore && prettier \"src/**/*.ts\" --write --ignore-path .gitignore",
|
|
45
|
+
"prepare": "husky && husky install",
|
|
46
|
+
"test": "tsc && wtr --coverage",
|
|
47
|
+
"test:watch": "tsc && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"wtr --watch\"",
|
|
48
|
+
"storybook": "tsc && npm run analyze -- --exclude dist && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"storybook dev -p 8080\"",
|
|
49
|
+
"storybook:build": "tsc && npm run analyze -- --exclude dist && storybook build"
|
|
50
|
+
},
|
|
51
|
+
"dependencies": {
|
|
52
|
+
"lit": "^3.1.4"
|
|
53
|
+
},
|
|
54
|
+
"devDependencies": {
|
|
55
|
+
"@custom-elements-manifest/analyzer": "^0.10.3",
|
|
56
|
+
"@open-wc/eslint-config": "^12.0.3",
|
|
57
|
+
"@open-wc/testing": "^4.0.0",
|
|
58
|
+
"@storybook/addon-a11y": "^7.6.20",
|
|
59
|
+
"@storybook/addon-essentials": "^7.6.20",
|
|
60
|
+
"@storybook/addon-links": "^7.6.20",
|
|
61
|
+
"@storybook/web-components": "^7.6.20",
|
|
62
|
+
"@types/mocha": "^10.0.7",
|
|
63
|
+
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
|
64
|
+
"@typescript-eslint/parser": "^7.18.0",
|
|
65
|
+
"@web/dev-server": "^0.4.6",
|
|
66
|
+
"@web/storybook-builder": "^0.1.16",
|
|
67
|
+
"@web/storybook-framework-web-components": "^0.1.2",
|
|
68
|
+
"@web/test-runner": "^0.18.2",
|
|
69
|
+
"concurrently": "^8.2.2",
|
|
70
|
+
"esbuild": "^0.25.0",
|
|
71
|
+
"eslint": "^8.57.0",
|
|
72
|
+
"eslint-config-prettier": "^9.1.0",
|
|
73
|
+
"eslint-plugin-html": "^8.1.2",
|
|
74
|
+
"husky": "^8.0.0",
|
|
75
|
+
"lint-staged": "^15.2.7",
|
|
76
|
+
"prettier": "^3.3.2",
|
|
77
|
+
"sinon": "^19.0.2",
|
|
78
|
+
"storybook": "^7.6.20",
|
|
79
|
+
"tslib": "^2.6.3",
|
|
80
|
+
"typescript": "^5.5.3"
|
|
81
|
+
},
|
|
82
|
+
"customElements": "custom-elements.json",
|
|
83
|
+
"eslintConfig": {
|
|
84
|
+
"parser": "@typescript-eslint/parser",
|
|
85
|
+
"extends": [
|
|
86
|
+
"@open-wc",
|
|
87
|
+
"prettier"
|
|
88
|
+
],
|
|
89
|
+
"plugins": [
|
|
90
|
+
"@typescript-eslint"
|
|
91
|
+
],
|
|
92
|
+
"rules": {
|
|
93
|
+
"no-unused-vars": "off",
|
|
94
|
+
"@typescript-eslint/no-unused-vars": [
|
|
95
|
+
"error"
|
|
96
|
+
],
|
|
97
|
+
"import/no-unresolved": "off",
|
|
98
|
+
"import/extensions": [
|
|
99
|
+
"error",
|
|
100
|
+
"always",
|
|
101
|
+
{
|
|
102
|
+
"ignorePackages": true
|
|
103
|
+
}
|
|
104
|
+
]
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"prettier": {
|
|
108
|
+
"singleQuote": true,
|
|
109
|
+
"arrowParens": "avoid"
|
|
110
|
+
},
|
|
111
|
+
"lint-staged": {
|
|
112
|
+
"*.ts": [
|
|
113
|
+
"eslint --fix",
|
|
114
|
+
"prettier --write"
|
|
115
|
+
]
|
|
116
|
+
}
|
|
117
|
+
}
|