@miadi/reference-ui 0.2.0 → 0.2.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/README.md +10 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -10,6 +10,10 @@ the chronicle or its grounding:
|
|
|
10
10
|
| `miadi-chronicle:550/foundations/<topic>` | a foundation packet an episode wrote itself |
|
|
11
11
|
| `miadi-foundation:<slug>[/<file>][#place]` | a distributed foundation packet, or one file in it |
|
|
12
12
|
| `miadi-ceremony:<id>`, `miadi-circle:<id>` | a ceremony or circle; its page asks the reader for a seat |
|
|
13
|
+
| `miadi-notebook:<uuid>` | a Deep Diver notebook an episode holds |
|
|
14
|
+
| `miadi-prototype:<slug>` | a prototype made from an episode |
|
|
15
|
+
| `miadi-tracing:<domain>/<resource>/<id>[@<v>]` | a trace, prompt, session, dataset or score config (`miadi-trace:<domain>/<id>` and `miadi-prompt:<domain>/<name>[@<v>]` are accepted) |
|
|
16
|
+
| `rise://<owner>/<repo>/<path>[@<commit>]` | a specification file |
|
|
13
17
|
|
|
14
18
|
`//` after the scheme is accepted on input and dropped on output. Rendering options
|
|
15
19
|
travel in `mc.*` query parameters (`mc.show=card`, `mc.label=…`, `mc.highlight=true`),
|
|
@@ -72,7 +76,12 @@ Every text is escaped. The React components produce the same markup.
|
|
|
72
76
|
A resolver is `(uri) => Promise<ResolveAnswer | null>`. `createRemoteResolver`
|
|
73
77
|
calls `GET <origin>/api/chronicle/resolve?uri=…`. A host that holds its own catalog
|
|
74
78
|
builds views directly with `episodeReferenceView`, `foundationReferenceView`,
|
|
75
|
-
`episodeFoundationView` and `wheelReferenceView`.
|
|
79
|
+
`episodeFoundationView`, `artefactReferenceView` and `wheelReferenceView`.
|
|
80
|
+
|
|
81
|
+
An artefact or spec chip points at the front's open door
|
|
82
|
+
(`/api/chronicle/open?uri=…`), which redirects to the notebook, the published
|
|
83
|
+
prototype, the room holding a trace, or the specification file. The chip never
|
|
84
|
+
carries a provider URL, a project id or an editing address.
|
|
76
85
|
|
|
77
86
|
## Styling
|
|
78
87
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@miadi/reference-ui",
|
|
3
|
-
"version": "0.2.
|
|
4
|
-
"description": "Render Miadi references — miadi-chronicle:<episode>, miadi-foundation:<slug>, miadi-ceremony:<id>, miadi-circle:<id> — as chips and cards in any host. A view model and an HTML renderer with no framework, React components on ./react, and a resolver client for a Miadi front's public /api/chronicle/resolve. It holds no URL or token: the host passes the resolver.",
|
|
3
|
+
"version": "0.2.1",
|
|
4
|
+
"description": "Render Miadi references — miadi-chronicle:<episode>, miadi-foundation:<slug>, miadi-ceremony:<id>, miadi-circle:<id>, miadi-notebook:<uuid>, miadi-prototype:<slug>, miadi-tracing:<domain>/<resource>/<id>, rise://<owner>/<repo>/<path> — as chips and cards in any host. A view model and an HTML renderer with no framework, React components on ./react, and a resolver client for a Miadi front's public /api/chronicle/resolve. It holds no URL or token: the host passes the resolver.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|