@jaak.ai/stamps 1.0.0-dev.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (122) hide show
  1. package/README.md +385 -0
  2. package/dist/cjs/document-detector_19.cjs.entry.js +8528 -0
  3. package/dist/cjs/index-5e4e5e7d.js +1685 -0
  4. package/dist/cjs/index.cjs.js +2 -0
  5. package/dist/cjs/loader.cjs.js +22 -0
  6. package/dist/cjs/mb-tooltip.cjs.entry.js +26 -0
  7. package/dist/cjs/stamps.cjs.js +23 -0
  8. package/dist/collection/collection-manifest.json +31 -0
  9. package/dist/collection/components/document-detector/document-detector.css +154 -0
  10. package/dist/collection/components/document-detector/document-detector.js +383 -0
  11. package/dist/collection/components/shared/mb-api-process-status/mb-api-process-status.css +360 -0
  12. package/dist/collection/components/shared/mb-api-process-status/mb-api-process-status.js +124 -0
  13. package/dist/collection/components/shared/mb-button/mb-button.css +95 -0
  14. package/dist/collection/components/shared/mb-button/mb-button.js +201 -0
  15. package/dist/collection/components/shared/mb-button-classic/mb-button-classic.css +100 -0
  16. package/dist/collection/components/shared/mb-button-classic/mb-button-classic.js +130 -0
  17. package/dist/collection/components/shared/mb-camera-experience/mb-camera-experience.css +740 -0
  18. package/dist/collection/components/shared/mb-camera-experience/mb-camera-experience.js +827 -0
  19. package/dist/collection/components/shared/mb-camera-experience/mb-camera-experience.utils.js +55 -0
  20. package/dist/collection/components/shared/mb-camera-selection/mb-camera-selection.css +124 -0
  21. package/dist/collection/components/shared/mb-camera-selection/mb-camera-selection.js +194 -0
  22. package/dist/collection/components/shared/mb-camera-toolbar/mb-camera-toolbar.css +80 -0
  23. package/dist/collection/components/shared/mb-camera-toolbar/mb-camera-toolbar.js +275 -0
  24. package/dist/collection/components/shared/mb-completed/mb-completed.css +17 -0
  25. package/dist/collection/components/shared/mb-completed/mb-completed.js +48 -0
  26. package/dist/collection/components/shared/mb-component/mb-component.css +321 -0
  27. package/dist/collection/components/shared/mb-component/mb-component.js +2269 -0
  28. package/dist/collection/components/shared/mb-component/mb-component.utils.js +14 -0
  29. package/dist/collection/components/shared/mb-container/mb-container.css +7 -0
  30. package/dist/collection/components/shared/mb-container/mb-container.js +23 -0
  31. package/dist/collection/components/shared/mb-feedback/mb-feedback.css +36 -0
  32. package/dist/collection/components/shared/mb-feedback/mb-feedback.js +91 -0
  33. package/dist/collection/components/shared/mb-feedback/mb-feedback.utils.js +11 -0
  34. package/dist/collection/components/shared/mb-help/mb-help.css +191 -0
  35. package/dist/collection/components/shared/mb-help/mb-help.js +409 -0
  36. package/dist/collection/components/shared/mb-help/mb-help.model.js +5 -0
  37. package/dist/collection/components/shared/mb-image-box/mb-image-box.css +78 -0
  38. package/dist/collection/components/shared/mb-image-box/mb-image-box.js +150 -0
  39. package/dist/collection/components/shared/mb-modal/mb-modal.css +106 -0
  40. package/dist/collection/components/shared/mb-modal/mb-modal.js +239 -0
  41. package/dist/collection/components/shared/mb-overlay/mb-overlay.css +46 -0
  42. package/dist/collection/components/shared/mb-overlay/mb-overlay.js +76 -0
  43. package/dist/collection/components/shared/mb-progress-tracker/mb-progress-tracker.css +24 -0
  44. package/dist/collection/components/shared/mb-progress-tracker/mb-progress-tracker.js +80 -0
  45. package/dist/collection/components/shared/mb-screen/mb-screen.css +19 -0
  46. package/dist/collection/components/shared/mb-screen/mb-screen.js +48 -0
  47. package/dist/collection/components/shared/mb-spinner/mb-spinner.css +30 -0
  48. package/dist/collection/components/shared/mb-spinner/mb-spinner.js +67 -0
  49. package/dist/collection/components/shared/mb-tooltip/mb-tooltip.css +62 -0
  50. package/dist/collection/components/shared/mb-tooltip/mb-tooltip.js +150 -0
  51. package/dist/collection/components/shared/mb-tooltip-advanced/mb-tooltip-advanced.css +91 -0
  52. package/dist/collection/components/shared/mb-tooltip-advanced/mb-tooltip-advanced.js +96 -0
  53. package/dist/collection/index.js +1 -0
  54. package/dist/collection/utils/data-structures.js +189 -0
  55. package/dist/collection/utils/device.helpers.js +37 -0
  56. package/dist/collection/utils/error-structures.js +47 -0
  57. package/dist/collection/utils/generic.helpers.js +82 -0
  58. package/dist/collection/utils/sdk.service.js +943 -0
  59. package/dist/collection/utils/state-lifter.js +3 -0
  60. package/dist/collection/utils/status.document-detector.js +15 -0
  61. package/dist/collection/utils/translation.service.js +97 -0
  62. package/dist/esm/document-detector_19.entry.js +8506 -0
  63. package/dist/esm/index-dc740acb.js +1656 -0
  64. package/dist/esm/index.js +1 -0
  65. package/dist/esm/loader.js +18 -0
  66. package/dist/esm/mb-tooltip.entry.js +22 -0
  67. package/dist/esm/polyfills/core-js.js +11 -0
  68. package/dist/esm/polyfills/css-shim.js +1 -0
  69. package/dist/esm/polyfills/dom.js +79 -0
  70. package/dist/esm/polyfills/es5-html-element.js +1 -0
  71. package/dist/esm/polyfills/index.js +34 -0
  72. package/dist/esm/polyfills/system.js +6 -0
  73. package/dist/esm/stamps.js +18 -0
  74. package/dist/index.cjs.js +1 -0
  75. package/dist/index.js +1 -0
  76. package/dist/stamps/index.esm.js +0 -0
  77. package/dist/stamps/p-02990b18.entry.js +9 -0
  78. package/dist/stamps/p-7f07a434.js +2 -0
  79. package/dist/stamps/p-ec3f5972.entry.js +1 -0
  80. package/dist/stamps/stamps.esm.js +1 -0
  81. package/dist/types/components/document-detector/document-detector.d.ts +84 -0
  82. package/dist/types/components/shared/mb-api-process-status/mb-api-process-status.d.ts +30 -0
  83. package/dist/types/components/shared/mb-button/mb-button.d.ts +41 -0
  84. package/dist/types/components/shared/mb-button-classic/mb-button-classic.d.ts +27 -0
  85. package/dist/types/components/shared/mb-camera-experience/mb-camera-experience.d.ts +141 -0
  86. package/dist/types/components/shared/mb-camera-experience/mb-camera-experience.utils.d.ts +3 -0
  87. package/dist/types/components/shared/mb-camera-selection/mb-camera-selection.d.ts +33 -0
  88. package/dist/types/components/shared/mb-camera-toolbar/mb-camera-toolbar.d.ts +54 -0
  89. package/dist/types/components/shared/mb-completed/mb-completed.d.ts +12 -0
  90. package/dist/types/components/shared/mb-component/mb-component.d.ts +308 -0
  91. package/dist/types/components/shared/mb-component/mb-component.utils.d.ts +3 -0
  92. package/dist/types/components/shared/mb-container/mb-container.d.ts +8 -0
  93. package/dist/types/components/shared/mb-feedback/mb-feedback.d.ts +19 -0
  94. package/dist/types/components/shared/mb-feedback/mb-feedback.utils.d.ts +2 -0
  95. package/dist/types/components/shared/mb-help/mb-help.d.ts +66 -0
  96. package/dist/types/components/shared/mb-help/mb-help.model.d.ts +9 -0
  97. package/dist/types/components/shared/mb-image-box/mb-image-box.d.ts +35 -0
  98. package/dist/types/components/shared/mb-modal/mb-modal.d.ts +53 -0
  99. package/dist/types/components/shared/mb-overlay/mb-overlay.d.ts +17 -0
  100. package/dist/types/components/shared/mb-progress-tracker/mb-progress-tracker.d.ts +19 -0
  101. package/dist/types/components/shared/mb-screen/mb-screen.d.ts +12 -0
  102. package/dist/types/components/shared/mb-spinner/mb-spinner.d.ts +16 -0
  103. package/dist/types/components/shared/mb-tooltip/mb-tooltip.d.ts +10 -0
  104. package/dist/types/components/shared/mb-tooltip-advanced/mb-tooltip-advanced.d.ts +7 -0
  105. package/dist/types/components.d.ts +1381 -0
  106. package/dist/types/index.d.ts +1 -0
  107. package/dist/types/stencil-public-runtime.d.ts +1637 -0
  108. package/dist/types/utils/data-structures.d.ts +264 -0
  109. package/dist/types/utils/device.helpers.d.ts +7 -0
  110. package/dist/types/utils/error-structures.d.ts +44 -0
  111. package/dist/types/utils/generic.helpers.d.ts +21 -0
  112. package/dist/types/utils/sdk.service.d.ts +52 -0
  113. package/dist/types/utils/state-lifter.d.ts +3 -0
  114. package/dist/types/utils/status.document-detector.d.ts +14 -0
  115. package/dist/types/utils/translation.service.d.ts +77 -0
  116. package/loader/cdn.js +3 -0
  117. package/loader/index.cjs.js +3 -0
  118. package/loader/index.d.ts +21 -0
  119. package/loader/index.es2017.js +3 -0
  120. package/loader/index.js +4 -0
  121. package/loader/package.json +11 -0
  122. package/package.json +63 -0
