@langgraph-js/ui 1.2.0 → 1.3.0
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/LICENSE +201 -201
- package/README.md +6 -6
- package/cli.mjs +36 -36
- package/dist/assets/index-88Ds6iYK.js +214 -0
- package/dist/assets/index-_qsGvf6N.css +1 -0
- package/dist/index.html +14 -14
- package/index.html +22 -22
- package/package.json +10 -9
- package/src/chat/Chat.tsx +169 -164
- package/src/chat/FileUpload/index.ts +105 -105
- package/src/chat/chat.css +403 -403
- package/src/chat/components/FileList.css +128 -128
- package/src/chat/components/FileList.tsx +73 -73
- package/src/chat/components/HistoryList.tsx +192 -192
- package/src/chat/components/JsonEditorPopup.css +80 -80
- package/src/chat/components/JsonEditorPopup.tsx +56 -56
- package/src/chat/components/JsonToMessage/JsonToMessage.css +104 -0
- package/src/chat/components/JsonToMessage/JsonToMessage.tsx +114 -0
- package/src/chat/components/JsonToMessage/JsonToMessageButton.tsx +27 -0
- package/src/chat/components/JsonToMessage/index.tsx +5 -0
- package/src/chat/components/MessageAI.tsx +24 -24
- package/src/chat/components/MessageBox.tsx +39 -0
- package/src/chat/components/MessageHuman.tsx +55 -55
- package/src/chat/components/MessageTool.tsx +46 -46
- package/src/chat/components/UsageMetadata.tsx +40 -40
- package/src/chat/context/ChatContext.tsx +32 -29
- package/src/chat/context/ExtraParamsContext.tsx +41 -41
- package/src/chat/store/index.ts +38 -24
- package/src/chat/tools.ts +33 -33
- package/src/chat/types.ts +16 -16
- package/src/graph/GraphPanel.tsx +5 -0
- package/src/graph/flattenGraph.ts +45 -0
- package/src/graph/flow.css +176 -0
- package/src/graph/index.tsx +161 -0
- package/src/hooks/useLocalStorage.ts +27 -27
- package/src/index.ts +1 -1
- package/src/login/Login.css +93 -93
- package/src/login/Login.tsx +92 -92
- package/test/App.tsx +9 -9
- package/test/main.tsx +5 -5
- package/test/vite-env.d.ts +1 -1
- package/tsconfig.json +21 -21
- package/tsconfig.node.json +9 -9
- package/vite.config.ts +22 -17
- package/dist/assets/index-BHPbGlnP.js +0 -192
- package/dist/assets/index-Du4LMUX2.css +0 -1
package/tsconfig.node.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"composite": true,
|
|
4
|
-
"module": "esnext",
|
|
5
|
-
"moduleResolution": "node",
|
|
6
|
-
"allowSyntheticDefaultImports": true
|
|
7
|
-
},
|
|
8
|
-
"include": ["vite.config.ts"]
|
|
9
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"composite": true,
|
|
4
|
+
"module": "esnext",
|
|
5
|
+
"moduleResolution": "node",
|
|
6
|
+
"allowSyntheticDefaultImports": true
|
|
7
|
+
},
|
|
8
|
+
"include": ["vite.config.ts"]
|
|
9
|
+
}
|
package/vite.config.ts
CHANGED
|
@@ -1,17 +1,22 @@
|
|
|
1
|
-
import react from "@vitejs/plugin-react";
|
|
2
|
-
import { defineConfig } from "vite";
|
|
3
|
-
import basicSsl from "@vitejs/plugin-basic-ssl";
|
|
4
|
-
|
|
5
|
-
// https://vitejs.dev/config/
|
|
6
|
-
export default defineConfig(({ mode }) => {
|
|
7
|
-
const isHttps = mode === "https";
|
|
8
|
-
return {
|
|
9
|
-
plugins: [react(), isHttps ? basicSsl() : undefined],
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
1
|
+
import react from "@vitejs/plugin-react";
|
|
2
|
+
import { defineConfig } from "vite";
|
|
3
|
+
import basicSsl from "@vitejs/plugin-basic-ssl";
|
|
4
|
+
import path from "node:path";
|
|
5
|
+
// https://vitejs.dev/config/
|
|
6
|
+
export default defineConfig(({ mode }) => {
|
|
7
|
+
const isHttps = mode === "https";
|
|
8
|
+
return {
|
|
9
|
+
plugins: [react(), isHttps ? basicSsl() : undefined],
|
|
10
|
+
resolve: {
|
|
11
|
+
alias: {
|
|
12
|
+
"@langgraph-js/sdk": new URL("../langgraph-client/src", import.meta.url).pathname,
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
optimizeDeps: {
|
|
16
|
+
exclude: ["@langgraph-js/ui", "@langgraph-js/sdk"],
|
|
17
|
+
},
|
|
18
|
+
server: {
|
|
19
|
+
port: 1111,
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
});
|