@lastbrain/module-auth 1.0.2 → 2.0.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.
@@ -1 +1 @@
1
- {"version":3,"file":"folder.d.ts","sourceRoot":"","sources":["../../../src/web/auth/folder.tsx"],"names":[],"mappings":"AAqBA,wBAAgB,UAAU,mDAqEzB"}
1
+ {"version":3,"file":"folder.d.ts","sourceRoot":"","sources":["../../../src/web/auth/folder.tsx"],"names":[],"mappings":"AAoBA,wBAAgB,UAAU,mDAoEzB"}
@@ -3,7 +3,6 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { useEffect, useState } from "react";
4
4
  import { Card, CardBody, Spinner } from "@lastbrain/ui";
5
5
  import { FileManager } from "@lastbrain/ui";
6
- import { ImageGenerative } from "@lastbrain/module-ai";
7
6
  export function FolderPage() {
8
7
  const [userData, setUserData] = useState(null);
9
8
  const [isLoading, setIsLoading] = useState(true);
@@ -37,5 +36,5 @@ export function FolderPage() {
37
36
  if (!userData) {
38
37
  return null;
39
38
  }
40
- return (_jsxs("div", { className: "pt-4 pb-12 max-w-8xl mx-auto px-4", children: [_jsx("h1", { className: "text-3xl font-bold mb-8", children: "Dossier" }), _jsx(FileManager, { bucket: "app", basePath: userData.id, allowUpload: true, allowCreateFolder: true, allowAIImageGeneration: true, renderImageGenerator: (props) => _jsx(ImageGenerative, { ...props }), className: "min-h-[80vh]" })] }));
39
+ return (_jsxs("div", { className: "pt-4 pb-12 max-w-8xl mx-auto px-4", children: [_jsx("h1", { className: "text-3xl font-bold mb-8", children: "Dossier" }), _jsx(FileManager, { bucket: "app", basePath: userData.id, allowUpload: true, allowCreateFolder: true, allowAIImageGeneration: false, className: "min-h-[80vh]" })] }));
41
40
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lastbrain/module-auth",
3
- "version": "1.0.2",
3
+ "version": "2.0.1",
4
4
  "description": "Module d'authentification complet pour LastBrain avec Supabase",
5
5
  "private": false,
6
6
  "type": "module",
@@ -32,9 +32,8 @@
32
32
  "supabase"
33
33
  ],
34
34
  "dependencies": {
35
- "@lastbrain/core": "^0.1.0",
36
- "@lastbrain/ui": "^0.1.0",
37
- "@lastbrain/module-ai": "^0.1.0",
35
+ "@lastbrain/core": "^1.0.1",
36
+ "@lastbrain/ui": "^1.0.1",
38
37
  "@supabase/supabase-js": "^2.86.0",
39
38
  "lucide-react": "^0.554.0",
40
39
  "react": "^19.2.1",
@@ -3,7 +3,6 @@
3
3
  import { useEffect, useState } from "react";
4
4
  import { Card, CardBody, Spinner } from "@lastbrain/ui";
5
5
  import { FileManager } from "@lastbrain/ui";
6
- import { ImageGenerative } from "@lastbrain/module-ai";
7
6
 
8
7
  interface UserData {
9
8
  id: string;
@@ -82,8 +81,7 @@ export function FolderPage() {
82
81
  basePath={userData.id}
83
82
  allowUpload={true}
84
83
  allowCreateFolder={true}
85
- allowAIImageGeneration={true}
86
- renderImageGenerator={(props) => <ImageGenerative {...props} />}
84
+ allowAIImageGeneration={false}
87
85
  className="min-h-[80vh]"
88
86
  />
89
87
  </div>