@operato/ocr 1.0.0-beta.4 → 1.0.0-beta.7
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/CHANGELOG.md +214 -558
- package/dist/src/ox-ocr-helper.d.ts +1 -1
- package/dist/src/ox-ocr-helper.js +3 -2
- package/dist/src/ox-ocr-helper.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
- package/src/ox-ocr-helper.ts +4 -2
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Webcomponent ocr following open-wc recommendations",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "heartyoh@hatiolab.com",
|
|
6
|
-
"version": "1.0.0-beta.
|
|
6
|
+
"version": "1.0.0-beta.7",
|
|
7
7
|
"main": "dist/src/index.js",
|
|
8
8
|
"module": "dist/src/index.js",
|
|
9
9
|
"publishConfig": {
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"@material/mwc-button": "^0.25.3",
|
|
36
36
|
"@material/mwc-icon": "^0.25.3",
|
|
37
37
|
"@material/mwc-linear-progress": "^0.25.3",
|
|
38
|
-
"@operato/input": "^1.0.0-beta.
|
|
39
|
-
"@operato/popup": "^1.0.0-beta.
|
|
38
|
+
"@operato/input": "^1.0.0-beta.7",
|
|
39
|
+
"@operato/popup": "^1.0.0-beta.7",
|
|
40
40
|
"lit": "^2.2.1"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"prettier --write"
|
|
72
72
|
]
|
|
73
73
|
},
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "feabccbb32d6d8487d761e5c9f1d21a22ab1c34a"
|
|
75
75
|
}
|
package/src/ox-ocr-helper.ts
CHANGED
|
@@ -5,6 +5,8 @@ import './ox-ocr-result-image'
|
|
|
5
5
|
import { css, html, LitElement } from 'lit'
|
|
6
6
|
import { customElement, property, query, state } from 'lit/decorators.js'
|
|
7
7
|
|
|
8
|
+
import { copyToClipboard } from '@operato/utils'
|
|
9
|
+
|
|
8
10
|
import { NOTHING_RESULT, ScanResult } from './type'
|
|
9
11
|
|
|
10
12
|
@customElement('ox-ocr-helper')
|
|
@@ -126,7 +128,7 @@ export class OcrHelper extends LitElement {
|
|
|
126
128
|
)
|
|
127
129
|
}
|
|
128
130
|
|
|
129
|
-
onSelected(e: CustomEvent) {
|
|
130
|
-
|
|
131
|
+
async onSelected(e: CustomEvent) {
|
|
132
|
+
await copyToClipboard(e.detail)
|
|
131
133
|
}
|
|
132
134
|
}
|