@wfgraph/client 0.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.
@@ -0,0 +1,20 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
6
+ <meta
7
+ http-equiv="Cache-Control"
8
+ content="no-store, no-cache, must-revalidate"
9
+ />
10
+ <meta http-equiv="Pragma" content="no-cache" />
11
+ <meta http-equiv="Expires" content="0" />
12
+ <base href="/" />
13
+ <title>Workflow Graph</title>
14
+ <script type="module" crossorigin src="./index-DVhTPiBO.js"></script>
15
+ <link rel="stylesheet" crossorigin href="./index-BaZ5V4Jm.css">
16
+ </head>
17
+ <body class="antialiased">
18
+ <div id="root"></div>
19
+ </body>
20
+ </html>
@@ -0,0 +1,18 @@
1
+ //#region src/index.d.ts
2
+ /**
3
+ * The workflow editor, as something a host hands to `createWfGraphApp`:
4
+ *
5
+ * ```ts
6
+ * import { clientBundle } from "@wfgraph/client";
7
+ * const wfgraph = await createWfGraphApp({ client: clientBundle, ... });
8
+ * ```
9
+ *
10
+ * Workflow Graph's server does not depend on this package and cannot find it on its own,
11
+ * so passing it is what turns the UI on.
12
+ */
13
+ /** `dir` holds index.html and the hashed asset chunks beside it. */
14
+ declare const clientBundle: {
15
+ dir: string;
16
+ };
17
+ //#endregion
18
+ export { clientBundle };
package/dist/index.js ADDED
@@ -0,0 +1,17 @@
1
+ import { fileURLToPath } from "node:url";
2
+ //#region src/index.ts
3
+ /**
4
+ * The workflow editor, as something a host hands to `createWfGraphApp`:
5
+ *
6
+ * ```ts
7
+ * import { clientBundle } from "@wfgraph/client";
8
+ * const wfgraph = await createWfGraphApp({ client: clientBundle, ... });
9
+ * ```
10
+ *
11
+ * Workflow Graph's server does not depend on this package and cannot find it on its own,
12
+ * so passing it is what turns the UI on.
13
+ */
14
+ /** `dir` holds index.html and the hashed asset chunks beside it. */
15
+ const clientBundle = { dir: fileURLToPath(new URL("./client/", import.meta.url)) };
16
+ //#endregion
17
+ export { clientBundle };
package/package.json ADDED
@@ -0,0 +1,78 @@
1
+ {
2
+ "name": "@wfgraph/client",
3
+ "version": "0.0.1",
4
+ "description": "Workflow Graph's node-based editor, built and handed to createWfGraphApp as its client bundle",
5
+ "keywords": [
6
+ "automation",
7
+ "react-flow",
8
+ "workflow",
9
+ "workflow-editor"
10
+ ],
11
+ "license": "Apache-2.0",
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "git+https://github.com/alandotcom/wfgraph.git",
15
+ "directory": "packages/client"
16
+ },
17
+ "files": [
18
+ "dist"
19
+ ],
20
+ "type": "module",
21
+ "imports": {
22
+ "#src/*.css": "./src/*.css",
23
+ "#src/*": "./src/*.js"
24
+ },
25
+ "exports": {
26
+ ".": {
27
+ "types": "./dist/index.d.ts",
28
+ "default": "./dist/index.js"
29
+ }
30
+ },
31
+ "publishConfig": {
32
+ "access": "public"
33
+ },
34
+ "devDependencies": {
35
+ "@babel/core": "^7.29.7",
36
+ "@base-ui/react": "1.7.0",
37
+ "@dagrejs/dagre": "^2.0.4",
38
+ "@fontsource-variable/geist": "5.3.0",
39
+ "@fontsource-variable/geist-mono": "5.3.0",
40
+ "@logtape/logtape": "^2.3.0",
41
+ "@orpc/client": "2.0.0-beta.21",
42
+ "@orpc/contract": "2.0.0-beta.21",
43
+ "@orpc/tanstack-query": "2.0.0-beta.21",
44
+ "@rolldown/plugin-babel": "^0.2.3",
45
+ "@tailwindcss/vite": "^4.3.3",
46
+ "@tanstack/react-query": "^5.101.4",
47
+ "@tanstack/react-router": "^1.170.25",
48
+ "@testing-library/react": "^16.3.2",
49
+ "@types/babel__core": "^7.20.5",
50
+ "@types/react": "^19.2.18",
51
+ "@vitejs/plugin-react": "^6.0.5",
52
+ "@xyflow/react": "^12.11.2",
53
+ "babel-plugin-react-compiler": "^1.0.0",
54
+ "class-variance-authority": "^0.7.1",
55
+ "d3-hierarchy": "^3.1.2",
56
+ "effect": "4.0.0-beta.102",
57
+ "es-toolkit": "^1.50.0",
58
+ "jotai": "^2.20.2",
59
+ "lucide-react": "^0.563.0",
60
+ "motion": "^12.43.0",
61
+ "nanoid": "^5.1.16",
62
+ "next-themes": "^0.4.6",
63
+ "react": "19.2.8",
64
+ "react-dom": "19.2.8",
65
+ "react-grab": "^0.1.50",
66
+ "sonner": "^2.0.8",
67
+ "tailwindcss": "^4.3.3",
68
+ "tw-animate-css": "^1.4.0",
69
+ "vaul": "^1.1.2",
70
+ "vite": "^8.2.1",
71
+ "@wfgraph/plugins": "0.0.1",
72
+ "@wfgraph/shared": "0.0.1"
73
+ },
74
+ "scripts": {
75
+ "dev": "vite",
76
+ "build": "tsdown && vite build"
77
+ }
78
+ }