Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions angular/camera-snapshot/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,8 @@
}
}
}
},
"cli": {
"analytics": false
}
}
2 changes: 1 addition & 1 deletion angular/camera-snapshot/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export class AppComponent implements OnInit {
isOpen: boolean = false;

ngOnInit(): void {
defineComponents();
void defineComponents();
}

cameraSnapshotHandler(data: CustomEvent<CameraSnapshotDetailType>) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<camera-snapshot #snapshot></camera-snapshot>
<camera-snapshot start-screen #snapshot></camera-snapshot>
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export class SnapshotComponent implements AfterViewInit {
if (!this.snapshot) return;

this.snapshot.nativeElement.settings = {
startScreen: true,
changeCameraButton: true,
};
}
Expand Down
3 changes: 3 additions & 0 deletions angular/document-reader-device/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,8 @@
}
}
}
},
"cli": {
"analytics": false
}
}
3 changes: 3 additions & 0 deletions angular/document-reader/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,8 @@
}
}
}
},
"cli": {
"analytics": false
}
}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<document-reader #reader></document-reader>
<document-reader start-screen #reader></document-reader>
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export class ReaderComponent implements AfterViewInit {
if (!this.reader) return;

this.reader.nativeElement.settings = {
startScreen: true,
changeCameraButton: true,
};
}
Expand Down
9 changes: 1 addition & 8 deletions angular/document-reader/src/globals.d.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
import {
DocumentReaderWebComponent,
DocumentReaderService,
} from '@regulaforensics/vp-frontend-document-components';
import { DocumentReaderWebComponent } from '@regulaforensics/vp-frontend-document-components';

