@scandit/web-datacapture-barcode 8.3.0 → 8.3.1

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 (61) hide show
  1. package/build/js/{BarcodeArMode-BME9pF28.d.ts → BarcodeArMode-BSS2kfBv.d.ts} +1 -0
  2. package/build/js/ar/BarcodeAr.js +1 -1
  3. package/build/js/ar/BarcodeArFeedback.js +1 -1
  4. package/build/js/ar/BarcodeArPresenter.js +1 -1
  5. package/build/js/ar/BarcodeArView.js +1 -1
  6. package/build/js/chunks/{chunk-UDG4V7SV.js → chunk-2AKUWJW7.js} +1 -1
  7. package/build/js/chunks/{chunk-6AMPUMFL.js → chunk-2C5FYNVC.js} +1 -1
  8. package/build/js/chunks/chunk-32CJYODR.js +1 -0
  9. package/build/js/chunks/{chunk-PGXSKHUL.js → chunk-3MEAY6PU.js} +1 -1
  10. package/build/js/chunks/{chunk-OV2B6MJ5.js → chunk-4UNEYE55.js} +1 -1
  11. package/build/js/chunks/{chunk-L3JFVEX6.js → chunk-5JT5U4EK.js} +1 -1
  12. package/build/js/chunks/{chunk-R3MQ2GAV.js → chunk-AKBHAMGH.js} +1 -1
  13. package/build/js/chunks/{chunk-E2CSA33X.js → chunk-EQ2LJAHI.js} +1 -1
  14. package/build/js/chunks/{chunk-H44PKJHU.js → chunk-EWBTYHV5.js} +1 -1
  15. package/build/js/chunks/{chunk-FFFNRYWI.js → chunk-IRRLM7ZZ.js} +1 -1
  16. package/build/js/chunks/{chunk-RYWX55SL.js → chunk-JZQPLDGE.js} +1 -1
  17. package/build/js/chunks/{chunk-TOJVFOMK.js → chunk-L7F6BIBX.js} +1 -1
  18. package/build/js/chunks/chunk-MZI3LJ62.js +1 -0
  19. package/build/js/chunks/chunk-NURJBECA.js +1 -0
  20. package/build/js/chunks/{chunk-27DZ2VG6.js → chunk-QXULNTBU.js} +1 -1
  21. package/build/js/chunks/{chunk-6CMIVFB4.js → chunk-TYWXGGDK.js} +1 -1
  22. package/build/js/find/BarcodeFind.js +1 -1
  23. package/build/js/find/BarcodeFindView.js +1 -1
  24. package/build/js/find/index.js +1 -1
  25. package/build/js/index.js +1 -1
  26. package/build/js/moduleLoader.js +1 -1
  27. package/build/js/spark/SparkScanOverlay.d.ts +1 -0
  28. package/build/js/spark/SparkScanOverlay.js +1 -1
  29. package/build/js/spark/index.js +1 -1
  30. package/build/js/spark/ui/SparkScanView.js +1 -1
  31. package/build/js/spark/ui/SparkScanViewMiniPreview.js +1 -1
  32. package/build/js/spark/ui/SparkScanViewPresenter.js +1 -1
  33. package/build/js/spark/ui/SparkScanViewTriggerButton.js +1 -1
  34. package/build/js/spark/ui/index.js +1 -1
  35. package/build/js/worker/BarcodeArMode.d.ts +1 -1
  36. package/build/js/worker/BarcodeBatchMode.d.ts +1 -1
  37. package/build/js/worker/BarcodeCaptureMode.d.ts +1 -1
  38. package/build/js/worker/BarcodeCaptureWorkerManager.js +1 -1
  39. package/build/js/worker/BarcodeFindMode.d.ts +1 -1
  40. package/build/js/worker/SparkScanMode.d.ts +1 -1
  41. package/build/js/worker/SparkScanMode.js +1 -1
  42. package/build/js/worker/WorkerMain.d.ts +1 -1
  43. package/build/js/worker/WorkerMain.js +1 -1
  44. package/build/js/worker/barcodeCapture.inlineWorker.js +1 -1
  45. package/build/js/worker/dataCaptureEngine.d.ts +1 -1
  46. package/build/js/worker/dataCaptureEngine.js +1 -1
  47. package/build/js/worker/dataCaptureWorkerRelated.d.ts +7 -3
  48. package/build/js/worker/index.d.ts +1 -1
  49. package/package.json +2 -2
  50. package/sdc-lib/scandit-datacapture-sdk-barcode-pthreads.js +1 -1
  51. package/sdc-lib/scandit-datacapture-sdk-barcode-pthreads.wasm +0 -0
  52. package/sdc-lib/scandit-datacapture-sdk-barcode-simd-pthreads.js +1 -1
  53. package/sdc-lib/scandit-datacapture-sdk-barcode-simd-pthreads.wasm +0 -0
  54. package/sdc-lib/scandit-datacapture-sdk-barcode-simd.js +1 -1
  55. package/sdc-lib/scandit-datacapture-sdk-barcode-simd.wasm +0 -0
  56. package/sdc-lib/scandit-datacapture-sdk-barcode.js +1 -1
  57. package/sdc-lib/scandit-datacapture-sdk-barcode.wasm +0 -0
  58. package/build/js/chunks/chunk-HKNJ33J2.js +0 -1
  59. package/build/js/chunks/chunk-QTKRK537.js +0 -1
  60. package/build/js/chunks/chunk-V2WRHFW3.js +0 -1
  61. /package/build/js/chunks/{chunk-43YBURRI.js → chunk-KHHN2PZL.js} +0 -0
