@eventcatalog/visualiser 5.0.0-beta.5 → 5.0.0-beta.7
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/dist/chunk-Q3OM5AL5.mjs +1 -0
- package/dist/chunk-Q3OM5AL5.mjs.map +1 -0
- package/dist/chunk-R3QHQ7LF.mjs +427 -0
- package/dist/chunk-R3QHQ7LF.mjs.map +1 -0
- package/dist/chunk-Y2IJ5XR6.mjs +15705 -0
- package/dist/chunk-Y2IJ5XR6.mjs.map +1 -0
- package/dist/chunk-Z3G354GF.mjs +464 -0
- package/dist/chunk-Z3G354GF.mjs.map +1 -0
- package/dist/fonts/Excalifont-Regular.woff2 +0 -0
- package/dist/fonts/OFL.txt +93 -0
- package/dist/fonts/README.md +2 -0
- package/dist/index.js +749 -719
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +104 -16003
- package/dist/index.mjs.map +1 -1
- package/dist/layout.mjs +10 -374
- package/dist/layout.mjs.map +1 -1
- package/dist/model.d.mts +18 -0
- package/dist/model.mjs +51 -0
- package/dist/model.mjs.map +1 -0
- package/dist/schema-DKA0EQ_H.d.mts +484 -0
- package/dist/studio-fonts.css +10 -0
- package/dist/studio.css +509 -0
- package/dist/studio.d.mts +1312 -0
- package/dist/studio.mjs +6719 -0
- package/dist/studio.mjs.map +1 -0
- package/dist/styles-core.css +580 -0
- package/dist/styles.css +580 -0
- package/package.json +26 -8
|
@@ -0,0 +1,484 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* The architecture model agents send us: EventCatalog's vocabulary (domains, systems, services, messages,
|
|
5
|
+
* channels, containers) and how they relate. Shared by the MCP server and the view, so no server-only imports.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
declare const RESOURCE_TYPES: readonly ["domain", "system", "service", "event", "command", "query", "channel", "container", "actor", "external-system", "agent", "view", "entity", "team"];
|
|
9
|
+
declare const ResourceType: z.ZodEnum<{
|
|
10
|
+
system: "system";
|
|
11
|
+
actor: "actor";
|
|
12
|
+
domain: "domain";
|
|
13
|
+
service: "service";
|
|
14
|
+
agent: "agent";
|
|
15
|
+
event: "event";
|
|
16
|
+
query: "query";
|
|
17
|
+
command: "command";
|
|
18
|
+
channel: "channel";
|
|
19
|
+
view: "view";
|
|
20
|
+
team: "team";
|
|
21
|
+
entity: "entity";
|
|
22
|
+
container: "container";
|
|
23
|
+
"external-system": "external-system";
|
|
24
|
+
}>;
|
|
25
|
+
type ResourceType = z.infer<typeof ResourceType>;
|
|
26
|
+
declare const MESSAGE_TYPES: Set<"system" | "actor" | "domain" | "service" | "agent" | "event" | "query" | "command" | "channel" | "view" | "team" | "entity" | "container" | "external-system">;
|
|
27
|
+
declare const SCHEMA_FORMATS: readonly ["json-schema", "avro", "protobuf", "json", "yaml", "xml", "graphql", "other"];
|
|
28
|
+
/** A field of an entity (as EventCatalog's entities have them), e.g. { name: "orderId", type: "string" } */
|
|
29
|
+
declare const EntityProperty: z.ZodObject<{
|
|
30
|
+
name: z.ZodString;
|
|
31
|
+
type: z.ZodString;
|
|
32
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
33
|
+
description: z.ZodOptional<z.ZodString>;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
type EntityProperty = z.infer<typeof EntityProperty>;
|
|
36
|
+
/** The kinds of data store (EventCatalog's container_type), e.g. a Redis cache is "cache" */
|
|
37
|
+
declare const CONTAINER_TYPES: readonly ["database", "cache", "objectStore", "searchIndex", "dataWarehouse", "dataLake", "externalSaaS", "other"];
|
|
38
|
+
type ContainerType = (typeof CONTAINER_TYPES)[number];
|
|
39
|
+
declare const Resource: z.ZodObject<{
|
|
40
|
+
id: z.ZodString;
|
|
41
|
+
type: z.ZodEnum<{
|
|
42
|
+
system: "system";
|
|
43
|
+
actor: "actor";
|
|
44
|
+
domain: "domain";
|
|
45
|
+
service: "service";
|
|
46
|
+
agent: "agent";
|
|
47
|
+
event: "event";
|
|
48
|
+
query: "query";
|
|
49
|
+
command: "command";
|
|
50
|
+
channel: "channel";
|
|
51
|
+
view: "view";
|
|
52
|
+
team: "team";
|
|
53
|
+
entity: "entity";
|
|
54
|
+
container: "container";
|
|
55
|
+
"external-system": "external-system";
|
|
56
|
+
}>;
|
|
57
|
+
name: z.ZodString;
|
|
58
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
59
|
+
parent: z.ZodOptional<z.ZodString>;
|
|
60
|
+
version: z.ZodOptional<z.ZodString>;
|
|
61
|
+
owners: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
62
|
+
technology: z.ZodOptional<z.ZodString>;
|
|
63
|
+
containerType: z.ZodOptional<z.ZodEnum<{
|
|
64
|
+
other: "other";
|
|
65
|
+
database: "database";
|
|
66
|
+
cache: "cache";
|
|
67
|
+
searchIndex: "searchIndex";
|
|
68
|
+
objectStore: "objectStore";
|
|
69
|
+
dataWarehouse: "dataWarehouse";
|
|
70
|
+
dataLake: "dataLake";
|
|
71
|
+
externalSaaS: "externalSaaS";
|
|
72
|
+
}>>;
|
|
73
|
+
evidence: z.ZodOptional<z.ZodString>;
|
|
74
|
+
properties: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
75
|
+
name: z.ZodString;
|
|
76
|
+
type: z.ZodString;
|
|
77
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
78
|
+
description: z.ZodOptional<z.ZodString>;
|
|
79
|
+
}, z.core.$strip>>>;
|
|
80
|
+
card: z.ZodOptional<z.ZodBoolean>;
|
|
81
|
+
url: z.ZodOptional<z.ZodURL>;
|
|
82
|
+
schema: z.ZodOptional<z.ZodObject<{
|
|
83
|
+
format: z.ZodEnum<{
|
|
84
|
+
other: "other";
|
|
85
|
+
"json-schema": "json-schema";
|
|
86
|
+
avro: "avro";
|
|
87
|
+
protobuf: "protobuf";
|
|
88
|
+
json: "json";
|
|
89
|
+
yaml: "yaml";
|
|
90
|
+
xml: "xml";
|
|
91
|
+
graphql: "graphql";
|
|
92
|
+
}>;
|
|
93
|
+
content: z.ZodString;
|
|
94
|
+
path: z.ZodOptional<z.ZodString>;
|
|
95
|
+
}, z.core.$strip>>;
|
|
96
|
+
}, z.core.$strip>;
|
|
97
|
+
type Resource = z.infer<typeof Resource>;
|
|
98
|
+
declare const RELATION_KINDS: readonly ["sends", "receives", "routes-through", "reads", "writes", "connects"];
|
|
99
|
+
declare const RelationKind: z.ZodEnum<{
|
|
100
|
+
sends: "sends";
|
|
101
|
+
receives: "receives";
|
|
102
|
+
"routes-through": "routes-through";
|
|
103
|
+
reads: "reads";
|
|
104
|
+
writes: "writes";
|
|
105
|
+
connects: "connects";
|
|
106
|
+
}>;
|
|
107
|
+
type RelationKind = z.infer<typeof RelationKind>;
|
|
108
|
+
declare const Relation: z.ZodObject<{
|
|
109
|
+
from: z.ZodString;
|
|
110
|
+
to: z.ZodString;
|
|
111
|
+
kind: z.ZodEnum<{
|
|
112
|
+
sends: "sends";
|
|
113
|
+
receives: "receives";
|
|
114
|
+
"routes-through": "routes-through";
|
|
115
|
+
reads: "reads";
|
|
116
|
+
writes: "writes";
|
|
117
|
+
connects: "connects";
|
|
118
|
+
}>;
|
|
119
|
+
label: z.ZodOptional<z.ZodString>;
|
|
120
|
+
fromField: z.ZodOptional<z.ZodString>;
|
|
121
|
+
toField: z.ZodOptional<z.ZodString>;
|
|
122
|
+
inferred: z.ZodOptional<z.ZodBoolean>;
|
|
123
|
+
evidence: z.ZodOptional<z.ZodString>;
|
|
124
|
+
}, z.core.$strip>;
|
|
125
|
+
type Relation = z.infer<typeof Relation>;
|
|
126
|
+
declare const NOTE_COLOR_NAMES: readonly ["yellow", "blue", "green", "pink", "purple", "gray"];
|
|
127
|
+
declare const LEVELS: readonly ["overview", "services", "messages"];
|
|
128
|
+
type Level = (typeof LEVELS)[number];
|
|
129
|
+
declare const Note: z.ZodObject<{
|
|
130
|
+
text: z.ZodString;
|
|
131
|
+
resource: z.ZodOptional<z.ZodString>;
|
|
132
|
+
author: z.ZodOptional<z.ZodString>;
|
|
133
|
+
x: z.ZodOptional<z.ZodNumber>;
|
|
134
|
+
y: z.ZodOptional<z.ZodNumber>;
|
|
135
|
+
color: z.ZodOptional<z.ZodEnum<{
|
|
136
|
+
blue: "blue";
|
|
137
|
+
gray: "gray";
|
|
138
|
+
green: "green";
|
|
139
|
+
pink: "pink";
|
|
140
|
+
purple: "purple";
|
|
141
|
+
yellow: "yellow";
|
|
142
|
+
}>>;
|
|
143
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
144
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
145
|
+
text: "text";
|
|
146
|
+
sticky: "sticky";
|
|
147
|
+
}>>;
|
|
148
|
+
fontSize: z.ZodOptional<z.ZodNumber>;
|
|
149
|
+
angle: z.ZodOptional<z.ZodNumber>;
|
|
150
|
+
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
151
|
+
level: z.ZodOptional<z.ZodEnum<{
|
|
152
|
+
services: "services";
|
|
153
|
+
messages: "messages";
|
|
154
|
+
overview: "overview";
|
|
155
|
+
}>>;
|
|
156
|
+
}, z.core.$strip>;
|
|
157
|
+
type Note = z.infer<typeof Note>;
|
|
158
|
+
declare const Layout: z.ZodObject<{
|
|
159
|
+
overview: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
160
|
+
x: z.ZodNumber;
|
|
161
|
+
y: z.ZodNumber;
|
|
162
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
163
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
164
|
+
}, z.core.$strip>>>;
|
|
165
|
+
services: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
166
|
+
x: z.ZodNumber;
|
|
167
|
+
y: z.ZodNumber;
|
|
168
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
169
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
170
|
+
}, z.core.$strip>>>;
|
|
171
|
+
messages: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
172
|
+
x: z.ZodNumber;
|
|
173
|
+
y: z.ZodNumber;
|
|
174
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
175
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
176
|
+
}, z.core.$strip>>>;
|
|
177
|
+
}, z.core.$strip>;
|
|
178
|
+
type Layout = z.infer<typeof Layout>;
|
|
179
|
+
/** Who wrote a comment: a person (their name and colour on the canvas) or an agent */
|
|
180
|
+
declare const CommentAuthor: z.ZodObject<{
|
|
181
|
+
name: z.ZodString;
|
|
182
|
+
color: z.ZodDefault<z.ZodString>;
|
|
183
|
+
agent: z.ZodOptional<z.ZodBoolean>;
|
|
184
|
+
}, z.core.$strip>;
|
|
185
|
+
/**
|
|
186
|
+
* A comment thread on the canvas, as EventCatalog Studio's: pinned at a place, or on a resource (nodeId, the resource
|
|
187
|
+
* id, with an offset from its top left, so it moves with it), with its messages (the first one starts it, the rest
|
|
188
|
+
* reply), and resolved once it's dealt with
|
|
189
|
+
*/
|
|
190
|
+
declare const CommentThread: z.ZodObject<{
|
|
191
|
+
id: z.ZodString;
|
|
192
|
+
position: z.ZodObject<{
|
|
193
|
+
x: z.ZodNumber;
|
|
194
|
+
y: z.ZodNumber;
|
|
195
|
+
}, z.core.$strip>;
|
|
196
|
+
nodeId: z.ZodOptional<z.ZodString>;
|
|
197
|
+
offset: z.ZodOptional<z.ZodObject<{
|
|
198
|
+
x: z.ZodNumber;
|
|
199
|
+
y: z.ZodNumber;
|
|
200
|
+
}, z.core.$strip>>;
|
|
201
|
+
level: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
|
|
202
|
+
author: z.ZodObject<{
|
|
203
|
+
name: z.ZodString;
|
|
204
|
+
color: z.ZodDefault<z.ZodString>;
|
|
205
|
+
agent: z.ZodOptional<z.ZodBoolean>;
|
|
206
|
+
}, z.core.$strip>;
|
|
207
|
+
createdAt: z.ZodNumber;
|
|
208
|
+
resolved: z.ZodDefault<z.ZodBoolean>;
|
|
209
|
+
messages: z.ZodArray<z.ZodObject<{
|
|
210
|
+
id: z.ZodString;
|
|
211
|
+
text: z.ZodString;
|
|
212
|
+
author: z.ZodObject<{
|
|
213
|
+
name: z.ZodString;
|
|
214
|
+
color: z.ZodDefault<z.ZodString>;
|
|
215
|
+
agent: z.ZodOptional<z.ZodBoolean>;
|
|
216
|
+
}, z.core.$strip>;
|
|
217
|
+
createdAt: z.ZodNumber;
|
|
218
|
+
}, z.core.$strip>>;
|
|
219
|
+
}, z.core.$strip>;
|
|
220
|
+
type CommentThread = z.infer<typeof CommentThread>;
|
|
221
|
+
/** How much a hotspot matters: critical (red), warning (amber) or info (blue) */
|
|
222
|
+
declare const HOTSPOT_SEVERITIES: readonly ["critical", "warning", "info"];
|
|
223
|
+
type HotspotSeverity = (typeof HOTSPOT_SEVERITIES)[number];
|
|
224
|
+
/**
|
|
225
|
+
* A hotspot: something on the diagram people should know about, as an architect would flag it: a risk, a single
|
|
226
|
+
* point of failure, a known problem, or the key part to understand. On a resource (shown on it), or at a place
|
|
227
|
+
*/
|
|
228
|
+
declare const Hotspot: z.ZodObject<{
|
|
229
|
+
id: z.ZodDefault<z.ZodString>;
|
|
230
|
+
severity: z.ZodDefault<z.ZodEnum<{
|
|
231
|
+
critical: "critical";
|
|
232
|
+
warning: "warning";
|
|
233
|
+
info: "info";
|
|
234
|
+
}>>;
|
|
235
|
+
title: z.ZodString;
|
|
236
|
+
description: z.ZodOptional<z.ZodString>;
|
|
237
|
+
resource: z.ZodOptional<z.ZodString>;
|
|
238
|
+
position: z.ZodOptional<z.ZodObject<{
|
|
239
|
+
x: z.ZodNumber;
|
|
240
|
+
y: z.ZodNumber;
|
|
241
|
+
}, z.core.$strip>>;
|
|
242
|
+
level: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
|
|
243
|
+
author: z.ZodOptional<z.ZodObject<{
|
|
244
|
+
name: z.ZodString;
|
|
245
|
+
color: z.ZodDefault<z.ZodString>;
|
|
246
|
+
agent: z.ZodOptional<z.ZodBoolean>;
|
|
247
|
+
}, z.core.$strip>>;
|
|
248
|
+
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
249
|
+
}, z.core.$strip>;
|
|
250
|
+
type Hotspot = z.infer<typeof Hotspot>;
|
|
251
|
+
declare const Model: z.ZodObject<{
|
|
252
|
+
title: z.ZodString;
|
|
253
|
+
resources: z.ZodArray<z.ZodObject<{
|
|
254
|
+
id: z.ZodString;
|
|
255
|
+
type: z.ZodEnum<{
|
|
256
|
+
system: "system";
|
|
257
|
+
actor: "actor";
|
|
258
|
+
domain: "domain";
|
|
259
|
+
service: "service";
|
|
260
|
+
agent: "agent";
|
|
261
|
+
event: "event";
|
|
262
|
+
query: "query";
|
|
263
|
+
command: "command";
|
|
264
|
+
channel: "channel";
|
|
265
|
+
view: "view";
|
|
266
|
+
team: "team";
|
|
267
|
+
entity: "entity";
|
|
268
|
+
container: "container";
|
|
269
|
+
"external-system": "external-system";
|
|
270
|
+
}>;
|
|
271
|
+
name: z.ZodString;
|
|
272
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
273
|
+
parent: z.ZodOptional<z.ZodString>;
|
|
274
|
+
version: z.ZodOptional<z.ZodString>;
|
|
275
|
+
owners: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
276
|
+
technology: z.ZodOptional<z.ZodString>;
|
|
277
|
+
containerType: z.ZodOptional<z.ZodEnum<{
|
|
278
|
+
other: "other";
|
|
279
|
+
database: "database";
|
|
280
|
+
cache: "cache";
|
|
281
|
+
searchIndex: "searchIndex";
|
|
282
|
+
objectStore: "objectStore";
|
|
283
|
+
dataWarehouse: "dataWarehouse";
|
|
284
|
+
dataLake: "dataLake";
|
|
285
|
+
externalSaaS: "externalSaaS";
|
|
286
|
+
}>>;
|
|
287
|
+
evidence: z.ZodOptional<z.ZodString>;
|
|
288
|
+
properties: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
289
|
+
name: z.ZodString;
|
|
290
|
+
type: z.ZodString;
|
|
291
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
292
|
+
description: z.ZodOptional<z.ZodString>;
|
|
293
|
+
}, z.core.$strip>>>;
|
|
294
|
+
card: z.ZodOptional<z.ZodBoolean>;
|
|
295
|
+
url: z.ZodOptional<z.ZodURL>;
|
|
296
|
+
schema: z.ZodOptional<z.ZodObject<{
|
|
297
|
+
format: z.ZodEnum<{
|
|
298
|
+
other: "other";
|
|
299
|
+
"json-schema": "json-schema";
|
|
300
|
+
avro: "avro";
|
|
301
|
+
protobuf: "protobuf";
|
|
302
|
+
json: "json";
|
|
303
|
+
yaml: "yaml";
|
|
304
|
+
xml: "xml";
|
|
305
|
+
graphql: "graphql";
|
|
306
|
+
}>;
|
|
307
|
+
content: z.ZodString;
|
|
308
|
+
path: z.ZodOptional<z.ZodString>;
|
|
309
|
+
}, z.core.$strip>>;
|
|
310
|
+
}, z.core.$strip>>;
|
|
311
|
+
relations: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
312
|
+
from: z.ZodString;
|
|
313
|
+
to: z.ZodString;
|
|
314
|
+
kind: z.ZodEnum<{
|
|
315
|
+
sends: "sends";
|
|
316
|
+
receives: "receives";
|
|
317
|
+
"routes-through": "routes-through";
|
|
318
|
+
reads: "reads";
|
|
319
|
+
writes: "writes";
|
|
320
|
+
connects: "connects";
|
|
321
|
+
}>;
|
|
322
|
+
label: z.ZodOptional<z.ZodString>;
|
|
323
|
+
fromField: z.ZodOptional<z.ZodString>;
|
|
324
|
+
toField: z.ZodOptional<z.ZodString>;
|
|
325
|
+
inferred: z.ZodOptional<z.ZodBoolean>;
|
|
326
|
+
evidence: z.ZodOptional<z.ZodString>;
|
|
327
|
+
}, z.core.$strip>>>;
|
|
328
|
+
notes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
329
|
+
text: z.ZodString;
|
|
330
|
+
resource: z.ZodOptional<z.ZodString>;
|
|
331
|
+
author: z.ZodOptional<z.ZodString>;
|
|
332
|
+
x: z.ZodOptional<z.ZodNumber>;
|
|
333
|
+
y: z.ZodOptional<z.ZodNumber>;
|
|
334
|
+
color: z.ZodOptional<z.ZodEnum<{
|
|
335
|
+
blue: "blue";
|
|
336
|
+
gray: "gray";
|
|
337
|
+
green: "green";
|
|
338
|
+
pink: "pink";
|
|
339
|
+
purple: "purple";
|
|
340
|
+
yellow: "yellow";
|
|
341
|
+
}>>;
|
|
342
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
343
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
344
|
+
text: "text";
|
|
345
|
+
sticky: "sticky";
|
|
346
|
+
}>>;
|
|
347
|
+
fontSize: z.ZodOptional<z.ZodNumber>;
|
|
348
|
+
angle: z.ZodOptional<z.ZodNumber>;
|
|
349
|
+
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
350
|
+
level: z.ZodOptional<z.ZodEnum<{
|
|
351
|
+
services: "services";
|
|
352
|
+
messages: "messages";
|
|
353
|
+
overview: "overview";
|
|
354
|
+
}>>;
|
|
355
|
+
}, z.core.$strip>>>;
|
|
356
|
+
comments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
357
|
+
id: z.ZodString;
|
|
358
|
+
position: z.ZodObject<{
|
|
359
|
+
x: z.ZodNumber;
|
|
360
|
+
y: z.ZodNumber;
|
|
361
|
+
}, z.core.$strip>;
|
|
362
|
+
nodeId: z.ZodOptional<z.ZodString>;
|
|
363
|
+
offset: z.ZodOptional<z.ZodObject<{
|
|
364
|
+
x: z.ZodNumber;
|
|
365
|
+
y: z.ZodNumber;
|
|
366
|
+
}, z.core.$strip>>;
|
|
367
|
+
level: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
|
|
368
|
+
author: z.ZodObject<{
|
|
369
|
+
name: z.ZodString;
|
|
370
|
+
color: z.ZodDefault<z.ZodString>;
|
|
371
|
+
agent: z.ZodOptional<z.ZodBoolean>;
|
|
372
|
+
}, z.core.$strip>;
|
|
373
|
+
createdAt: z.ZodNumber;
|
|
374
|
+
resolved: z.ZodDefault<z.ZodBoolean>;
|
|
375
|
+
messages: z.ZodArray<z.ZodObject<{
|
|
376
|
+
id: z.ZodString;
|
|
377
|
+
text: z.ZodString;
|
|
378
|
+
author: z.ZodObject<{
|
|
379
|
+
name: z.ZodString;
|
|
380
|
+
color: z.ZodDefault<z.ZodString>;
|
|
381
|
+
agent: z.ZodOptional<z.ZodBoolean>;
|
|
382
|
+
}, z.core.$strip>;
|
|
383
|
+
createdAt: z.ZodNumber;
|
|
384
|
+
}, z.core.$strip>>;
|
|
385
|
+
}, z.core.$strip>>>;
|
|
386
|
+
hotspots: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
387
|
+
id: z.ZodDefault<z.ZodString>;
|
|
388
|
+
severity: z.ZodDefault<z.ZodEnum<{
|
|
389
|
+
critical: "critical";
|
|
390
|
+
warning: "warning";
|
|
391
|
+
info: "info";
|
|
392
|
+
}>>;
|
|
393
|
+
title: z.ZodString;
|
|
394
|
+
description: z.ZodOptional<z.ZodString>;
|
|
395
|
+
resource: z.ZodOptional<z.ZodString>;
|
|
396
|
+
position: z.ZodOptional<z.ZodObject<{
|
|
397
|
+
x: z.ZodNumber;
|
|
398
|
+
y: z.ZodNumber;
|
|
399
|
+
}, z.core.$strip>>;
|
|
400
|
+
level: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
|
|
401
|
+
author: z.ZodOptional<z.ZodObject<{
|
|
402
|
+
name: z.ZodString;
|
|
403
|
+
color: z.ZodDefault<z.ZodString>;
|
|
404
|
+
agent: z.ZodOptional<z.ZodBoolean>;
|
|
405
|
+
}, z.core.$strip>>;
|
|
406
|
+
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
407
|
+
}, z.core.$strip>>>;
|
|
408
|
+
layout: z.ZodOptional<z.ZodObject<{
|
|
409
|
+
overview: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
410
|
+
x: z.ZodNumber;
|
|
411
|
+
y: z.ZodNumber;
|
|
412
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
413
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
414
|
+
}, z.core.$strip>>>;
|
|
415
|
+
services: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
416
|
+
x: z.ZodNumber;
|
|
417
|
+
y: z.ZodNumber;
|
|
418
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
419
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
420
|
+
}, z.core.$strip>>>;
|
|
421
|
+
messages: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
422
|
+
x: z.ZodNumber;
|
|
423
|
+
y: z.ZodNumber;
|
|
424
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
425
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
426
|
+
}, z.core.$strip>>>;
|
|
427
|
+
}, z.core.$strip>>;
|
|
428
|
+
}, z.core.$strip>;
|
|
429
|
+
type Model = z.infer<typeof Model>;
|
|
430
|
+
/**
|
|
431
|
+
* A scene of a tour: the agent showing the user something on the diagram, as a person at the canvas would. It
|
|
432
|
+
* switches level, zooms to resources, highlights them (fading the rest), writes notes next to them and pins code.
|
|
433
|
+
*/
|
|
434
|
+
declare const Scene: z.ZodObject<{
|
|
435
|
+
caption: z.ZodOptional<z.ZodString>;
|
|
436
|
+
level: z.ZodOptional<z.ZodEnum<{
|
|
437
|
+
services: "services";
|
|
438
|
+
messages: "messages";
|
|
439
|
+
overview: "overview";
|
|
440
|
+
}>>;
|
|
441
|
+
focus: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
442
|
+
highlight: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
443
|
+
notes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
444
|
+
resource: z.ZodString;
|
|
445
|
+
text: z.ZodString;
|
|
446
|
+
}, z.core.$strip>>>;
|
|
447
|
+
code: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
448
|
+
resource: z.ZodString;
|
|
449
|
+
title: z.ZodOptional<z.ZodString>;
|
|
450
|
+
language: z.ZodOptional<z.ZodString>;
|
|
451
|
+
code: z.ZodString;
|
|
452
|
+
}, z.core.$strip>>>;
|
|
453
|
+
}, z.core.$strip>;
|
|
454
|
+
type Scene = z.infer<typeof Scene>;
|
|
455
|
+
declare const Tour: z.ZodArray<z.ZodObject<{
|
|
456
|
+
caption: z.ZodOptional<z.ZodString>;
|
|
457
|
+
level: z.ZodOptional<z.ZodEnum<{
|
|
458
|
+
services: "services";
|
|
459
|
+
messages: "messages";
|
|
460
|
+
overview: "overview";
|
|
461
|
+
}>>;
|
|
462
|
+
focus: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
463
|
+
highlight: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
464
|
+
notes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
465
|
+
resource: z.ZodString;
|
|
466
|
+
text: z.ZodString;
|
|
467
|
+
}, z.core.$strip>>>;
|
|
468
|
+
code: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
469
|
+
resource: z.ZodString;
|
|
470
|
+
title: z.ZodOptional<z.ZodString>;
|
|
471
|
+
language: z.ZodOptional<z.ZodString>;
|
|
472
|
+
code: z.ZodString;
|
|
473
|
+
}, z.core.$strip>>>;
|
|
474
|
+
}, z.core.$strip>>;
|
|
475
|
+
/** What the view shows: the model, where to start, and a tour to play */
|
|
476
|
+
type ArchitecturePayload = {
|
|
477
|
+
model: Model;
|
|
478
|
+
focus?: string;
|
|
479
|
+
level?: Level;
|
|
480
|
+
viewUrl?: string;
|
|
481
|
+
tour?: Scene[];
|
|
482
|
+
};
|
|
483
|
+
|
|
484
|
+
export { type ArchitecturePayload as A, CONTAINER_TYPES as C, EntityProperty as E, HOTSPOT_SEVERITIES as H, type Level as L, Model as M, NOTE_COLOR_NAMES as N, Resource as R, Scene as S, Tour as T, RESOURCE_TYPES as a, ResourceType as b, MESSAGE_TYPES as c, SCHEMA_FORMATS as d, type ContainerType as e, RELATION_KINDS as f, RelationKind as g, Relation as h, LEVELS as i, Note as j, Layout as k, CommentAuthor as l, CommentThread as m, type HotspotSeverity as n, Hotspot as o };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Excalifont, Excalidraw's hand-drawn font (OFL-1.1, see fonts/README.md), for the welcome on an empty canvas and its
|
|
3
|
+
* hints: its Latin subset. Apps that bundle the font themselves (Studio on the web, one self-contained page) leave
|
|
4
|
+
* this out.
|
|
5
|
+
*/
|
|
6
|
+
@font-face {
|
|
7
|
+
font-family: 'Excalifont';
|
|
8
|
+
src: url('./fonts/Excalifont-Regular.woff2') format('woff2');
|
|
9
|
+
font-display: swap;
|
|
10
|
+
}
|