@emseepea/create-react-ui-server 0.0.0 → 0.0.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.
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"lint": "oxlint src test eval test-support"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@emseepea/react": "0.0.
|
|
18
|
-
"@emseepea/server": "0.0
|
|
17
|
+
"@emseepea/react": "0.0.2",
|
|
18
|
+
"@emseepea/server": "0.1.0",
|
|
19
19
|
"@emseepea/tailwind": "0.0.1",
|
|
20
20
|
"react": "19.2.8",
|
|
21
21
|
"react-dom": "19.2.8"
|
|
@@ -2,12 +2,11 @@ import { readFile } from "node:fs/promises";
|
|
|
2
2
|
import { parse } from "node:querystring";
|
|
3
3
|
|
|
4
4
|
import {
|
|
5
|
-
createPreviewBeanReportTool,
|
|
6
5
|
fixtureForState,
|
|
7
6
|
viewFromSubmission,
|
|
8
7
|
} from "./ui-shared.js";
|
|
9
8
|
import { ElicitationForm } from "@emseepea/react";
|
|
10
|
-
import { createEmseepea, serveEmseepea, type ElicitationView } from "@emseepea/server";
|
|
9
|
+
import { createEmseepea, discoverCapabilities, serveEmseepea, type ElicitationView } from "@emseepea/server";
|
|
11
10
|
import { renderToString } from "react-dom/server";
|
|
12
11
|
|
|
13
12
|
const stylesheet = await readFile(new URL(import.meta.resolve("@emseepea/tailwind/styles.css")), "utf8");
|
|
@@ -16,7 +15,7 @@ const app = createEmseepea({
|
|
|
16
15
|
name: "emseepea-react-tailwind-ui",
|
|
17
16
|
version: "0.0.0",
|
|
18
17
|
instructions: "Use preview-bean-report to preview sample report content. It sends and stores nothing.",
|
|
19
|
-
|
|
18
|
+
...await discoverCapabilities(new URL("./capabilities/", import.meta.url)),
|
|
20
19
|
});
|
|
21
20
|
|
|
22
21
|
app.addContentTypeParser(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emseepea/create-react-ui-server",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Create an Em See Pea server with an accessible React form.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -11,19 +11,13 @@
|
|
|
11
11
|
},
|
|
12
12
|
"homepage": "https://emseepea.github.io/emseepea/examples/",
|
|
13
13
|
"bugs": "https://github.com/emseepea/emseepea/issues",
|
|
14
|
-
"publishConfig": {
|
|
15
|
-
"access": "public",
|
|
16
|
-
"provenance": false,
|
|
17
|
-
"tag": "next"
|
|
18
|
-
},
|
|
14
|
+
"publishConfig": { "access": "public", "provenance": true, "tag": "next" },
|
|
19
15
|
"type": "module",
|
|
20
|
-
"bin": {
|
|
21
|
-
|
|
16
|
+
"bin": { "create-react-ui-server": "./dist/create.mjs" },
|
|
17
|
+
"files": ["dist"],
|
|
18
|
+
"scripts": {
|
|
19
|
+
"build": "node ../../scripts/build-initializer.mjs",
|
|
20
|
+
"prepack": "npm run build"
|
|
22
21
|
},
|
|
23
|
-
"
|
|
24
|
-
"dist"
|
|
25
|
-
],
|
|
26
|
-
"engines": {
|
|
27
|
-
"node": ">=22"
|
|
28
|
-
}
|
|
22
|
+
"engines": { "node": ">=22" }
|
|
29
23
|
}
|