declare global {
interface Window {
RegulaDocumentSDK: DocumentReaderService;
}

interface HTMLElementTagNameMap {
'document-reader': DocumentReaderWebComponent;
}
Expand Down
2 changes: 1 addition & 1 deletion customization/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<div id="container">
<!-- You can overlay your elements on top of the component and output any information based on the component's events -->
<div class="custom-message"></div>
<document-reader></document-reader>
<document-reader start-screen></document-reader>
</div>
<script type="module" src="/index.js"></script>
</body>
Expand Down
1 change: 0 additions & 1 deletion customization/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ component.settings = {
locale: 'custom',
regulaLogo: false,
multipageProcessing: true,
startScreen: true,
multipleFileInput: true,
changeCameraButton: true,
closeButton: false,
Expand Down
3 changes: 1 addition & 2 deletions next/camera-snapshot/src/components/camera-snapshot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ export default function CameraSnapshot() {
if (!elementRefCurrent) return;

elementRefCurrent.settings = {
startScreen: true,
changeCameraButton: true,
};
}, [isOpen]);
Expand All @@ -80,7 +79,7 @@ export default function CameraSnapshot() {
<main>
<div style={containerStyle} ref={containerRef}>
{isOpen ? (
<camera-snapshot ref={elementRef}></camera-snapshot>
<camera-snapshot start-screen ref={elementRef}></camera-snapshot>
) : (
<button style={buttonStyle} onClick={() => setIsOpen(true)}>Open component</button>
)}
Expand Down
10 changes: 1 addition & 9 deletions next/document-reader/globals.d.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
import {
DocumentReaderWebComponent,
DocumentReaderService,
IDocumentReader,
} from '@regulaforensics/vp-frontend-document-components';
import { DocumentReaderWebComponent, IDocumentReader } from '@regulaforensics/vp-frontend-document-components';

declare global {
interface Window {
RegulaDocumentSDK: DocumentReaderService;
}

namespace React.JSX {
interface IntrinsicElements {
'document-reader': React.DetailedHTMLProps<IDocumentReader & React.HTMLAttributes<DocumentReaderWebComponent>,
Expand Down
3 changes: 1 addition & 2 deletions next/document-reader/src/components/document-reader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ export default function DocumentReader() {
if (!elementRefCurrent) return;

elementRefCurrent.settings = {
startScreen: true,
changeCameraButton: true,
};
}, [isOpen]);
Expand All @@ -100,7 +99,7 @@ export default function DocumentReader() {
<main>
<div style={containerStyle} ref={containerRef}>
{isOpen ? (
<document-reader ref={elementRef}></document-reader>
<document-reader start-screen ref={elementRef}></document-reader>
) : (
<button style={buttonStyle} onClick={() => setIsOpen(true)}>Open component</button>
)}
Expand Down
2 changes: 1 addition & 1 deletion nuxt/camera-snapshot/components/camera-snapshot.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<template>
<camera-snapshot
start-screen
v-if="isOpen"
@camera-snapshot="listener"
ref="component"
Expand Down Expand Up @@ -39,7 +40,6 @@ onMounted(() => {
watch(component, () => {
if (component.value) {
component.value.settings = {
startScreen: true,
changeCameraButton: true,
};
}
Expand Down
2 changes: 1 addition & 1 deletion nuxt/document-reader/components/document-reader.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<template>
<document-reader
start-screen
v-if="isOpen"
@document-reader="listener"
ref="component"
Expand Down Expand Up @@ -56,7 +57,6 @@ onMounted(async () => {
watch(component, () => {
if (component.value) {
component.value.settings = {
startScreen: true,
changeCameraButton: true,
};
}
Expand Down
7 changes: 0 additions & 7 deletions nuxt/document-reader/globals.d.ts

This file was deleted.

3 changes: 1 addition & 2 deletions react-ts/camera-snapshot/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,14 @@ function App() {
if (!elementRefCurrent) return;

elementRefCurrent.settings = {
startScreen: true,
changeCameraButton: true,
};
}, [isOpen]);

return (
<div style={containerStyle} ref={containerRef}>
{isOpen ? (
<camera-snapshot ref={elementRef}></camera-snapshot>
<camera-snapshot start-screen ref={elementRef}></camera-snapshot>
) : (
<button style={buttonStyle} onClick={() => setIsOpen(true)}>Open component</button>
)}
Expand Down
3 changes: 1 addition & 2 deletions react-ts/document-reader/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,14 @@ function App() {
if (!elementRefCurrent) return;

elementRefCurrent.settings = {
startScreen: true,
changeCameraButton: true,
};
}, [isOpen]);

return (
<div style={containerStyle} ref={containerRef}>
{isOpen ? (
<document-reader ref={elementRef}></document-reader>
<document-reader start-screen ref={elementRef}></document-reader>
) : (
<button style={buttonStyle} onClick={() => setIsOpen(true)}>Open component</button>
)}
Expand Down
10 changes: 1 addition & 9 deletions react-ts/document-reader/globals.d.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
import {
DocumentReaderWebComponent,
DocumentReaderService,
IDocumentReader,
} from '@regulaforensics/vp-frontend-document-components';
import { DocumentReaderWebComponent, IDocumentReader } from '@regulaforensics/vp-frontend-document-components';

declare global {
interface Window {
RegulaDocumentSDK: DocumentReaderService;
}

namespace React.JSX {
interface IntrinsicElements {
'document-reader': React.DetailedHTMLProps<IDocumentReader & React.HTMLAttributes<DocumentReaderWebComponent>,
Expand Down
2 changes: 1 addition & 1 deletion switch-to-mobile/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</head>
<body>
<div id="container">
<document-reader></document-reader>
<document-reader start-screen></document-reader>
<script type="module" src="/index.js"></script>
</div>
</body>
Expand Down
1 change: 0 additions & 1 deletion switch-to-mobile/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ defineComponents().then(() => window.RegulaDocumentSDK.initialize({license: impo
// defineComponents().then(() => window.RegulaDocumentSDK.initialize({ license: 'YOUR_BASE64_LICENSE_KEY' }));

documentReaderElement.settings = {
startScreen: true,
changeCameraButton: true,
uploadFileButton: false,
};
Expand Down