@lastbrain/ai-ui-react 1.0.42 → 1.0.43
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/components/LBSigninModal.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/components/AiContextButton.tsx +1 -1
- package/src/components/AiImageButton.tsx +1 -1
- package/src/components/AiInput.tsx +1 -1
- package/src/components/AiStatusButton.tsx +2 -2
- package/src/components/AiTextarea.tsx +1 -1
- package/src/components/LBSigninModal.tsx +7 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LBSigninModal.d.ts","sourceRoot":"","sources":["../../src/components/LBSigninModal.tsx"],"names":[],"mappings":"AAKA,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,wBAAgB,aAAa,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,kBAAkB,
|
|
1
|
+
{"version":3,"file":"LBSigninModal.d.ts","sourceRoot":"","sources":["../../src/components/LBSigninModal.tsx"],"names":[],"mappings":"AAKA,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,wBAAgB,aAAa,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,kBAAkB,kDAoYpE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lastbrain/ai-ui-react",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.43",
|
|
4
4
|
"description": "Headless React components for LastBrain AI UI Kit",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"lucide-react": "^0.257.0",
|
|
51
|
-
"@lastbrain/ai-ui-core": "1.0.
|
|
51
|
+
"@lastbrain/ai-ui-core": "1.0.31"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@types/react": "^19.2.0",
|
|
@@ -64,7 +64,7 @@ export function AiContextButton({
|
|
|
64
64
|
} | null>(null);
|
|
65
65
|
const { showUsageToast, toastData, toastKey, clearToast } = useUsageToast();
|
|
66
66
|
const { showErrorToast, errorData, errorKey, clearError } = useErrorToast();
|
|
67
|
-
|
|
67
|
+
|
|
68
68
|
// Rendre l'authentification optionnelle
|
|
69
69
|
let lbStatus: string | undefined;
|
|
70
70
|
try {
|
|
@@ -59,7 +59,7 @@ export function AiImageButton({
|
|
|
59
59
|
} | null>(null);
|
|
60
60
|
const { showUsageToast, toastData, toastKey, clearToast } = useUsageToast();
|
|
61
61
|
const { showErrorToast, errorData, errorKey, clearError } = useErrorToast();
|
|
62
|
-
|
|
62
|
+
|
|
63
63
|
// Rendre l'authentification optionnelle
|
|
64
64
|
let lbStatus: string | undefined;
|
|
65
65
|
try {
|
|
@@ -46,7 +46,7 @@ export function AiInput({
|
|
|
46
46
|
const [isButtonHovered, setIsButtonHovered] = useState(false);
|
|
47
47
|
const inputRef = useRef<HTMLInputElement>(null);
|
|
48
48
|
const { showUsageToast, toastData, toastKey, clearToast } = useUsageToast();
|
|
49
|
-
|
|
49
|
+
|
|
50
50
|
// Rendre l'authentification optionnelle
|
|
51
51
|
let lbStatus: string | undefined;
|
|
52
52
|
try {
|
|
@@ -30,7 +30,7 @@ export function AiStatusButton({
|
|
|
30
30
|
let lbStatus: string | undefined;
|
|
31
31
|
let user: any;
|
|
32
32
|
let logout: (() => Promise<void>) | undefined;
|
|
33
|
-
|
|
33
|
+
|
|
34
34
|
try {
|
|
35
35
|
const lbContext = useLB();
|
|
36
36
|
lbStatus = lbContext.status;
|
|
@@ -42,7 +42,7 @@ export function AiStatusButton({
|
|
|
42
42
|
user = undefined;
|
|
43
43
|
logout = undefined;
|
|
44
44
|
}
|
|
45
|
-
|
|
45
|
+
|
|
46
46
|
const [showSigninModal, setShowSigninModal] = useState(false);
|
|
47
47
|
|
|
48
48
|
type BalanceUsage = {
|
|
@@ -52,7 +52,7 @@ export function AiTextarea({
|
|
|
52
52
|
const [isButtonHovered, setIsButtonHovered] = useState(false);
|
|
53
53
|
const textareaRef = useRef<HTMLTextAreaElement>(null);
|
|
54
54
|
const { showUsageToast, toastData, toastKey, clearToast } = useUsageToast();
|
|
55
|
-
|
|
55
|
+
|
|
56
56
|
// Rendre l'authentification optionnelle
|
|
57
57
|
let lbStatus: string | undefined;
|
|
58
58
|
try {
|
|
@@ -10,8 +10,13 @@ export interface LBSigninModalProps {
|
|
|
10
10
|
|
|
11
11
|
export function LBSigninModal({ isOpen, onClose }: LBSigninModalProps) {
|
|
12
12
|
// Vérifier si LBProvider est disponible
|
|
13
|
-
let login:
|
|
14
|
-
|
|
13
|
+
let login:
|
|
14
|
+
| ((
|
|
15
|
+
email: string,
|
|
16
|
+
password: string
|
|
17
|
+
) => Promise<{ success: boolean; error?: string }>)
|
|
18
|
+
| undefined;
|
|
19
|
+
|
|
15
20
|
try {
|
|
16
21
|
const lbContext = useLB();
|
|
17
22
|
login = lbContext.login;
|