@bytexbyte/nxtlinq-ai-agent-sdk 1.6.11 → 1.6.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.
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/** @jsxImportSource @emotion/react */
|
|
2
1
|
import React from 'react';
|
|
3
2
|
interface BerifyMeModalProps {
|
|
4
3
|
isOpen: boolean;
|
|
@@ -11,10 +10,6 @@ declare global {
|
|
|
11
10
|
interface Window {
|
|
12
11
|
BerifyMeSDK?: {
|
|
13
12
|
modal: any;
|
|
14
|
-
environment: {
|
|
15
|
-
Staging: any;
|
|
16
|
-
Production: any;
|
|
17
|
-
};
|
|
18
13
|
};
|
|
19
14
|
}
|
|
20
15
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BerifyMeModal.d.ts","sourceRoot":"","sources":["../../../src/components/ui/BerifyMeModal.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BerifyMeModal.d.ts","sourceRoot":"","sources":["../../../src/components/ui/BerifyMeModal.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAGjD,UAAU,kBAAkB;IAC1B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,sBAAsB,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAClD,IAAI,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC;CAChC;AASD,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAoHtD,CAAC;AAGF,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,WAAW,CAAC,EAAE;YACZ,KAAK,EAAE,GAAG,CAAC;SACZ,CAAC;KACH;CACF"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
2
2
|
/** @jsxImportSource @emotion/react */
|
|
3
|
-
import React, { useEffect, useRef } from 'react';
|
|
4
3
|
import { css } from '@emotion/react';
|
|
4
|
+
import React, { useEffect, useRef } from 'react';
|
|
5
5
|
import { modalOverlay } from './styles/isolatedStyles';
|
|
6
6
|
// Built-in BerifyMe configuration
|
|
7
7
|
const BUILT_IN_BERIFYME_CONFIG = {
|
|
8
|
-
apiKeyId: '
|
|
9
|
-
secretKey: '
|
|
10
|
-
environment: '
|
|
8
|
+
apiKeyId: 'idv_XjN7vvuQVfHnaUkVQAEhdTuxAsQeKoa9',
|
|
9
|
+
secretKey: 'aaa444b1-087c-4b17-821a-9a6974286905',
|
|
10
|
+
environment: 'idv'
|
|
11
11
|
};
|
|
12
12
|
export const BerifyMeModal = ({ isOpen, onClose, onVerificationComplete, mode = 'built-in' }) => {
|
|
13
13
|
const modalRef = useRef(null);
|
|
@@ -71,14 +71,12 @@ export const BerifyMeModal = ({ isOpen, onClose, onVerificationComplete, mode =
|
|
|
71
71
|
const redirectUrl = `${window.location.origin}${window.location.pathname}?isAutoConnect=true&method=berifyme&returnUrl=${encodeURIComponent(currentUrl)}`;
|
|
72
72
|
// Create BerifyMe modal using built-in config
|
|
73
73
|
const berifyMeModal = window.BerifyMeSDK.modal;
|
|
74
|
-
// Always use staging environment for now
|
|
75
|
-
const environment = window.BerifyMeSDK.environment.Staging;
|
|
76
74
|
// Use React 18's createRoot
|
|
77
75
|
const { createRoot } = require('react-dom/client');
|
|
78
76
|
const root = createRoot(modalRef.current);
|
|
79
77
|
berifyMeModalRef.current = root;
|
|
80
78
|
root.render(React.createElement(berifyMeModal, {
|
|
81
|
-
environment,
|
|
79
|
+
environment: BUILT_IN_BERIFYME_CONFIG.environment,
|
|
82
80
|
apiKeyId: BUILT_IN_BERIFYME_CONFIG.apiKeyId,
|
|
83
81
|
secretKey: BUILT_IN_BERIFYME_CONFIG.secretKey,
|
|
84
82
|
redirectUrl,
|
package/package.json
CHANGED