datakeen-session-react 1.1.166 → 1.1.168

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 (31) hide show
  1. package/README.md +8 -8
  2. package/dist/cjs/_virtual/_commonjsHelpers.js +8 -0
  3. package/dist/cjs/_virtual/_commonjsHelpers.js.map +1 -0
  4. package/dist/cjs/_virtual/heic2any.js +12 -0
  5. package/dist/cjs/_virtual/heic2any.js.map +1 -0
  6. package/dist/cjs/_virtual/heic2any2.js +6 -0
  7. package/dist/cjs/_virtual/heic2any2.js.map +1 -0
  8. package/dist/cjs/components/selfie/selfie-flow/SelfieRecorder.js +1 -1
  9. package/dist/cjs/components/selfie/selfie-flow/SelfieRecorder.js.map +1 -1
  10. package/dist/cjs/components/start-flow/CGU.js +1 -1
  11. package/dist/cjs/components/start-flow/Start.js +1 -1
  12. package/dist/cjs/node_modules/heic2any/dist/heic2any.js +291 -0
  13. package/dist/cjs/node_modules/heic2any/dist/heic2any.js.map +1 -0
  14. package/dist/cjs/utils/fileConverter.js +2 -2
  15. package/dist/cjs/utils/fileConverter.js.map +1 -1
  16. package/dist/esm/_virtual/_commonjsHelpers.js +6 -0
  17. package/dist/esm/_virtual/_commonjsHelpers.js.map +1 -0
  18. package/dist/esm/_virtual/heic2any.js +8 -0
  19. package/dist/esm/_virtual/heic2any.js.map +1 -0
  20. package/dist/esm/_virtual/heic2any2.js +4 -0
  21. package/dist/esm/_virtual/heic2any2.js.map +1 -0
  22. package/dist/esm/components/selfie/selfie-flow/SelfieRecorder.js +1 -1
  23. package/dist/esm/components/selfie/selfie-flow/SelfieRecorder.js.map +1 -1
  24. package/dist/esm/components/start-flow/CGU.js +1 -1
  25. package/dist/esm/components/start-flow/Start.js +1 -1
  26. package/dist/esm/node_modules/heic2any/dist/heic2any.js +289 -0
  27. package/dist/esm/node_modules/heic2any/dist/heic2any.js.map +1 -0
  28. package/dist/esm/utils/fileConverter.js +1 -1
  29. package/examples/sdk-configuration.ts +4 -4
  30. package/examples/test-updated-urls.ts +2 -2
  31. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { __awaiter, __generator } from '../node_modules/tslib/tslib.es6.js';
2
- import heic2any from 'heic2any';
2
+ import heic2any from '../_virtual/heic2any.js';
3
3
 
4
4
  /**
5
5
  * File conversion utilities for document upload
@@ -16,7 +16,7 @@ export const configureSDKForEnvironment = () => {
16
16
 
17
17
  switch (environment) {
18
18
  case "production":
19
- apiBaseURL = "https://app-v3.datakeen.co/backend";
19
+ apiBaseURL = "https://app.datakeen.co/backend";
20
20
  break;
21
21
 
22
22
  case "staging":
@@ -64,9 +64,9 @@ export const configureSDKDynamically = () => {
64
64
 
65
65
  let apiBaseURL: string;
66
66
 
67
- if (hostname.includes("app-v3.datakeen.co")) {
67
+ if (hostname.includes("app.datakeen.co")) {
68
68
  // Production
69
- apiBaseURL = "https://app-v3.datakeen.co/backend";
69
+ apiBaseURL = "https://app.datakeen.co/backend";
70
70
  } else if (hostname.includes("app.staging.datakeen.co")) {
71
71
  // Staging
72
72
  apiBaseURL = "https://app.staging.datakeen.co/backend";
@@ -115,7 +115,7 @@ export const configureSDKAdvanced = (options: {
115
115
  if (!apiBaseURL && environment) {
116
116
  switch (environment) {
117
117
  case "production":
118
- apiBaseURL = "https://app-v3.datakeen.co/backend";
118
+ apiBaseURL = "https://app.datakeen.co/backend";
119
119
  break;
120
120
  case "staging":
121
121
  apiBaseURL = "https://app.staging.datakeen.co/backend";
@@ -13,7 +13,7 @@ import {
13
13
 
14
14
  // URLs attendues pour chaque environnement
15
15
  const EXPECTED_URLS = {
16
- production: "https://app-v3.datakeen.co/backend/session",
16
+ production: "https://app.datakeen.co/backend/session",
17
17
  staging: "https://app.staging.datakeen.co/backend/session",
18
18
  development: "https://app.dev.datakeen.co/backend/session",
19
19
  localhost: "http://localhost:8888/backend/session",
@@ -63,7 +63,7 @@ const testDynamicConfiguration = () => {
63
63
  const originalLocation = window.location;
64
64
 
65
65
  const testCases = [
66
- { hostname: "app-v3.datakeen.co", expected: EXPECTED_URLS.production },
66
+ { hostname: "app.datakeen.co", expected: EXPECTED_URLS.production },
67
67
  { hostname: "app.staging.datakeen.co", expected: EXPECTED_URLS.staging },
68
68
  { hostname: "app.dev.datakeen.co", expected: EXPECTED_URLS.development },
69
69
  { hostname: "localhost", expected: EXPECTED_URLS.localhost },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datakeen-session-react",
3
- "version": "1.1.166",
3
+ "version": "1.1.168",
4
4
  "description": "React SDK component to manage and render Datakeen session experiences easily.",
5
5
  "publishConfig": {
6
6
  "access": "public",