@ashley-shrok/viewmodel-shell 0.3.0 → 0.3.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.
- package/README.md +3 -1
- package/package.json +2 -2
- package/styles/default.css +11 -0
package/README.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# @ashley-shrok/viewmodel-shell
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A server-driven UI framework where the wire format is structured enough that agents can build full-stack apps without ever opening a browser and all UI tests are pure unit tests with no browser runtime.
|
|
4
|
+
|
|
5
|
+
The server returns a JSON tree of typed nodes; a thin TypeScript adapter renders it to DOM. The browser never owns application state — every interaction dispatches a semantic action to a single POST endpoint and the server returns the next state plus a fresh view.
|
|
4
6
|
|
|
5
7
|
The frontend is backend-agnostic: it speaks a small JSON contract over a single POST endpoint that takes `multipart/form-data` (with `_action` and `_state` fields). A .NET reference backend ships in the repo, but any language can produce the same contract.
|
|
6
8
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ashley-shrok/viewmodel-shell",
|
|
3
|
-
"version": "0.3.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.3.2",
|
|
4
|
+
"description": "A server-driven UI framework where the wire format is structured enough that agents can build full-stack apps without ever opening a browser and all UI tests are pure unit tests with no browser runtime. Server returns a JSON tree of typed nodes; a thin TypeScript adapter renders it to DOM. Backend-agnostic — a .NET reference backend ships with the repo, but any language can produce the JSON contract.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "ashley-shrok",
|
package/styles/default.css
CHANGED
|
@@ -40,6 +40,17 @@
|
|
|
40
40
|
--vms-color-scheme: dark;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
+
/* ── Page chrome ──
|
|
44
|
+
Apply the theme background to <body> so areas outside .vms-page (the
|
|
45
|
+
default browser white) don't fight the active theme. Apps that prefer
|
|
46
|
+
their own page chrome can override these rules. */
|
|
47
|
+
body {
|
|
48
|
+
background-color: var(--vms-bg);
|
|
49
|
+
color: var(--vms-text);
|
|
50
|
+
color-scheme: var(--vms-color-scheme);
|
|
51
|
+
font-family: var(--vms-font-body);
|
|
52
|
+
}
|
|
53
|
+
|
|
43
54
|
/* ── Page ── */
|
|
44
55
|
.vms-page { display: flex; flex-direction: column; gap: 1.5rem; color: var(--vms-text); font-family: var(--vms-font-body); }
|
|
45
56
|
.vms-page__title {
|