scandit-capacitor-datacapture-core
Advanced tools
Comparing version 6.18.2 to 6.19.0-beta.0
@@ -315,3 +315,3 @@ export type Optional<T> = T | null; | ||
export interface IdCaptureOverlayDefaultsJSON { | ||
defaultCapturedBrush: { | ||
DefaultCapturedBrush: { | ||
fillColor: string; | ||
@@ -321,3 +321,3 @@ strokeColor: string; | ||
}; | ||
defaultLocalizedBrush: { | ||
DefaultLocalizedBrush: { | ||
fillColor: string; | ||
@@ -327,3 +327,3 @@ strokeColor: string; | ||
}; | ||
defaultRejectedBrush: { | ||
DefaultRejectedBrush: { | ||
fillColor: string; | ||
@@ -330,0 +330,0 @@ strokeColor: string; |
@@ -10,11 +10,4 @@ import { PrivateFrameData } from '../Camera+Related'; | ||
static getLastFrame() { | ||
return new Promise(resolve => window.Capacitor.Plugins[Capacitor.pluginName][CapacitorFunction.GetLastFrame]().then((frameDataJSONString) => { | ||
let parsedData; | ||
if (frameDataJSONString.data) { | ||
parsedData = JSON.parse(frameDataJSONString.data); | ||
} | ||
else { | ||
parsedData = frameDataJSONString; | ||
} | ||
resolve(PrivateFrameData.fromJSON(parsedData)); | ||
return new Promise(resolve => window.Capacitor.Plugins[Capacitor.pluginName][CapacitorFunction.GetLastFrame]().then((result) => { | ||
resolve(PrivateFrameData.fromJSON(JSON.parse(result.data))); | ||
})); | ||
@@ -28,3 +21,3 @@ } | ||
} | ||
resolve(PrivateFrameData.fromJSON(JSON.parse(frameDataJSONString))); | ||
resolve(PrivateFrameData.fromJSON(JSON.parse(frameDataJSONString.data))); | ||
})); | ||
@@ -34,3 +27,5 @@ } | ||
return new Promise((resolve, reject) => window.Capacitor.Plugins[Capacitor.pluginName][CapacitorFunction.GetCurrentCameraState]() | ||
.then(resolve, reject)); | ||
.then((result) => { | ||
resolve(result.data); | ||
}, reject)); | ||
} | ||
@@ -40,5 +35,5 @@ getIsTorchAvailable() { | ||
position: this.camera.position, | ||
}).then(resolve, reject)); | ||
}).then((result) => { resolve(result.data); }, reject)); | ||
} | ||
} | ||
//# sourceMappingURL=CameraProxy.js.map |
@@ -5,4 +5,4 @@ import { ContextStatus } from '../DataCaptureContext+Related'; | ||
(function (DataCaptureContextListenerEvent) { | ||
DataCaptureContextListenerEvent["DidChangeContextStatus"] = "didChangeStatus"; | ||
DataCaptureContextListenerEvent["DidStartObservingContext"] = "didStartObservingContext"; | ||
DataCaptureContextListenerEvent["DidChangeContextStatus"] = "DataCaptureContextListener.onStatusChanged"; | ||
DataCaptureContextListenerEvent["DidStartObservingContext"] = "DataCaptureContextListener.onObservationStarted"; | ||
})(DataCaptureContextListenerEvent || (DataCaptureContextListenerEvent = {})); | ||
@@ -31,4 +31,2 @@ // TODO: adjust when readding framedata to the api https://jira.scandit.com/browse/SDC-1159 | ||
this.subscribeListener(); | ||
// TODO: adjust when readding framedata to the api https://jira.scandit.com/browse/SDC-1159 | ||
// this.subscribeFrameListener(); | ||
this.initializeContextFromJSON(); | ||
@@ -48,7 +46,2 @@ } | ||
} | ||
// TODO: adjust when readding framedata to the api https://jira.scandit.com/browse/SDC-1159 | ||
// private subscribeFrameListener() { | ||
// window.Capacitor.Plugins[Capacitor.pluginName][CapacitorFunction.SubscribeContextFrameListener]() | ||
// .then(this.notifyFrameListeners.bind(this), null) | ||
// } | ||
notifyListeners(event) { | ||
@@ -61,3 +54,2 @@ if (!event) { | ||
} | ||
event = Object.assign(Object.assign(Object.assign({}, event), event.argument), { argument: undefined }); | ||
this.context.listeners.forEach((listener) => { | ||
@@ -67,3 +59,3 @@ switch (event.name) { | ||
if (listener.didChangeStatus) { | ||
const contextStatus = ContextStatus.fromJSON(event.context); | ||
const contextStatus = ContextStatus.fromJSON(event.status); | ||
listener.didChangeStatus(this.context, contextStatus); | ||
@@ -70,0 +62,0 @@ } |
import { Point, Quadrilateral, Size, } from '../Common'; | ||
import { Capacitor, CapacitorFunction } from './Capacitor'; | ||
import { doReturnWithFinish } from './CommonCapacitor'; | ||
var DataCaptureViewListenerEvent; | ||
(function (DataCaptureViewListenerEvent) { | ||
DataCaptureViewListenerEvent["DidChangeSizeOrientation"] = "didChangeSizeOrientation"; | ||
DataCaptureViewListenerEvent["DidChangeSizeOrientation"] = "DataCaptureViewListener.onSizeChanged"; | ||
})(DataCaptureViewListenerEvent || (DataCaptureViewListenerEvent = {})); | ||
@@ -29,3 +28,3 @@ export class DataCaptureViewProxy { | ||
point: point.toJSON(), | ||
}).then((convertedPoint) => resolve(Point.fromJSON(convertedPoint)), reject.bind(this))); | ||
}).then((result) => resolve(Point.fromJSON(JSON.parse(result.data))), reject.bind(this))); | ||
} | ||
@@ -35,4 +34,7 @@ viewQuadrilateralForFrameQuadrilateral(quadrilateral) { | ||
point: quadrilateral.toJSON(), | ||
}).then((convertedQuadrilateral) => resolve(Quadrilateral | ||
.fromJSON(convertedQuadrilateral)), reject.bind(this))); | ||
}).then((result) => { | ||
const quadrilateral = Quadrilateral | ||
.fromJSON(JSON.parse(result.data)); | ||
resolve(quadrilateral); | ||
}, reject.bind(this))); | ||
} | ||
@@ -49,3 +51,3 @@ subscribeListener() { | ||
// listener subscriptions. | ||
return doReturnWithFinish('', null); | ||
return; | ||
} | ||
@@ -60,3 +62,2 @@ event = Object.assign(Object.assign(Object.assign({}, event), event.argument), { argument: undefined }); | ||
listener.didChangeSize(this.view, size, orientation); | ||
return doReturnWithFinish(event.name, null); | ||
} | ||
@@ -63,0 +64,0 @@ break; |
@@ -22,5 +22,2 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
export class DataCaptureContext extends DefaultSerializeable { | ||
// TODO: adjust when readding framedata to the api https://jira.scandit.com/browse/SDC-1159 | ||
// @ignoreFromSerialization | ||
// private frameListeners: DataCaptureContextFrameListener[] = []; | ||
get frameSource() { | ||
@@ -80,16 +77,2 @@ return this._frameSource; | ||
} | ||
// TODO: adjust when readding framedata to the api https://jira.scandit.com/browse/SDC-1159 | ||
// public addFrameListener(frameListener: DataCaptureContextFrameListener) { | ||
// if (this.frameListeners.includes(frameListener)) { | ||
// return; | ||
// } | ||
// this.frameListeners.push(frameListener); | ||
// } | ||
// TODO: adjust when readding framedata to the api https://jira.scandit.com/browse/SDC-1159 | ||
// public removeFrameListener(frameListener: DataCaptureContextFrameListener) { | ||
// if (!this.frameListeners.includes(frameListener)) { | ||
// return; | ||
// } | ||
// this.frameListeners.splice(this.frameListeners.indexOf(frameListener), 1); | ||
// } | ||
addMode(mode) { | ||
@@ -96,0 +79,0 @@ if (!this.modes.includes(mode)) { |
export class DataCaptureVersion { | ||
static get pluginVersion() { | ||
return '6.18.2'; | ||
return '6.19.0-beta.0'; | ||
} | ||
} | ||
//# sourceMappingURL=DataCaptureVersion.js.map |
{ | ||
"name": "scandit-capacitor-datacapture-core", | ||
"version": "6.18.2", | ||
"version": "6.19.0-beta.0", | ||
"description": "Scandit Data Capture SDK for Capacitor", | ||
@@ -25,5 +25,5 @@ "license": "Apache-2.0", | ||
"devDependencies": { | ||
"@capacitor/android": ">=3.0.0", | ||
"@capacitor/core": ">=3.0.0", | ||
"@capacitor/ios": ">=3.0.0", | ||
"@capacitor/android": "^5.0.0", | ||
"@capacitor/core": "^5.0.0", | ||
"@capacitor/ios": "^5.0.0", | ||
"@ionic/prettier-config": "^1.0.0", | ||
@@ -33,2 +33,5 @@ "@ionic/swiftlint-config": "^1.0.0", | ||
"@types/node": "18.15.3", | ||
"@typescript-eslint/eslint-plugin": "5.57.1", | ||
"@typescript-eslint/parser": "5.57.1", | ||
"eslint": "8.37.0", | ||
"prettier": "^2.0.5", | ||
@@ -39,9 +42,6 @@ "prettier-plugin-java": "^2.0.0", | ||
"swiftlint": "^1.0.1", | ||
"typescript": "4.9.5", | ||
"eslint": "8.37.0", | ||
"@typescript-eslint/parser": "5.57.1", | ||
"@typescript-eslint/eslint-plugin": "5.57.1" | ||
"typescript": "4.9.5" | ||
}, | ||
"peerDependencies": { | ||
"@capacitor/core": ">=2.0.0" | ||
"@capacitor/core": "^5.0.0" | ||
}, | ||
@@ -63,6 +63,3 @@ "files": [ | ||
"prettier": "@ionic/prettier-config", | ||
"swiftlint": "@ionic/swiftlint-config", | ||
"dependencies": { | ||
"@capacitor/cli": "^4.3.0" | ||
} | ||
"swiftlint": "@ionic/swiftlint-config" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1
550064
106
5355
1
+ Added@capacitor/core@5.7.8(transitive)
- Removed@capacitor/cli@^4.3.0
- Removed@capacitor/cli@4.8.2(transitive)
- Removed@capacitor/core@6.2.0(transitive)
- Removed@ionic/cli-framework-output@2.2.5(transitive)
- Removed@ionic/utils-array@2.1.5(transitive)
- Removed@ionic/utils-fs@3.1.6(transitive)
- Removed@ionic/utils-object@2.1.5(transitive)
- Removed@ionic/utils-process@2.1.10(transitive)
- Removed@ionic/utils-stream@3.1.5(transitive)
- Removed@ionic/utils-subprocess@2.1.11(transitive)
- Removed@ionic/utils-terminal@2.3.3(transitive)
- Removed@types/fs-extra@8.1.5(transitive)
- Removed@types/node@22.10.2(transitive)
- Removed@types/slice-ansi@4.0.0(transitive)
- Removed@xmldom/xmldom@0.8.10(transitive)
- Removedansi-regex@5.0.1(transitive)
- Removedansi-styles@4.3.0(transitive)
- Removedastral-regex@2.0.0(transitive)
- Removedat-least-node@1.0.0(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbase64-js@1.5.1(transitive)
- Removedbig-integer@1.6.52(transitive)
- Removedbplist-parser@0.3.2(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedbuffer-crc32@0.2.13(transitive)
- Removedchownr@2.0.0(transitive)
- Removedcolor-convert@2.0.1(transitive)
- Removedcolor-name@1.1.4(transitive)
- Removedcommander@9.5.0(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedcross-spawn@7.0.6(transitive)
- Removeddebug@4.4.0(transitive)
- Removeddefine-lazy-prop@2.0.0(transitive)
- Removedelementtree@0.1.7(transitive)
- Removedemoji-regex@8.0.0(transitive)
- Removedenv-paths@2.2.1(transitive)
- Removedfd-slicer@1.1.0(transitive)
- Removedfs-extra@9.1.0(transitive)
- Removedfs-minipass@2.1.0(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedglob@7.2.3(transitive)
- Removedgraceful-fs@4.2.11(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedini@3.0.1(transitive)
- Removedis-docker@2.2.1(transitive)
- Removedis-fullwidth-code-point@3.0.0(transitive)
- Removedis-wsl@2.2.0(transitive)
- Removedisexe@2.0.0(transitive)
- Removedjsonfile@6.1.0(transitive)
- Removedkleur@3.0.34.1.5(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedminipass@3.3.65.0.0(transitive)
- Removedminizlib@2.1.2(transitive)
- Removedmkdirp@1.0.4(transitive)
- Removedms@2.1.3(transitive)
- Removednative-run@1.7.4(transitive)
- Removedonce@1.4.0(transitive)
- Removedopen@8.4.2(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedpath-key@3.1.1(transitive)
- Removedpend@1.2.0(transitive)
- Removedplist@3.1.0(transitive)
- Removedprompts@2.4.2(transitive)
- Removedreadable-stream@3.6.2(transitive)
- Removedrimraf@3.0.2(transitive)
- Removedsafe-buffer@5.2.1(transitive)
- Removedsax@1.1.4(transitive)
- Removedsemver@7.6.3(transitive)
- Removedshebang-command@2.0.0(transitive)
- Removedshebang-regex@3.0.0(transitive)
- Removedsignal-exit@3.0.7(transitive)
- Removedsisteransi@1.0.5(transitive)
- Removedslice-ansi@4.0.0(transitive)
- Removedsplit2@4.2.0(transitive)
- Removedstring-width@4.2.3(transitive)
- Removedstring_decoder@1.3.0(transitive)
- Removedstrip-ansi@6.0.1(transitive)
- Removedtar@6.2.1(transitive)
- Removedthrough2@4.0.2(transitive)
- Removedtree-kill@1.2.2(transitive)
- Removedundici-types@6.20.0(transitive)
- Removeduniversalify@2.0.1(transitive)
- Removeduntildify@4.0.0(transitive)
- Removedutil-deprecate@1.0.2(transitive)
- Removedwhich@2.0.2(transitive)
- Removedwrap-ansi@7.0.0(transitive)
- Removedwrappy@1.0.2(transitive)
- Removedxml2js@0.5.0(transitive)
- Removedxmlbuilder@11.0.115.1.1(transitive)
- Removedyallist@4.0.0(transitive)
- Removedyauzl@2.10.0(transitive)