scandit-react-native-datacapture-core 6.20.0 → 6.21.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 (117) hide show
  1. package/android/build.gradle +1 -1
  2. package/android/src/main/kotlin/com/scandit/datacapture/reactnative/core/ScanditDataCaptureCoreModule.kt +8 -4
  3. package/android/src/main/kotlin/com/scandit/datacapture/reactnative/core/ui/DataCaptureViewManager.kt +5 -2
  4. package/android/src/main/kotlin/com/scandit/datacapture/reactnative/core/utils/EventWithResult.kt +5 -3
  5. package/dist/core.js +2575 -0
  6. package/dist/core.js.map +1 -0
  7. package/{js → dist/dts}/DataCaptureView.d.ts +4 -5
  8. package/dist/dts/index.d.ts +18 -0
  9. package/dist/dts/native/CameraProxy.d.ts +14 -0
  10. package/dist/dts/native/DataCaptureContextProxy.d.ts +13 -0
  11. package/dist/dts/native/DataCaptureViewProxy.d.ts +13 -0
  12. package/dist/dts/native/FeedbackProxy.d.ts +4 -0
  13. package/dist/dts/native/ImageFrameSourceProxy.d.ts +12 -0
  14. package/dist/dts/native/initProxy.d.ts +1 -0
  15. package/dist/dts/private/Defaults.d.ts +1 -0
  16. package/dist/index.js +3123 -0
  17. package/dist/index.js.map +1 -0
  18. package/dist/tsconfig.tsbuildinfo +1 -0
  19. package/ios/Sources/ScanditDataCaptureCore.swift +6 -8
  20. package/ios/Sources/Utils/ReactNativeResult.swift +7 -0
  21. package/package.json +17 -7
  22. package/scandit-react-native-datacapture-core.podspec +1 -1
  23. package/js/Camera+Related.d.ts +0 -82
  24. package/js/Camera+Related.js +0 -308
  25. package/js/Camera+Related.js.map +0 -1
  26. package/js/Camera.d.ts +0 -28
  27. package/js/Camera.js +0 -162
  28. package/js/Camera.js.map +0 -1
  29. package/js/Common.d.ts +0 -138
  30. package/js/Common.js +0 -702
  31. package/js/Common.js.map +0 -1
  32. package/js/CommonEnums.d.ts +0 -38
  33. package/js/CommonEnums.js +0 -47
  34. package/js/CommonEnums.js.map +0 -1
  35. package/js/DataCaptureContext+Related.d.ts +0 -14
  36. package/js/DataCaptureContext+Related.js +0 -38
  37. package/js/DataCaptureContext+Related.js.map +0 -1
  38. package/js/DataCaptureContext.d.ts +0 -48
  39. package/js/DataCaptureContext.js +0 -182
  40. package/js/DataCaptureContext.js.map +0 -1
  41. package/js/DataCaptureVersion.js +0 -27
  42. package/js/DataCaptureVersion.js.map +0 -1
  43. package/js/DataCaptureView+Related.d.ts +0 -45
  44. package/js/DataCaptureView+Related.js +0 -183
  45. package/js/DataCaptureView+Related.js.map +0 -1
  46. package/js/DataCaptureView.js +0 -167
  47. package/js/DataCaptureView.js.map +0 -1
  48. package/js/Feedback.d.ts +0 -40
  49. package/js/Feedback.js +0 -180
  50. package/js/Feedback.js.map +0 -1
  51. package/js/FrameSource.d.ts +0 -22
  52. package/js/FrameSource.js +0 -16
  53. package/js/FrameSource.js.map +0 -1
  54. package/js/LocationSelection.d.ts +0 -24
  55. package/js/LocationSelection.js +0 -123
  56. package/js/LocationSelection.js.map +0 -1
  57. package/js/Viewfinder+Related.d.ts +0 -20
  58. package/js/Viewfinder+Related.js +0 -69
  59. package/js/Viewfinder+Related.js.map +0 -1
  60. package/js/Viewfinder.d.ts +0 -67
  61. package/js/Viewfinder.js +0 -232
  62. package/js/Viewfinder.js.map +0 -1
  63. package/js/index.d.ts +0 -14
  64. package/js/index.js +0 -31
  65. package/js/index.js.map +0 -1
  66. package/js/native/CameraProxy.d.ts +0 -15
  67. package/js/native/CameraProxy.js +0 -67
  68. package/js/native/CameraProxy.js.map +0 -1
  69. package/js/native/DataCaptureContextProxy.d.ts +0 -15
  70. package/js/native/DataCaptureContextProxy.js +0 -99
  71. package/js/native/DataCaptureContextProxy.js.map +0 -1
  72. package/js/native/DataCaptureViewProxy.d.ts +0 -12
  73. package/js/native/DataCaptureViewProxy.js +0 -58
  74. package/js/native/DataCaptureViewProxy.js.map +0 -1
  75. package/js/native/FeedbackProxy.d.ts +0 -6
  76. package/js/native/FeedbackProxy.js +0 -21
  77. package/js/native/FeedbackProxy.js.map +0 -1
  78. package/js/native/ImageFrameSourceProxy.d.ts +0 -11
  79. package/js/native/ImageFrameSourceProxy.js +0 -51
  80. package/js/native/ImageFrameSourceProxy.js.map +0 -1
  81. package/js/private/Defaults.d.ts +0 -60
  82. package/js/private/Defaults.js +0 -97
  83. package/js/private/Defaults.js.map +0 -1
  84. package/js/private/PrivateCamera+Related.d.ts +0 -52
  85. package/js/private/PrivateCamera+Related.js +0 -37
  86. package/js/private/PrivateCamera+Related.js.map +0 -1
  87. package/js/private/PrivateCamera.d.ts +0 -16
  88. package/js/private/PrivateCamera.js +0 -3
  89. package/js/private/PrivateCamera.js.map +0 -1
  90. package/js/private/PrivateCommon.d.ts +0 -86
  91. package/js/private/PrivateCommon.js +0 -3
  92. package/js/private/PrivateCommon.js.map +0 -1
  93. package/js/private/PrivateDataCaptureContext.d.ts +0 -27
  94. package/js/private/PrivateDataCaptureContext.js +0 -3
  95. package/js/private/PrivateDataCaptureContext.js.map +0 -1
  96. package/js/private/PrivateDataCaptureView+Related.d.ts +0 -17
  97. package/js/private/PrivateDataCaptureView+Related.js +0 -33
  98. package/js/private/PrivateDataCaptureView+Related.js.map +0 -1
  99. package/js/private/PrivateDataCaptureView.d.ts +0 -39
  100. package/js/private/PrivateDataCaptureView.js +0 -147
  101. package/js/private/PrivateDataCaptureView.js.map +0 -1
  102. package/js/private/PrivateFeedback.d.ts +0 -22
  103. package/js/private/PrivateFeedback.js +0 -3
  104. package/js/private/PrivateFeedback.js.map +0 -1
  105. package/js/private/PrivateFrameSource.d.ts +0 -4
  106. package/js/private/PrivateFrameSource.js +0 -3
  107. package/js/private/PrivateFrameSource.js.map +0 -1
  108. package/js/private/PrivateLocationSelection.d.ts +0 -14
  109. package/js/private/PrivateLocationSelection.js +0 -3
  110. package/js/private/PrivateLocationSelection.js.map +0 -1
  111. package/js/private/PrivateViewfinder+Related.d.ts +0 -7
  112. package/js/private/PrivateViewfinder+Related.js +0 -3
  113. package/js/private/PrivateViewfinder+Related.js.map +0 -1
  114. package/js/private/Serializeable.d.ts +0 -13
  115. package/js/private/Serializeable.js +0 -75
  116. package/js/private/Serializeable.js.map +0 -1
  117. /package/{js → dist/dts}/DataCaptureVersion.d.ts +0 -0
