@scandit/web-datacapture-core 7.6.3 → 8.0.0-beta.2

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 (244) hide show
  1. package/build/electron/main.cjs +1 -1
  2. package/build/electron/main.js +1 -1
  3. package/build/electron/preload.cjs +1 -1
  4. package/build/electron/preload.js +1 -1
  5. package/build/js/AimerViewfinder.js +1 -1
  6. package/build/js/Brush.js +1 -1
  7. package/build/js/Camera-CZ0Hl7v2.d.ts +213 -0
  8. package/build/js/Camera.d.ts +2 -20
  9. package/build/js/Camera.js +1 -1
  10. package/build/js/CameraRelated.d.ts +2 -20
  11. package/build/js/CameraRelated.js +1 -1
  12. package/build/js/{Camera-C1Hz9V3G.d.ts → DataCaptureContext-BBrGFudj.d.ts} +661 -926
  13. package/build/js/DataCaptureContext.d.ts +11 -6
  14. package/build/js/DataCaptureContext.js +1 -1
  15. package/build/js/DataCaptureContextRelated.d.ts +12 -7
  16. package/build/js/DataCaptureVersion.js +1 -1
  17. package/build/js/DataCaptureView.d.ts +11 -6
  18. package/build/js/DataCaptureView.js +1 -1
  19. package/build/js/Defaults.d.ts +2 -19
  20. package/build/js/Defaults.js +1 -1
  21. package/build/js/Feedback.js +1 -1
  22. package/build/js/FrameData.d.ts +12 -7
  23. package/build/js/ImageFrameSource.d.ts +2 -20
  24. package/build/js/ImageFrameSource.js +1 -1
  25. package/build/js/LaserlineViewfinder.js +1 -1
  26. package/build/js/NotificationPresenter/index.d.ts +10 -5
  27. package/build/js/NotificationPresenter/private/ConcreteNotificationPresenter.d.ts +13 -8
  28. package/build/js/NotificationPresenter/private/presets.d.ts +13 -8
  29. package/build/js/RectangularViewfinder.js +1 -1
  30. package/build/js/ScanditIcon.js +1 -1
  31. package/build/js/ScanditIconBuilder.js +1 -1
  32. package/build/js/SingleImageUploader.d.ts +2 -20
  33. package/build/js/SingleImageUploader.js +1 -1
  34. package/build/js/SingleImageUploaderSettings.js +1 -1
  35. package/build/js/Sound.js +1 -1
  36. package/build/js/Vibration.js +1 -1
  37. package/build/js/browserHelper.js +1 -1
  38. package/build/js/chunks/{chunk-7ELPJFJV.js → chunk-25EQ6RFI.js} +1 -1
  39. package/build/js/chunks/chunk-2BBQRPKY.js +1 -0
  40. package/build/js/chunks/chunk-2EY4FBA3.js +1 -0
  41. package/build/js/chunks/{chunk-6NVWG2LP.js → chunk-36CF5U7R.js} +1 -1
  42. package/build/js/chunks/chunk-3HOGSYPB.js +1 -0
  43. package/build/js/chunks/{chunk-GC2ECHKL.js → chunk-3KWRROUJ.js} +1 -1
  44. package/build/js/chunks/chunk-4GP73VVU.js +97 -0
  45. package/build/js/chunks/{chunk-VW3DMTE7.js → chunk-4Y7Q64OZ.js} +1 -1
  46. package/build/js/chunks/{chunk-ZE2WH3AH.js → chunk-4ZAHOKYN.js} +1 -1
  47. package/build/js/chunks/{chunk-L7TY4UEP.js → chunk-56CY5YB3.js} +1 -1
  48. package/build/js/chunks/{chunk-7TQID6JJ.js → chunk-5N4CQMMU.js} +1 -1
  49. package/build/js/chunks/chunk-5YXBE5P2.js +1 -0
  50. package/build/js/chunks/chunk-72JFXJUT.js +6 -0
  51. package/build/js/chunks/chunk-A5WVN3T4.js +1 -0
  52. package/build/js/chunks/chunk-BRS5WVNO.js +1 -0
  53. package/build/js/chunks/{chunk-N2GWO3EX.js → chunk-BXINLCBT.js} +1 -1
  54. package/build/js/chunks/chunk-CF2DKFX2.js +1 -0
  55. package/build/js/chunks/chunk-CJOGOTBU.js +1 -0
  56. package/build/js/chunks/{chunk-VGSPU525.js → chunk-CXR3G5KR.js} +1 -1
  57. package/build/js/chunks/chunk-E4R3L44R.js +1 -0
  58. package/build/js/chunks/chunk-EQ6V4W5K.js +1 -0
  59. package/build/js/chunks/chunk-GZMB3TRK.js +1 -0
  60. package/build/js/chunks/chunk-HDY35RKY.js +1 -0
  61. package/build/js/chunks/{chunk-PUP3NNKU.js → chunk-HLJPVZHK.js} +1 -1
  62. package/build/js/chunks/chunk-HQNRRGYQ.js +1 -0
  63. package/build/js/chunks/{chunk-W2FVIH2I.js → chunk-I3OWTDO7.js} +1 -1
  64. package/build/js/chunks/chunk-IBDUCVB4.js +1 -0
  65. package/build/js/chunks/chunk-IU22MD7N.js +1 -0
  66. package/build/js/chunks/chunk-J63MM6LG.js +1 -0
  67. package/build/js/chunks/{chunk-26DQPDMK.js → chunk-K5B6J4SK.js} +1 -1
  68. package/build/js/chunks/chunk-LFJUGRQV.js +1 -0
  69. package/build/js/chunks/chunk-LH2NI5UL.js +2 -0
  70. package/build/js/chunks/{chunk-4TDWWHP2.js → chunk-LOV5GR63.js} +1 -1
  71. package/build/js/chunks/chunk-LXOZUOZU.js +1 -0
  72. package/build/js/chunks/{chunk-GYSREBEJ.js → chunk-MCAVCIZT.js} +1 -1
  73. package/build/js/chunks/{chunk-OMJQ7GOF.js → chunk-OBODW5CA.js} +2 -2
  74. package/build/js/chunks/chunk-PXPLMVCF.js +1 -0
  75. package/build/js/chunks/{chunk-UCD6YLP3.js → chunk-SJOZM6AL.js} +1 -1
  76. package/build/js/chunks/chunk-T4QDTXZN.js +1 -0
  77. package/build/js/chunks/{chunk-LISC6VSM.js → chunk-TAUJTFZC.js} +1 -1
  78. package/build/js/chunks/chunk-TDOKACT7.js +1 -0
  79. package/build/js/chunks/{chunk-SJJGHQ52.js → chunk-TH7Z32LP.js} +1 -1
  80. package/build/js/chunks/chunk-TJL2GY6R.js +1 -0
  81. package/build/js/chunks/{chunk-2HL2IEE2.js → chunk-TOR7V7M7.js} +1 -1
  82. package/build/js/chunks/{chunk-H75G3H4R.js → chunk-TQ6K3P2B.js} +1 -1
  83. package/build/js/chunks/{chunk-5S5BT5PK.js → chunk-TZ6TWPJD.js} +1 -1
  84. package/build/js/chunks/{chunk-S24T6WS2.js → chunk-UBDDFAOX.js} +1 -1
  85. package/build/js/chunks/chunk-UWBNF47P.js +1 -0
  86. package/build/js/chunks/chunk-WAJ5PI3A.js +1 -0
  87. package/build/js/chunks/{chunk-L7LE453T.js → chunk-XVVC3E6G.js} +1 -1
  88. package/build/js/chunks/chunk-YE6V3EZE.js +1 -0
  89. package/build/js/chunks/chunk-YP2W5KY3.js +1 -0
  90. package/build/js/chunks/chunk-YRQ34YNY.js +1 -0
  91. package/build/js/chunks/chunk-ZK55EMJQ.js +1 -0
  92. package/build/js/chunks/{chunk-XEBHIXET.js → chunk-ZNO7QV4M.js} +1 -1
  93. package/build/js/global.d.d.ts +1 -1
  94. package/build/js/index.d.ts +19 -39
  95. package/build/js/index.js +1 -4
  96. package/build/js/{CameraAccess.d.ts → moduleLoader.d.ts} +13 -8
  97. package/build/js/moduleLoader.js +0 -0
  98. package/build/js/private/AsyncImageConverterBase.d.ts +44 -0
  99. package/build/js/private/AsyncImageConverterBase.js +1 -0
  100. package/build/js/private/AsyncImageConverterMainThread.d.ts +13 -0
  101. package/build/js/private/AsyncImageConverterMainThread.js +1 -0
  102. package/build/js/private/CameraAccess.d.ts +167 -21
  103. package/build/js/private/CameraAccess.js +1 -1
  104. package/build/js/private/CameraManager.d.ts +13 -8
  105. package/build/js/private/CameraManager.js +1 -1
  106. package/build/js/private/CameraPool.d.ts +89 -0
  107. package/build/js/private/CameraPool.js +1 -0
  108. package/build/js/private/CanvasDrawerWithMetrics.d.ts +10 -5
  109. package/build/js/private/CoreModuleLicenseTextProvider.d.ts +14 -10
  110. package/build/js/private/CoreModuleLicenseTextProvider.js +1 -1
  111. package/build/js/private/CustomLocationsView.js +1 -1
  112. package/build/js/private/DataCaptureContextRelated.d.ts +13 -8
  113. package/build/js/private/FrameReaders/FrameReader.d.ts +13 -8
  114. package/build/js/private/FrameReaders/FrameReaderAbstract.d.ts +11 -6
  115. package/build/js/private/FrameReaders/GrayScaleFrameReader.d.ts +11 -6
  116. package/build/js/private/FrameReaders/GrayScaleFrameReader.js +1 -1
  117. package/build/js/private/FrameReaders/index.d.ts +13 -8
  118. package/build/js/private/FrameReaders/index.js +1 -1
  119. package/build/js/private/GestureRecognizer/GestureRecognizer.js +1 -1
  120. package/build/js/private/GestureRecognizer/PointerEventsDetector.js +1 -1
  121. package/build/js/private/GestureRecognizer/index.js +1 -1
  122. package/build/js/private/{NormalizedConfigureOptions.d.ts → NormalizedModuleLoaderOptions.d.ts} +13 -35
  123. package/build/js/private/NormalizedModuleLoaderOptions.js +0 -0
  124. package/build/js/private/SingleImageUploaderView.js +1 -1
  125. package/build/js/private/ViewControls+related.js +1 -1
  126. package/build/js/private/ViewControls_related.d.ts +14 -13
  127. package/build/js/private/ViewsRegistry.d.ts +13 -8
  128. package/build/js/private/djinni-types/index.d.ts +48 -0
  129. package/build/js/private/djinni-types/index.js +1 -0
  130. package/build/js/private/hybridDesktopPlatformHelpers.js +1 -1
  131. package/build/js/private/multithreadSimdHelper.js +1 -1
  132. package/build/js/private/privateAccess.d.ts +8 -0
  133. package/build/js/private/privateAccess.js +1 -0
  134. package/build/js/private/ui/atoms/AimerSvgIcon.js +1 -10
  135. package/build/js/private/ui/atoms/ArrowDownSvgIcon.js +2 -21
  136. package/build/js/private/ui/atoms/ArrowLeftSvgIcon.js +2 -21
  137. package/build/js/private/ui/atoms/ArrowRightSvgIcon.js +2 -21
  138. package/build/js/private/ui/atoms/ArrowUpSvgIcon.js +2 -21
  139. package/build/js/private/ui/atoms/ArrowsUp.js +1 -1
  140. package/build/js/private/ui/atoms/Backdrop.js +1 -1
  141. package/build/js/private/ui/atoms/CalendarExclamationMarkSvgIcon.js +1 -19
  142. package/build/js/private/ui/atoms/CameraSwitchReverseSvgIcon.js +1 -27
  143. package/build/js/private/ui/atoms/CameraSwitchSvgIcon.js +1 -27
  144. package/build/js/private/ui/atoms/Card.d.ts +2 -0
  145. package/build/js/private/ui/atoms/Card.js +1 -1
  146. package/build/js/private/ui/atoms/CardList.js +1 -1
  147. package/build/js/private/ui/atoms/CheckSvgIcon.js +1 -15
  148. package/build/js/private/ui/atoms/ChevronDownSvgIcon.js +2 -21
  149. package/build/js/private/ui/atoms/ChevronLeftSvgIcon.js +2 -21
  150. package/build/js/private/ui/atoms/ChevronRightSvgIcon.js +2 -20
  151. package/build/js/private/ui/atoms/ChevronUpSvgIcon.js +2 -21
  152. package/build/js/private/ui/atoms/CrossSvgIcon.js +1 -12
  153. package/build/js/private/ui/atoms/Dot5xSvgIcon.js +1 -21
  154. package/build/js/private/ui/atoms/ExclamationMarkSvgIcon.js +1 -11
  155. package/build/js/private/ui/atoms/GlassSvgIcon.js +1 -15
  156. package/build/js/private/ui/atoms/HandLensCheckSvgIcon.js +1 -16
  157. package/build/js/private/ui/atoms/KeyboardSvgIcon.js +1 -10
  158. package/build/js/private/ui/atoms/LowStockSvgIcon.js +1 -12
  159. package/build/js/private/ui/atoms/OnexSvgIcon.js +1 -13
  160. package/build/js/private/ui/atoms/PrinterSvgIcon.js +2 -24
  161. package/build/js/private/ui/atoms/ProgressBar.js +1 -1
  162. package/build/js/private/ui/atoms/QuestionMarkSvgIcon.js +1 -13
  163. package/build/js/private/ui/atoms/RestartSvgIcon.js +1 -11
  164. package/build/js/private/ui/atoms/RoundedCheckSvgIcon.js +1 -1
  165. package/build/js/private/ui/atoms/RoundedCrossSvgIcon.js +1 -11
  166. package/build/js/private/ui/atoms/RoundedExclamationMarkSvgIcon.js +1 -1
  167. package/build/js/private/ui/atoms/ShutterButton.js +1 -22
  168. package/build/js/private/ui/atoms/StarFilledSvgIcon.js +1 -13
  169. package/build/js/private/ui/atoms/StarHalfFilledSvgIcon.js +2 -32
  170. package/build/js/private/ui/atoms/StarOutlinedSvgIcon.js +1 -13
  171. package/build/js/private/ui/atoms/SvgIcon.js +1 -1
  172. package/build/js/private/ui/atoms/ToPickSvgIcon.js +1 -12
  173. package/build/js/private/ui/atoms/Toast.d.ts +10 -5
  174. package/build/js/private/ui/atoms/Toast.js +1 -1
  175. package/build/js/private/ui/atoms/TwoxSvgIcon.js +1 -14
  176. package/build/js/private/ui/atoms/WrongItemSvgIcon.js +1 -15
  177. package/build/js/private/ui/molecules/HintPresenter.d.ts +10 -5
  178. package/build/js/private/ui/molecules/HintPresenter.js +1 -1
  179. package/build/js/private/ui/molecules/LoadingOverlay.js +1 -1
  180. package/build/js/private/utils/AnimationSimplePolyfill.js +1 -1
  181. package/build/js/private/utils/AsyncStateMachine.d.ts +49 -0
  182. package/build/js/private/utils/AsyncStateMachine.js +1 -0
  183. package/build/js/private/utils/html.d.ts +57 -1
  184. package/build/js/private/utils/html.js +1 -1
  185. package/build/js/private/utils/index.d.ts +2 -1
  186. package/build/js/private/utils/index.js +1 -1
  187. package/build/js/private/utils/polyfillLoader.js +1 -1
  188. package/build/js/private/utils/replaceImagesInViewUtils.d.ts +10 -5
  189. package/build/js/private/utils/safeCancelAnimation.js +1 -1
  190. package/build/js/private/utils/safeStorage.js +1 -1
  191. package/build/js/private/utils/warnMultithreadingUnavailable.js +1 -1
  192. package/build/js/tsHelper.d.ts +1 -1
  193. package/build/js/worker/AsyncImageConverterForwarder.d.ts +52 -0
  194. package/build/js/worker/AsyncImageConverterForwarder.js +1 -0
  195. package/build/js/worker/AsyncImageConverterWorker.d.ts +13 -0
  196. package/build/js/worker/AsyncImageConverterWorker.js +1 -0
  197. package/build/js/worker/WorkerMain.d.ts +14 -8
  198. package/build/js/worker/WorkerMain.js +1 -1
  199. package/build/js/worker/coreCapture.inlineWorker.d.ts +13 -8
  200. package/build/js/worker/coreCapture.inlineWorker.js +1 -1
  201. package/build/js/worker/dataCaptureEngine.d.ts +11 -6
  202. package/build/js/worker/dataCaptureEngine.js +1 -1
  203. package/build/js/worker/dataCaptureLoader.d.ts +11 -6
  204. package/build/js/worker/dataCaptureLoader.js +1 -1
  205. package/build/js/worker/dataCaptureWorkerRelated.d.ts +11 -6
  206. package/build/js/worker/dataCaptureWorkerRelated.js +1 -1
  207. package/build/js/worker/helperFs.js +1 -1
  208. package/build/js/worker/index.d.ts +13 -8
  209. package/build/js/worker/index.js +1 -1
  210. package/package.json +1 -1
  211. package/build/js/CameraAccess.js +0 -1
  212. package/build/js/chunks/chunk-27Z5CYJL.js +0 -1
  213. package/build/js/chunks/chunk-2QT7PJFA.js +0 -15
  214. package/build/js/chunks/chunk-34HLD6AY.js +0 -2
  215. package/build/js/chunks/chunk-42THCP2K.js +0 -1
  216. package/build/js/chunks/chunk-AJE43LJ5.js +0 -3
  217. package/build/js/chunks/chunk-AUWF33RB.js +0 -2
  218. package/build/js/chunks/chunk-BS7MAI4E.js +0 -1
  219. package/build/js/chunks/chunk-D767RWTQ.js +0 -4
  220. package/build/js/chunks/chunk-DFFYK2ZZ.js +0 -1
  221. package/build/js/chunks/chunk-DMHDEPDF.js +0 -1
  222. package/build/js/chunks/chunk-DUFF6WVD.js +0 -5
  223. package/build/js/chunks/chunk-GK6JPJTE.js +0 -1
  224. package/build/js/chunks/chunk-GPR2J64V.js +0 -1
  225. package/build/js/chunks/chunk-IGJQFAQU.js +0 -1
  226. package/build/js/chunks/chunk-MGKDPTWE.js +0 -1
  227. package/build/js/chunks/chunk-MU6SADSF.js +0 -1
  228. package/build/js/chunks/chunk-NKCR7VPO.js +0 -1
  229. package/build/js/chunks/chunk-OQ4XCKFQ.js +0 -1
  230. package/build/js/chunks/chunk-QR3AOFAD.js +0 -5
  231. package/build/js/chunks/chunk-QUHRBS4G.js +0 -15
  232. package/build/js/chunks/chunk-R3XUWVHG.js +0 -6
  233. package/build/js/chunks/chunk-REEU55IG.js +0 -11
  234. package/build/js/chunks/chunk-RT3XSTKA.js +0 -1
  235. package/build/js/chunks/chunk-SENWWWXU.js +0 -1
  236. package/build/js/chunks/chunk-SM5S3DDC.js +0 -1
  237. package/build/js/chunks/chunk-VT73QNQB.js +0 -22
  238. package/build/js/chunks/chunk-ZZEQCILC.js +0 -1
  239. package/build/js/sdk.d.ts +0 -52
  240. package/build/js/sdk.js +0 -1
  241. package/build/js/worker/finalizationRegistryPolyfill.test.d.ts +0 -1
  242. package/build/js/worker/finalizationRegistryPolyfill.test.js +0 -1
  243. /package/build/js/chunks/{chunk-EZFXLKBC.js → chunk-JCKM5IJO.js} +0 -0
  244. /package/build/js/{private/NormalizedConfigureOptions.js → chunks/chunk-XLRKXFUR.js} +0 -0
