elysia-rack 0.1.2 → 0.2.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.
@@ -16,7 +16,7 @@ export declare namespace ReactRack {
16
16
  content?: string;
17
17
  };
18
18
  interface ReactPluginOptions {
19
- pages: PageRegistry;
19
+ pages?: PageRegistry | PageRegistry[];
20
20
  /**
21
21
  * Override `panel.css` served at `/__rack/panel.css`.
22
22
  * - `string`: file path if the file exists, otherwise raw CSS string.
@@ -26,5 +26,10 @@ export declare namespace ReactRack {
26
26
  */
27
27
  css?: PanelCssOverride;
28
28
  panelCss?: PanelCssOverride;
29
+ /**
30
+ * Donate badge/link — shown in Dashboard & Panel footer.
31
+ * @default true (show Ko-fi)
32
+ */
33
+ donate?: boolean;
29
34
  }
30
35
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "elysia-rack",
3
- "version": "0.1.2",
3
+ "version": "0.2.2",
4
4
  "description": "Model-driven CRUD rack for Elysia: REST + QUERY routes, validation, authorization, OpenAPI metadata, and React panel rendering.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -54,8 +54,9 @@
54
54
  "dev": "bun run src/playground.ts",
55
55
  "test": "bun test --coverage",
56
56
  "typecheck": "tsc --noEmit",
57
- "build": "bun run build:js && bun run build:dts && mkdir -p dist && cp src/react/app.html dist/app.html 2>/dev/null || true",
57
+ "build": "bun run build:js && bun run build:dts && bun run build:client",
58
58
  "build:js": "bun build ./src/rack/index.ts ./src/react/index.ts --outdir ./dist --target node --format esm --splitting --external elysia --external react --external react-dom",
59
+ "build:client": "bun build src/react/page/client/panel.ts --outfile dist/panel-app.js --target browser --format esm && bun build src/react/page/client/theme.ts --outfile dist/panel-theme.js --target browser --format esm && mkdir -p dist && cp src/react/app.html dist/app.html 2>/dev/null || true",
59
60
  "build:dts": "tsc -p tsconfig.build.json",
60
61
  "prepublishOnly": "bun run typecheck && bun run build"
61
62
  },
@@ -80,5 +81,9 @@
80
81
  "react": "^19.2.8",
81
82
  "react-dom": "^19.2.8",
82
83
  "typescript": "^5"
84
+ },
85
+ "funding": {
86
+ "type": "ko-fi",
87
+ "url": "https://ko-fi.com/notoofly_manu"
83
88
  }
84
89
  }