@@ -1,183 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
18
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
19
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
20
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
21
- return c > 3 && r && Object.defineProperty(target, key, r), r;
22
- };
23
- Object.defineProperty(exports, "__esModule", { value: true });
24
- exports.LogoStyle = exports.ZoomSwitchControl = exports.TorchSwitchControl = exports.SwipeToZoom = exports.TapToFocus = void 0;
25
- var Serializeable_1 = require("./private/Serializeable");
26
- var TapToFocus = /** @class */ (function (_super) {
27
- __extends(TapToFocus, _super);
28
- function TapToFocus() {
29
- var _this = _super.call(this) || this;
30
- _this.type = 'tapToFocus';
31
- return _this;
32
- }
33
- return TapToFocus;
34
- }(Serializeable_1.DefaultSerializeable));
35
- exports.TapToFocus = TapToFocus;
36
- var SwipeToZoom = /** @class */ (function (_super) {
37
- __extends(SwipeToZoom, _super);
38
- function SwipeToZoom() {
39
- var _this = _super.call(this) || this;
40
- _this.type = 'swipeToZoom';
41
- return _this;
42
- }
43
- return SwipeToZoom;
44
- }(Serializeable_1.DefaultSerializeable));
45
- exports.SwipeToZoom = SwipeToZoom;
46
- var TorchSwitchControl = /** @class */ (function (_super) {
47
- __extends(TorchSwitchControl, _super);
48
- function TorchSwitchControl() {
49
- var _this = _super !== null && _super.apply(this, arguments) || this;
50
- _this.type = 'torch';
51
- _this.icon = {
52
- on: { default: null, pressed: null },
53
- off: { default: null, pressed: null },
54
- };
55
- _this.view = null;
56
- return _this;
57
- }
58
- Object.defineProperty(TorchSwitchControl.prototype, "torchOffImage", {
59
- get: function () {
60
- return this.icon.off.default;
61
- },
62
- set: function (torchOffImage) {
63
- var _a;
64
- this.icon.off.default = torchOffImage;
65
- (_a = this.view) === null || _a === void 0 ? void 0 : _a.controlUpdated();
66
- },
67
- enumerable: false,
68
- configurable: true
69
- });
70
- Object.defineProperty(TorchSwitchControl.prototype, "torchOffPressedImage", {
71
- get: function () {
72
- return this.icon.off.pressed;
73
- },
74
- set: function (torchOffPressedImage) {
75
- var _a;
76
- this.icon.off.pressed = torchOffPressedImage;
77
- (_a = this.view) === null || _a === void 0 ? void 0 : _a.controlUpdated();
78
- },
79
- enumerable: false,
80
- configurable: true
81
- });
82
- Object.defineProperty(TorchSwitchControl.prototype, "torchOnImage", {
83
- get: function () {
84
- return this.icon.on.default;
85
- },
86
- set: function (torchOnImage) {
87
- var _a;
88
- this.icon.on.default = torchOnImage;
89
- (_a = this.view) === null || _a === void 0 ? void 0 : _a.controlUpdated();
90
- },
91
- enumerable: false,
92
- configurable: true
93
- });
94
- Object.defineProperty(TorchSwitchControl.prototype, "torchOnPressedImage", {
95
- get: function () {
96
- return this.icon.on.pressed;
97
- },
98
- set: function (torchOnPressedImage) {
99
- var _a;
100
- this.icon.on.pressed = torchOnPressedImage;
101
- (_a = this.view) === null || _a === void 0 ? void 0 : _a.controlUpdated();
102
- },
103
- enumerable: false,
104
- configurable: true
105
- });
106
- __decorate([
107
- Serializeable_1.ignoreFromSerialization
108
- ], TorchSwitchControl.prototype, "view", void 0);
109
- return TorchSwitchControl;
110
- }(Serializeable_1.DefaultSerializeable));
111
- exports.TorchSwitchControl = TorchSwitchControl;
112
- var ZoomSwitchControl = /** @class */ (function (_super) {
113
- __extends(ZoomSwitchControl, _super);
114
- function ZoomSwitchControl() {
115
- var _this = _super !== null && _super.apply(this, arguments) || this;
116
- _this.type = 'zoom';
117
- _this.icon = {
118
- zoomedOut: { default: null, pressed: null },
119
- zoomedIn: { default: null, pressed: null },
120
- };
121
- _this.view = null;
122
- return _this;
123
- }
124
- Object.defineProperty(ZoomSwitchControl.prototype, "zoomedOutImage", {
125
- get: function () {
126
- return this.icon.zoomedOut.default;
127
- },
128
- set: function (zoomedOutImage) {
129
- var _a;
130
- this.icon.zoomedOut.default = zoomedOutImage;
131
- (_a = this.view) === null || _a === void 0 ? void 0 : _a.controlUpdated();
132
- },
133
- enumerable: false,
134
- configurable: true
135
- });
136
- Object.defineProperty(ZoomSwitchControl.prototype, "zoomedInImage", {
137
- get: function () {
138
- return this.icon.zoomedIn.default;
139
- },
140
- set: function (zoomedInImage) {
141
- var _a;
142
- this.icon.zoomedIn.default = zoomedInImage;
143
- (_a = this.view) === null || _a === void 0 ? void 0 : _a.controlUpdated();
144
- },
145
- enumerable: false,
146
- configurable: true
147
- });
148
- Object.defineProperty(ZoomSwitchControl.prototype, "zoomedInPressedImage", {
149
- get: function () {
150
- return this.icon.zoomedIn.pressed;
151
- },
152
- set: function (zoomedInPressedImage) {
153
- var _a;
154
- this.icon.zoomedIn.pressed = zoomedInPressedImage;
155
- (_a = this.view) === null || _a === void 0 ? void 0 : _a.controlUpdated();
156
- },
157
- enumerable: false,
158
- configurable: true
159
- });
160
- Object.defineProperty(ZoomSwitchControl.prototype, "zoomedOutPressedImage", {
161
- get: function () {
162
- return this.icon.zoomedOut.pressed;
163
- },
164
- set: function (zoomedOutPressedImage) {
165
- var _a;
166
- this.icon.zoomedOut.pressed = zoomedOutPressedImage;
167
- (_a = this.view) === null || _a === void 0 ? void 0 : _a.controlUpdated();
168
- },
169
- enumerable: false,
170
- configurable: true
171
- });
172
- __decorate([
173
- Serializeable_1.ignoreFromSerialization
174
- ], ZoomSwitchControl.prototype, "view", void 0);
175
- return ZoomSwitchControl;
176
- }(Serializeable_1.DefaultSerializeable));
177
- exports.ZoomSwitchControl = ZoomSwitchControl;
178
- var LogoStyle;
179
- (function (LogoStyle) {
180
- LogoStyle["Minimal"] = "minimal";
181
- LogoStyle["Extended"] = "extended";
182
- })(LogoStyle || (exports.LogoStyle = LogoStyle = {}));
183
- //# sourceMappingURL=DataCaptureView+Related.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DataCaptureView+Related.js","sourceRoot":"","sources":["../ts/DataCaptureView+Related.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,yDAAwF;AAMxF;IAAgC,8BAAoB;IAGlD;QAAA,YACE,iBAAO,SACR;QAJO,UAAI,GAAG,YAAY,CAAC;;IAI5B,CAAC;IACH,iBAAC;AAAD,CAAC,AAND,CAAgC,oCAAoB,GAMnD;AANY,gCAAU;AAWvB;IAAiC,+BAAoB;IAGnD;QAAA,YACE,iBAAO,SACR;QAJO,UAAI,GAAG,aAAa,CAAC;;IAI7B,CAAC;IACH,kBAAC;AAAD,CAAC,AAND,CAAiC,oCAAoB,GAMpD;AANY,kCAAW;AAWxB;IAAwC,sCAAoB;IAA5D;QAAA,qEA8CC;QA7CS,UAAI,GAAG,OAAO,CAAC;QAEf,UAAI,GAAG;YACb,EAAE,EAAE,EAAE,OAAO,EAAE,IAAqB,EAAE,OAAO,EAAE,IAAqB,EAAE;YACtE,GAAG,EAAE,EAAE,OAAO,EAAE,IAAqB,EAAE,OAAO,EAA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,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,GAAG,qBAAqB,CAAC;YACpD,MAAC,IAAI,CAAC,IAAsC,0CAAE,cAAc,EAAE,CAAC;QACjE,CAAC;;;OALA;IA/BO;QADP,uCAAuB;mDAC2B;IAqCrD,wBAAC;CAAA,AA9CD,CAAuC,oCAAoB,GA8C1D;AA9CY,8CAAiB;AAgD9B,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,gCAAmB,CAAA;IACnB,kCAAqB,CAAA;AACvB,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB"}
@@ -1,167 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- var __assign = (this && this.__assign) || function () {
18
- __assign = Object.assign || function(t) {
19
- for (var s, i = 1, n = arguments.length; i < n; i++) {
20
- s = arguments[i];
21
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
22
- t[p] = s[p];
23
- }
24
- return t;
25
- };
26
- return __assign.apply(this, arguments);
27
- };
28
- var __importDefault = (this && this.__importDefault) || function (mod) {
29
- return (mod && mod.__esModule) ? mod : { "default": mod };
30
- };
31
- Object.defineProperty(exports, "__esModule", { value: true });
32
- exports.DataCaptureView = void 0;
33
- var react_1 = __importDefault(require("react"));
34
- var react_native_1 = require("react-native");
35
- var PrivateDataCaptureView_1 = require("./private/PrivateDataCaptureView");
36
- var DataCaptureView = /** @class */ (function (_super) {
37
- __extends(DataCaptureView, _super);
38
- function DataCaptureView(props) {
39
- var _this = _super.call(this, props) || this;
40
- _this.view = PrivateDataCaptureView_1.PrivateDataCaptureView.forContext(_this.props.context);
41
- _this.view.viewComponent = _this;
42
- return _this;
43
- }
44
- Object.defineProperty(DataCaptureView.prototype, "scanAreaMargins", {
45
- get: function () {
46
- return this.view.scanAreaMargins;
47
- },
48
- set: function (newValue) {
49
- this.view.scanAreaMargins = newValue;
50
- },
51
- enumerable: false,
52
- configurable: true
53
- });
54
- ;
55
- ;
56
- Object.defineProperty(DataCaptureView.prototype, "pointOfInterest", {
57
- get: function () {
58
- return this.view.pointOfInterest;
59
- },
60
- set: function (newValue) {
61
- this.view.pointOfInterest = newValue;
62
- },
63
- enumerable: false,
64
- configurable: true
65
- });
66
- ;
67
- ;
68
- Object.defineProperty(DataCaptureView.prototype, "logoStyle", {
69
- get: function () {
70
- return this.view.logoStyle;
71
- },
72
- set: function (style) {
73
- this.view.logoStyle = style;
74
- },
75
- enumerable: false,
76
- configurable: true
77
- });
78
- Object.defineProperty(DataCaptureView.prototype, "logoAnchor", {
79
- get: function () {
80
- return this.view.logoAnchor;
81
- },
82
- set: function (newValue) {
83
- this.view.logoAnchor = newValue;
84
- },
85
- enumerable: false,
86
- configurable: true
87
- });
88
- ;
89
- ;
90
- Object.defineProperty(DataCaptureView.prototype, "logoOffset", {
91
- get: function () {
92
- return this.view.logoOffset;
93
- },
94
- set: function (newValue) {
95
- this.view.logoOffset = newValue;
96
- },
97
- enumerable: false,
98
- configurable: true
99
- });
100
- ;
101
- ;
102
- Object.defineProperty(DataCaptureView.prototype, "focusGesture", {
103
- get: function () {
104
- return this.view.focusGesture;
105
- },
106
- set: function (newValue) {
107
- this.view.focusGesture = newValue;
108
- },
109
- enumerable: false,
110
- configurable: true
111
- });
112
- ;
113
- ;
114
- Object.defineProperty(DataCaptureView.prototype, "zoomGesture", {
115
- get: function () {
116
- return this.view.zoomGesture;
117
- },
118
- set: function (newValue) {
119
- this.view.zoomGesture = newValue;
120
- },
121
- enumerable: false,
122
- configurable: true
123
- });
124
- ;
125
- ;
126
- DataCaptureView.prototype.addOverlay = function (overlay) {
127
- this.view.addOverlay(overlay);
128
- };
129
- ;
130
- DataCaptureView.prototype.removeOverlay = function (overlay) {
131
- this.view.removeOverlay(overlay);
132
- };
133
- ;
134
- DataCaptureView.prototype.addListener = function (listener) {
135
- this.view.addListener(listener);
136
- };
137
- ;
138
- DataCaptureView.prototype.removeListener = function (listener) {
139
- this.view.removeListener(listener);
140
- };
141
- ;
142
- DataCaptureView.prototype.viewPointForFramePoint = function (point) {
143
- return this.view.viewPointForFramePoint(point);
144
- };
145
- ;
146
- DataCaptureView.prototype.viewQuadrilateralForFrameQuadrilateral = function (quadrilateral) {
147
- return this.view.viewQuadrilateralForFrameQuadrilateral(quadrilateral);
148
- };
149
- ;
150
- DataCaptureView.prototype.addControl = function (control) {
151
- return this.view.addControl(control);
152
- };
153
- DataCaptureView.prototype.removeControl = function (control) {
154
- return this.view.removeControl(control);
155
- };
156
- DataCaptureView.prototype.componentWillUnmount = function () {
157
- this.view.dispose();
158
- };
159
- DataCaptureView.prototype.render = function () {
160
- return react_1.default.createElement(RNTDataCaptureView, __assign({}, this.props));
161
- };
162
- return DataCaptureView;
163
- }(react_1.default.Component));
164
- exports.DataCaptureView = DataCaptureView;
165
- // tslint:disable-next-line:variable-name
166
- var RNTDataCaptureView = react_native_1.requireNativeComponent('RNTDataCaptureView', DataCaptureView);
167
- //# sourceMappingURL=DataCaptureView.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DataCaptureView.js","sourceRoot":"","sources":["../ts/DataCaptureView.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAA0B;AAC1B,6CAAsD;AAMtD,2EAA0E;AAc1E;IAAqC,mCAAqC;IAGxE,yBAAY,KAA2B;QAAvC,YACE,kBAAM,KAAK,CAAC,SAGb;QAFC,KA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AI,CAAC,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;IAC1C,CAAC;IAEM,8CAAoB,GAA3B;QACE,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;IACtB,CAAC;IAEM,gCAAM,GAAb;QACE,OAAO,8BAAC,kBAAkB,eAAK,IAAI,CAAC,KAAK,EAAI,CAAA;IAC/C,CAAC;IACH,sBAAC;AAAD,CAAC,AAxGD,CAAqC,eAAK,CAAC,SAAS,GAwGnD;AAxGY,0CAAe;AA0G5B,yCAAyC;AACzC,IAAM,kBAAkB,GAAI,qCAA8B,CAAC,oBAAoB,EAAE,eAAe,CAAC,CAAA"}
package/js/Feedback.d.ts DELETED
@@ -1,40 +0,0 @@
1
- import { DefaultSerializeable } from './private/Serializeable';
2
- declare enum VibrationType {
3
- default = "default",
4
- selectionHaptic = "selectionHaptic",
5
- successHaptic = "successHaptic",
6
- waveForm = "waveForm"
7
- }
8
- export declare class Vibration extends DefaultSerializeable {
9
- private type;
10
- static get defaultVibration(): Vibration;
11
- static get selectionHapticFeedback(): Vibration;
12
- static get successHapticFeedback(): Vibration;
13
- private static fromJSON;
14
- protected constructor(type: VibrationType);
15
- }
16
- export declare class WaveFormVibration extends Vibration {
17
- private _timings;
18
- get timings(): number[];
19
- private _amplitudes;
20
- get amplitudes(): number[] | null;
21
- constructor(timings: number[], amplitudes?: number[] | null);
22
- }
23
- export declare class Sound extends DefaultSerializeable {
24
- resource: string | null;
25
- static get defaultSound(): Sound;
26
- private static fromJSON;
27
- constructor(resource: string | null);
28
- }
29
- export declare class Feedback extends DefaultSerializeable {
30
- static get defaultFeedback(): Feedback;
31
- private _vibration;
32
- private _sound;
33
- private proxy;
34
- get vibration(): Vibration | null;
35
- get sound(): Sound | null;
36
- private static fromJSON;
37
- constructor(vibration: Vibration | null, sound: Sound | null);
38
- emit(): void;
39
- }
40
- export {};
package/js/Feedback.js DELETED
@@ -1,180 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
18
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
19
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
20
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
21
- return c > 3 && r && Object.defineProperty(target, key, r), r;
22
- };
23
- Object.defineProperty(exports, "__esModule", { value: true });
24
- exports.Feedback = exports.Sound = exports.WaveFormVibration = exports.Vibration = void 0;
25
- var FeedbackProxy_1 = require("./native/FeedbackProxy");
26
- var Serializeable_1 = require("./private/Serializeable");
27
- var VibrationType;
28
- (function (VibrationType) {
29
- VibrationType["default"] = "default";
30
- VibrationType["selectionHaptic"] = "selectionHaptic";
31
- VibrationType["successHaptic"] = "successHaptic";
32
- VibrationType["waveForm"] = "waveForm";
33
- })(VibrationType || (VibrationType = {}));
34
- var Vibration = /** @class */ (function (_super) {
35
- __extends(Vibration, _super);
36
- function Vibration(type) {
37
- var _this = _super.call(this) || this;
38
- _this.type = type;
39
- return _this;
40
- }
41
- Object.defineProperty(Vibration, "defaultVibration", {
42
- get: function () {
43
- return new Vibration(VibrationType.default);
44
- },
45
- enumerable: false,
46
- configurable: true
47
- });
48
- Object.defineProperty(Vibration, "selectionHapticFeedback", {
49
- get: function () {
50
- return new Vibration(VibrationType.selectionHaptic);
51
- },
52
- enumerable: false,
53
- configurable: true
54
- });
55
- Object.defineProperty(Vibration, "successHapticFeedback", {
56
- get: function () {
57
- return new Vibration(VibrationType.successHaptic);
58
- },
59
- enumerable: false,
60
- configurable: true
61
- });
62
- Vibration.fromJSON = function (json) {
63
- if (json.type === 'waveForm') {
64
- return new WaveFormVibration(json.timings, json.amplitudes);
65
- }
66
- return new Vibration(json.type);
67
- };
68
- return Vibration;
69
- }(Serializeable_1.DefaultSerializeable));
70
- exports.Vibration = Vibration;
71
- var WaveFormVibration = /** @class */ (function (_super) {
72
- __extends(WaveFormVibration, _super);
73
- function WaveFormVibration(timings, amplitudes) {
74
- if (amplitudes === void 0) { amplitudes = null; }
75
- var _this = _super.call(this, VibrationType.waveForm) || this;
76
- _this._timings = timings;
77
- _this._amplitudes = amplitudes;
78
- return _this;
79
- }
80
- Object.defineProperty(WaveFormVibration.prototype, "timings", {
81
- get: function () {
82
- return this._timings;
83
- },
84
- enumerable: false,
85
- configurable: true
86
- });
87
- Object.defineProperty(WaveFormVibration.prototype, "amplitudes", {
88
- get: function () {
89
- return this._amplitudes;
90
- },
91
- enumerable: false,
92
- configurable: true
93
- });
94
- __decorate([
95
- (0, Serializeable_1.nameForSerialization)('timings')
96
- ], WaveFormVibration.prototype, "_timings", void 0);
97
- __decorate([
98
- Serializeable_1.ignoreFromSerializationIfNull,
99
- (0, Serializeable_1.nameForSerialization)('amplitudes')
100
- ], WaveFormVibration.prototype, "_amplitudes", void 0);
101
- return WaveFormVibration;
102
- }(Vibration));
103
- exports.WaveFormVibration = WaveFormVibration;
104
- var Sound = /** @class */ (function (_super) {
105
- __extends(Sound, _super);
106
- function Sound(resource) {
107
- var _this = _super.call(this) || this;
108
- _this.resource = null;
109
- _this.resource = resource;
110
- return _this;
111
- }
112
- Object.defineProperty(Sound, "defaultSound", {
113
- get: function () {
114
- return new Sound(null);
115
- },
116
- enumerable: false,
117
- configurable: true
118
- });
119
- Sound.fromJSON = function (json) {
120
- return new Sound(json.resource);
121
- };
122
- __decorate([
123
- Serializeable_1.ignoreFromSerializationIfNull
124
- ], Sound.prototype, "resource", void 0);
125
- return Sound;
126
- }(Serializeable_1.DefaultSerializeable));
127
- exports.Sound = Sound;
128
- var Feedback = /** @class */ (function (_super) {
129
- __extends(Feedback, _super);
130
- function Feedback(vibration, sound) {
131
- var _this = _super.call(this) || this;
132
- _this._vibration = null;
133
- _this._sound = null;
134
- _this._vibration = vibration;
135
- _this._sound = sound;
136
- _this.proxy = FeedbackProxy_1.FeedbackProxy.forFeedback(_this);
137
- return _this;
138
- }
139
- Object.defineProperty(Feedback, "defaultFeedback", {
140
- get: function () {
141
- return new Feedback(Vibration.defaultVibration, Sound.defaultSound);
142
- },
143
- enumerable: false,
144
- configurable: true
145
- });
146
- Object.defineProperty(Feedback.prototype, "vibration", {
147
- get: function () {
148
- return this._vibration;
149
- },
150
- enumerable: false,
151
- configurable: true
152
- });
153
- Object.defineProperty(Feedback.prototype, "sound", {
154
- get: function () {
155
- return this._sound;
156
- },
157
- enumerable: false,
158
- configurable: true
159
- });
160
- Feedback.fromJSON = function (json) {
161
- return new Feedback((json === null || json === void 0 ? void 0 : json.vibration) ? Vibration.fromJSON(json.vibration) : null, (json === null || json === void 0 ? void 0 : json.sound) ? Sound.fromJSON(json.sound) : null);
162
- };
163
- Feedback.prototype.emit = function () {
164
- this.proxy.emit();
165
- };
166
- __decorate([
167
- Serializeable_1.ignoreFromSerializationIfNull,
168
- (0, Serializeable_1.nameForSerialization)('vibration')
169
- ], Feedback.prototype, "_vibration", void 0);
170
- __decorate([
171
- Serializeable_1.ignoreFromSerializationIfNull,
172
- (0, Serializeable_1.nameForSerialization)('sound')
173
- ], Feedback.prototype, "_sound", void 0);
174
- __decorate([
175
- Serializeable_1.ignoreFromSerialization
176
- ], Feedback.prototype, "proxy", void 0);
177
- return Feedback;
178
- }(Serializeable_1.DefaultSerializeable));
179
- exports.Feedback = Feedback;
180
- //# sourceMappingURL=Feedback.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Feedback.js","sourceRoot":"","sources":["../ts/Feedback.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,wDAAuD;AAEvD,yDAKiC;AAGjC,IAAK,aAKJ;AALD,WAAK,aAAa;IAChB,oCAAmB,CAAA;IACnB,oDAAmC,CAAA;IACnC,gDAA+B,CAAA;IAC/B,sCAAqB,CAAA;AACvB,CAAC,EALI,aAAa,KAAb,aAAa,QAKjB;AAED;IAA+B,6BAAoB;IAsBjD,mBAAsB,IAAmB;QAAzC,YACE,iBAAO,SAER;QADC,KAAI,CAAC,IAAI,GAAG,IAAI,CAAC;;IACnB,CAAC;IAtBD,sBAAkB,6BAAgB;aAAlC;YACE,OAAO,IAAI,SAAS,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QAC9C,CAAC;;;OAAA;IAED,sBAAkB,oCAAuB;aAAzC;YACE,OAAO,IAAI,SAAS,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC;QACtD,CAAC;;;OAAA;IAED,sBAAkB,kCAAqB;aAAvC;YACE,OAAO,IAAI,SAAS,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC;QACpD,CAAC;;;OAAA;IAEc,kBAAQ,GAAvB,UAAwB,IAAmB;QACzC,IAAI,IAAI,CAAC,IAAI,KAAK,UAAU,EAAE;YAC5B,OAAO,IAAI,iBAAiB,CAAC,IAAI,CAAC,OAAQ,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;SAC9D;QACD,OAAO,IAAI,SAAS,CAAC,IAAI,CAAC,IAAqB,CAAC,CAAC;IACnD,CAAC;IAMH,gBAAC;AAAD,CAAC,AA1BD,CAA+B,oCAAoB,GA0BlD;AA1BY,8BAAS;AA4BtB;IAAuC,qCAAS;IAgB9C,2BAAmB,OAAiB,EAAE,UAAkC;QAAlC,2BAAA,EAAA,iBAA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Aa,CAAC,WAAW,CAAC,KAAI,CAAC,CAAC;;IAC/C,CAAC;IApCD,sBAAkB,2BAAe;aAAjC;YACE,OAAO,IAAI,QAAQ,CAAC,SAAS,CAAC,gBAAgB,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;QACtE,CAAC;;;OAAA;IAaD,sBAAW,+BAAS;aAApB;YACE,OAAO,IAAI,CAAC,UAAU,CAAC;QACzB,CAAC;;;OAAA;IAED,sBAAW,2BAAK;aAAhB;YACE,OAAO,IAAI,CAAC,MAAM,CAAC;QACrB,CAAC;;;OAAA;IAEc,iBAAQ,GAAvB,UAAwB,IAAkB;QACxC,OAAO,IAAI,QAAQ,CACjB,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,SAAS,EAAC,CAAC,CAAE,SAAqC,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,EACxF,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,EAAC,CAAC,CAAE,KAA6B,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CACzE,CAAC;IACJ,CAAC;IAUM,uBAAI,GAAX;QACE,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;IACpB,CAAC;IAlCO;QAFP,6CAA6B;QAC7B,IAAA,oCAAoB,EAAC,WAAW,CAAC;gDACU;IAIpC;QAFP,6CAA6B;QAC7B,IAAA,oCAAoB,EAAC,OAAO,CAAC;4CACM;IAG5B;QADP,uCAAuB;2CACK;IA4B/B,eAAC;CAAA,AA1CD,CAA8B,oCAAoB,GA0CjD;AA1CY,4BAAQ"}
@@ -1,22 +0,0 @@
1
- import { Serializeable } from './private/Serializeable';
2
- export declare enum FrameSourceState {
3
- On = "on",
4
- Off = "off",
5
- Starting = "starting",
6
- Stopping = "stopping",
7
- Standby = "standby",
8
- BootingUp = "bootingUp",
9
- WakingUp = "wakingUp",
10
- GoingToSleep = "goingToSleep",
11
- ShuttingDown = "shuttingDown"
12
- }
13
- export interface FrameSourceListener {
14
- didChangeState?(frameSource: FrameSource, newState: FrameSourceState): void;
15
- }
16
- export interface FrameSource extends Serializeable {
17
- readonly desiredState: FrameSourceState;
18
- switchToDesiredState(desiredState: FrameSourceState): Promise<void>;
19
- getCurrentState(): Promise<FrameSourceState>;
20
- addListener(listener: FrameSourceListener): void;
21
- removeListener(listener: FrameSourceListener): void;
22
- }
package/js/FrameSource.js DELETED
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FrameSourceState = void 0;
4
- var FrameSourceState;
5
- (function (FrameSourceState) {
6
- FrameSourceState["On"] = "on";
7
- FrameSourceState["Off"] = "off";
8
- FrameSourceState["Starting"] = "starting";
9
- FrameSourceState["Stopping"] = "stopping";
10
- FrameSourceState["Standby"] = "standby";
11
- FrameSourceState["BootingUp"] = "bootingUp";
12
- FrameSourceState["WakingUp"] = "wakingUp";
13
- FrameSourceState["GoingToSleep"] = "goingToSleep";
14
- FrameSourceState["ShuttingDown"] = "shuttingDown";
15
- })(FrameSourceState || (exports.FrameSourceState = FrameSourceState = {}));
16
- //# sourceMappingURL=FrameSource.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FrameSource.js","sourceRoot":"","sources":["../ts/FrameSource.ts"],"names":[],"mappings":";;;AAEA,IAAY,gBAUX;AAVD,WAAY,gBAAgB;IAC1B,6BAAS,CAAA;IACT,+BAAW,CAAA;IACX,yCAAqB,CAAA;IACrB,yCAAqB,CAAA;IACrB,uCAAmB,CAAA;IACnB,2CAAuB,CAAA;IACvB,yCAAqB,CAAA;IACrB,iDAA6B,CAAA;IAC7B,iDAA6B,CAAA;AAC/B,CAAC,EAVW,gBAAgB,gCAAhB,gBAAgB,QAU3B"}
@@ -1,24 +0,0 @@
1
- import { NumberWithUnit, SizeWithUnit, SizeWithUnitAndAspect } from './Common';
2
- import { DefaultSerializeable } from './private/Serializeable';
3
- import { RadiusLocationSelectionJSON, RectangularLocationSelectionJSON } from './private/PrivateLocationSelection';
4
- export interface LocationSelection {
5
- }
6
- export declare const NoneLocationSelection: {
7
- type: string;
8
- };
9
- export declare class RadiusLocationSelection extends DefaultSerializeable implements LocationSelection {
10
- private type;
11
- private _radius;
12
- get radius(): NumberWithUnit;
13
- static fromJSON(JSON: RadiusLocationSelectionJSON): RadiusLocationSelection;
14
- constructor(radius: NumberWithUnit);
15
- }
16
- export declare class RectangularLocationSelection extends DefaultSerializeable implements LocationSelection {
17
- private type;
18
- private _sizeWithUnitAndAspect;
19
- get sizeWithUnitAndAspect(): SizeWithUnitAndAspect;
20
- static withSize(size: SizeWithUnit): RectangularLocationSelection;
21
- static withWidthAndAspectRatio(width: NumberWithUnit, heightToWidthAspectRatio: number): RectangularLocationSelection;
22
- static withHeightAndAspectRatio(height: NumberWithUnit, widthToHeightAspectRatio: number): RectangularLocationSelection;
23
- static fromJSON(rectangularLocationSelectionJSON: RectangularLocationSelectionJSON): RectangularLocationSelection;
24
- }