@frankieone/one-sdk 1.7.14-rc.11 → 1.7.14-rc.12

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.
Binary file
Binary file
Binary file
Binary file
package/dist/commit.txt CHANGED
@@ -1 +1 @@
1
- d5931ca433718a819a6853ae7ea99c1a2c012aae
1
+ 507cbd8bd354656a8496e16a1c2c7741d14b2f57
@@ -1 +1 @@
1
- {"version":3,"file":"templateIdvReview.d.ts","sourceRoot":"","sources":["../../../../../modules/cli/template/templateIdvReview.js"],"names":[],"mappings":"AAEO,6DA6JC"}
1
+ {"version":3,"file":"templateIdvReview.d.ts","sourceRoot":"","sources":["../../../../../modules/cli/template/templateIdvReview.js"],"names":[],"mappings":"AAEO,6DA0HC"}
@@ -45,28 +45,12 @@ export const templateIdvReview = (getTokenImpl) => html `<!-- Generated by OneSD
45
45
  // Create an IDV flow instance for identity verification
46
46
  const idv = oneSdk.flow('idv');
47
47
 
48
- // Create loading screens to show during different stages
49
- const loading1 = oneSdk.component('form', {
50
- name: 'LOADING',
51
- title: { label: 'Loading...' },
52
- descriptions: [{ label: '' }],
53
- });
54
-
55
- const loading2 = oneSdk.component('form', {
56
- name: 'LOADING',
57
- title: { label: 'Processing results...' },
58
- descriptions: [
59
- {
60
- label:
61
- "Hold tight, this can take up to 30 seconds. Please do not refresh this page or click the 'back' button on your browser.",
62
- },
63
- ],
64
- });
65
-
66
48
  // Create review component for OCR (Optical Character Recognition) review
67
49
  const review = oneSdk.component('form', {
68
50
  name: 'REVIEW',
69
51
  type: 'ocr',
52
+ mode: 'individual',
53
+ verify: true
70
54
  });
71
55
 
72
56
  const successScreen = oneSdk.component('form', {
@@ -100,28 +84,10 @@ export const templateIdvReview = (getTokenImpl) => html `<!-- Generated by OneSD
100
84
  // Mount the IDV flow to the container element
101
85
  idv.mount('#idv-el');
102
86
 
103
- // Handle loading states
104
- let before = true;
105
- idv.on('loading', (display) => {
106
- if (display) {
107
- if (before) {
108
- loading1.mount('#idv-el');
109
- }
110
- } else {
111
- if (before) {
112
- loading1.unmount();
113
- }
114
- before = false;
115
- }
116
- console.log(before);
117
- console.log(display);
118
- });
119
-
120
87
  // Handle verification results
121
88
  idv.on('results', async ({ checkStatus, document, entityId }) => {
122
89
  if (checkStatus) {
123
90
  console.log('results succesful');
124
- loading2.unmount();
125
91
  review.mount('#idv-el');
126
92
  } else {
127
93
  console.log('no data returned');
@@ -138,7 +104,6 @@ export const templateIdvReview = (getTokenImpl) => html `<!-- Generated by OneSD
138
104
  idv.on('detection_complete', (message) => {
139
105
  console.log('capture finished');
140
106
  console.log(message);
141
- loading2.mount('#idv-el');
142
107
  });
143
108
 
144
109
  // Log all events for debugging
@@ -1 +1 @@
1
- {"version":3,"file":"templateIdvReview.js","sourceRoot":"","sources":["../../../../../modules/cli/template/templateIdvReview.js"],"names":[],"mappings":"AAAA,MAAM,IAAI,GAAG,MAAM,CAAC,GAAG,CAAC;AAExB,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,YAAY,EAAE,EAAE,CAAC,IAAI,CAAA;;;;;;;;;;;;;;;;MAgBjD,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA6IV,CAAC"}
1
+ {"version":3,"file":"templateIdvReview.js","sourceRoot":"","sources":["../../../../../modules/cli/template/templateIdvReview.js"],"names":[],"mappings":"AAAA,MAAM,IAAI,GAAG,MAAM,CAAC,GAAG,CAAC;AAExB,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,YAAY,EAAE,EAAE,CAAC,IAAI,CAAA;;;;;;;;;;;;;;;;MAgBjD,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA0GV,CAAC"}
@@ -1 +1 @@
1
- { "version": "1.7.14-rc.11" }
1
+ { "version": "1.7.14-rc.12" }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frankieone/one-sdk",
3
- "version": "1.7.14-rc.11",
3
+ "version": "1.7.14-rc.12",
4
4
  "cliVersion": "0.0.1",
5
5
  "description": "FrankieOne OneSDK",
6
6
  "keywords": [],