@@ -1 +1 @@
1
- "use strict";var e,n=Object.defineProperty,t=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,p={};((e,t)=>{for(var a in t)n(e,a,{get:t[a],enumerable:!0})})(p,{register:()=>u,unregister:()=>f}),module.exports=(e=p,((e,p,s,o)=>{if(p&&"object"==typeof p||"function"==typeof p)for(let i of a(p))r.call(e,i)||i===s||n(e,i,{get:()=>p[i],enumerable:!(o=t(p,i))||o.enumerable});return e})(n({},"__esModule",{value:!0}),e));var s=String.fromCodePoint,o=(s.apply(String,[119,101,98,107,105,116,84,114,97,110,115,112,111,114,116,68,117,112,108,101,120,67,104,97,110,110,101,108]),s.apply(String,[53,65,41,124,75,47,108,120,50,48,115,62,66,60,107,57])),i=s.apply(String,[111,74,88,52,51,101,51,112,66,79,38,88,40,65,36,94]);function l(e,n){return async function(t,a){var r,p,s;if(function(e,n){if(null==e)return!1;const t=new URL(e.url);return n.senderId===o&&"localhost"===t.hostname||""===t.hostname}(t.senderFrame,a))switch(a.type){case"get-license-key":if(null!=a.payload)try{const r=await async function(e,n){const{fs:t,crypto:a,path:r,app:p}=e,[s,o]=n.publicKey.split(":"),i=r.join(p.getAppPath(),n.licenseDataPath);return function(e,n,t){const r=a.createDecipheriv("aes-256-cbc",n,t);let p=r.update(e,"hex","utf8");return p+=r.final("utf8"),p}((await t.readFile(i)).toString("utf8"),Buffer.from(s,"base64"),Buffer.from(o,"base64"))}(e,{licenseDataPath:a.payload.licenseDataPath,publicKey:n});t.sender.send(i,{type:a.type,senderId:a.senderId,payload:{licenseKey:null!=r?r:""}})}catch(e){t.sender.send(i,{type:a.type,senderId:a.senderId,payload:{error:e}})}break;case"get-app-info":try{const n=await async function(e){var n,t;const{fs:a,path:r,app:p}=e;let s=process.cwd();p.isPackaged&&(s=p.getAppPath());const o=await a.readFile(r.join(s,"package.json"),"utf8"),i=JSON.parse(o);return{appId:null!=(t=null==(n=i.build)?void 0:n.appId)?t:i.appId,name:i.name,version:i.version}}(e);t.sender.send(i,{type:a.type,senderId:a.senderId,payload:{isPackaged:e.app.isPackaged,version:null!=(r=n.version)?r:e.app.getVersion(),appName:null!=(p=n.name)?p:e.app.getName(),appId:null!=(s=n.appId)?s:""}})}catch(e){t.sender.send(i,{type:a.type,senderId:a.senderId,payload:{error:e}})}}}}var c=null,d=null;function u(e,n){d=e,c=l(e,n),d.ipcMain.on(i,c)}function f(){null!=c&&null!=d&&d.ipcMain.off(i,c)}
1
+ "use strict";var e,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,p={};((e,n)=>{for(var a in n)t(e,a,{get:n[a],enumerable:!0})})(p,{register:()=>u,unregister:()=>f}),module.exports=(e=p,((e,p,s,o)=>{if(p&&"object"==typeof p||"function"==typeof p)for(let i of a(p))r.call(e,i)||i===s||t(e,i,{get:()=>p[i],enumerable:!(o=n(p,i))||o.enumerable});return e})(t({},"__esModule",{value:!0}),e));var s=String.fromCodePoint,o=(s.apply(String,[119,101,98,107,105,116,84,114,97,110,115,112,111,114,116,68,117,112,108,101,120,67,104,97,110,110,101,108]),s.apply(String,[53,65,41,124,75,47,108,120,50,48,115,62,66,60,107,57])),i=s.apply(String,[111,74,88,52,51,101,51,112,66,79,38,88,40,65,36,94]);function c(e,t){return async function(n,a){if(function(e,t){if(null==e)return!1;const n=new URL(e.url);return t.senderId===o&&"localhost"===n.hostname||""===n.hostname}(n.senderFrame,a))switch(a.type){case"get-license-key":if(null!=a.payload)try{const r=await async function(e,t){const{fs:n,crypto:a,path:r,app:p}=e,[s,o]=t.publicKey.split(":"),i=r.join(p.getAppPath(),t.licenseDataPath);return function(e,t,n){const r=a.createDecipheriv("aes-256-cbc",t,n);let p=r.update(e,"hex","utf8");return p+=r.final("utf8"),p}((await n.readFile(i)).toString("utf8"),Buffer.from(s,"base64"),Buffer.from(o,"base64"))}(e,{licenseDataPath:a.payload.licenseDataPath,publicKey:t});n.sender.send(i,{type:a.type,senderId:a.senderId,payload:{licenseKey:r??""}})}catch(e){n.sender.send(i,{type:a.type,senderId:a.senderId,payload:{error:e}})}break;case"get-app-info":try{const t=await async function(e){const{fs:t,path:n,app:a}=e;let r=process.cwd();a.isPackaged&&(r=a.getAppPath());const p=await t.readFile(n.join(r,"package.json"),"utf8"),s=JSON.parse(p);return{appId:s.build?.appId??s.appId,name:s.name,version:s.version}}(e);n.sender.send(i,{type:a.type,senderId:a.senderId,payload:{isPackaged:e.app.isPackaged,version:t.version??e.app.getVersion(),appName:t.name??e.app.getName(),appId:t.appId??""}})}catch(e){n.sender.send(i,{type:a.type,senderId:a.senderId,payload:{error:e}})}}}}var d=null,l=null;function u(e,t){l=e,d=c(e,t),l.ipcMain.on(i,d)}function f(){null!=d&&null!=l&&l.ipcMain.off(i,d)}
@@ -1 +1 @@
1
- import{CHN as e,Id as n}from"./chunk-6RVAZ75N.js";function a(a,t){return async function(r,p){var s,i,c;if(function(e,a){if(null==e)return!1;const t=new URL(e.url);return a.senderId===n&&"localhost"===t.hostname||""===t.hostname}(r.senderFrame,p))switch(p.type){case"get-license-key":if(null!=p.payload)try{const n=await async function(e,n){const{fs:a,crypto:t,path:r,app:p}=e,[s,i]=n.publicKey.split(":"),c=r.join(p.getAppPath(),n.licenseDataPath);return function(e,n,a){const r=t.createDecipheriv("aes-256-cbc",n,a);let p=r.update(e,"hex","utf8");return p+=r.final("utf8"),p}((await a.readFile(c)).toString("utf8"),Buffer.from(s,"base64"),Buffer.from(i,"base64"))}(a,{licenseDataPath:p.payload.licenseDataPath,publicKey:t});r.sender.send(e,{type:p.type,senderId:p.senderId,payload:{licenseKey:null!=n?n:""}})}catch(n){r.sender.send(e,{type:p.type,senderId:p.senderId,payload:{error:n}})}break;case"get-app-info":try{const n=await async function(e){var n,a;const{fs:t,path:r,app:p}=e;let s=process.cwd();p.isPackaged&&(s=p.getAppPath());const i=await t.readFile(r.join(s,"package.json"),"utf8"),c=JSON.parse(i);return{appId:null!=(a=null==(n=c.build)?void 0:n.appId)?a:c.appId,name:c.name,version:c.version}}(a);r.sender.send(e,{type:p.type,senderId:p.senderId,payload:{isPackaged:a.app.isPackaged,version:null!=(s=n.version)?s:a.app.getVersion(),appName:null!=(i=n.name)?i:a.app.getName(),appId:null!=(c=n.appId)?c:""}})}catch(n){r.sender.send(e,{type:p.type,senderId:p.senderId,payload:{error:n}})}}}}var t=null,r=null;function p(n,p){r=n,t=a(n,p),r.ipcMain.on(e,t)}function s(){null!=t&&null!=r&&r.ipcMain.off(e,t)}export{p as register,s as unregister};
1
+ import{CHN as e,Id as a}from"./chunk-6RVAZ75N.js";function n(n,t){return async function(p,r){if(function(e,n){if(null==e)return!1;const t=new URL(e.url);return n.senderId===a&&"localhost"===t.hostname||""===t.hostname}(p.senderFrame,r))switch(r.type){case"get-license-key":if(null!=r.payload)try{const a=await async function(e,a){const{fs:n,crypto:t,path:p,app:r}=e,[s,c]=a.publicKey.split(":"),i=p.join(r.getAppPath(),a.licenseDataPath);return function(e,a,n){const p=t.createDecipheriv("aes-256-cbc",a,n);let r=p.update(e,"hex","utf8");return r+=p.final("utf8"),r}((await n.readFile(i)).toString("utf8"),Buffer.from(s,"base64"),Buffer.from(c,"base64"))}(n,{licenseDataPath:r.payload.licenseDataPath,publicKey:t});p.sender.send(e,{type:r.type,senderId:r.senderId,payload:{licenseKey:a??""}})}catch(a){p.sender.send(e,{type:r.type,senderId:r.senderId,payload:{error:a}})}break;case"get-app-info":try{const a=await async function(e){const{fs:a,path:n,app:t}=e;let p=process.cwd();t.isPackaged&&(p=t.getAppPath());const r=await a.readFile(n.join(p,"package.json"),"utf8"),s=JSON.parse(r);return{appId:s.build?.appId??s.appId,name:s.name,version:s.version}}(n);p.sender.send(e,{type:r.type,senderId:r.senderId,payload:{isPackaged:n.app.isPackaged,version:a.version??n.app.getVersion(),appName:a.name??n.app.getName(),appId:a.appId??""}})}catch(a){p.sender.send(e,{type:r.type,senderId:r.senderId,payload:{error:a}})}}}}var t=null,p=null;function r(a,r){p=a,t=n(a,r),p.ipcMain.on(e,t)}function s(){null!=t&&null!=p&&p.ipcMain.off(e,t)}export{r as register,s as unregister};
@@ -1 +1 @@
1
- "use strict";var e,r=Object.defineProperty,t=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,p={};((e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})})(p,{preloadBindings:()=>s}),module.exports=(e=p,((e,p,a,i)=>{if(p&&"object"==typeof p||"function"==typeof p)for(let l of n(p))o.call(e,l)||l===a||r(e,l,{get:()=>p[l],enumerable:!(i=t(p,l))||i.enumerable});return e})(r({},"__esModule",{value:!0}),e));var a=require("electron"),i=String.fromCodePoint,l=i.apply(String,[119,101,98,107,105,116,84,114,97,110,115,112,111,114,116,68,117,112,108,101,120,67,104,97,110,110,101,108]),y=i.apply(String,[53,65,41,124,75,47,108,120,50,48,115,62,66,60,107,57]),c=i.apply(String,[111,74,88,52,51,101,51,112,66,79,38,88,40,65,36,94]);function d(e){return null!=e.payload.error}function s(e){a.contextBridge.exposeInMainWorld(l,Object.freeze(function(e){return{getAppInfo:async()=>new Promise(((r,t)=>{e.once(c,((e,n)=>{d(n)&&t(n.payload.error),"get-app-info"===n.type&&r(n.payload)})),e.send(c,{type:"get-app-info",senderId:y})})),getKey:async r=>new Promise(((t,n)=>{e.once(c,((e,r)=>{d(r)&&n(r.payload.error),"get-license-key"===r.type&&t(r.payload)})),e.send(c,{type:"get-license-key",senderId:y,payload:r})}))}}(e)))}
1
+ "use strict";var e,r=Object.defineProperty,t=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,p={};((e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})})(p,{preloadBindings:()=>s}),module.exports=(e=p,((e,p,a,i)=>{if(p&&"object"==typeof p||"function"==typeof p)for(let l of n(p))o.call(e,l)||l===a||r(e,l,{get:()=>p[l],enumerable:!(i=t(p,l))||i.enumerable});return e})(r({},"__esModule",{value:!0}),e));var a=require("electron"),i=String.fromCodePoint,l=i.apply(String,[119,101,98,107,105,116,84,114,97,110,115,112,111,114,116,68,117,112,108,101,120,67,104,97,110,110,101,108]),y=i.apply(String,[53,65,41,124,75,47,108,120,50,48,115,62,66,60,107,57]),c=i.apply(String,[111,74,88,52,51,101,51,112,66,79,38,88,40,65,36,94]);function d(e){return null!=e.payload.error}function s(e){a.contextBridge.exposeInMainWorld(l,Object.freeze(function(e){return{getAppInfo:async()=>new Promise((r,t)=>{e.once(c,(e,n)=>{d(n)&&t(n.payload.error),"get-app-info"===n.type&&r(n.payload)}),e.send(c,{type:"get-app-info",senderId:y})}),getKey:async r=>new Promise((t,n)=>{e.once(c,(e,r)=>{d(r)&&n(r.payload.error),"get-license-key"===r.type&&t(r.payload)}),e.send(c,{type:"get-license-key",senderId:y,payload:r})})}}(e)))}
@@ -1 +1 @@
1
- import{CHN as e,Id as n,K as o}from"./chunk-6RVAZ75N.js";import{contextBridge as r}from"electron";function p(e){return null!=e.payload.error}function t(t){r.exposeInMainWorld(o,Object.freeze(function(o){return{getAppInfo:async()=>new Promise(((r,t)=>{o.once(e,((e,n)=>{p(n)&&t(n.payload.error),"get-app-info"===n.type&&r(n.payload)})),o.send(e,{type:"get-app-info",senderId:n})})),getKey:async r=>new Promise(((t,a)=>{o.once(e,((e,n)=>{p(n)&&a(n.payload.error),"get-license-key"===n.type&&t(n.payload)})),o.send(e,{type:"get-license-key",senderId:n,payload:r})}))}}(t)))}export{t as preloadBindings};
1
+ import{CHN as e,Id as n,K as o}from"./chunk-6RVAZ75N.js";import{contextBridge as r}from"electron";function p(e){return null!=e.payload.error}function t(t){r.exposeInMainWorld(o,Object.freeze(function(o){return{getAppInfo:async()=>new Promise((r,t)=>{o.once(e,(e,n)=>{p(n)&&t(n.payload.error),"get-app-info"===n.type&&r(n.payload)}),o.send(e,{type:"get-app-info",senderId:n})}),getKey:async r=>new Promise((t,a)=>{o.once(e,(e,n)=>{p(n)&&a(n.payload.error),"get-license-key"===n.type&&t(n.payload)}),o.send(e,{type:"get-license-key",senderId:n,payload:r})})}}(t)))}export{t as preloadBindings};
@@ -1 +1 @@
1
- export{a as AimerViewfinder}from'./chunks/chunk-26DQPDMK.js';
1
+ export{a as AimerViewfinder}from'./chunks/chunk-K5B6J4SK.js';
package/build/js/Brush.js CHANGED
@@ -1 +1 @@
1
- export{a as Brush}from'./chunks/chunk-PUP3NNKU.js';
1
+ export{a as Brush}from'./chunks/chunk-HLJPVZHK.js';
@@ -0,0 +1,213 @@
1
+ /// <reference types="emscripten" />
2
+ import { Rect } from './Common.js';
3
+ import { Serializable } from './private/Serializable.js';
4
+ import { INTERNAL_ACCESS } from './private/privateAccess.js';
5
+
6
+ declare enum FrameSourceState {
7
+ On = "on",
8
+ Off = "off",
9
+ Standby = "standby",
10
+ Starting = "starting",
11
+ Stopping = "stopping",
12
+ BootingUp = "bootingUp",
13
+ WakingUp = "wakingUp",
14
+ GoingToSleep = "goingToSleep",
15
+ ShuttingDown = "shuttingDown"
16
+ }
17
+ declare enum TorchState {
18
+ On = "on",
19
+ Off = "off"
20
+ }
21
+ declare enum CameraPosition {
22
+ WorldFacing = "worldFacing",
23
+ UserFacing = "userFacing"
24
+ }
25
+ declare enum VideoResolution {
26
+ /**
27
+ * @deprecated 8.0.0 Auto is deprecated. Please use the capture mode's recommendedCameraSettings for the best results.
28
+ */
29
+ Auto = "auto",
30
+ HD = "hd",
31
+ FullHD = "fullHd",
32
+ UHD4K = "uhd4k"
33
+ }
34
+ declare enum FocusGestureStrategy {
35
+ None = "none",
36
+ Manual = "manual",
37
+ ManualUntilCapture = "manualUntilCapture",
38
+ AutoOnLocation = "autoOnLocation"
39
+ }
40
+ interface FrameSourceListener {
41
+ didChangeState?: (frameSource: FrameSource, newState: FrameSourceState) => void;
42
+ }
43
+ interface FrameSourceJSON {
44
+ type: string;
45
+ }
46
+ interface FrameSource extends Serializable<FrameSourceJSON> {
47
+ readonly desiredState: FrameSourceState;
48
+ getCurrentState: () => FrameSourceState;
49
+ switchToDesiredState: (desiredState: FrameSourceState) => Promise<void>;
50
+ addListener: (listener: FrameSourceListener) => void;
51
+ removeListener: (listener: FrameSourceListener) => void;
52
+ }
53
+ interface CameraSettingsJSONBase {
54
+ preferredResolution: string;
55
+ zoomFactor: number;
56
+ zoomGestureZoomFactor: number;
57
+ api?: number;
58
+ }
59
+ interface CameraSettingsFromJSON extends CameraSettingsJSONBase {
60
+ focusGestureStrategy: string;
61
+ }
62
+ interface CameraSettingsJSON extends CameraSettingsJSONBase {
63
+ focus: {
64
+ focusGestureStrategy: string;
65
+ [key: string]: any;
66
+ };
67
+ [key: string]: any;
68
+ }
69
+ declare function isCameraFrameSource(frameSource?: FrameSource | null): frameSource is Camera;
70
+ declare class CameraSettings implements Serializable<CameraSettingsJSON> {
71
+ preferredResolution: VideoResolution;
72
+ zoomFactor: number;
73
+ zoomGestureZoomFactor: number;
74
+ private focus;
75
+ get focusGestureStrategy(): FocusGestureStrategy;
76
+ set focusGestureStrategy(newStrategy: FocusGestureStrategy);
77
+ private static fromJSON;
78
+ constructor();
79
+ constructor(settings: CameraSettings);
80
+ setProperty(name: string, value: any): void;
81
+ getProperty(name: string): any;
82
+ /**
83
+ * The resulting JSON must also contain properties set on the object itself ("hidden" properties)
84
+ */
85
+ toJSONObject(): CameraSettingsJSON & Record<string, any>;
86
+ }
87
+
88
+ interface CameraJSON extends FrameSourceJSON {
89
+ type: "camera";
90
+ position: CameraPosition;
91
+ settings: CameraSettingsJSON | Record<string, never>;
92
+ desiredState: FrameSourceState;
93
+ desiredTorchState: TorchState;
94
+ }
95
+ interface VideoFrameResolution {
96
+ readonly width: number;
97
+ readonly height: number;
98
+ }
99
+ declare class Camera implements FrameSource, Serializable<CameraJSON> {
100
+ private _label;
101
+ private _deviceId;
102
+ position: CameraPosition;
103
+ private _currentResolution?;
104
+ /** This flag is set to true when the present camera could not be mapped to a real device camera. This happens when
105
+ * device cameras were discovered but the reconciliation with existing cameras lead to unmapped instances.
106
+ * See CameraPool.ts for more details about reconciliation.
107
+ */
108
+ private _notFoundOnDevice;
109
+ /**
110
+ * Internal flag to mark this instance as being the one for the best guess.
111
+ * This allows us to have Camera.pickBestGuess() === Camera.pickBestGuess()
112
+ */
113
+ private _isBestGuess;
114
+ private readonly cameraManager;
115
+ private readonly type;
116
+ private readonly webGLContextLostListener;
117
+ private _currentState;
118
+ private _settings;
119
+ private _desiredTorchState;
120
+ private _desiredState;
121
+ private readonly listeners;
122
+ private _context;
123
+ private _desiredMirrorImageEnabled?;
124
+ private _lastCaptureRequestAnimationFrame?;
125
+ private _lastCanvasVideoPreviewAnimationFrame?;
126
+ private _isAndroidWebView?;
127
+ [INTERNAL_ACCESS]: {
128
+ markAsUnmappedToDeviceCameras: () => void;
129
+ setDeviceId: (deviceId: string) => void;
130
+ setLabel: (label: string) => void;
131
+ markAsBestGuess: () => void;
132
+ };
133
+ private _captureAndSendBound;
134
+ private readonly stateTransitionStrategyMap;
135
+ private currentTransitionStrategyPromise?;
136
+ private constructor();
137
+ /**
138
+ * Return a new camera with no constraints. We autoselect the world facing position by default. The CameraManager
139
+ * will figure out which of the device cameras will be the best match.
140
+ */
141
+ static pickBestGuess(): Camera;
142
+ /**
143
+ * Return a new camera with no constraints except for the position. The CameraManager will figure out
144
+ * which of the device cameras will be the best match.
145
+ */
146
+ static pickBestGuessForPosition(position: CameraPosition): Camera;
147
+ /**
148
+ * Return a camera instance with the deviceId set on it. If the camera was already created in the past, it will be
149
+ * returned instead of being created.
150
+ */
151
+ static forDeviceId(deviceId: string): Camera;
152
+ /**
153
+ * Get all available cameras from the device. This may trigger a permission prompt to the user to access cameras.
154
+ */
155
+ static getAll(refreshDevices?: boolean, cameraAlreadyAccessed?: boolean): Promise<Camera[]>;
156
+ private static getOrCreate;
157
+ /**
158
+ * Create a Camera instance from a low-level DeviceCamera instance.
159
+ */
160
+ private static fromDeviceCamera;
161
+ get deviceId(): string;
162
+ get label(): string;
163
+ get desiredState(): FrameSourceState;
164
+ get settings(): CameraSettings;
165
+ get currentResolution(): VideoFrameResolution | null;
166
+ private setDeviceId;
167
+ private setLabel;
168
+ private get context();
169
+ private set context(value);
170
+ private get currentState();
171
+ switchToDesiredState(state: FrameSourceState): Promise<void>;
172
+ getDesiredTorchState(): TorchState;
173
+ setDesiredTorchState(desiredTorchState: TorchState): Promise<void>;
174
+ isTorchAvailable(): Promise<boolean>;
175
+ addListener(listener: FrameSourceListener | null): void;
176
+ removeListener(listener: FrameSourceListener | null): void;
177
+ applySettings(settings: CameraSettings): Promise<void>;
178
+ toJSONObject(): CameraJSON;
179
+ getMirrorImageEnabled(): boolean;
180
+ setMirrorImageEnabled(enabled: boolean): Promise<void>;
181
+ getCurrentState(): FrameSourceState;
182
+ setClipArea(area?: Rect): Promise<void>;
183
+ private setCurrentState;
184
+ /**
185
+ * Starts camera according to the given position. If a deviceId is set, pre-select the corresponding camera.
186
+ * The function returns as soon as the camera has started successfully and is active. The label and
187
+ * position properties reflect then the values found in the accessed stream.
188
+ */
189
+ private setupCamera;
190
+ private markAsUnmappedToDeviceCameras;
191
+ private markAsBestGuess;
192
+ private notifyContext;
193
+ private notifyListeners;
194
+ private updateCanvasVideoImage;
195
+ private captureAndSend;
196
+ /**
197
+ * Capture images from the video stream and send them to the context. If no context is set, the function will
198
+ * stop itself until called again. While no enabled mode is present in the context, the function will schedule itself
199
+ * again indefinitely without doing anything else.
200
+ */
201
+ private startSendingCapturesToWorker;
202
+ private stopSendingCapturesToWorker;
203
+ private transitionFromStateOffToOn;
204
+ private transitionFromStateOffToStandby;
205
+ private transitionFromStateOnToOff;
206
+ private transitionFromStateOnToStandby;
207
+ private transitionFromStateStandbyToOff;
208
+ private transitionFromStateStandbyToOn;
209
+ private isAndroidWebView;
210
+ private isZoomAvailable;
211
+ }
212
+
213
+ export { CameraPosition as C, FocusGestureStrategy as F, TorchState as T, VideoResolution as V, type VideoFrameResolution as a, type FrameSource as b, FrameSourceState as c, type FrameSourceListener as d, type FrameSourceJSON as e, type CameraJSON as f, Camera as g, type CameraSettingsJSONBase as h, type CameraSettingsFromJSON as i, type CameraSettingsJSON as j, isCameraFrameSource as k, CameraSettings as l };
@@ -1,23 +1,5 @@
1
1
  /// <reference types="emscripten" />
