@emseepea/create-react-ui-server 0.0.29 → 0.0.31
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.
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
"container:build": "docker build --tag emseepea-server:local ."
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@emseepea/feedback": "0.2.
|
|
18
|
+
"@emseepea/feedback": "0.2.13",
|
|
19
19
|
"playwright": "1.62.1",
|
|
20
20
|
"axe-core": "4.13.0",
|
|
21
|
-
"@emseepea/testing": "0.11.
|
|
21
|
+
"@emseepea/testing": "0.11.3",
|
|
22
22
|
"@types/node": "24.13.3",
|
|
23
23
|
"@types/react": "19.2.18",
|
|
24
24
|
"@types/react-dom": "19.2.5",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
},
|
|
32
32
|
"private": true,
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@emseepea/react": "0.2.
|
|
35
|
-
"@emseepea/server": "0.
|
|
34
|
+
"@emseepea/react": "0.2.3",
|
|
35
|
+
"@emseepea/server": "0.12.0",
|
|
36
36
|
"@emseepea/tailwind": "0.0.2",
|
|
37
37
|
"react": "19.2.8",
|
|
38
38
|
"react-dom": "19.2.8"
|
|
@@ -78,9 +78,9 @@ function resultView(
|
|
|
78
78
|
disabled: action !== "idle",
|
|
79
79
|
}];
|
|
80
80
|
const actionState = action === "sending"
|
|
81
|
-
? { kind: "sending" as const, status: "Asking
|
|
81
|
+
? { kind: "sending" as const, status: "Asking ChatGPT: Show me growing tips for these pea varieties.", focusTarget: "status" as const }
|
|
82
82
|
: action === "sent"
|
|
83
|
-
? { kind: "sent" as const, status: "Asked
|
|
83
|
+
? { kind: "sent" as const, status: "Asked ChatGPT: Show me growing tips for these pea varieties.", focusTarget: "status" as const }
|
|
84
84
|
: action === "error"
|
|
85
85
|
? { kind: "error" as const, status: "Growing tips could not be requested. Ask in the chat instead.", focusTarget: "status" as const }
|
|
86
86
|
: {
|
|
@@ -99,7 +99,7 @@ test("the MCP Apps card completes initialization before rendering a result", asy
|
|
|
99
99
|
}, "*");
|
|
100
100
|
}
|
|
101
101
|
if (event.data?.method === "ui/message") {
|
|
102
|
-
|
|
102
|
+
window.pendingAppMessage = { source: event.source, id: event.data.id };
|
|
103
103
|
}
|
|
104
104
|
});
|
|
105
105
|
});
|
|
@@ -155,10 +155,16 @@ test("the MCP Apps card completes initialization before rendering a result", asy
|
|
|
155
155
|
assert.equal(await frame.evaluate((node) => node === document.querySelector("[data-emseepea-part='status']"), statusNode), true);
|
|
156
156
|
|
|
157
157
|
await frame.locator("button").press("Enter");
|
|
158
|
-
await status.filter({ hasText: "
|
|
159
|
-
assert.equal(await frame.locator("
|
|
158
|
+
await status.filter({ hasText: "Asking ChatGPT: Show me growing tips for these pea varieties." }).waitFor();
|
|
159
|
+
assert.equal(await frame.locator("button").isDisabled(), true);
|
|
160
|
+
await page.waitForFunction(() => window.receivedAppMessages.some((message) => message?.method === "ui/message"));
|
|
160
161
|
const sent = await page.evaluate(() => window.receivedAppMessages.find((message) => message?.method === "ui/message"));
|
|
161
162
|
assert.equal(sent.params.content[0].text, "Show me growing tips for these pea varieties.");
|
|
163
|
+
await page.evaluate(() => window.pendingAppMessage.source.postMessage({
|
|
164
|
+
jsonrpc: "2.0", id: window.pendingAppMessage.id, result: {},
|
|
165
|
+
}, "*"));
|
|
166
|
+
await status.filter({ hasText: "Asked ChatGPT: Show me growing tips for these pea varieties." }).waitFor();
|
|
167
|
+
assert.equal(await frame.locator("[data-emseepea-part='status']").evaluate((element) => element === document.activeElement), true);
|
|
162
168
|
|
|
163
169
|
await page.evaluate(() => document.querySelector("iframe").contentWindow.postMessage({
|
|
164
170
|
jsonrpc: "2.0", id: "teardown", method: "ui/resource-teardown",
|
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.31",
|
|
4
4
|
"description": "Create an Em See Pea server with an accessible React form.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -18,16 +18,16 @@
|
|
|
18
18
|
"prepack": "npm run build:initializer"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@emseepea/feedback": "0.2.
|
|
22
|
-
"@emseepea/react": "0.2.
|
|
23
|
-
"@emseepea/server": "0.
|
|
21
|
+
"@emseepea/feedback": "0.2.13",
|
|
22
|
+
"@emseepea/react": "0.2.3",
|
|
23
|
+
"@emseepea/server": "0.12.0",
|
|
24
24
|
"@emseepea/tailwind": "0.0.2",
|
|
25
25
|
"react": "19.2.8",
|
|
26
26
|
"react-dom": "19.2.8",
|
|
27
27
|
"@emseepea/example-ui-shared": "0.0.0",
|
|
28
28
|
"playwright": "1.62.1",
|
|
29
29
|
"axe-core": "4.13.0",
|
|
30
|
-
"@emseepea/testing": "0.11.
|
|
30
|
+
"@emseepea/testing": "0.11.3",
|
|
31
31
|
"@types/node": "24.13.3",
|
|
32
32
|
"@types/react": "19.2.18",
|
|
33
33
|
"@types/react-dom": "19.2.5",
|