@niscorp/loom 0.1.0 → 0.1.1
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/CHANGELOG.md +7 -0
- package/README.md +9 -4
- package/package.json +7 -7
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# @niscorp/loom
|
|
2
|
+
|
|
3
|
+
## 0.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- b67a125: Documentation only: each package's README, reference and design docs checked against its source and corrected — install lines and peers, signatures, defaults, status codes, licenses (loom, signal: Apache-2.0), and API that existed but was not documented.
|
package/README.md
CHANGED
|
@@ -18,8 +18,10 @@ pnpm add @niscorp/loom @niscorp/nova zod
|
|
|
18
18
|
|
|
19
19
|
`@niscorp/nova` is required. The React surface (`@niscorp/loom/react`) also needs
|
|
20
20
|
`react`. Domain plugins each need their own library — `@niscorp/vex` for the Vex
|
|
21
|
-
plugin, `@niscorp/prism` for the Prism plugin. All three are optional: a consumer
|
|
22
|
-
|
|
21
|
+
plugin, `@niscorp/prism` for the Prism plugin. All three are optional peers of Loom: a consumer that only
|
|
22
|
+
uses the compiler needs none of them for Loom itself. (Nova has required peers
|
|
23
|
+
of its own — `@niscorp/prism` and `@niscorp/strata` — which pnpm installs with
|
|
24
|
+
it.)
|
|
23
25
|
|
|
24
26
|
## Two ways to use Loom
|
|
25
27
|
|
|
@@ -75,13 +77,16 @@ import { prism } from '@niscorp/loom/plugins/prism/react';
|
|
|
75
77
|
- To switch to a different artifact, give the element a new React `key`.
|
|
76
78
|
|
|
77
79
|
A **plugin** wires one domain into the editor. It contributes the schemas to edit
|
|
78
|
-
(its *documents*), optional custom field widgets, and usually a preview. The
|
|
80
|
+
(its *documents*), optional custom field widgets, and usually a preview. The three
|
|
79
81
|
reference plugins:
|
|
80
82
|
|
|
81
83
|
- `prism({ input })` — edit a [Prism](../prism) transform config; the preview
|
|
82
84
|
applies it to `input` and shows the output.
|
|
83
85
|
- `vex({ run, db })` — edit a [Vex](../vex) query; the preview runs it with `run`
|
|
84
86
|
and shows the rows. Pass `db` to get column-aware field pickers.
|
|
87
|
+
- `nova({ manifest })` — edit a [Nova](../nova) layout built from the
|
|
88
|
+
components the manifest lists (each `{ name, props, container?, render }`,
|
|
89
|
+
`props` a Zod schema); the preview renders the layout with them.
|
|
85
90
|
|
|
86
91
|
## Entry points
|
|
87
92
|
|
|
@@ -98,4 +103,4 @@ reference plugins:
|
|
|
98
103
|
|
|
99
104
|
## License
|
|
100
105
|
|
|
101
|
-
|
|
106
|
+
Apache-2.0
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@niscorp/loom",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Schema-driven editors that run on Nova — turn any schema into an editing UI",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -113,16 +113,16 @@
|
|
|
113
113
|
"tsup": "^8.5.1",
|
|
114
114
|
"vitest": "^4.1.2",
|
|
115
115
|
"zod": "^4.6.5",
|
|
116
|
-
"@niscorp/nova": "^0.1.
|
|
117
|
-
"@niscorp/
|
|
118
|
-
"@niscorp/
|
|
116
|
+
"@niscorp/nova": "^0.1.2",
|
|
117
|
+
"@niscorp/prism": "^0.1.2",
|
|
118
|
+
"@niscorp/vex": "^0.1.1"
|
|
119
119
|
},
|
|
120
120
|
"peerDependencies": {
|
|
121
121
|
"react": "^19.2.4",
|
|
122
122
|
"zod": "^4.2.0",
|
|
123
|
-
"@niscorp/nova": "^0.1.
|
|
124
|
-
"@niscorp/
|
|
125
|
-
"@niscorp/
|
|
123
|
+
"@niscorp/nova": "^0.1.2",
|
|
124
|
+
"@niscorp/prism": "^0.1.2",
|
|
125
|
+
"@niscorp/vex": "^0.1.1"
|
|
126
126
|
},
|
|
127
127
|
"peerDependenciesMeta": {
|
|
128
128
|
"@niscorp/prism": {
|