2
- export { g as Camera, e as CameraJSON, f as VideoFrameResolution } from './Camera-C1Hz9V3G.js';
2
+ export { g as Camera, f as CameraJSON, a as VideoFrameResolution } from './Camera-CZ0Hl7v2.js';
3
3
  import './Common.js';
4
4
  import './private/Serializable.js';
5
- import './private/FrameReaders/WatermarkStack.js';
6
- import './tsHelper.js';
7
- import './ScanditIcon.js';
8
- import './private/utils/ScanditHTMLElement.js';
9
- import './DataCaptureContextSettings.js';
10
- import './DataCaptureViewPlusRelated.js';
11
- import './NotificationPresenter/NotificationPresenter.js';
12
- import './NotificationPresenter/NotificationConfiguration.js';
13
- import './NotificationPresenter/NotificationStyle.js';
14
- import './ViewControls.js';
15
- import './private/CustomLocationsView.js';
16
- import './private/View.js';
17
- import './private/AnchorPositions.js';
18
- import './private/nativeHandle.js';
19
- import './license/OpenSourceSoftwareLicenseInfo.js';
20
- import './private/HtmlElementState.js';
21
- import './worker/OverrideState.js';
22
- import './logger.js';
23
- import './LoadingStatus.js';
5
+ import './private/privateAccess.js';
@@ -1 +1 @@
1
- export{a as Camera}from'./chunks/chunk-GK6JPJTE.js';
1
+ export{a as Camera}from'./chunks/chunk-TJL2GY6R.js';
@@ -1,23 +1,5 @@
1
1
  /// <reference types="emscripten" />
