@emseepea/react 0.0.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 ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Windy Road Technology Pty. Limited
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,20 @@
1
+ # React Renderer
2
+
3
+ `@emseepea/react` renders a validated Em See Pea form view with native
4
+ HTML controls. It is unstyled and does not send requests, authenticate people,
5
+ or authorize server actions.
6
+
7
+ Choose this package when your app already uses React and you want Em See Pea
8
+ to render the form structure for you.
9
+
10
+ ```tsx
11
+ import { ElicitationForm } from "@emseepea/react";
12
+
13
+ <ElicitationForm view={view} headingLevel={2} onSubmit={submit} />;
14
+ ```
15
+
16
+ See the [React and Tailwind UI example](../../examples/react-tailwind-ui/README.md)
17
+ for the checked renderer in a working server.
18
+
19
+ This package is open source under MIT and is queued for the next pre-alpha npm
20
+ release.
@@ -0,0 +1,8 @@
1
+ import type { ElicitationHeadingLevel, ElicitationView } from "@emseepea/server/ui";
2
+ export interface ElicitationFormProps {
3
+ readonly view: ElicitationView;
4
+ readonly headingLevel: ElicitationHeadingLevel;
5
+ readonly onSubmit?: (data: FormData) => void;
6
+ }
7
+ export declare function ElicitationForm({ view: candidate, headingLevel, onSubmit }: ElicitationFormProps): import("react").JSX.Element;
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAEV,uBAAuB,EACvB,eAAe,EAChB,MAAM,qBAAqB,CAAC;AAE7B,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,IAAI,EAAE,eAAe,CAAC;IAC/B,QAAQ,CAAC,YAAY,EAAE,uBAAuB,CAAC;IAC/C,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;CAC9C;AAED,wBAAgB,eAAe,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,YAAY,EAAE,QAAQ,EAAE,EAAE,oBAAoB,+BA0GhG"}
package/dist/index.js ADDED
@@ -0,0 +1,75 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { parseElicitationView } from "@emseepea/server/ui";
3
+ import { useEffect, useRef } from "react";
4
+ export function ElicitationForm({ view: candidate, headingLevel, onSubmit }) {
5
+ const view = parseElicitationView(candidate);
6
+ const Heading = heading(`h${checkedHeadingLevel(headingLevel)}`);
7
+ const Subheading = heading(`h${Math.min(headingLevel + 1, 6)}`);
8
+ const errorSummary = useRef(null);
9
+ const status = useRef(null);
10
+ const terminal = useRef(null);
11
+ useEffect(() => {
12
+ const target = view.state.focusTarget === "error-summary"
13
+ ? errorSummary.current
14
+ : view.state.focusTarget === "status"
15
+ ? status.current
16
+ : view.state.focusTarget === "terminal"
17
+ ? terminal.current
18
+ : undefined;
19
+ target?.focus();
20
+ }, [candidate]);
21
+ const submit = onSubmit
22
+ ? (event) => {
23
+ event.preventDefault();
24
+ onSubmit(new FormData(event.currentTarget));
25
+ }
26
+ : undefined;
27
+ const headingId = `${view.id}--heading`;
28
+ const introId = `${view.id}--intro`;
29
+ const statusText = view.state.kind === "ready"
30
+ ? view.state.status ?? ""
31
+ : view.state.kind === "invalid"
32
+ ? `Form has ${view.state.summary.items.length} ${view.state.summary.items.length === 1 ? "error" : "errors"}.`
33
+ : view.state.kind === "busy"
34
+ ? view.state.status
35
+ : sentence(view.state.heading);
36
+ return (_jsxs("section", { "data-emseepea-part": "view", "data-emseepea-state": view.state.kind, children: [_jsx(Heading, { id: headingId, children: view.heading }), view.intro && _jsx("p", { id: introId, "data-emseepea-part": "intro", children: view.intro }), _jsx("div", { id: `${view.id}--status`, "data-emseepea-part": "status", role: "status", "aria-live": "polite", "aria-atomic": "true", "aria-relevant": "additions text", tabIndex: view.state.focusTarget === "status" ? -1 : undefined, autoFocus: view.state.focusTarget === "status", ref: status, children: statusText }), view.state.kind === "terminal" ? (_jsxs("div", { id: `${view.id}--terminal`, "data-emseepea-part": "terminal", tabIndex: -1, autoFocus: view.state.focusTarget === "terminal", ref: terminal, children: [_jsx(Subheading, { children: view.state.heading }), _jsx("p", { children: view.state.message })] })) : (_jsxs(_Fragment, { children: [view.state.kind === "invalid" && (_jsxs("div", { id: `${view.id}--error-summary`, "data-emseepea-part": "error-summary", role: "alert", tabIndex: -1, autoFocus: view.state.focusTarget === "error-summary", ref: errorSummary, children: [_jsx(Subheading, { children: view.state.summary.heading }), _jsx("ul", { children: view.state.summary.items.map((item) => (_jsx("li", { children: _jsxs("a", { href: `#${view.id}--field--${item.fieldId}`, children: [view.fields.find((field) => field.id === item.fieldId)?.label, ": ", item.message] }) }, item.fieldId))) })] })), _jsxs("form", { method: "post", "data-emseepea-part": "form", "aria-labelledby": headingId, "aria-describedby": view.intro ? introId : undefined, "aria-busy": view.state.kind === "busy" ? "true" : undefined, onSubmit: submit, children: [_jsxs("fieldset", { children: [_jsx("legend", { children: view.legend }), view.fields.map((field) => _jsx(Field, { viewId: view.id, field: field }, field.id))] }), _jsx("button", { type: "submit", "data-emseepea-part": "submit", disabled: view.state.kind === "busy", children: view.submitLabel })] })] }))] }));
37
+ }
38
+ function Field({ viewId, field }) {
39
+ const fieldId = `${viewId}--field--${field.id}`;
40
+ const descriptionId = `${fieldId}--description`;
41
+ const errorId = `${fieldId}--error`;
42
+ const describedBy = [field.description ? descriptionId : undefined, field.errors?.length ? errorId : undefined]
43
+ .filter(Boolean).join(" ") || undefined;
44
+ const common = {
45
+ id: fieldId,
46
+ name: field.name,
47
+ required: field.required,
48
+ disabled: field.disabled,
49
+ "aria-invalid": field.errors?.length ? true : undefined,
50
+ "aria-describedby": describedBy,
51
+ };
52
+ const controlKey = field.kind === "checkbox"
53
+ ? `${field.id}:${field.kind}:${field.checked}`
54
+ : `${field.id}:${field.kind}:${field.value ?? ""}`;
55
+ const control = field.kind === "text"
56
+ ? _jsx("input", { type: "text", ...common, defaultValue: field.value, minLength: field.minLength, maxLength: field.maxLength }, controlKey)
57
+ : field.kind === "select"
58
+ ? (_jsxs("select", { ...common, defaultValue: field.value ?? "", children: [_jsx("option", { value: "", children: field.placeholder }), field.options.map((option) => (_jsx("option", { value: option.value, disabled: option.disabled, children: option.label }, option.value)))] }, controlKey))
59
+ : _jsx("input", { type: "checkbox", value: "true", ...common, defaultChecked: field.checked }, controlKey);
60
+ const label = _jsxs("label", { htmlFor: fieldId, children: [field.label, field.required && _jsxs(_Fragment, { children: [" ", _jsx("span", { "data-emseepea-part": "required", children: "(required)" })] })] });
61
+ return (_jsxs("div", { "data-emseepea-part": "field", "data-emseepea-field-kind": field.kind, children: [field.kind === "checkbox" ? _jsxs(_Fragment, { children: [control, label] }) : _jsxs(_Fragment, { children: [label, control] }), field.description && _jsx("p", { id: descriptionId, "data-emseepea-part": "description", children: field.description }), field.errors?.length ? (_jsx("div", { id: errorId, "data-emseepea-part": "field-error", children: field.errors.map((error) => _jsx("p", { children: error }, error)) })) : null] }));
62
+ }
63
+ function checkedHeadingLevel(value) {
64
+ if (value !== 2 && value !== 3 && value !== 4 && value !== 5 && value !== 6) {
65
+ throw new TypeError("headingLevel must be an integer from 2 to 6");
66
+ }
67
+ return value;
68
+ }
69
+ function heading(name) {
70
+ return name;
71
+ }
72
+ function sentence(value) {
73
+ return /[.!?]$/.test(value) ? value : `${value}.`;
74
+ }
75
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,EAAoC,MAAM,OAAO,CAAC;AAa5E,MAAM,UAAU,eAAe,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,YAAY,EAAE,QAAQ,EAAwB;IAC/F,MAAM,IAAI,GAAG,oBAAoB,CAAC,SAAS,CAAC,CAAC;IAC7C,MAAM,OAAO,GAAG,OAAO,CAAC,IAAI,mBAAmB,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC;IACjE,MAAM,UAAU,GAAG,OAAO,CAAC,IAAI,IAAI,CAAC,GAAG,CAAC,YAAY,GAAG,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;IAChE,MAAM,YAAY,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;IAClD,MAAM,MAAM,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;IAC5C,MAAM,QAAQ,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;IAE9C,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,WAAW,KAAK,eAAe;YACvD,CAAC,CAAC,YAAY,CAAC,OAAO;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,KAAK,CAAa,CAAC,GACpD,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AACJ,CAAC;AAED,SAAS,mBAAmB,CAAC,KAAc;IACzC,IAAI,KAAK,KAAK,CAAC,IAAI,KAAK,KAAK,CAAC,IAAI,KAAK,KAAK,CAAC,IAAI,KAAK,KAAK,CAAC,IAAI,KAAK,KAAK,CAAC,EAAE,CAAC;QAC5E,MAAM,IAAI,SAAS,CAAC,6CAA6C,CAAC,CAAC;IACrE,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED,SAAS,OAAO,CAAC,IAAY;IAC3B,OAAO,IAAmB,CAAC;AAC7B,CAAC;AAED,SAAS,QAAQ,CAAC,KAAa;IAC7B,OAAO,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,GAAG,CAAC;AACpD,CAAC"}
package/package.json ADDED
@@ -0,0 +1,46 @@
1
+ {
2
+ "name": "@emseepea/react",
3
+ "version": "0.0.0",
4
+ "private": false,
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/emseepea/emseepea.git",
9
+ "directory": "packages/react"
10
+ },
11
+ "homepage": "https://emseepea.github.io/emseepea/examples/",
12
+ "bugs": "https://github.com/emseepea/emseepea/issues",
13
+ "publishConfig": {
14
+ "access": "public",
15
+ "provenance": false,
16
+ "tag": "next"
17
+ },
18
+ "type": "module",
19
+ "exports": {
20
+ ".": {
21
+ "types": "./dist/index.d.ts",
22
+ "import": "./dist/index.js"
23
+ }
24
+ },
25
+ "files": [
26
+ "dist",
27
+ "LICENSE",
28
+ "README.md"
29
+ ],
30
+ "dependencies": {
31
+ "@emseepea/server": "0.0.4"
32
+ },
33
+ "peerDependencies": {
34
+ "react": "^19.0.0",
35
+ "react-dom": "^19.0.0"
36
+ },
37
+ "devDependencies": {
38
+ "@types/react": "19.2.18",
39
+ "@types/react-dom": "19.2.5",
40
+ "react": "19.2.8",
41
+ "react-dom": "19.2.8"
42
+ },
43
+ "engines": {
44
+ "node": ">=22"
45
+ }
46
+ }