structured-context-map-views 0.2.0 → 0.3.0

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.
@@ -0,0 +1,601 @@
1
+ <title>Map view</title>
2
+ <style>
3
+ /*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
4
+ @layer properties;
5
+ @layer theme {
6
+ :root, :host {
7
+ --mv-color-white: #fff;
8
+ --mv-spacing: 0.25rem;
9
+ --mv-text-xs: 0.75rem;
10
+ --mv-text-xs--line-height: calc(1 / 0.75);
11
+ --mv-text-sm: 0.875rem;
12
+ --mv-text-sm--line-height: calc(1.25 / 0.875);
13
+ --mv-font-weight-semibold: 600;
14
+ --mv-tracking-wide: 0.025em;
15
+ --mv-leading-tight: 1.25;
16
+ --mv-leading-snug: 1.375;
17
+ --mv-radius-md: 0.375rem;
18
+ --mv-radius-lg: 0.5rem;
19
+ --mv-color-surface: #f8f8f7;
20
+ --mv-color-card: #ffffff;
21
+ --mv-color-ink: #1f2328;
22
+ --mv-color-muted: #59636e;
23
+ --mv-color-edge: #d1d9e0;
24
+ --mv-color-accent: #0969da;
25
+ --mv-color-error: #cf222e;
26
+ --mv-color-warning: #9a6700;
27
+ --mv-color-info: #0969da;
28
+ }
29
+ }
30
+ .mv\:pointer-events-none {
31
+ pointer-events: none;
32
+ }
33
+ .mv\:absolute {
34
+ position: absolute;
35
+ }
36
+ .mv\:relative {
37
+ position: relative;
38
+ }
39
+ .mv\:inset-0 {
40
+ inset: 0px;
41
+ }
42
+ .mv\:inset-8 {
43
+ inset: calc(var(--mv-spacing) * 8);
44
+ }
45
+ .mv\:-top-1\.5 {
46
+ top: calc(var(--mv-spacing) * -1.5);
47
+ }
48
+ .mv\:-right-1\.5 {
49
+ right: calc(var(--mv-spacing) * -1.5);
50
+ }
51
+ .mv\:float-left {
52
+ float: left;
53
+ }
54
+ .mv\:m-0 {
55
+ margin: 0px;
56
+ }
57
+ .mv\:mt-1 {
58
+ margin-top: var(--mv-spacing);
59
+ }
60
+ .mv\:mr-1\.5 {
61
+ margin-right: calc(var(--mv-spacing) * 1.5);
62
+ }
63
+ .mv\:box-border {
64
+ box-sizing: border-box;
65
+ }
66
+ .mv\:block {
67
+ display: block;
68
+ }
69
+ .mv\:flex {
70
+ display: flex;
71
+ }
72
+ .mv\:grid {
73
+ display: grid;
74
+ }
75
+ .mv\:size-6 {
76
+ width: calc(var(--mv-spacing) * 6);
77
+ height: calc(var(--mv-spacing) * 6);
78
+ }
79
+ .mv\:h-4 {
80
+ height: calc(var(--mv-spacing) * 4);
81
+ }
82
+ .mv\:h-full {
83
+ height: 100%;
84
+ }
85
+ .mv\:min-h-0 {
86
+ min-height: 0px;
87
+ }
88
+ .mv\:min-h-\[28rem\] {
89
+ min-height: 28rem;
90
+ }
91
+ .mv\:w-44 {
92
+ width: calc(var(--mv-spacing) * 44);
93
+ }
94
+ .mv\:w-full {
95
+ width: 100%;
96
+ }
97
+ .mv\:w-max {
98
+ width: max-content;
99
+ }
100
+ .mv\:max-w-44 {
101
+ max-width: calc(var(--mv-spacing) * 44);
102
+ }
103
+ .mv\:max-w-\[36rem\] {
104
+ max-width: 36rem;
105
+ }
106
+ .mv\:min-w-4 {
107
+ min-width: calc(var(--mv-spacing) * 4);
108
+ }
109
+ .mv\:min-w-\[36rem\] {
110
+ min-width: 36rem;
111
+ }
112
+ .mv\:min-w-full {
113
+ min-width: 100%;
114
+ }
115
+ .mv\:flex-1 {
116
+ flex: 1;
117
+ }
118
+ .mv\:shrink-0 {
119
+ flex-shrink: 0;
120
+ }
121
+ .mv\:-translate-x-1\/2 {
122
+ --tw-translate-x: calc(calc(1 / 2 * 100%) * -1);
123
+ translate: var(--tw-translate-x) var(--tw-translate-y);
124
+ }
125
+ .mv\:-translate-x-3 {
126
+ --tw-translate-x: calc(var(--mv-spacing) * -3);
127
+ translate: var(--tw-translate-x) var(--tw-translate-y);
128
+ }
129
+ .mv\:translate-y-1\/2 {
130
+ --tw-translate-y: calc(1 / 2 * 100%);
131
+ translate: var(--tw-translate-x) var(--tw-translate-y);
132
+ }
133
+ .mv\:translate-y-3 {
134
+ --tw-translate-y: calc(var(--mv-spacing) * 3);
135
+ translate: var(--tw-translate-x) var(--tw-translate-y);
136
+ }
137
+ .mv\:rotate-180 {
138
+ rotate: 180deg;
139
+ }
140
+ .mv\:cursor-pointer {
141
+ cursor: pointer;
142
+ }
143
+ .mv\:list-none {
144
+ list-style-type: none;
145
+ }
146
+ .mv\:grid-cols-\[auto_1fr\] {
147
+ grid-template-columns: auto 1fr;
148
+ }
149
+ .mv\:grid-rows-\[1fr_auto\] {
150
+ grid-template-rows: 1fr auto;
151
+ }
152
+ .mv\:flex-col {
153
+ flex-direction: column;
154
+ }
155
+ .mv\:flex-col-reverse {
156
+ flex-direction: column-reverse;
157
+ }
158
+ .mv\:flex-row {
159
+ flex-direction: row;
160
+ }
161
+ .mv\:flex-wrap {
162
+ flex-wrap: wrap;
163
+ }
164
+ .mv\:items-center {
165
+ align-items: center;
166
+ }
167
+ .mv\:items-start {
168
+ align-items: flex-start;
169
+ }
170
+ .mv\:items-stretch {
171
+ align-items: stretch;
172
+ }
173
+ .mv\:justify-between {
174
+ justify-content: space-between;
175
+ }
176
+ .mv\:justify-center {
177
+ justify-content: center;
178
+ }
179
+ .mv\:gap-0\.5 {
180
+ gap: calc(var(--mv-spacing) * 0.5);
181
+ }
182
+ .mv\:gap-1 {
183
+ gap: var(--mv-spacing);
184
+ }
185
+ .mv\:gap-1\.5 {
186
+ gap: calc(var(--mv-spacing) * 1.5);
187
+ }
188
+ .mv\:gap-2 {
189
+ gap: calc(var(--mv-spacing) * 2);
190
+ }
191
+ .mv\:gap-3 {
192
+ gap: calc(var(--mv-spacing) * 3);
193
+ }
194
+ .mv\:gap-4 {
195
+ gap: calc(var(--mv-spacing) * 4);
196
+ }
197
+ .mv\:gap-x-4 {
198
+ column-gap: calc(var(--mv-spacing) * 4);
199
+ }
200
+ .mv\:gap-y-2 {
201
+ row-gap: calc(var(--mv-spacing) * 2);
202
+ }
203
+ .mv\:truncate {
204
+ overflow: hidden;
205
+ text-overflow: ellipsis;
206
+ white-space: nowrap;
207
+ }
208
+ .mv\:overflow-auto {
209
+ overflow: auto;
210
+ }
211
+ .mv\:overflow-visible {
212
+ overflow: visible;
213
+ }
214
+ .mv\:rounded {
215
+ border-radius: 0.25rem;
216
+ }
217
+ .mv\:rounded-full {
218
+ border-radius: calc(infinity * 1px);
219
+ }
220
+ .mv\:rounded-lg {
221
+ border-radius: var(--mv-radius-lg);
222
+ }
223
+ .mv\:rounded-md {
224
+ border-radius: var(--mv-radius-md);
225
+ }
226
+ .mv\:border {
227
+ border-style: var(--tw-border-style);
228
+ border-width: 1px;
229
+ }
230
+ .mv\:border-0 {
231
+ border-style: var(--tw-border-style);
232
+ border-width: 0px;
233
+ }
234
+ .mv\:border-2 {
235
+ border-style: var(--tw-border-style);
236
+ border-width: 2px;
237
+ }
238
+ .mv\:border-b {
239
+ border-bottom-style: var(--tw-border-style);
240
+ border-bottom-width: 1px;
241
+ }
242
+ .mv\:border-l {
243
+ border-left-style: var(--tw-border-style);
244
+ border-left-width: 1px;
245
+ }
246
+ .mv\:border-dashed {
247
+ --tw-border-style: dashed;
248
+ border-style: dashed;
249
+ }
250
+ .mv\:border-edge {
251
+ border-color: var(--mv-color-edge);
252
+ }
253
+ .mv\:border-muted\/60 {
254
+ border-color: var(--mv-color-muted);
255
+ @supports (color: color-mix(in lab, red, red)) {
256
+ border-color: color-mix(in oklab, var(--mv-color-muted) 60%, transparent);
257
+ }
258
+ }
259
+ .mv\:bg-card {
260
+ background-color: var(--mv-color-card);
261
+ }
262
+ .mv\:bg-error {
263
+ background-color: var(--mv-color-error);
264
+ }
265
+ .mv\:bg-info {
266
+ background-color: var(--mv-color-info);
267
+ }
268
+ .mv\:bg-surface {
269
+ background-color: var(--mv-color-surface);
270
+ }
271
+ .mv\:bg-surface\/80 {
272
+ background-color: var(--mv-color-surface);
273
+ @supports (color: color-mix(in lab, red, red)) {
274
+ background-color: color-mix(in oklab, var(--mv-color-surface) 80%, transparent);
275
+ }
276
+ }
277
+ .mv\:bg-warning {
278
+ background-color: var(--mv-color-warning);
279
+ }
280
+ .mv\:fill-none {
281
+ fill: none;
282
+ }
283
+ .mv\:stroke-accent\/60 {
284
+ stroke: var(--mv-color-accent);
285
+ @supports (color: color-mix(in lab, red, red)) {
286
+ stroke: color-mix(in oklab, var(--mv-color-accent) 60%, transparent);
287
+ }
288
+ }
289
+ .mv\:stroke-muted\/50 {
290
+ stroke: var(--mv-color-muted);
291
+ @supports (color: color-mix(in lab, red, red)) {
292
+ stroke: color-mix(in oklab, var(--mv-color-muted) 50%, transparent);
293
+ }
294
+ }
295
+ .mv\:p-0 {
296
+ padding: 0px;
297
+ }
298
+ .mv\:p-2 {
299
+ padding: calc(var(--mv-spacing) * 2);
300
+ }
301
+ .mv\:p-4 {
302
+ padding: calc(var(--mv-spacing) * 4);
303
+ }
304
+ .mv\:px-0\.5 {
305
+ padding-inline: calc(var(--mv-spacing) * 0.5);
306
+ }
307
+ .mv\:px-1 {
308
+ padding-inline: var(--mv-spacing);
309
+ }
310
+ .mv\:px-2\.5 {
311
+ padding-inline: calc(var(--mv-spacing) * 2.5);
312
+ }
313
+ .mv\:px-8 {
314
+ padding-inline: calc(var(--mv-spacing) * 8);
315
+ }
316
+ .mv\:py-1\.5 {
317
+ padding-block: calc(var(--mv-spacing) * 1.5);
318
+ }
319
+ .mv\:py-8 {
320
+ padding-block: calc(var(--mv-spacing) * 8);
321
+ }
322
+ .mv\:pt-10 {
323
+ padding-top: calc(var(--mv-spacing) * 10);
324
+ }
325
+ .mv\:pl-14 {
326
+ padding-left: calc(var(--mv-spacing) * 14);
327
+ }
328
+ .mv\:text-left {
329
+ text-align: left;
330
+ }
331
+ .mv\:text-sm {
332
+ font-size: var(--mv-text-sm);
333
+ line-height: var(--tw-leading, var(--mv-text-sm--line-height));
334
+ }
335
+ .mv\:text-xs {
336
+ font-size: var(--mv-text-xs);
337
+ line-height: var(--tw-leading, var(--mv-text-xs--line-height));
338
+ }
339
+ .mv\:text-\[0\.6rem\] {
340
+ font-size: 0.6rem;
341
+ }
342
+ .mv\:text-\[0\.65rem\] {
343
+ font-size: 0.65rem;
344
+ }
345
+ .mv\:leading-snug {
346
+ --tw-leading: var(--mv-leading-snug);
347
+ line-height: var(--mv-leading-snug);
348
+ }
349
+ .mv\:leading-tight {
350
+ --tw-leading: var(--mv-leading-tight);
351
+ line-height: var(--mv-leading-tight);
352
+ }
353
+ .mv\:font-semibold {
354
+ --tw-font-weight: var(--mv-font-weight-semibold);
355
+ font-weight: var(--mv-font-weight-semibold);
356
+ }
357
+ .mv\:tracking-wide {
358
+ --tw-tracking: var(--mv-tracking-wide);
359
+ letter-spacing: var(--mv-tracking-wide);
360
+ }
361
+ .mv\:whitespace-nowrap {
362
+ white-space: nowrap;
363
+ }
364
+ .mv\:text-ink {
365
+ color: var(--mv-color-ink);
366
+ }
367
+ .mv\:text-muted {
368
+ color: var(--mv-color-muted);
369
+ }
370
+ .mv\:text-white {
371
+ color: var(--mv-color-white);
372
+ }
373
+ .mv\:uppercase {
374
+ text-transform: uppercase;
375
+ }
376
+ .mv\:opacity-75 {
377
+ opacity: 75%;
378
+ }
379
+ .mv\:shadow-sm {
380
+ --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
381
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
382
+ }
383
+ .mv\:\[writing-mode\:vertical-rl\] {
384
+ writing-mode: vertical-rl;
385
+ }
386
+ @media (hover: hover) {
387
+ .mv\:hover\:border-accent:hover {
388
+ border-color: var(--mv-color-accent);
389
+ }
390
+ .mv\:hover\:text-accent:hover {
391
+ color: var(--mv-color-accent);
392
+ }
393
+ }
394
+ .mv\:focus-visible\:outline-2:focus-visible {
395
+ outline-style: var(--tw-outline-style);
396
+ outline-width: 2px;
397
+ }
398
+ .mv\:focus-visible\:outline-accent:focus-visible {
399
+ outline-color: var(--mv-color-accent);
400
+ }
401
+ @property --tw-translate-x {
402
+ syntax: "*";
403
+ inherits: false;
404
+ initial-value: 0;
405
+ }
406
+ @property --tw-translate-y {
407
+ syntax: "*";
408
+ inherits: false;
409
+ initial-value: 0;
410
+ }
411
+ @property --tw-translate-z {
412
+ syntax: "*";
413
+ inherits: false;
414
+ initial-value: 0;
415
+ }
416
+ @property --tw-border-style {
417
+ syntax: "*";
418
+ inherits: false;
419
+ initial-value: solid;
420
+ }
421
+ @property --tw-leading {
422
+ syntax: "*";
423
+ inherits: false;
424
+ }
425
+ @property --tw-font-weight {
426
+ syntax: "*";
427
+ inherits: false;
428
+ }
429
+ @property --tw-tracking {
430
+ syntax: "*";
431
+ inherits: false;
432
+ }
433
+ @property --tw-shadow {
434
+ syntax: "*";
435
+ inherits: false;
436
+ initial-value: 0 0 #0000;
437
+ }
438
+ @property --tw-shadow-color {
439
+ syntax: "*";
440
+ inherits: false;
441
+ }
442
+ @property --tw-shadow-alpha {
443
+ syntax: "<percentage>";
444
+ inherits: false;
445
+ initial-value: 100%;
446
+ }
447
+ @property --tw-inset-shadow {
448
+ syntax: "*";
449
+ inherits: false;
450
+ initial-value: 0 0 #0000;
451
+ }
452
+ @property --tw-inset-shadow-color {
453
+ syntax: "*";
454
+ inherits: false;
455
+ }
456
+ @property --tw-inset-shadow-alpha {
457
+ syntax: "<percentage>";
458
+ inherits: false;
459
+ initial-value: 100%;
460
+ }
461
+ @property --tw-ring-color {
462
+ syntax: "*";
463
+ inherits: false;
464
+ }
465
+ @property --tw-ring-shadow {
466
+ syntax: "*";
467
+ inherits: false;
468
+ initial-value: 0 0 #0000;
469
+ }
470
+ @property --tw-inset-ring-color {
471
+ syntax: "*";
472
+ inherits: false;
473
+ }
474
+ @property --tw-inset-ring-shadow {
475
+ syntax: "*";
476
+ inherits: false;
477
+ initial-value: 0 0 #0000;
478
+ }
479
+ @property --tw-ring-inset {
480
+ syntax: "*";
481
+ inherits: false;
482
+ }
483
+ @property --tw-ring-offset-width {
484
+ syntax: "<length>";
485
+ inherits: false;
486
+ initial-value: 0px;
487
+ }
488
+ @property --tw-ring-offset-color {
489
+ syntax: "*";
490
+ inherits: false;
491
+ initial-value: #fff;
492
+ }
493
+ @property --tw-ring-offset-shadow {
494
+ syntax: "*";
495
+ inherits: false;
496
+ initial-value: 0 0 #0000;
497
+ }
498
+ @property --tw-outline-style {
499
+ syntax: "*";
500
+ inherits: false;
501
+ initial-value: solid;
502
+ }
503
+ @layer properties {
504
+ @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
505
+ *, ::before, ::after, ::backdrop {
506
+ --tw-translate-x: 0;
507
+ --tw-translate-y: 0;
508
+ --tw-translate-z: 0;
509
+ --tw-border-style: solid;
510
+ --tw-leading: initial;
511
+ --tw-font-weight: initial;
512
+ --tw-tracking: initial;
513
+ --tw-shadow: 0 0 #0000;
514
+ --tw-shadow-color: initial;
515
+ --tw-shadow-alpha: 100%;
516
+ --tw-inset-shadow: 0 0 #0000;
517
+ --tw-inset-shadow-color: initial;
518
+ --tw-inset-shadow-alpha: 100%;
519
+ --tw-ring-color: initial;
520
+ --tw-ring-shadow: 0 0 #0000;
521
+ --tw-inset-ring-color: initial;
522
+ --tw-inset-ring-shadow: 0 0 #0000;
523
+ --tw-ring-inset: initial;
524
+ --tw-ring-offset-width: 0px;
525
+ --tw-ring-offset-color: #fff;
526
+ --tw-ring-offset-shadow: 0 0 #0000;
527
+ --tw-outline-style: solid;
528
+ }
529
+ }
530
+ }
531
+
532
+ :root {
533
+ --mv-color-surface: #f8f8f7;
534
+ --mv-color-card: #ffffff;
535
+ --mv-color-ink: #1f2328;
536
+ --mv-color-muted: #59636e;
537
+ --mv-color-edge: #d1d9e0;
538
+ --mv-color-accent: #0969da;
539
+ --mv-color-error: #cf222e;
540
+ --mv-color-warning: #9a6700;
541
+ --mv-color-info: #0969da;
542
+ --art-ground: #ffffff;
543
+ color-scheme: light;
544
+ }
545
+ @media (prefers-color-scheme: dark) {
546
+ :root:not([data-theme="light"]) {
547
+ --mv-color-surface: #161b22;
548
+ --mv-color-card: #21262d;
549
+ --mv-color-ink: #e6edf3;
550
+ --mv-color-muted: #9198a1;
551
+ --mv-color-edge: #3d444d;
552
+ --mv-color-accent: #4493f8;
553
+ --mv-color-error: #f85149;
554
+ --mv-color-warning: #d29922;
555
+ --mv-color-info: #4493f8;
556
+ --art-ground: #0d1117;
557
+ color-scheme: dark;
558
+ }
559
+ }
560
+ :root[data-theme="dark"] {
561
+ --mv-color-surface: #161b22;
562
+ --mv-color-card: #21262d;
563
+ --mv-color-ink: #e6edf3;
564
+ --mv-color-muted: #9198a1;
565
+ --mv-color-edge: #3d444d;
566
+ --mv-color-accent: #4493f8;
567
+ --mv-color-error: #f85149;
568
+ --mv-color-warning: #d29922;
569
+ --mv-color-info: #4493f8;
570
+ --art-ground: #0d1117;
571
+ color-scheme: dark;
572
+ }
573
+ body { background: var(--art-ground); color: var(--mv-color-ink); }
574
+ .art-root { display: flex; flex-direction: column; height: 100vh; }
575
+ .art-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; padding: 0.5rem 1rem; border-bottom: 1px solid var(--mv-color-edge); }
576
+ .art-body { flex: 1; min-height: 0; display: flex; flex-wrap: wrap; }
577
+ .art-map { flex: 1 1 24rem; min-width: 0; min-height: 50vh; }
578
+ .art-panel { flex: 0 1 20rem; max-height: 100%; overflow: auto; padding: 0.75rem 1rem; border-left: 1px solid var(--mv-color-edge); }
579
+ .art-panel h2 { margin: 0 0 0.75rem; font-size: 1.15rem; }
580
+ .art-panel h3 { margin: 1rem 0 0.4rem; padding-top: 0.6rem; border-top: 1px solid var(--mv-color-edge); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--mv-color-muted); }
581
+ .art-panel section + section { margin-top: 1rem; }
582
+ .art-close { float: right; border: 0; background: none; color: inherit; font-size: 1.25rem; cursor: pointer; }
583
+ .art-type { margin: 0; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--mv-color-muted); }
584
+ .art-muted { color: var(--mv-color-muted); }
585
+ .art-message { padding: 1rem; }
586
+ .art-results { margin: 0; padding: 0; list-style: none; }
587
+ .art-results li { margin-bottom: 0.6rem; }
588
+ .art-severity { font-weight: 600; }
589
+ .art-error { color: var(--mv-color-error); }
590
+ .art-warning { color: var(--mv-color-warning); }
591
+ .art-info { color: var(--mv-color-info); }
592
+ .art-fields { margin: 0 0 0.75rem; }
593
+ .art-fields div { margin-bottom: 0.4rem; }
594
+ .art-fields dt { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--mv-color-muted); }
595
+ .art-fields dd { margin: 0; overflow-wrap: anywhere; }
596
+ .art-content { white-space: pre-wrap; overflow-wrap: anywhere; }
597
+
598
+ </style>
599
+ <div id="root"></div>
600
+ <script type="importmap">{"imports":{"structured-context/browser":"https://cdn.jsdelivr.net/npm/structured-context@0.21.0/dist/browser.js/+esm","react":"https://cdn.jsdelivr.net/npm/react@19.3.0/+esm","react/jsx-runtime":"https://cdn.jsdelivr.net/npm/react@19.3.0/jsx-runtime/+esm","react-dom":"https://cdn.jsdelivr.net/npm/react-dom@19.3.0/+esm","react-dom/client":"https://cdn.jsdelivr.net/npm/react-dom@19.3.0/client/+esm","ajv/dist/2020":"https://cdn.jsdelivr.net/npm/ajv@8.20.0/dist/2020.js/+esm","json5":"https://cdn.jsdelivr.net/npm/json5@2.2.3/+esm","https://cdn.jsdelivr.net/npm/react@%5E19.3.0/+esm":"https://cdn.jsdelivr.net/npm/react@19.3.0/+esm"}}</script>
601
+ <script type="module" src="https://cdn.jsdelivr.net/npm/structured-context-map-views@0.3.0/dist/artifact.js"></script>