2
- export { C as CameraPosition, n as CameraSettings, k as CameraSettingsFromJSON, l as CameraSettingsJSON, j as CameraSettingsJSONBase, F as FocusGestureStrategy, a as FrameSource, d as FrameSourceJSON, c as FrameSourceListener, b as FrameSourceState, T as TorchState, V as VideoResolution, m as isCameraFrameSource } from './Camera-C1Hz9V3G.js';
2
+ export { C as CameraPosition, l as CameraSettings, i as CameraSettingsFromJSON, j as CameraSettingsJSON, h as CameraSettingsJSONBase, F as FocusGestureStrategy, b as FrameSource, e as FrameSourceJSON, d as FrameSourceListener, c as FrameSourceState, T as TorchState, V as VideoResolution, k as isCameraFrameSource } from './Camera-CZ0Hl7v2.js';
3
3
  import './private/Serializable.js';
4
4
  import './Common.js';
5
- import './private/FrameReaders/WatermarkStack.js';
6
- import './tsHelper.js';
7
- import './ScanditIcon.js';
8
- import './private/utils/ScanditHTMLElement.js';
9
- import './DataCaptureContextSettings.js';
10
- import './DataCaptureViewPlusRelated.js';
11
- import './NotificationPresenter/NotificationPresenter.js';
12
- import './NotificationPresenter/NotificationConfiguration.js';
13
- import './NotificationPresenter/NotificationStyle.js';
14
- import './ViewControls.js';
15
- import './private/CustomLocationsView.js';
16
- import './private/View.js';
17
- import './private/AnchorPositions.js';
18
- import './private/nativeHandle.js';
19
- import './license/OpenSourceSoftwareLicenseInfo.js';
20
- import './private/HtmlElementState.js';
21
- import './worker/OverrideState.js';
22
- import './logger.js';
23
- import './LoadingStatus.js';
5
+ import './private/privateAccess.js';
@@ -1 +1 @@
1
- export{c as CameraPosition,g as CameraSettings,e as FocusGestureStrategy,a as FrameSourceState,b as TorchState,d as VideoResolution,f as isCameraFrameSource}from'./chunks/chunk-7ELPJFJV.js';
1
+ export{c as CameraPosition,g as CameraSettings,e as FocusGestureStrategy,a as FrameSourceState,b as TorchState,d as VideoResolution,f as isCameraFrameSource}from'./chunks/chunk-25EQ6RFI.js';