datakeen-session-react 1.1.202-dev.1 → 1.1.202-rc.1

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.
@@ -3,21 +3,12 @@ import { apiService } from './api.js';
3
3
  import { logStatusModified } from './auditTrailService.js';
4
4
  import { clearSessionMemory } from './sessionMemoryStore.js';
5
5
 
6
- /** Reports camera diagnostics without updating local session state. */
7
- function reportCaptureDiagnostics(sessionId, nodeId, diag) {
8
- return __awaiter(this, void 0, void 0, function () {
9
- var _a;
10
- return __generator(this, function (_b) {
11
- switch (_b.label) {
12
- case 0: return [4 /*yield*/, apiService.patch("/session/sdk/".concat(sessionId), { captureDiagnostics: (_a = {}, _a[nodeId] = diag, _a) })];
13
- case 1:
14
- _b.sent();
15
- return [2 /*return*/];
16
- }
17
- });
18
- });
19
- }
20
- /** Fetches session data by ID from the Datakeen backend. */
6
+ /**
7
+ * Fetches session data by ID from the Datakeen backend
8
+ *
9
+ * @param sessionId - The unique identifier of the session
10
+ * @returns The session data
11
+ */
21
12
  var fetchSessionById = function (sessionId) { return __awaiter(void 0, void 0, void 0, function () {
22
13
  var response, error_1;
23
14
  return __generator(this, function (_a) {
@@ -515,4 +506,4 @@ function checkComplementaryMandate(sessionId, nodeId) {
515
506
  return request;
516
507
  }
517
508
 
518
- export { checkComplementaryMandate, clearSessionSensitiveData, fetchSessionById, findOutgoingEdge, getNextStepIndex, getOrderedJourneySteps, getRunPrefillData, hasOutgoingEdgeForHandle, isSessionExpired, reconstructHistoryToStep, reportCaptureDiagnostics, reportSelfieFailure, resetNfcScan, sendClientInfo, skipNfcWithReason, storeDocumentOptions, updateSessionContactInfo, updateSessionCurrentStep, updateSessionStatus, updateSessionUserInput };
509
+ export { checkComplementaryMandate, clearSessionSensitiveData, fetchSessionById, findOutgoingEdge, getNextStepIndex, getOrderedJourneySteps, getRunPrefillData, hasOutgoingEdgeForHandle, isSessionExpired, reconstructHistoryToStep, reportSelfieFailure, resetNfcScan, sendClientInfo, skipNfcWithReason, storeDocumentOptions, updateSessionContactInfo, updateSessionCurrentStep, updateSessionStatus, updateSessionUserInput };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datakeen-session-react",
3
- "version": "1.1.202-dev.1",
3
+ "version": "1.1.202-rc.1",
4
4
  "description": "React SDK component to manage and render Datakeen session experiences easily.",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -1,12 +0,0 @@
1
- 'use strict';
2
-
3
- var HD_MIN = { long: 1280, short: 720 };
4
- function isBelowHd(settings) {
5
- var _a = settings !== null && settings !== void 0 ? settings : {}, width = _a.width, height = _a.height;
6
- if (!width || !height)
7
- return false;
8
- return Math.max(width, height) < HD_MIN.long || Math.min(width, height) < HD_MIN.short;
9
- }
10
-
11
- exports.HD_MIN = HD_MIN;
12
- exports.isBelowHd = isBelowHd;
@@ -1,9 +0,0 @@
1
- var HD_MIN = { long: 1280, short: 720 };
2
- function isBelowHd(settings) {
3
- var _a = settings !== null && settings !== void 0 ? settings : {}, width = _a.width, height = _a.height;
4
- if (!width || !height)
5
- return false;
6
- return Math.max(width, height) < HD_MIN.long || Math.min(width, height) < HD_MIN.short;
7
- }
8
-
9
- export { HD_MIN, isBelowHd };