@bytexbyte/nxtlinq-ai-agent-ui-react-development 0.4.1 → 0.4.2
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.
- package/dist/context/ChatBotContext.d.ts.map +1 -1
- package/dist/context/ChatBotContext.js +75 -402
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/permissionState.d.ts +53 -0
- package/dist/permissionState.d.ts.map +1 -0
- package/dist/permissionState.js +217 -0
- package/dist/ui/ChatBotUI.d.ts.map +1 -1
- package/dist/ui/ChatBotUI.js +6 -4
- package/dist/ui/MessageList.d.ts.map +1 -1
- package/dist/ui/MessageList.js +11 -6
- package/dist/ui/PermissionForm.d.ts.map +1 -1
- package/dist/ui/PermissionForm.js +6 -9
- package/package.json +4 -4
- package/src/context/ChatBotContext.tsx +83 -435
- package/src/index.ts +5 -0
- package/src/ui/ChatBotUI.tsx +6 -4
- package/src/ui/MessageList.tsx +6 -0
- package/src/ui/PermissionForm.tsx +7 -12
|
@@ -3,6 +3,7 @@ import * as React from 'react';
|
|
|
3
3
|
import { css } from '@emotion/react';
|
|
4
4
|
import { useChatBot } from '../context/ChatBotContext';
|
|
5
5
|
import { walletTextUtils } from '@bytexbyte/nxtlinq-ai-agent-web-development';
|
|
6
|
+
import { hasRecordedWalletVerification } from '@bytexbyte/nxtlinq-ai-agent-core-development';
|
|
6
7
|
import { actionButton, modalOverlay } from './styles/isolatedStyles';
|
|
7
8
|
|
|
8
9
|
interface PermissionFormProps {
|
|
@@ -103,13 +104,10 @@ export const PermissionForm: React.FC<PermissionFormProps> = ({ onClose }) => {
|
|
|
103
104
|
|
|
104
105
|
// Check if wallet IDV verification is required based on configuration
|
|
105
106
|
const requireWalletIDVVerification = props.requireWalletIDVVerification ?? true; // Default to true
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
// 1. IDV verification is required AND wallet is not verified, OR
|
|
111
|
-
// 2. IDV verification is required AND wallet is verified but not with Berifyme
|
|
112
|
-
const shouldShowVerificationPrompt = requireWalletIDVVerification && (!isWalletVerified || !isWalletVerifiedWithBerifyme);
|
|
107
|
+
// Any recorded verification source is valid. Custom additionally requires
|
|
108
|
+
// its explicit username evidence so synthetic AIT-provisioned rows do not count.
|
|
109
|
+
const shouldShowVerificationPrompt = requireWalletIDVVerification
|
|
110
|
+
&& (!walletInfo?.id || !hasRecordedWalletVerification(walletInfo));
|
|
113
111
|
|
|
114
112
|
const handleSave = async () => {
|
|
115
113
|
setIsSaving(true);
|
|
@@ -415,10 +413,7 @@ export const PermissionForm: React.FC<PermissionFormProps> = ({ onClose }) => {
|
|
|
415
413
|
font-size: 16px !important;
|
|
416
414
|
color: #666 !important;
|
|
417
415
|
`}>
|
|
418
|
-
{
|
|
419
|
-
? walletTextUtils.getWalletText('Your wallet is verified with custom method, but Berify.me verification is required to continue.', serviceId)
|
|
420
|
-
: walletTextUtils.getWalletText('Please verify your wallet with Berify.me to continue', serviceId)
|
|
421
|
-
}
|
|
416
|
+
{walletTextUtils.getWalletText('Please verify your wallet identity to continue', serviceId)}
|
|
422
417
|
</p>
|
|
423
418
|
<button
|
|
424
419
|
onClick={() => onVerifyWallet('berifyme')}
|
|
@@ -629,4 +624,4 @@ export const PermissionForm: React.FC<PermissionFormProps> = ({ onClose }) => {
|
|
|
629
624
|
)}
|
|
630
625
|
</div>
|
|
631
626
|
);
|
|
632
|
-
};
|
|
627
|
+
};
|