@@ -1 +0,0 @@
1
- import {a}from'./chunk-UDG4V7SV.js';import {a as a$1}from'./chunk-TRITJ43A.js';import {unknownErrorToString}from'@scandit/web-datacapture-core/build/js/private/utils/unknownErrorToString.js';import {WorkerMain}from'@scandit/web-datacapture-core/build/js/worker/index.js';var i=class extends WorkerMain{constructor(t,a$1){super(t,a$1),this.dataCaptureInstance=new a(a$1,{postMessage:this.postMessage.bind(this),getOffscreenCanvas:this.getOffscreenCanvas.bind(this)});}async respondWith(t,a,r){let d=null,e;try{e=r(),e instanceof Promise&&(e=await e);}catch(c){e=void 0,d=unknownErrorToString(c);}let s={type:"workerTaskId",command:t,id:a,payload:this.hasPayload(e)?e.payload:void 0};d!=null&&(s.error=d),this.postMessage(s,this.hasTransferables(e)?e.transferables:[]);}onMessage(t){switch(t.data.command){case "sparkScanEmitErrorFeedback":{let{data:a}=t;return this.respondWith(a.command,a.id,()=>{this.dataCaptureInstance.sparkScanMode.emitErrorFeedback(a.shouldRemoveBrush);}),true}case "sparkScanOverlayReadyForDraw":{let{data:a}=t;return this.respondWith(a.command,a.id,()=>{this.dataCaptureInstance.sparkScanMode.overlayReadyForDraw();}),true}case "sparkScanAnalyticsManagerPropertyChanged":{let{data:a}=t;return this.respondWith(a.command,a.id,async()=>{this.dataCaptureInstance.sparkScanMode.analyticsManagerPropertyChanged(a.property);}),true}case "sparkScanSelectItemWithSmartScanSelection":{let{data:a}=t;return this.respondWith(a.command,a.id,async()=>{this.dataCaptureInstance.sparkScanMode.selectItemWithSmartScanSelection();}),true}case "sparkScanModeRemove":{let{data:a}=t;return this.respondWith(a.command,a.id,async()=>this.dataCaptureInstance.sparkScanMode.removeMode()),true}case "barcodeFindForSettings":{let{data:a}=t;return this.respondWith(a.command,a.id,async()=>this.dataCaptureInstance.barcodeFindMode.forSettings(a.settings)),true}case "barcodeFindModeRemove":{let{data:a}=t;return this.respondWith(a.command,a.id,async()=>this.dataCaptureInstance.barcodeFindMode.removeMode()),true}case "barcodeFindSearchStart":return this.respondWith(t.data.command,t.data.id,()=>{this.dataCaptureInstance.barcodeFindMode.start();}),true;case "barcodeFindSearchPause":return this.respondWith(t.data.command,t.data.id,()=>{this.dataCaptureInstance.barcodeFindMode.pause();}),true;case "barcodeFindSearchStop":return this.respondWith(t.data.command,t.data.id,()=>{this.dataCaptureInstance.barcodeFindMode.stop();}),true;case "barcodeFindSetItemList":{let{data:a}=t;return this.respondWith(t.data.command,t.data.id,()=>{this.dataCaptureInstance.barcodeFindMode.setItemList(a.itemList);}),true}case "barcodeFindSetEnabled":{let{data:a}=t;return this.respondWith(t.data.command,t.data.id,()=>{this.dataCaptureInstance.barcodeFindMode.setEnabled(a.enabled);}),true}case "barcodeFindApplySettings":{let{data:a}=t;return this.respondWith(a.command,a.id,async()=>this.dataCaptureInstance.barcodeFindMode.applySettings(a.settings)),true}case "barcodeFindAddBasicOverlay":{let{data:a}=t;return this.respondWith(a.command,a.id,async()=>{this.dataCaptureInstance.barcodeFindMode.addBasicOverlay();}),true}case "barcodeFindRemoveBasicOverlay":{let{data:a}=t;return this.respondWith(a.command,a.id,async()=>{this.dataCaptureInstance.barcodeFindMode.removeBasicOverlay();}),true}case "barcodeFindUpdateBasicOverlay":{let{data:a}=t;return this.respondWith(a.command,a.id,async()=>{this.dataCaptureInstance.barcodeFindMode.updateBasicOverlay(a.jsonOverlay);}),true}case "barcodeFindSetTransformerFunction":{let{data:a}=t;return this.respondWith(a.command,a.id,async()=>{let r=a$1(a.functionAsString);this.dataCaptureInstance.barcodeFindMode.setTransformerFunction(r);}),true}case "barcodeArForSettings":{let{data:a}=t;return this.respondWith(a.command,a.id,async()=>this.dataCaptureInstance.barcodeArMode.forSettings(a.settings)),true}case "barcodeArModeRemove":{let{data:a}=t;return this.respondWith(a.command,a.id,async()=>this.dataCaptureInstance.barcodeArMode.removeMode()),true}case "barcodeArSearchStart":return this.respondWith(t.data.command,t.data.id,()=>{this.dataCaptureInstance.barcodeArMode.start();}),true;case "barcodeArSearchPause":return this.respondWith(t.data.command,t.data.id,()=>{this.dataCaptureInstance.barcodeArMode.pause();}),true;case "barcodeArSearchStop":return this.respondWith(t.data.command,t.data.id,()=>{this.dataCaptureInstance.barcodeArMode.stop();}),true;case "barcodeArSetEnabled":{let{data:a}=t;return this.respondWith(t.data.command,t.data.id,()=>{this.dataCaptureInstance.barcodeArMode.setEnabled(a.enabled);}),true}case "barcodeArApplySettings":{let{data:a}=t;return this.respondWith(a.command,a.id,async()=>{this.dataCaptureInstance.barcodeArMode.applySettings(a.settings);}),true}default:return super.onMessage(t)}}};export{i as a};
@@ -1 +0,0 @@
1
- import {b}from'./chunk-67E6BCDR.js';var p=class{constructor(a,i,s){this.captureListenerSet=false;this.propertyPushSource=new b;this.coreEngine=a,this.Module=i,this.workerFunctions=s,this.setup();}sparkScanDidUpdateSession(a){this.workerFunctions.postMessage({type:"sparkScanDidUpdateSession",payload:JSON.parse(a.toJson())});}getSparkScanDeserializer(){return this.sparkScanDeserializer}setup(){let a=this.Module.SparkScanListener.extend("SparkScanListener",{didScan:(r,e,t)=>{this.sparkScanDidScan(e,t),r.delete(),e.delete(),t.delete();},didUpdateSession:(r,e,t)=>{this.sparkScanDidUpdateSession(e),r.delete(),e.delete(),t.delete();}}),i=this.Module.Feedback.extend("Feedback",{emit:()=>{this.successFeedback();}}),s=this.Module.SparkScanDeserializerListener.extend("SparkScanDeserializerListener",{onModeDeserializationFinished:(r,e,t)=>{if(!this.captureListenerSet){e.addListener(new a,1),e.setSuccessFeedback(new i),e.setPropertyPushSource(this.propertyPushSource);let n=this.Module.SparkScanViewHandlerDelegate.extend("SparkScanViewHandlerDelegate",{onSwitchedAwayFromSmartScanSelection:()=>{this.workerFunctions.postMessage({type:"sparkScanSwitchedAwayFromSmartScanSelection"});},onSwitchedToSmartScanSelection:()=>{this.workerFunctions.postMessage({type:"sparkScanSwitchedToSmartScanSelection"});},enableHapticWhenOverlapping:()=>{},onStateTransition:()=>{},resetAllTimers:()=>{}}),o=new n,c=e.getStateMachine();c.setViewHandlerDelegate(o),o.delete(),c.delete(),this.sparkScan=e.clone(),this.captureListenerSet=true;}r.delete(),t.delete(),e.delete();},onModeDeserializationStarted(r,e,t){r.delete(),e.delete(),t.delete();},onSettingsDeserializationStarted(r,e,t){r.delete(),e.delete(),t.delete();},onSettingsDeserializationFinished(r,e,t){r.delete(),e.delete(),t.delete();},onOverlayDeserializationStarted(r,e,t){r.delete(),e.delete(),t.delete();},onOverlayDeserializationFinished:(r,e,t)=>{var n;(n=this.sparkScanOverlay)==null||n.delete(),this.sparkScanOverlay=e,r.delete(),t.delete();}});this.sparkScanDeserializer=new this.Module.SparkScanDeserializer,this.sparkScanDeserializer.setListener(new s);}emitErrorFeedback(a){var i;(i=this.sparkScanOverlay)==null||i.onErrorFeedbackEmitted(a);}overlayReadyForDraw(){var a;(a=this.sparkScanOverlay)==null||a.onReadyForNewData();}analyticsManagerPropertyChanged(a){this.propertyPushSource.getBehaviorSubject(a.key).setProperty(a);}successFeedback(){this.workerFunctions.postMessage({type:"successFeedback"});}selectItemWithSmartScanSelection(){var a;(a=this.sparkScan)==null||a.selectItemWithSmartScanSelectionAsync();}async removeMode(){var a,i;this.captureListenerSet=false,(a=this.sparkScan)==null||a.delete(),this.sparkScan=void 0,(i=this.sparkScanOverlay)==null||i.delete(),this.sparkScanOverlay=void 0;}sparkScanDidScan(a,i){let s=this.coreEngine.prepareFrameForListener(i);this.workerFunctions.postMessage({type:"sparkScanDidScan",payload:{session:JSON.parse(a.toJson()),frameData:s}});}};export{p as a};
@@ -1 +0,0 @@
1
- import {a as a$1}from'./chunk-MUK52FJN.js';import {a}from'./chunk-HDODW33D.js';var s=class o{constructor(){this.type="sparkScan";this._shouldShowScanAreaGuides=false;this._shouldRemoveLocationsAfterScan=true;this._shouldDrawViewfinder=false;this._style=a.SparkScanOverlay.defaultStyle;this._viewfinder=new a$1;}get style(){return this._style}static async withSparkScanForView(r,e){let a$1=new o;return a$1.sparkScan=r,await a$1.setBrush(a.SparkScanOverlay.DefaultBrush.clone()),e&&await e.addOverlay(a$1),a$1}setRadius(r){this._viewfinder.radius=r;}getBrush(){return this._brush}async setBrush(r){this._brush=r,await this.sparkScan.notifyContext();}async overlayReadyForDraw(){await this.sparkScan.workerCommand("sparkScanOverlayReadyForDraw",{});}async setErrorBrush(r){this._errorBrush=r,await this.sparkScan.notifyContext();}getErrorBrush(){var r;return (r=this._errorBrush)!=null?r:this._brush}async setShouldShowScanAreaGuides(r){this._shouldShowScanAreaGuides=r,await this.sparkScan.notifyContext();}async setShouldRemoveLocationsAfterScan(r){this._shouldRemoveLocationsAfterScan=r,await this.sparkScan.notifyContext();}async setShouldDrawViewfinder(r){this._shouldDrawViewfinder=r,await this.sparkScan.notifyContext();}shouldShowScanAreaGuides(){return this._shouldShowScanAreaGuides}shouldRemoveLocationsAfterScan(){return this._shouldRemoveLocationsAfterScan}toJSONObject(){var r,e;return {type:this.type,brush:this._brush.toJSONObject(),errorBrush:(e=(r=this._errorBrush)==null?void 0:r.toJSONObject())!=null?e:this._brush.toJSONObject(),shouldShowScanAreaGuides:this._shouldShowScanAreaGuides,shouldRemoveLocationsAfterScan:this._shouldRemoveLocationsAfterScan,viewfinder:this._viewfinder.toJSONObject(),style:this.style,shouldDrawViewfinder:this._shouldDrawViewfinder}}};export{s as a};