@@ -0,0 +1,1381 @@
1
+ /* eslint-disable */
2
+ /* tslint:disable */
3
+ /**
4
+ * This is an autogenerated file created by the Stencil compiler.
5
+ * It contains typing information for all components that exist in this project.
6
+ */
7
+ import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
+ import { StatusDocumentDetector } from "./utils/status.document-detector";
9
+ import { CameraEntry, CameraExperience, CameraExperienceState, CameraExperienceStateDurations, EventReady, EventScanError, EventScanSuccess, FeedbackMessage, ProductIntegrationInfo, SDKError } from "./utils/data-structures";
10
+ import { TranslationService } from "./utils/translation.service";
11
+ import { MbHelpCallbacks } from "./components/shared/mb-help/mb-help.model";
12
+ import { BlinkIDVariant } from "@microblink/blinkid-in-browser-sdk";
13
+ import { SdkService } from "./utils/sdk.service";
14
+ export namespace Components {
15
+ interface DocumentDetector {
16
+ "config": {
17
+ key: string;
18
+ };
19
+ "getProductIntegrationInfo": () => Promise<ProductIntegrationInfo>;
20
+ "licenseKey": string;
21
+ "setUiMessage": (state: "FEEDBACK_ERROR" | "FEEDBACK_INFO" | "FEEDBACK_OK", message: string) => Promise<void>;
22
+ "setUiState": (state: "ERROR" | "LOADING" | "NONE" | "SUCCESS") => Promise<void>;
23
+ "startCameraScan": () => Promise<void>;
24
+ "startImageScan": (file: File) => Promise<void>;
25
+ "startMultiSideImageScan": (firstFile: File, secondFile: File) => Promise<void>;
26
+ }
27
+ interface MbApiProcessStatus {
28
+ /**
29
+ * State value of API processing received from parent element ('loading' or 'success').
30
+ */
31
+ "state": "ERROR" | "LOADING" | "NONE" | "SUCCESS";
32
+ /**
33
+ * Instance of TranslationService passed from parent component.
34
+ */
35
+ "translationService": TranslationService;
36
+ /**
37
+ * Element visibility, default is 'false'.
38
+ */
39
+ "visible": boolean;
40
+ }
41
+ interface MbButton {
42
+ "buttonTitle": string;
43
+ /**
44
+ * Function to call on click
45
+ */
46
+ "clickHandler": (ev: UIEvent) => void;
47
+ /**
48
+ * Set to 'true' if button should be disabled, and if click events should not be triggered.
49
+ */
50
+ "disabled": boolean;
51
+ /**
52
+ * Passed description text for image element from parent component.
53
+ */
54
+ "imageAlt": string;
55
+ /**
56
+ * Passed image from parent component.
57
+ */
58
+ "imageSrcActive": string;
59
+ /**
60
+ * Passed image from parent component.
61
+ */
62
+ "imageSrcDefault": string;
63
+ /**
64
+ * Set to string which should be displayed below the icon. If omitted, nothing will show.
65
+ */
66
+ "label": string;
67
+ /**
68
+ * Set to 'true' if button should enter 'selected' state.
69
+ */
70
+ "selected": boolean;
71
+ /**
72
+ * Set to 'true' if button should be visible.
73
+ */
74
+ "visible": boolean;
75
+ }
76
+ interface MbButtonClassic {
77
+ /**
78
+ * Function to call on click
79
+ */
80
+ "clickHandler": (ev: UIEvent) => void;
81
+ /**
82
+ * Set to 'true' if button should be disabled, and if click events should not be triggered.
83
+ */
84
+ "disabled": boolean;
85
+ /**
86
+ * Set to 'true' if button should be inverted style.
87
+ */
88
+ "inverted": boolean;
89
+ /**
90
+ * Set to 'true' if default event should be prevented.
91
+ */
92
+ "preventDefault": boolean;
93
+ "quit": boolean;
94
+ }
95
+ interface MbCameraExperience {
96
+ /**
97
+ * Dictates if Help Screens usage is allowed (turned on).
98
+ */
99
+ "allowHelpScreens": boolean;
100
+ /**
101
+ * See description in public component.
102
+ */
103
+ "allowHelpScreensFab": boolean;
104
+ /**
105
+ * See description in public component.
106
+ */
107
+ "allowHelpScreensOnboarding": boolean;
108
+ /**
109
+ * See description in public component.
110
+ */
111
+ "allowHelpScreensOnboardingPerpetuity": boolean;
112
+ /**
113
+ * Api state passed from root component.
114
+ */
115
+ "apiState": string;
116
+ /**
117
+ * Configure camera experience state timeout durations
118
+ */
119
+ "cameraExperienceStateDurations": CameraExperienceStateDurations;
120
+ /**
121
+ * Camera horizontal state passed from root component. Horizontal camera image can be mirrored
122
+ */
123
+ "cameraFlipped": boolean;
124
+ "clearIsCameraActive": boolean;
125
+ /**
126
+ * See description in public component.
127
+ */
128
+ "helpScreensTooltipPauseTimeout": number;
129
+ /**
130
+ * Initializes Help Screens.
131
+ */
132
+ "initializeHelpScreens": (callbacks: MbHelpCallbacks) => Promise<void>;
133
+ /**
134
+ * Opens Help Screens in the Onboarding mode.
135
+ */
136
+ "openHelpScreensOnboarding": () => Promise<void>;
137
+ /**
138
+ * Populate list of camera devices.
139
+ */
140
+ "populateCameraDevices": () => Promise<void>;
141
+ /**
142
+ * Set camera state to initial method.
143
+ */
144
+ "resetState": () => Promise<void>;
145
+ /**
146
+ * Change active camera.
147
+ */
148
+ "setActiveCamera": (cameraId: string) => Promise<void>;
149
+ /**
150
+ * Method is exposed outside which allow us to control Camera Flip state from parent component.
151
+ */
152
+ "setCameraFlipState": (isFlipped: boolean) => Promise<void>;
153
+ /**
154
+ * Set camera state which includes animation and message.
155
+ */
156
+ "setState": (state: CameraExperienceState, isBackSide?: boolean, force?: boolean) => Promise<void>;
157
+ /**
158
+ * Show camera feedback message on camera for Barcode scanning
159
+ */
160
+ "showCameraFeedbackBarcodeMessage": boolean;
161
+ /**
162
+ * Unless specifically granted by your license key, you are not allowed to modify or remove the Microblink logo displayed on the bottom of the camera overlay.
163
+ */
164
+ "showOverlay": boolean;
165
+ /**
166
+ * Show scanning line on camera
167
+ */
168
+ "showScanningLine": boolean;
169
+ /**
170
+ * Terminates Help Screens.
171
+ */
172
+ "terminateHelpScreens": () => Promise<void>;
173
+ /**
174
+ * Instance of TranslationService passed from root component.
175
+ */
176
+ "translationService": TranslationService;
177
+ /**
178
+ * Choose desired camera experience. Each experience type must be implemented in this component.
179
+ */
180
+ "type": CameraExperience;
181
+ }
182
+ interface MbCameraSelection {
183
+ "clearIsCameraActive": boolean;
184
+ /**
185
+ * Populate list of camera devices.
186
+ */
187
+ "populateCameraDevices": () => Promise<void>;
188
+ /**
189
+ * Change active camera.
190
+ */
191
+ "setActiveCamera": (cameraId: string) => Promise<void>;
192
+ }
193
+ interface MbCameraToolbar {
194
+ /**
195
+ * Whether the camera is flipped, this property will be flip the relevant icon.
196
+ */
197
+ "cameraFlipped": boolean;
198
+ "clearIsCameraActive": boolean;
199
+ /**
200
+ * Whether to show 'Camera flip' button.
201
+ */
202
+ "enableCameraFlip": boolean;
203
+ /**
204
+ * Populate list of camera devices.
205
+ */
206
+ "populateCameraDevices": () => Promise<void>;
207
+ /**
208
+ * Change active camera.
209
+ */
210
+ "setActiveCamera": (cameraId: string) => Promise<void>;
211
+ /**
212
+ * Set to `true` if close button should be displayed.
213
+ */
214
+ "showClose": boolean;
215
+ }
216
+ interface MbCompleted {
217
+ /**
218
+ * Value of `src` attribute for <img> element.
219
+ */
220
+ "icon": string;
221
+ }
222
+ interface MbComponent {
223
+ /**
224
+ * See description in public component.
225
+ */
226
+ "allowHelloMessage": boolean;
227
+ /**
228
+ * Dictates if Help Screens usage is allowed (turned on).
229
+ */
230
+ "allowHelpScreens": boolean;
231
+ /**
232
+ * See description in public component.
233
+ */
234
+ "allowHelpScreensFab": boolean;
235
+ /**
236
+ * See description in public component.
237
+ */
238
+ "allowHelpScreensOnboarding": boolean;
239
+ /**
240
+ * See description in public component.
241
+ */
242
+ "allowHelpScreensOnboardingPerpetuity": boolean;
243
+ "blinkIdVariant"?: BlinkIDVariant;
244
+ /**
245
+ * See description in public component.
246
+ */
247
+ "cameraExperienceStateDurations": CameraExperienceStateDurations;
248
+ /**
249
+ * Camera device ID passed from root component.
250
+ */
251
+ "cameraId": string | null;
252
+ /**
253
+ * See description in public component.
254
+ */
255
+ "enableDrag": boolean;
256
+ /**
257
+ * See description in public component.
258
+ */
259
+ "engineLocation": string;
260
+ /**
261
+ * See description in public component.
262
+ */
263
+ "galleryDropType": "FULLSCREEN" | "INLINE";
264
+ /**
265
+ * See description in public component.
266
+ */
267
+ "galleryOverlayType": "FULLSCREEN" | "INLINE";
268
+ /**
269
+ * See description in public component.
270
+ */
271
+ "helpScreensTooltipPauseTimeout": number;
272
+ /**
273
+ * See description in public component.
274
+ */
275
+ "hideLoadingAndErrorUi": boolean;
276
+ /**
277
+ * See description in public component.
278
+ */
279
+ "iconCameraActive": string;
280
+ /**
281
+ * See description in public component.
282
+ */
283
+ "iconCameraDefault": string;
284
+ /**
285
+ * See description in public component.
286
+ */
287
+ "iconDragAndDropGalleryDefault": string;
288
+ /**
289
+ * See description in public component.
290
+ */
291
+ "iconDragAndDropWarningDefault": string;
292
+ /**
293
+ * See description in public component.
294
+ */
295
+ "iconGalleryActive": string;
296
+ /**
297
+ * See description in public component.
298
+ */
299
+ "iconGalleryDefault": string;
300
+ /**
301
+ * See description in public component.
302
+ */
303
+ "iconGalleryScanningCompleted": string;
304
+ /**
305
+ * See description in public component.
306
+ */
307
+ "iconInvalidFormat": string;
308
+ /**
309
+ * See description in public component.
310
+ */
311
+ "iconSpinnerFromGalleryExperience": string;
312
+ /**
313
+ * See description in public component.
314
+ */
315
+ "iconSpinnerScreenLoading": string;
316
+ /**
317
+ * See description in public component.
318
+ */
319
+ "includeSuccessFrame": boolean;
320
+ /**
321
+ * See description in public component.
322
+ */
323
+ "licenseKey": string;
324
+ /**
325
+ * See description in public component.
326
+ */
327
+ "pingProxyUrl": string | null;
328
+ /**
329
+ * See description in public component.
330
+ */
331
+ "recognitionPauseTimeout": number;
332
+ /**
333
+ * See description in public component.
334
+ */
335
+ "recognitionTimeout": number;
336
+ /**
337
+ * See description in public component.
338
+ */
339
+ "recognizerOptions": { [key: string]: any };
340
+ /**
341
+ * See description in public component.
342
+ */
343
+ "recognizers": Array<string>;
344
+ /**
345
+ * See description in public component.
346
+ */
347
+ "rtl": boolean;
348
+ /**
349
+ * See description in public component.
350
+ */
351
+ "scanFromCamera": boolean;
352
+ /**
353
+ * See description in public component.
354
+ */
355
+ "scanFromImage": boolean;
356
+ /**
357
+ * Instance of SdkService passed from root component.
358
+ */
359
+ "sdkService": SdkService;
360
+ /**
361
+ * Method is exposed outside which allow us to control UI state from parent component. In case of state `ERROR` and if `showModalWindows` is set to `true`, modal window with error message will be displayed.
362
+ */
363
+ "setUiState": (state: "ERROR" | "LOADING" | "NONE" | "SUCCESS") => Promise<void>;
364
+ /**
365
+ * See description in public component.
366
+ */
367
+ "showActionLabels": boolean;
368
+ /**
369
+ * See description in public component.
370
+ */
371
+ "showCameraFeedbackBarcodeMessage": boolean;
372
+ /**
373
+ * See description in public component.
374
+ */
375
+ "showModalWindows": boolean;
376
+ /**
377
+ * See description in public component.
378
+ */
379
+ "showScanningLine": boolean;
380
+ /**
381
+ * Starts camera scan using camera overlay with usage instructions.
382
+ */
383
+ "startCameraScan": () => Promise<void>;
384
+ /**
385
+ * Starts image scan, emits results from provided file.
386
+ * @param file File to scan
387
+ */
388
+ "startImageScan": (file: File) => Promise<void>;
389
+ /**
390
+ * Starts multi-side image scan, emits results from provided files.
391
+ * @param firstFile File to scan as first image
392
+ * @param secondFile File to scan as second image
393
+ */
394
+ "startMultiSideImageScan": (firstFile: File, secondFile: File) => Promise<void>;
395
+ /**
396
+ * See description in public component.
397
+ */
398
+ "thoroughScanFromImage": boolean;
399
+ /**
400
+ * Instance of TranslationService passed from root component.
401
+ */
402
+ "translationService": TranslationService;
403
+ /**
404
+ * See description in public component.
405
+ */
406
+ "wasmType": string | null;
407
+ /**
408
+ * See description in public component.
409
+ */
410
+ "workerLocation": string;
411
+ }
412
+ interface MbContainer {
413
+ }
414
+ interface MbFeedback {
415
+ /**
416
+ * Call when FeedbackMessage which should be displayed.
417
+ */
418
+ "show": (feedback: FeedbackMessage) => Promise<void>;
419
+ /**
420
+ * Set to 'true' if component should be visible.
421
+ */
422
+ "visible": boolean;
423
+ }
424
+ interface MbHelp {
425
+ /**
426
+ * Dictates if usage is allowed (turned on).
427
+ */
428
+ "allow": boolean;
429
+ /**
430
+ * Dictates if Floating-Action-Button (Fab) is shown.
431
+ */
432
+ "allowFab": boolean;
433
+ /**
434
+ * Dictates if the onboarding is allowed.
435
+ */
436
+ "allowOnboarding": boolean;
437
+ /**
438
+ * Dictates if onboarding is executed all the time, or just once.
439
+ */
440
+ "allowOnboardingPerpetuity": boolean;
441
+ /**
442
+ * Closes modal.
443
+ */
444
+ "close": () => Promise<void>;
445
+ /**
446
+ * Initializes - starts tooltip timer, etc.
447
+ */
448
+ "initialize": (callbacks: MbHelpCallbacks) => Promise<void>;
449
+ /**
450
+ * Opens modal for Help Screens purpose.
451
+ */
452
+ "openHelpScreens": () => Promise<void>;
453
+ /**
454
+ * Opens modal for Onboarding purpose.
455
+ */
456
+ "openOnboarding": () => Promise<void>;
457
+ /**
458
+ * Terminates - cancels tooltip timer, closes modal, etc.
459
+ */
460
+ "terminate": () => Promise<void>;
461
+ /**
462
+ * Dictates Milliseconds after which a "Need Help?" tooltip will be shown.
463
+ */
464
+ "tooltipPauseTimeout": number;
465
+ /**
466
+ * Translation service.
467
+ */
468
+ "translationService": TranslationService;
469
+ }
470
+ interface MbImageBox {
471
+ /**
472
+ * Text which should be displayed inside 'Add image' anchor element when file is not selected.
473
+ */
474
+ "anchorText": string;
475
+ /**
476
+ * Text which represents name of the image.
477
+ */
478
+ "boxTitle": string;
479
+ /**
480
+ * Clear input image.
481
+ */
482
+ "clear": () => Promise<void>;
483
+ }
484
+ interface MbModal {
485
+ /**
486
+ * Center component
487
+ */
488
+ "centered": boolean;
489
+ /**
490
+ * Passed body content from parent component
491
+ */
492
+ "content": string;
493
+ /**
494
+ * Center content inside modal
495
+ */
496
+ "contentCentered": boolean;
497
+ /**
498
+ * Show shadow drop
499
+ */
500
+ "elevated": boolean;
501
+ /**
502
+ * Whether to hide the close button or not.
503
+ */
504
+ "hideCloseButton": boolean;
505
+ /**
506
+ * Whether to hide the footer or not
507
+ */
508
+ "hideFooter": boolean;
509
+ /**
510
+ * Passed title content from parent component
511
+ */
512
+ "modalTitle": string;
513
+ /**
514
+ * Whether to show back arrow or not
515
+ */
516
+ "showBackButton": boolean;
517
+ /**
518
+ * Show modal content
519
+ */
520
+ "visible": boolean;
521
+ }
522
+ interface MbOverlay {
523
+ /**
524
+ * Set to 'false' if overlay should not cover whole screen.
525
+ */
526
+ "fullscreen": boolean;
527
+ /**
528
+ * Set to 'true' if overlay should be visible.
529
+ */
530
+ "visible": boolean;
531
+ }
532
+ interface MbProgressTracker {
533
+ /**
534
+ * Current step. Steps start from 1 up to the size number. Default is 1.
535
+ */
536
+ "current": number;
537
+ /**
538
+ * Steps count. Default is 3.
539
+ */
540
+ "size": number;
541
+ }
542
+ interface MbScreen {
543
+ /**
544
+ * Set to 'true' if screen should be visible.
545
+ */
546
+ "visible": boolean;
547
+ }
548
+ interface MbSpinner {
549
+ /**
550
+ * Value of `src` attribute for <img> element.
551
+ */
552
+ "icon": string;
553
+ /**
554
+ * Spinner size, can be 'default' or 'large'.
555
+ */
556
+ "size": string;
557
+ }
558
+ interface MbTooltip {
559
+ "arrowPosition"?: | "arrow-left"
560
+ | "arrow-right"
561
+ | "arrow-up"
562
+ | "arrow-down"
563
+ | "arrow-none";
564
+ "containerWidth"?: string;
565
+ "message": string;
566
+ "show": boolean;
567
+ "showInfoIcon"?: boolean;
568
+ "showWarningIcon"?: boolean;
569
+ "textAlign"?: "text-center" | "text-left" | "text-right";
570
+ }
571
+ interface MbTooltipAdvanced {
572
+ "arrowPosition"?: | "arrow-left"
573
+ | "arrow-right"
574
+ | "arrow-up"
575
+ | "arrow-up-left"
576
+ | "arrow-up-right"
577
+ | "arrow-down"
578
+ | "arrow-down-left"
579
+ | "arrow-down-right";
580
+ "message": string;
581
+ "show": boolean;
582
+ "textAlign"?: "text-center" | "text-left" | "text-right";
583
+ }
584
+ }
585
+ export interface DocumentDetectorCustomEvent<T> extends CustomEvent<T> {
586
+ detail: T;
587
+ target: HTMLDocumentDetectorElement;
588
+ }
589
+ export interface MbApiProcessStatusCustomEvent<T> extends CustomEvent<T> {
590
+ detail: T;
591
+ target: HTMLMbApiProcessStatusElement;
592
+ }
593
+ export interface MbCameraExperienceCustomEvent<T> extends CustomEvent<T> {
594
+ detail: T;
595
+ target: HTMLMbCameraExperienceElement;
596
+ }
597
+ export interface MbCameraSelectionCustomEvent<T> extends CustomEvent<T> {
598
+ detail: T;
599
+ target: HTMLMbCameraSelectionElement;
600
+ }
601
+ export interface MbCameraToolbarCustomEvent<T> extends CustomEvent<T> {
602
+ detail: T;
603
+ target: HTMLMbCameraToolbarElement;
604
+ }
605
+ export interface MbComponentCustomEvent<T> extends CustomEvent<T> {
606
+ detail: T;
607
+ target: HTMLMbComponentElement;
608
+ }
609
+ export interface MbImageBoxCustomEvent<T> extends CustomEvent<T> {
610
+ detail: T;
611
+ target: HTMLMbImageBoxElement;
612
+ }
613
+ export interface MbModalCustomEvent<T> extends CustomEvent<T> {
614
+ detail: T;
615
+ target: HTMLMbModalElement;
616
+ }
617
+ declare global {
618
+ interface HTMLDocumentDetectorElement extends Components.DocumentDetector, HTMLStencilElement {
619
+ }
620
+ var HTMLDocumentDetectorElement: {
621
+ prototype: HTMLDocumentDetectorElement;
622
+ new (): HTMLDocumentDetectorElement;
623
+ };
624
+ interface HTMLMbApiProcessStatusElement extends Components.MbApiProcessStatus, HTMLStencilElement {
625
+ }
626
+ var HTMLMbApiProcessStatusElement: {
627
+ prototype: HTMLMbApiProcessStatusElement;
628
+ new (): HTMLMbApiProcessStatusElement;
629
+ };
630
+ interface HTMLMbButtonElement extends Components.MbButton, HTMLStencilElement {
631
+ }
632
+ var HTMLMbButtonElement: {
633
+ prototype: HTMLMbButtonElement;
634
+ new (): HTMLMbButtonElement;
635
+ };
636
+ interface HTMLMbButtonClassicElement extends Components.MbButtonClassic, HTMLStencilElement {
637
+ }
638
+ var HTMLMbButtonClassicElement: {
639
+ prototype: HTMLMbButtonClassicElement;
640
+ new (): HTMLMbButtonClassicElement;
641
+ };
642
+ interface HTMLMbCameraExperienceElement extends Components.MbCameraExperience, HTMLStencilElement {
643
+ }
644
+ var HTMLMbCameraExperienceElement: {
645
+ prototype: HTMLMbCameraExperienceElement;
646
+ new (): HTMLMbCameraExperienceElement;
647
+ };
648
+ interface HTMLMbCameraSelectionElement extends Components.MbCameraSelection, HTMLStencilElement {
649
+ }
650
+ var HTMLMbCameraSelectionElement: {
651
+ prototype: HTMLMbCameraSelectionElement;
652
+ new (): HTMLMbCameraSelectionElement;
653
+ };
654
+ interface HTMLMbCameraToolbarElement extends Components.MbCameraToolbar, HTMLStencilElement {
655
+ }
656
+ var HTMLMbCameraToolbarElement: {
657
+ prototype: HTMLMbCameraToolbarElement;
658
+ new (): HTMLMbCameraToolbarElement;
659
+ };
660
+ interface HTMLMbCompletedElement extends Components.MbCompleted, HTMLStencilElement {
661
+ }
662
+ var HTMLMbCompletedElement: {
663
+ prototype: HTMLMbCompletedElement;
664
+ new (): HTMLMbCompletedElement;
665
+ };
666
+ interface HTMLMbComponentElement extends Components.MbComponent, HTMLStencilElement {
667
+ }
668
+ var HTMLMbComponentElement: {
669
+ prototype: HTMLMbComponentElement;
670
+ new (): HTMLMbComponentElement;
671
+ };
672
+ interface HTMLMbContainerElement extends Components.MbContainer, HTMLStencilElement {
673
+ }
674
+ var HTMLMbContainerElement: {
675
+ prototype: HTMLMbContainerElement;
676
+ new (): HTMLMbContainerElement;
677
+ };
678
+ interface HTMLMbFeedbackElement extends Components.MbFeedback, HTMLStencilElement {
679
+ }
680
+ var HTMLMbFeedbackElement: {
681
+ prototype: HTMLMbFeedbackElement;
682
+ new (): HTMLMbFeedbackElement;
683
+ };
684
+ interface HTMLMbHelpElement extends Components.MbHelp, HTMLStencilElement {
685
+ }
686
+ var HTMLMbHelpElement: {
687
+ prototype: HTMLMbHelpElement;
688
+ new (): HTMLMbHelpElement;
689
+ };
690
+ interface HTMLMbImageBoxElement extends Components.MbImageBox, HTMLStencilElement {
691
+ }
692
+ var HTMLMbImageBoxElement: {
693
+ prototype: HTMLMbImageBoxElement;
694
+ new (): HTMLMbImageBoxElement;
695
+ };
696
+ interface HTMLMbModalElement extends Components.MbModal, HTMLStencilElement {
697
+ }
698
+ var HTMLMbModalElement: {
699
+ prototype: HTMLMbModalElement;
700
+ new (): HTMLMbModalElement;
701
+ };
702
+ interface HTMLMbOverlayElement extends Components.MbOverlay, HTMLStencilElement {
703
+ }
704
+ var HTMLMbOverlayElement: {
705
+ prototype: HTMLMbOverlayElement;
706
+ new (): HTMLMbOverlayElement;
707
+ };
708
+ interface HTMLMbProgressTrackerElement extends Components.MbProgressTracker, HTMLStencilElement {
709
+ }
710
+ var HTMLMbProgressTrackerElement: {
711
+ prototype: HTMLMbProgressTrackerElement;
712
+ new (): HTMLMbProgressTrackerElement;
713
+ };
714
+ interface HTMLMbScreenElement extends Components.MbScreen, HTMLStencilElement {
715
+ }
716
+ var HTMLMbScreenElement: {
717
+ prototype: HTMLMbScreenElement;
718
+ new (): HTMLMbScreenElement;
719
+ };
720
+ interface HTMLMbSpinnerElement extends Components.MbSpinner, HTMLStencilElement {
721
+ }
722
+ var HTMLMbSpinnerElement: {
723
+ prototype: HTMLMbSpinnerElement;
724
+ new (): HTMLMbSpinnerElement;
725
+ };
726
+ interface HTMLMbTooltipElement extends Components.MbTooltip, HTMLStencilElement {
727
+ }
728
+ var HTMLMbTooltipElement: {
729
+ prototype: HTMLMbTooltipElement;
730
+ new (): HTMLMbTooltipElement;
731
+ };
732
+ interface HTMLMbTooltipAdvancedElement extends Components.MbTooltipAdvanced, HTMLStencilElement {
733
+ }
734
+ var HTMLMbTooltipAdvancedElement: {
735
+ prototype: HTMLMbTooltipAdvancedElement;
736
+ new (): HTMLMbTooltipAdvancedElement;
737
+ };
738
+ interface HTMLElementTagNameMap {
739
+ "document-detector": HTMLDocumentDetectorElement;
740
+ "mb-api-process-status": HTMLMbApiProcessStatusElement;
741
+ "mb-button": HTMLMbButtonElement;
742
+ "mb-button-classic": HTMLMbButtonClassicElement;
743
+ "mb-camera-experience": HTMLMbCameraExperienceElement;
744
+ "mb-camera-selection": HTMLMbCameraSelectionElement;
745
+ "mb-camera-toolbar": HTMLMbCameraToolbarElement;
746
+ "mb-completed": HTMLMbCompletedElement;
747
+ "mb-component": HTMLMbComponentElement;
748
+ "mb-container": HTMLMbContainerElement;
749
+ "mb-feedback": HTMLMbFeedbackElement;
750
+ "mb-help": HTMLMbHelpElement;
751
+ "mb-image-box": HTMLMbImageBoxElement;
752
+ "mb-modal": HTMLMbModalElement;
753
+ "mb-overlay": HTMLMbOverlayElement;
754
+ "mb-progress-tracker": HTMLMbProgressTrackerElement;
755
+ "mb-screen": HTMLMbScreenElement;
756
+ "mb-spinner": HTMLMbSpinnerElement;
757
+ "mb-tooltip": HTMLMbTooltipElement;
758
+ "mb-tooltip-advanced": HTMLMbTooltipAdvancedElement;
759
+ }
760
+ }
761
+ declare namespace LocalJSX {
762
+ interface DocumentDetector {
763
+ "config"?: {
764
+ key: string;
765
+ };
766
+ "licenseKey"?: string;
767
+ "onResults"?: (event: DocumentDetectorCustomEvent<any>) => void;
768
+ "onStatus"?: (event: DocumentDetectorCustomEvent<StatusDocumentDetector>) => void;
769
+ }
770
+ interface MbApiProcessStatus {
771
+ /**
772
+ * Emitted when user clicks on 'x' button.
773
+ */
774
+ "onCloseFromStart"?: (event: MbApiProcessStatusCustomEvent<void>) => void;
775
+ /**
776
+ * Emitted when user clicks on 'Retry' button.
777
+ */
778
+ "onCloseTryAgain"?: (event: MbApiProcessStatusCustomEvent<void>) => void;
779
+ /**
780
+ * State value of API processing received from parent element ('loading' or 'success').
781
+ */
782
+ "state"?: "ERROR" | "LOADING" | "NONE" | "SUCCESS";
783
+ /**
784
+ * Instance of TranslationService passed from parent component.
785
+ */
786
+ "translationService"?: TranslationService;
787
+ /**
788
+ * Element visibility, default is 'false'.
789
+ */
790
+ "visible"?: boolean;
791
+ }
792
+ interface MbButton {
793
+ "buttonTitle": string;
794
+ /**
795
+ * Function to call on click
796
+ */
797
+ "clickHandler": (ev: UIEvent) => void;
798
+ /**
799
+ * Set to 'true' if button should be disabled, and if click events should not be triggered.
800
+ */
801
+ "disabled"?: boolean;
802
+ /**
803
+ * Passed description text for image element from parent component.
804
+ */
805
+ "imageAlt"?: string;
806
+ /**
807
+ * Passed image from parent component.
808
+ */
809
+ "imageSrcActive": string;
810
+ /**
811
+ * Passed image from parent component.
812
+ */
813
+ "imageSrcDefault": string;
814
+ /**
815
+ * Set to string which should be displayed below the icon. If omitted, nothing will show.
816
+ */
817
+ "label"?: string;
818
+ /**
819
+ * Set to 'true' if button should enter 'selected' state.
820
+ */
821
+ "selected"?: boolean;
822
+ /**
823
+ * Set to 'true' if button should be visible.
824
+ */
825
+ "visible"?: boolean;
826
+ }
827
+ interface MbButtonClassic {
828
+ /**
829
+ * Function to call on click
830
+ */
831
+ "clickHandler": (ev: UIEvent) => void;
832
+ /**
833
+ * Set to 'true' if button should be disabled, and if click events should not be triggered.
834
+ */
835
+ "disabled"?: boolean;
836
+ /**
837
+ * Set to 'true' if button should be inverted style.
838
+ */
839
+ "inverted"?: boolean;
840
+ /**
841
+ * Set to 'true' if default event should be prevented.
842
+ */
843
+ "preventDefault"?: boolean;
844
+ "quit"?: boolean;
845
+ }
846
+ interface MbCameraExperience {
847
+ /**
848
+ * Dictates if Help Screens usage is allowed (turned on).
849
+ */
850
+ "allowHelpScreens"?: boolean;
851
+ /**
852
+ * See description in public component.
853
+ */
854
+ "allowHelpScreensFab"?: boolean;
855
+ /**
856
+ * See description in public component.
857
+ */
858
+ "allowHelpScreensOnboarding"?: boolean;
859
+ /**
860
+ * See description in public component.
861
+ */
862
+ "allowHelpScreensOnboardingPerpetuity"?: boolean;
863
+ /**
864
+ * Api state passed from root component.
865
+ */
866
+ "apiState"?: string;
867
+ /**
868
+ * Configure camera experience state timeout durations
869
+ */
870
+ "cameraExperienceStateDurations"?: CameraExperienceStateDurations;
871
+ /**
872
+ * Camera horizontal state passed from root component. Horizontal camera image can be mirrored
873
+ */
874
+ "cameraFlipped"?: boolean;
875
+ "clearIsCameraActive"?: boolean;
876
+ /**
877
+ * See description in public component.
878
+ */
879
+ "helpScreensTooltipPauseTimeout"?: number;
880
+ /**
881
+ * Emitted when user selects a different camera device.
882
+ */
883
+ "onChangeCameraDevice"?: (event: MbCameraExperienceCustomEvent<CameraEntry>) => void;
884
+ /**
885
+ * Emitted when user clicks on 'X' button.
886
+ */
887
+ "onClose"?: (event: MbCameraExperienceCustomEvent<void>) => void;
888
+ /**
889
+ * Emitted when user clicks on Flip button.
890
+ */
891
+ "onFlipCameraAction"?: (event: MbCameraExperienceCustomEvent<void>) => void;
892
+ /**
893
+ * Emitted when camera stream becomes active.
894
+ */
895
+ "onSetIsCameraActive"?: (event: MbCameraExperienceCustomEvent<boolean>) => void;
896
+ /**
897
+ * Show camera feedback message on camera for Barcode scanning
898
+ */
899
+ "showCameraFeedbackBarcodeMessage"?: boolean;
900
+ /**
901
+ * Unless specifically granted by your license key, you are not allowed to modify or remove the Microblink logo displayed on the bottom of the camera overlay.
902
+ */
903
+ "showOverlay"?: boolean;
904
+ /**
905
+ * Show scanning line on camera
906
+ */
907
+ "showScanningLine"?: boolean;
908
+ /**
909
+ * Instance of TranslationService passed from root component.
910
+ */
911
+ "translationService"?: TranslationService;
912
+ /**
913
+ * Choose desired camera experience. Each experience type must be implemented in this component.
914
+ */
915
+ "type"?: CameraExperience;
916
+ }
917
+ interface MbCameraSelection {
918
+ "clearIsCameraActive"?: boolean;
919
+ /**
920
+ * Emitted when user selects a different camera device.
921
+ */
922
+ "onChangeCameraDevice"?: (event: MbCameraSelectionCustomEvent<CameraEntry>) => void;
923
+ /**
924
+ * Emitted when camera stream becomes active.
925
+ */
926
+ "onSetIsCameraActive"?: (event: MbCameraSelectionCustomEvent<boolean>) => void;
927
+ }
928
+ interface MbCameraToolbar {
929
+ /**
930
+ * Whether the camera is flipped, this property will be flip the relevant icon.
931
+ */
932
+ "cameraFlipped"?: boolean;
933
+ "clearIsCameraActive"?: boolean;
934
+ /**
935
+ * Whether to show 'Camera flip' button.
936
+ */
937
+ "enableCameraFlip"?: boolean;
938
+ /**
939
+ * Emitted when user selects a different camera device.
940
+ */
941
+ "onChangeCameraDevice"?: (event: MbCameraToolbarCustomEvent<CameraEntry>) => void;
942
+ /**
943
+ * Event which is triggered when close button is clicked.
944
+ */
945
+ "onCloseEvent"?: (event: MbCameraToolbarCustomEvent<void>) => void;
946
+ /**
947
+ * Event which is triggered when flip camera button is clicked.
948
+ */
949
+ "onFlipEvent"?: (event: MbCameraToolbarCustomEvent<void>) => void;
950
+ /**
951
+ * Emitted when camera stream becomes active.
952
+ */
953
+ "onSetIsCameraActive"?: (event: MbCameraToolbarCustomEvent<boolean>) => void;
954
+ /**
955
+ * Set to `true` if close button should be displayed.
956
+ */
957
+ "showClose"?: boolean;
958
+ }
959
+ interface MbCompleted {
960
+ /**
961
+ * Value of `src` attribute for <img> element.
962
+ */
963
+ "icon"?: string;
964
+ }
965
+ interface MbComponent {
966
+ /**
967
+ * See description in public component.
968
+ */
969
+ "allowHelloMessage"?: boolean;
970
+ /**
971
+ * Dictates if Help Screens usage is allowed (turned on).
972
+ */
973
+ "allowHelpScreens"?: boolean;
974
+ /**
975
+ * See description in public component.
976
+ */
977
+ "allowHelpScreensFab"?: boolean;
978
+ /**
979
+ * See description in public component.
980
+ */
981
+ "allowHelpScreensOnboarding"?: boolean;
982
+ /**
983
+ * See description in public component.
984
+ */
985
+ "allowHelpScreensOnboardingPerpetuity"?: boolean;
986
+ "blinkIdVariant"?: BlinkIDVariant;
987
+ /**
988
+ * See description in public component.
989
+ */
990
+ "cameraExperienceStateDurations"?: CameraExperienceStateDurations;
991
+ /**
992
+ * Camera device ID passed from root component.
993
+ */
994
+ "cameraId"?: string | null;
995
+ /**
996
+ * See description in public component.
997
+ */
998
+ "enableDrag"?: boolean;
999
+ /**
1000
+ * See description in public component.
1001
+ */
1002
+ "engineLocation"?: string;
1003
+ /**
1004
+ * See description in public component.
1005
+ */
1006
+ "galleryDropType"?: "FULLSCREEN" | "INLINE";
1007
+ /**
1008
+ * See description in public component.
1009
+ */
1010
+ "galleryOverlayType"?: "FULLSCREEN" | "INLINE";
1011
+ /**
1012
+ * See description in public component.
1013
+ */
1014
+ "helpScreensTooltipPauseTimeout"?: number;
1015
+ /**
1016
+ * See description in public component.
1017
+ */
1018
+ "hideLoadingAndErrorUi"?: boolean;
1019
+ /**
1020
+ * See description in public component.
1021
+ */
1022
+ "iconCameraActive"?: string;
1023
+ /**
1024
+ * See description in public component.
1025
+ */
1026
+ "iconCameraDefault"?: string;
1027
+ /**
1028
+ * See description in public component.
1029
+ */
1030
+ "iconDragAndDropGalleryDefault"?: string;
1031
+ /**
1032
+ * See description in public component.
1033
+ */
1034
+ "iconDragAndDropWarningDefault"?: string;
1035
+ /**
1036
+ * See description in public component.
1037
+ */
1038
+ "iconGalleryActive"?: string;
1039
+ /**
1040
+ * See description in public component.
1041
+ */
1042
+ "iconGalleryDefault"?: string;
1043
+ /**
1044
+ * See description in public component.
1045
+ */
1046
+ "iconGalleryScanningCompleted"?: string;
1047
+ /**
1048
+ * See description in public component.
1049
+ */
1050
+ "iconInvalidFormat"?: string;
1051
+ /**
1052
+ * See description in public component.
1053
+ */
1054
+ "iconSpinnerFromGalleryExperience"?: string;
1055
+ /**
1056
+ * See description in public component.
1057
+ */
1058
+ "iconSpinnerScreenLoading"?: string;
1059
+ /**
1060
+ * See description in public component.
1061
+ */
1062
+ "includeSuccessFrame"?: boolean;
1063
+ /**
1064
+ * See description in public component.
1065
+ */
1066
+ "licenseKey"?: string;
1067
+ /**
1068
+ * Event containing boolean which used to check whether component is blocked.
1069
+ */
1070
+ "onBlock"?: (event: MbComponentCustomEvent<boolean>) => void;
1071
+ /**
1072
+ * See event 'cameraScanStarted' in public component.
1073
+ */
1074
+ "onCameraScanStarted"?: (event: MbComponentCustomEvent<null>) => void;
1075
+ /**
1076
+ * See event 'fatalError' in public component.
1077
+ */
1078
+ "onFatalError"?: (event: MbComponentCustomEvent<SDKError>) => void;
1079
+ /**
1080
+ * Event containing FeedbackMessage which can be passed to MbFeedback component.
1081
+ */
1082
+ "onFeedback"?: (event: MbComponentCustomEvent<FeedbackMessage>) => void;
1083
+ /**
1084
+ * See event 'imageScanStarted' in public component.
1085
+ */
1086
+ "onImageScanStarted"?: (event: MbComponentCustomEvent<null>) => void;
1087
+ /**
1088
+ * See event 'ready' in public component.
1089
+ */
1090
+ "onReady"?: (event: MbComponentCustomEvent<EventReady>) => void;
1091
+ /**
1092
+ * See event 'scanAborted' in public component.
1093
+ */
1094
+ "onScanAborted"?: (event: MbComponentCustomEvent<null>) => void;
1095
+ /**
1096
+ * See event 'scanError' in public component.
1097
+ */
1098
+ "onScanError"?: (event: MbComponentCustomEvent<EventScanError>) => void;
1099
+ /**
1100
+ * See event 'scanSuccess' in public component.
1101
+ */
1102
+ "onScanSuccess"?: (event: MbComponentCustomEvent<EventScanSuccess>) => void;
1103
+ /**
1104
+ * Emitted when camera stream becomes active.
1105
+ */
1106
+ "onSetIsCameraActive"?: (event: MbComponentCustomEvent<boolean>) => void;
1107
+ /**
1108
+ * See description in public component.
1109
+ */
1110
+ "pingProxyUrl"?: string | null;
1111
+ /**
1112
+ * See description in public component.
1113
+ */
1114
+ "recognitionPauseTimeout"?: number;
1115
+ /**
1116
+ * See description in public component.
1117
+ */
1118
+ "recognitionTimeout"?: number;
1119
+ /**
1120
+ * See description in public component.
1121
+ */
1122
+ "recognizerOptions"?: { [key: string]: any };
1123
+ /**
1124
+ * See description in public component.
1125
+ */
1126
+ "recognizers"?: Array<string>;
1127
+ /**
1128
+ * See description in public component.
1129
+ */
1130
+ "rtl"?: boolean;
1131
+ /**
1132
+ * See description in public component.
1133
+ */
1134
+ "scanFromCamera"?: boolean;
1135
+ /**
1136
+ * See description in public component.
1137
+ */
1138
+ "scanFromImage"?: boolean;
1139
+ /**
1140
+ * Instance of SdkService passed from root component.
1141
+ */
1142
+ "sdkService"?: SdkService;
1143
+ /**
1144
+ * See description in public component.
1145
+ */
1146
+ "showActionLabels"?: boolean;
1147
+ /**
1148
+ * See description in public component.
1149
+ */
1150
+ "showCameraFeedbackBarcodeMessage"?: boolean;
1151
+ /**
1152
+ * See description in public component.
1153
+ */
1154
+ "showModalWindows"?: boolean;
1155
+ /**
1156
+ * See description in public component.
1157
+ */
1158
+ "showScanningLine"?: boolean;
1159
+ /**
1160
+ * See description in public component.
1161
+ */
1162
+ "thoroughScanFromImage"?: boolean;
1163
+ /**
1164
+ * Instance of TranslationService passed from root component.
1165
+ */
1166
+ "translationService"?: TranslationService;
1167
+ /**
1168
+ * See description in public component.
1169
+ */
1170
+ "wasmType"?: string | null;
1171
+ /**
1172
+ * See description in public component.
1173
+ */
1174
+ "workerLocation"?: string;
1175
+ }
1176
+ interface MbContainer {
1177
+ }
1178
+ interface MbFeedback {
1179
+ /**
1180
+ * Set to 'true' if component should be visible.
1181
+ */
1182
+ "visible"?: boolean;
1183
+ }
1184
+ interface MbHelp {
1185
+ /**
1186
+ * Dictates if usage is allowed (turned on).
1187
+ */
1188
+ "allow"?: boolean;
1189
+ /**
1190
+ * Dictates if Floating-Action-Button (Fab) is shown.
1191
+ */
1192
+ "allowFab"?: boolean;
1193
+ /**
1194
+ * Dictates if the onboarding is allowed.
1195
+ */
1196
+ "allowOnboarding"?: boolean;
1197
+ /**
1198
+ * Dictates if onboarding is executed all the time, or just once.
1199
+ */
1200
+ "allowOnboardingPerpetuity"?: boolean;
1201
+ /**
1202
+ * Dictates Milliseconds after which a "Need Help?" tooltip will be shown.
1203
+ */
1204
+ "tooltipPauseTimeout"?: number;
1205
+ /**
1206
+ * Translation service.
1207
+ */
1208
+ "translationService": TranslationService;
1209
+ }
1210
+ interface MbImageBox {
1211
+ /**
1212
+ * Text which should be displayed inside 'Add image' anchor element when file is not selected.
1213
+ */
1214
+ "anchorText"?: string;
1215
+ /**
1216
+ * Text which represents name of the image.
1217
+ */
1218
+ "boxTitle"?: string;
1219
+ /**
1220
+ * Event which is triggered when selected image file is changed.
1221
+ */
1222
+ "onImageChange"?: (event: MbImageBoxCustomEvent<FileList>) => void;
1223
+ }
1224
+ interface MbModal {
1225
+ /**
1226
+ * Center component
1227
+ */
1228
+ "centered"?: boolean;
1229
+ /**
1230
+ * Passed body content from parent component
1231
+ */
1232
+ "content"?: string;
1233
+ /**
1234
+ * Center content inside modal
1235
+ */
1236
+ "contentCentered"?: boolean;
1237
+ /**
1238
+ * Show shadow drop
1239
+ */
1240
+ "elevated"?: boolean;
1241
+ /**
1242
+ * Whether to hide the close button or not.
1243
+ */
1244
+ "hideCloseButton"?: boolean;
1245
+ /**
1246
+ * Whether to hide the footer or not
1247
+ */
1248
+ "hideFooter"?: boolean;
1249
+ /**
1250
+ * Passed title content from parent component
1251
+ */
1252
+ "modalTitle"?: string;
1253
+ /**
1254
+ * Emitted when user clicks on 'Back Arrow' button.
1255
+ */
1256
+ "onBack"?: (event: MbModalCustomEvent<void>) => void;
1257
+ /**
1258
+ * Emitted when user clicks on 'X' button.
1259
+ */
1260
+ "onClose"?: (event: MbModalCustomEvent<void>) => void;
1261
+ /**
1262
+ * Whether to show back arrow or not
1263
+ */
1264
+ "showBackButton"?: boolean;
1265
+ /**
1266
+ * Show modal content
1267
+ */
1268
+ "visible"?: boolean;
1269
+ }
1270
+ interface MbOverlay {
1271
+ /**
1272
+ * Set to 'false' if overlay should not cover whole screen.
1273
+ */
1274
+ "fullscreen"?: boolean;
1275
+ /**
1276
+ * Set to 'true' if overlay should be visible.
1277
+ */
1278
+ "visible"?: boolean;
1279
+ }
1280
+ interface MbProgressTracker {
1281
+ /**
1282
+ * Current step. Steps start from 1 up to the size number. Default is 1.
1283
+ */
1284
+ "current"?: number;
1285
+ /**
1286
+ * Steps count. Default is 3.
1287
+ */
1288
+ "size"?: number;
1289
+ }
1290
+ interface MbScreen {
1291
+ /**
1292
+ * Set to 'true' if screen should be visible.
1293
+ */
1294
+ "visible"?: boolean;
1295
+ }
1296
+ interface MbSpinner {
1297
+ /**
1298
+ * Value of `src` attribute for <img> element.
1299
+ */
1300
+ "icon"?: string;
1301
+ /**
1302
+ * Spinner size, can be 'default' or 'large'.
1303
+ */
1304
+ "size"?: string;
1305
+ }
1306
+ interface MbTooltip {
1307
+ "arrowPosition"?: | "arrow-left"
1308
+ | "arrow-right"
1309
+ | "arrow-up"
1310
+ | "arrow-down"
1311
+ | "arrow-none";
1312
+ "containerWidth"?: string;
1313
+ "message"?: string;
1314
+ "show"?: boolean;
1315
+ "showInfoIcon"?: boolean;
1316
+ "showWarningIcon"?: boolean;
1317
+ "textAlign"?: "text-center" | "text-left" | "text-right";
1318
+ }
1319
+ interface MbTooltipAdvanced {
1320
+ "arrowPosition"?: | "arrow-left"
1321
+ | "arrow-right"
1322
+ | "arrow-up"
1323
+ | "arrow-up-left"
1324
+ | "arrow-up-right"
1325
+ | "arrow-down"
1326
+ | "arrow-down-left"
1327
+ | "arrow-down-right";
1328
+ "message"?: string;
1329
+ "show"?: boolean;
1330
+ "textAlign"?: "text-center" | "text-left" | "text-right";
1331
+ }
1332
+ interface IntrinsicElements {
1333
+ "document-detector": DocumentDetector;
1334
+ "mb-api-process-status": MbApiProcessStatus;
1335
+ "mb-button": MbButton;
1336
+ "mb-button-classic": MbButtonClassic;
1337
+ "mb-camera-experience": MbCameraExperience;
1338
+ "mb-camera-selection": MbCameraSelection;
1339
+ "mb-camera-toolbar": MbCameraToolbar;
1340
+ "mb-completed": MbCompleted;
1341
+ "mb-component": MbComponent;
1342
+ "mb-container": MbContainer;
1343
+ "mb-feedback": MbFeedback;
1344
+ "mb-help": MbHelp;
1345
+ "mb-image-box": MbImageBox;
1346
+ "mb-modal": MbModal;
1347
+ "mb-overlay": MbOverlay;
1348
+ "mb-progress-tracker": MbProgressTracker;
1349
+ "mb-screen": MbScreen;
1350
+ "mb-spinner": MbSpinner;
1351
+ "mb-tooltip": MbTooltip;
1352
+ "mb-tooltip-advanced": MbTooltipAdvanced;
1353
+ }
1354
+ }
1355
+ export { LocalJSX as JSX };
1356
+ declare module "@stencil/core" {
1357
+ export namespace JSX {
1358
+ interface IntrinsicElements {
1359
+ "document-detector": LocalJSX.DocumentDetector & JSXBase.HTMLAttributes<HTMLDocumentDetectorElement>;
1360
+ "mb-api-process-status": LocalJSX.MbApiProcessStatus & JSXBase.HTMLAttributes<HTMLMbApiProcessStatusElement>;
1361
+ "mb-button": LocalJSX.MbButton & JSXBase.HTMLAttributes<HTMLMbButtonElement>;
1362
+ "mb-button-classic": LocalJSX.MbButtonClassic & JSXBase.HTMLAttributes<HTMLMbButtonClassicElement>;
1363
+ "mb-camera-experience": LocalJSX.MbCameraExperience & JSXBase.HTMLAttributes<HTMLMbCameraExperienceElement>;
1364
+ "mb-camera-selection": LocalJSX.MbCameraSelection & JSXBase.HTMLAttributes<HTMLMbCameraSelectionElement>;
1365
+ "mb-camera-toolbar": LocalJSX.MbCameraToolbar & JSXBase.HTMLAttributes<HTMLMbCameraToolbarElement>;
1366
+ "mb-completed": LocalJSX.MbCompleted & JSXBase.HTMLAttributes<HTMLMbCompletedElement>;
1367
+ "mb-component": LocalJSX.MbComponent & JSXBase.HTMLAttributes<HTMLMbComponentElement>;
1368
+ "mb-container": LocalJSX.MbContainer & JSXBase.HTMLAttributes<HTMLMbContainerElement>;
1369
+ "mb-feedback": LocalJSX.MbFeedback & JSXBase.HTMLAttributes<HTMLMbFeedbackElement>;
1370
+ "mb-help": LocalJSX.MbHelp & JSXBase.HTMLAttributes<HTMLMbHelpElement>;
1371
+ "mb-image-box": LocalJSX.MbImageBox & JSXBase.HTMLAttributes<HTMLMbImageBoxElement>;
1372
+ "mb-modal": LocalJSX.MbModal & JSXBase.HTMLAttributes<HTMLMbModalElement>;
1373
+ "mb-overlay": LocalJSX.MbOverlay & JSXBase.HTMLAttributes<HTMLMbOverlayElement>;
1374
+ "mb-progress-tracker": LocalJSX.MbProgressTracker & JSXBase.HTMLAttributes<HTMLMbProgressTrackerElement>;
1375
+ "mb-screen": LocalJSX.MbScreen & JSXBase.HTMLAttributes<HTMLMbScreenElement>;
1376
+ "mb-spinner": LocalJSX.MbSpinner & JSXBase.HTMLAttributes<HTMLMbSpinnerElement>;
1377
+ "mb-tooltip": LocalJSX.MbTooltip & JSXBase.HTMLAttributes<HTMLMbTooltipElement>;
1378
+ "mb-tooltip-advanced": LocalJSX.MbTooltipAdvanced & JSXBase.HTMLAttributes<HTMLMbTooltipAdvancedElement>;
1379
+ }
1380
+ }
1381
+ }