@yaks/visualize 0.0.0-stage → 0.2.36
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/ActivityView.tsx +370 -0
- package/AnatomyList.tsx +183 -0
- package/Atlas.tsx +490 -0
- package/Detail.tsx +464 -0
- package/LICENSE +202 -0
- package/README.md +180 -2
- package/SectionHead.tsx +18 -0
- package/Topology.tsx +596 -0
- package/_dist/activity.d.ts +15 -0
- package/_dist/activity.d.ts.map +1 -0
- package/_dist/capture.d.ts +19 -0
- package/_dist/capture.d.ts.map +1 -0
- package/_dist/cli.d.ts +6 -0
- package/_dist/cli.d.ts.map +1 -0
- package/_dist/front.d.ts +6 -0
- package/_dist/front.d.ts.map +1 -0
- package/_dist/http.d.ts +21 -0
- package/_dist/http.d.ts.map +1 -0
- package/_dist/main.d.ts +2 -0
- package/_dist/main.d.ts.map +1 -0
- package/_dist/mod.d.ts +6 -0
- package/_dist/mod.d.ts.map +1 -0
- package/_dist/model.d.ts +55 -0
- package/_dist/model.d.ts.map +1 -0
- package/_dist/parts.d.ts +19 -0
- package/_dist/parts.d.ts.map +1 -0
- package/_dist/routes.d.ts +7 -0
- package/_dist/routes.d.ts.map +1 -0
- package/_dist/snapshot.d.ts +38 -0
- package/_dist/snapshot.d.ts.map +1 -0
- package/_dist/stream.d.ts +3 -0
- package/_dist/stream.d.ts.map +1 -0
- package/_dist/tools.d.ts +10 -0
- package/_dist/tools.d.ts.map +1 -0
- package/_dist/vocab.d.ts +5 -0
- package/_dist/vocab.d.ts.map +1 -0
- package/activity.js +73 -0
- package/activity.js.map +1 -0
- package/activity.ts +104 -0
- package/capture.js +46 -0
- package/capture.js.map +1 -0
- package/capture.ts +68 -0
- package/cli.js +173 -0
- package/cli.js.map +1 -0
- package/cli.ts +200 -0
- package/deno.json +1 -0
- package/front.js +21 -0
- package/front.js.map +1 -0
- package/front.json +210 -0
- package/front.ts +22 -0
- package/http.js +290 -0
- package/http.js.map +1 -0
- package/http.ts +338 -0
- package/main.js +51 -0
- package/main.js.map +1 -0
- package/main.ts +50 -0
- package/mod.js +6 -0
- package/mod.js.map +1 -0
- package/mod.ts +15 -0
- package/model.js +551 -0
- package/model.js.map +1 -0
- package/model.ts +543 -0
- package/package.json +76 -4
- package/parts.js +70 -0
- package/parts.js.map +1 -0
- package/parts.ts +113 -0
- package/routes.js +53 -0
- package/routes.js.map +1 -0
- package/routes.ts +76 -0
- package/snapshot.js +117 -0
- package/snapshot.js.map +1 -0
- package/snapshot.ts +157 -0
- package/stream.js +73 -0
- package/stream.js.map +1 -0
- package/stream.ts +95 -0
- package/tools.js +64 -0
- package/tools.js.map +1 -0
- package/tools.ts +79 -0
- package/visualize.css +1787 -0
- package/vocab.js +13 -0
- package/vocab.js.map +1 -0
- package/vocab.json +97 -0
- package/vocab.ts +14 -0
package/Detail.tsx
ADDED
|
@@ -0,0 +1,464 @@
|
|
|
1
|
+
/** @jsxRuntime automatic *//** @jsxImportSourceTypes npm:react@19.3.0 *//** @jsxImportSource npm:react@19.3.0 */
|
|
2
|
+
/** Anatomy detail deliberately projects code metadata rather than rendering
|
|
3
|
+
* arbitrary objects. Schemas expose field names/types, never defaults/examples.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { SectionHead } from './SectionHead.tsx'
|
|
7
|
+
import { Button, Chip } from 'jsr:@yaks/ui@0.2.36'
|
|
8
|
+
import type { AtlasModel, Edge, Node } from './model.ts'
|
|
9
|
+
import { colorOf, elapsed, groupName, statusOf } from './Topology.tsx'
|
|
10
|
+
|
|
11
|
+
let record = (value: unknown): Record<string, unknown> =>
|
|
12
|
+
value && typeof value == 'object' && !Array.isArray(value)
|
|
13
|
+
? value as Record<string, unknown>
|
|
14
|
+
: {}
|
|
15
|
+
|
|
16
|
+
let strings = (value: unknown) =>
|
|
17
|
+
Array.isArray(value)
|
|
18
|
+
? value.filter((v): v is string => typeof v == 'string')
|
|
19
|
+
: []
|
|
20
|
+
|
|
21
|
+
let typeName = (schema: Record<string, unknown>) =>
|
|
22
|
+
typeof schema.type == 'string'
|
|
23
|
+
? schema.type
|
|
24
|
+
: Array.isArray(schema.type)
|
|
25
|
+
? strings(schema.type).join(' | ')
|
|
26
|
+
: typeof schema.$ref == 'string'
|
|
27
|
+
? 'reference'
|
|
28
|
+
: schema.oneOf || schema.anyOf
|
|
29
|
+
? 'union'
|
|
30
|
+
: 'unspecified'
|
|
31
|
+
|
|
32
|
+
type Property = { name: string; type: string; required: boolean }
|
|
33
|
+
let fields = (schema: unknown): Property[] => {
|
|
34
|
+
let data = record(schema)
|
|
35
|
+
let required = new Set(strings(data.required))
|
|
36
|
+
return Object.entries(record(data.properties)).map(([name, value]) => ({
|
|
37
|
+
name,
|
|
38
|
+
type: typeName(record(value)),
|
|
39
|
+
required: required.has(name),
|
|
40
|
+
}))
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
let Schema = ({ title, properties }: {
|
|
44
|
+
title: string
|
|
45
|
+
properties: Property[]
|
|
46
|
+
}) =>
|
|
47
|
+
properties.length
|
|
48
|
+
? (
|
|
49
|
+
<details className='Detail_Schema'>
|
|
50
|
+
<summary className='Atlas_Summary Detail_Schema_Summary'>
|
|
51
|
+
{title}
|
|
52
|
+
<span className='Detail_Schema_Summary_Text'>
|
|
53
|
+
{properties.length} fields
|
|
54
|
+
</span>
|
|
55
|
+
</summary>
|
|
56
|
+
<dl className='Detail_Fields Atlas_Reset'>
|
|
57
|
+
{properties.slice(0, 32).map((prop) => (
|
|
58
|
+
<div className='Detail_Fields_Row' key={prop.name}>
|
|
59
|
+
<dt className='Detail_Fields_Term'>
|
|
60
|
+
{prop.name}
|
|
61
|
+
{prop.required && (
|
|
62
|
+
<span
|
|
63
|
+
className='Detail_Fields_Term_Text'
|
|
64
|
+
title='Required field'
|
|
65
|
+
>
|
|
66
|
+
*
|
|
67
|
+
</span>
|
|
68
|
+
)}
|
|
69
|
+
</dt>
|
|
70
|
+
<dd className='Detail_Fields_Value'>{prop.type}</dd>
|
|
71
|
+
</div>
|
|
72
|
+
))}
|
|
73
|
+
</dl>
|
|
74
|
+
{properties.length > 32 && (
|
|
75
|
+
<p className='Detail_Note Atlas_Reset'>
|
|
76
|
+
First 32 field names shown. The anatomy JSON door has the full
|
|
77
|
+
contract.
|
|
78
|
+
</p>
|
|
79
|
+
)}
|
|
80
|
+
</details>
|
|
81
|
+
)
|
|
82
|
+
: null
|
|
83
|
+
|
|
84
|
+
let metadata = (node: Node): [string, string][] => {
|
|
85
|
+
let rows: [string, string][] = []
|
|
86
|
+
if (node.package) rows.push(['Package', node.package])
|
|
87
|
+
if (node.facet) rows.push(['Facet', node.facet])
|
|
88
|
+
for (
|
|
89
|
+
let [key, label] of [
|
|
90
|
+
['configured', 'Configured'],
|
|
91
|
+
['selected', 'Selected'],
|
|
92
|
+
['attempted', 'Attempted'],
|
|
93
|
+
['noop', 'No-op binding'],
|
|
94
|
+
['method', 'Method'],
|
|
95
|
+
['path', 'Path'],
|
|
96
|
+
['handler', 'Handler'],
|
|
97
|
+
['tier', 'Tier'],
|
|
98
|
+
['extends', 'Open vocabulary'],
|
|
99
|
+
['observed', 'Category observed'],
|
|
100
|
+
]
|
|
101
|
+
) {
|
|
102
|
+
let value = node.detail[key]
|
|
103
|
+
if (typeof value == 'boolean') rows.push([label, value ? 'Yes' : 'No'])
|
|
104
|
+
else if (typeof value == 'string') rows.push([label, value])
|
|
105
|
+
}
|
|
106
|
+
return rows
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
let Flags = ({ node }: { node: Node }) => (
|
|
110
|
+
<dl className='Detail_Flags Atlas_Reset'>
|
|
111
|
+
{([
|
|
112
|
+
['Declared', node.declared],
|
|
113
|
+
['Loaded', node.loaded],
|
|
114
|
+
['Bound', node.bound],
|
|
115
|
+
] as [string, boolean][]).map(([label, present]) => (
|
|
116
|
+
<div className='Detail_Flags_Row' key={label} data-present={present}>
|
|
117
|
+
<dt className='Detail_Flags_Term'>
|
|
118
|
+
<i className='Detail_Flags_Indicator' aria-hidden='true' />
|
|
119
|
+
{label}
|
|
120
|
+
</dt>
|
|
121
|
+
<dd className='Detail_Flags_Value'>
|
|
122
|
+
{present ? 'Yes' : 'Not reported'}
|
|
123
|
+
</dd>
|
|
124
|
+
</div>
|
|
125
|
+
))}
|
|
126
|
+
</dl>
|
|
127
|
+
)
|
|
128
|
+
|
|
129
|
+
let References = ({ node }: { node: Node }) => {
|
|
130
|
+
let rows = ['refs', 'before', 'hooks', 'facets'].flatMap((key) =>
|
|
131
|
+
strings(node.detail[key]).map((name) => ({ key, name }))
|
|
132
|
+
)
|
|
133
|
+
return rows.length
|
|
134
|
+
? (
|
|
135
|
+
<details className='Detail_Schema'>
|
|
136
|
+
<summary className='Atlas_Summary Detail_Schema_Summary'>
|
|
137
|
+
Code references<span className='Detail_Schema_Summary_Text'>
|
|
138
|
+
{rows.length}
|
|
139
|
+
</span>
|
|
140
|
+
</summary>
|
|
141
|
+
<ul className='Detail_References Atlas_Reset'>
|
|
142
|
+
{rows.slice(0, 32).map((row, i) => (
|
|
143
|
+
<li className='Detail_References_Item' key={i}>
|
|
144
|
+
<span className='Detail_References_Text'>{row.key}</span>
|
|
145
|
+
<code className='Detail_References_Code'>{row.name}</code>
|
|
146
|
+
</li>
|
|
147
|
+
))}
|
|
148
|
+
</ul>
|
|
149
|
+
{rows.length > 32 && (
|
|
150
|
+
<p className='Detail_Note Atlas_Reset'>First 32 references shown.</p>
|
|
151
|
+
)}
|
|
152
|
+
</details>
|
|
153
|
+
)
|
|
154
|
+
: null
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
let Relationships = ({ model, node }: { model: AtlasModel; node: Node }) => {
|
|
158
|
+
let links = model.edges.filter((edge) =>
|
|
159
|
+
edge.from == node.id || edge.to == node.id
|
|
160
|
+
)
|
|
161
|
+
let names = new Map(model.nodes.map((n) => [n.id, n.name]))
|
|
162
|
+
return (
|
|
163
|
+
<section className='Detail_Relations' aria-label='Part relationships'>
|
|
164
|
+
<div className='Detail_Subhead'>
|
|
165
|
+
<h3 className='Atlas_Reset Detail_Subhead_Title'>Relationships</h3>
|
|
166
|
+
<span className='Detail_Subhead_Text'>{links.length}</span>
|
|
167
|
+
</div>
|
|
168
|
+
{links.length
|
|
169
|
+
? (
|
|
170
|
+
<ul className='Atlas_Reset Detail_Relations_List'>
|
|
171
|
+
{links.slice(0, 16).map((edge) => {
|
|
172
|
+
let outgoing = edge.from == node.id
|
|
173
|
+
let other = outgoing ? edge.to : edge.from
|
|
174
|
+
return (
|
|
175
|
+
<li key={edge.id}>
|
|
176
|
+
<button
|
|
177
|
+
type='button'
|
|
178
|
+
className='Detail_Link Atlas_Button'
|
|
179
|
+
onClick={() => model.select(edge.id)}
|
|
180
|
+
>
|
|
181
|
+
<span className='Detail_Link_Text' aria-hidden='true'>
|
|
182
|
+
{outgoing ? '↗' : '↙'}
|
|
183
|
+
</span>
|
|
184
|
+
<span className='Detail_Link_Text'>
|
|
185
|
+
<small className='Detail_Link_Note'>{edge.kind}</small>
|
|
186
|
+
{names.get(other) ?? other}
|
|
187
|
+
</span>
|
|
188
|
+
</button>
|
|
189
|
+
</li>
|
|
190
|
+
)
|
|
191
|
+
})}
|
|
192
|
+
</ul>
|
|
193
|
+
)
|
|
194
|
+
: (
|
|
195
|
+
<p className='Detail_Note Atlas_Reset'>
|
|
196
|
+
No relationships reported in this snapshot.
|
|
197
|
+
</p>
|
|
198
|
+
)}
|
|
199
|
+
{links.length > 16 && (
|
|
200
|
+
<Button
|
|
201
|
+
className='Atlas_Button'
|
|
202
|
+
type='button'
|
|
203
|
+
mod='quiet'
|
|
204
|
+
onClick={() => {
|
|
205
|
+
model.search(node.name)
|
|
206
|
+
model.set({ view: 'list', group: 'relations', listPage: 0 })
|
|
207
|
+
}}
|
|
208
|
+
>
|
|
209
|
+
View all {links.length} relationships →
|
|
210
|
+
</Button>
|
|
211
|
+
)}
|
|
212
|
+
</section>
|
|
213
|
+
)
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
let NodeDetail = ({ model, node }: { model: AtlasModel; node: Node }) => {
|
|
217
|
+
let recent = model.events.findLast((event) => event.node == node.id)
|
|
218
|
+
let props = Array.isArray(node.detail.props)
|
|
219
|
+
? node.detail.props.map((prop) => {
|
|
220
|
+
let data = record(prop)
|
|
221
|
+
return {
|
|
222
|
+
name: String(data.name ?? ''),
|
|
223
|
+
type: typeName(record(data.schema)),
|
|
224
|
+
required: false,
|
|
225
|
+
}
|
|
226
|
+
}).filter((prop) => prop.name)
|
|
227
|
+
: fields(node.detail.schema)
|
|
228
|
+
return (
|
|
229
|
+
<>
|
|
230
|
+
<div
|
|
231
|
+
className='Detail_Identity'
|
|
232
|
+
style={{ '--part': `var(--${colorOf(node)})` }}
|
|
233
|
+
>
|
|
234
|
+
<div className='Detail_Tokens'>
|
|
235
|
+
<Chip style={{ '--hue': `var(--${colorOf(node)})` }}>
|
|
236
|
+
{groupName(node.group)}
|
|
237
|
+
</Chip>
|
|
238
|
+
<Chip mod={statusOf(node) == 'unattempted' ? 'ghost' : undefined}>
|
|
239
|
+
{statusOf(node)}
|
|
240
|
+
</Chip>
|
|
241
|
+
</div>
|
|
242
|
+
<h2 className='Atlas_Reset Detail_Identity_Title'>{node.name}</h2>
|
|
243
|
+
{node.description && (
|
|
244
|
+
<p className='Atlas_Reset Detail_Identity_Description'>
|
|
245
|
+
{node.description}
|
|
246
|
+
</p>
|
|
247
|
+
)}
|
|
248
|
+
</div>
|
|
249
|
+
{node.group == 'phases'
|
|
250
|
+
? (
|
|
251
|
+
<p className='Detail_Callout Atlas_Reset'>
|
|
252
|
+
A synthetic label for the{' '}
|
|
253
|
+
{node.detail.path == 'rollback' ? 'rollback' : 'apply'}{' '}
|
|
254
|
+
path, not a separately bound implementation. Timing appears only
|
|
255
|
+
when this process reports an observed phase.
|
|
256
|
+
</p>
|
|
257
|
+
)
|
|
258
|
+
: <Flags node={node} />}
|
|
259
|
+
{node.detail.observed === false && (
|
|
260
|
+
<p className='Detail_Callout Atlas_Reset' data-tone='caution'>
|
|
261
|
+
<strong className='Detail_Callout_Strong'>
|
|
262
|
+
Category unobserved here.
|
|
263
|
+
</strong>{' '}
|
|
264
|
+
The host does not report coverage for this category. Unreported parts
|
|
265
|
+
or bindings are not evidence of absence.
|
|
266
|
+
</p>
|
|
267
|
+
)}
|
|
268
|
+
{node.group == 'facets' && node.detail.attempted === false &&
|
|
269
|
+
(
|
|
270
|
+
<p className='Detail_Callout Atlas_Reset' data-tone='caution'>
|
|
271
|
+
<strong className='Detail_Callout_Strong'>
|
|
272
|
+
Not attempted, not absent.
|
|
273
|
+
</strong>{' '}
|
|
274
|
+
This lazy facet has not been resolved. Its declaration alone says
|
|
275
|
+
nothing about import success.
|
|
276
|
+
</p>
|
|
277
|
+
)}
|
|
278
|
+
{node.group == 'effects' && node.detail.noop === true &&
|
|
279
|
+
(
|
|
280
|
+
<p className='Detail_Callout Atlas_Reset'>
|
|
281
|
+
This is a declared no-op binding. Being bound is not evidence that
|
|
282
|
+
work ran.
|
|
283
|
+
</p>
|
|
284
|
+
)}
|
|
285
|
+
{node.group == 'secrets' && (
|
|
286
|
+
<p className='Detail_Callout Atlas_Reset' data-tone='caution'>
|
|
287
|
+
A configured secret name only. No value is read or displayed here.
|
|
288
|
+
</p>
|
|
289
|
+
)}
|
|
290
|
+
<dl className='Detail_Metadata Atlas_Reset'>
|
|
291
|
+
{metadata(node).map(([label, value]) => (
|
|
292
|
+
<div className='Detail_Metadata_Row' key={label}>
|
|
293
|
+
<dt className='Detail_Metadata_Term'>{label}</dt>
|
|
294
|
+
<dd className='Detail_Metadata_Value'>{value}</dd>
|
|
295
|
+
</div>
|
|
296
|
+
))}
|
|
297
|
+
</dl>
|
|
298
|
+
<Schema title='Component fields' properties={props} />
|
|
299
|
+
<Schema
|
|
300
|
+
title='Input contract'
|
|
301
|
+
properties={fields(node.detail.inputSchema)}
|
|
302
|
+
/>
|
|
303
|
+
<Schema
|
|
304
|
+
title='Output contract'
|
|
305
|
+
properties={fields(node.detail.outputSchema)}
|
|
306
|
+
/>
|
|
307
|
+
<References node={node} />
|
|
308
|
+
{recent && (
|
|
309
|
+
<div className='Detail_Observed'>
|
|
310
|
+
<span className='Atlas_Eyebrow'>Last retained observation</span>
|
|
311
|
+
<Button
|
|
312
|
+
className='Atlas_Button'
|
|
313
|
+
type='button'
|
|
314
|
+
onClick={() => model.choose(recent.id)}
|
|
315
|
+
>
|
|
316
|
+
{recent.kind} · {elapsed(recent)} <span aria-hidden='true'>↗</span>
|
|
317
|
+
</Button>
|
|
318
|
+
</div>
|
|
319
|
+
)}
|
|
320
|
+
<Relationships model={model} node={node} />
|
|
321
|
+
<details className='Detail_Identifiers'>
|
|
322
|
+
<summary className='Atlas_Summary Detail_Identifiers_Summary'>
|
|
323
|
+
Stable identifier
|
|
324
|
+
</summary>
|
|
325
|
+
<code className='Detail_Identifiers_Code'>{node.id}</code>
|
|
326
|
+
</details>
|
|
327
|
+
</>
|
|
328
|
+
)
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
let EdgeDetail = ({ model, edge }: { model: AtlasModel; edge: Edge }) => {
|
|
332
|
+
let from = model.nodes.find((node) => node.id == edge.from)
|
|
333
|
+
let to = model.nodes.find((node) => node.id == edge.to)
|
|
334
|
+
return (
|
|
335
|
+
<>
|
|
336
|
+
<div className='Detail_Identity'>
|
|
337
|
+
<Chip>Relationship</Chip>
|
|
338
|
+
<h2 className='Atlas_Reset Detail_Identity_Title'>{edge.kind}</h2>
|
|
339
|
+
<p className='Atlas_Reset Detail_Identity_Description'>
|
|
340
|
+
A declared connection in the composition.
|
|
341
|
+
</p>
|
|
342
|
+
</div>
|
|
343
|
+
<div className='Detail_Endpoints'>
|
|
344
|
+
<span className='Atlas_Eyebrow'>From</span>
|
|
345
|
+
<Button
|
|
346
|
+
className='Atlas_Button Detail_Endpoints_Button'
|
|
347
|
+
type='button'
|
|
348
|
+
onClick={() => model.select(edge.from)}
|
|
349
|
+
>
|
|
350
|
+
{from?.name ?? edge.from}
|
|
351
|
+
</Button>
|
|
352
|
+
<span className='Detail_Direction' aria-hidden='true'>
|
|
353
|
+
↓ {edge.kind}
|
|
354
|
+
</span>
|
|
355
|
+
<span className='Atlas_Eyebrow'>To</span>
|
|
356
|
+
<Button
|
|
357
|
+
className='Atlas_Button Detail_Endpoints_Button'
|
|
358
|
+
type='button'
|
|
359
|
+
onClick={() => model.select(edge.to)}
|
|
360
|
+
>
|
|
361
|
+
{to?.name ?? edge.to}
|
|
362
|
+
</Button>
|
|
363
|
+
</div>
|
|
364
|
+
<p className='Detail_Callout Atlas_Reset'>
|
|
365
|
+
A relationship is not measured data transfer. Pulses mark observed trace
|
|
366
|
+
records, never inferred traffic.
|
|
367
|
+
</p>
|
|
368
|
+
<details className='Detail_Identifiers'>
|
|
369
|
+
<summary className='Atlas_Summary Detail_Identifiers_Summary'>
|
|
370
|
+
Stable identifier
|
|
371
|
+
</summary>
|
|
372
|
+
<code className='Detail_Identifiers_Code'>{edge.id}</code>
|
|
373
|
+
</details>
|
|
374
|
+
</>
|
|
375
|
+
)
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
/** Selection stays in the page graph; expanding code metadata is native HTML. */
|
|
379
|
+
export let Detail = ({ model }: { model: AtlasModel }) => {
|
|
380
|
+
let node = model.selected
|
|
381
|
+
let edge = model.edges.find((edge) => edge.id == model.state.selected)
|
|
382
|
+
return (
|
|
383
|
+
<aside
|
|
384
|
+
className='Detail Atlas_Focusable'
|
|
385
|
+
id='atlas-detail'
|
|
386
|
+
tabIndex={-1}
|
|
387
|
+
aria-label='Selected anatomy detail'
|
|
388
|
+
>
|
|
389
|
+
<SectionHead
|
|
390
|
+
title='Anatomy detail'
|
|
391
|
+
actions={model.state.selected && (
|
|
392
|
+
<Button
|
|
393
|
+
className='Atlas_Button'
|
|
394
|
+
type='button'
|
|
395
|
+
mod='quiet'
|
|
396
|
+
aria-label='Clear selected part'
|
|
397
|
+
onClick={() => model.select('')}
|
|
398
|
+
>
|
|
399
|
+
×
|
|
400
|
+
</Button>
|
|
401
|
+
)}
|
|
402
|
+
/>
|
|
403
|
+
<div className='Detail_Body'>
|
|
404
|
+
{node
|
|
405
|
+
? <NodeDetail model={model} node={node} />
|
|
406
|
+
: edge
|
|
407
|
+
? <EdgeDetail model={model} edge={edge} />
|
|
408
|
+
: (
|
|
409
|
+
<div className='Detail_Empty'>
|
|
410
|
+
<svg
|
|
411
|
+
className='Detail_Empty_Icon'
|
|
412
|
+
viewBox='0 0 120 96'
|
|
413
|
+
aria-hidden='true'
|
|
414
|
+
>
|
|
415
|
+
<path d='M22 48h38m0 0V18h38m-38 30v30h38' />
|
|
416
|
+
<circle
|
|
417
|
+
className='Detail_Empty_Icon_Circle'
|
|
418
|
+
cx='22'
|
|
419
|
+
cy='48'
|
|
420
|
+
r='8'
|
|
421
|
+
/>
|
|
422
|
+
<circle
|
|
423
|
+
className='Detail_Empty_Icon_Circle'
|
|
424
|
+
cx='60'
|
|
425
|
+
cy='48'
|
|
426
|
+
r='10'
|
|
427
|
+
/>
|
|
428
|
+
<circle
|
|
429
|
+
className='Detail_Empty_Icon_Circle'
|
|
430
|
+
cx='98'
|
|
431
|
+
cy='18'
|
|
432
|
+
r='6'
|
|
433
|
+
/>
|
|
434
|
+
<circle
|
|
435
|
+
className='Detail_Empty_Icon_Circle'
|
|
436
|
+
cx='98'
|
|
437
|
+
cy='78'
|
|
438
|
+
r='6'
|
|
439
|
+
/>
|
|
440
|
+
</svg>
|
|
441
|
+
<h2 className='Atlas_Reset Detail_Empty_Title'>
|
|
442
|
+
{model.state.selected
|
|
443
|
+
? 'Part no longer reported'
|
|
444
|
+
: 'Every part has a place.'}
|
|
445
|
+
</h2>
|
|
446
|
+
<p className='Atlas_Reset Detail_Empty_Description'>
|
|
447
|
+
{model.state.selected
|
|
448
|
+
? 'This selection is outside the current anatomy snapshot.'
|
|
449
|
+
: 'Select a part or a relationship to see its contract, provenance and connections.'}
|
|
450
|
+
</p>
|
|
451
|
+
<div className='Detail_EmptyNote'>
|
|
452
|
+
<span className='Detail_EmptyNote_Text'>
|
|
453
|
+
Declared ≠ loaded ≠ bound
|
|
454
|
+
</span>
|
|
455
|
+
<p className='Atlas_Reset Detail_EmptyNote_Description'>
|
|
456
|
+
These are composition facts, not execution counts.
|
|
457
|
+
</p>
|
|
458
|
+
</div>
|
|
459
|
+
</div>
|
|
460
|
+
)}
|
|
461
|
+
</div>
|
|
462
|
+
</aside>
|
|
463
|
+
)
|
|
464
|
+
}
|
package/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright 2026 Jeff Peterson
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|