contour-ds 1.7.2 → 1.9.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.
Files changed (150) hide show
  1. package/README.md +244 -326
  2. package/dist/agent-cookbook.json +960 -0
  3. package/dist/agent-examples.json +65 -0
  4. package/dist/agent-map-wiring.json +152 -0
  5. package/dist/agent-rules.json +16 -0
  6. package/dist/build-manifest.json +344 -126
  7. package/dist/contour-wc-content.esm.js +1939 -0
  8. package/dist/contour-wc-content.esm.min.js +1 -0
  9. package/dist/contour-wc-core.esm.js +3724 -0
  10. package/dist/contour-wc-core.esm.min.js +1 -0
  11. package/dist/contour-wc-dashboard.esm.js +6986 -0
  12. package/dist/contour-wc-dashboard.esm.min.js +1 -0
  13. package/dist/contour-wc-data.esm.js +6572 -0
  14. package/dist/contour-wc-data.esm.min.js +1 -0
  15. package/dist/contour-wc-docs.esm.js +976 -0
  16. package/dist/contour-wc-docs.esm.min.js +1 -0
  17. package/dist/contour-wc-feedback.esm.js +1742 -0
  18. package/dist/contour-wc-feedback.esm.min.js +1 -0
  19. package/dist/contour-wc-forms.esm.js +2437 -0
  20. package/dist/contour-wc-forms.esm.min.js +1 -0
  21. package/dist/contour-wc-interaction.esm.js +1343 -0
  22. package/dist/contour-wc-interaction.esm.min.js +1 -0
  23. package/dist/contour-wc-layout.esm.js +845 -0
  24. package/dist/contour-wc-layout.esm.min.js +1 -0
  25. package/dist/contour-wc-map.esm.js +2411 -0
  26. package/dist/contour-wc-map.esm.min.js +1 -0
  27. package/dist/contour-wc-misc.esm.js +945 -0
  28. package/dist/contour-wc-misc.esm.min.js +1 -0
  29. package/dist/contour-wc-navigation.esm.js +2842 -0
  30. package/dist/contour-wc-navigation.esm.min.js +1 -0
  31. package/dist/contour-wc-ui.esm.js +6519 -0
  32. package/dist/contour-wc-ui.esm.min.js +1 -0
  33. package/dist/contour-wc.esm.js +14435 -5723
  34. package/dist/contour-wc.esm.min.js +1 -1
  35. package/dist/contour-wc.js +14436 -5725
  36. package/dist/contour-wc.min.js +1 -1
  37. package/dist/contour.a11y.json +402 -0
  38. package/dist/contour.code-snippets +4534 -0
  39. package/dist/contour.components.json +4870 -1222
  40. package/dist/contour.css +6672 -4711
  41. package/dist/contour.d.ts +753 -1085
  42. package/dist/contour.esm.js +440 -18
  43. package/dist/contour.esm.min.js +1 -1
  44. package/dist/contour.html-data.json +11343 -0
  45. package/dist/contour.js +440 -18
  46. package/dist/contour.min.css +1 -1
  47. package/dist/contour.min.js +1 -1
  48. package/dist/contour.react.d.ts +422 -0
  49. package/dist/contour.single.html +17 -0
  50. package/dist/contour.single.min.css +1 -0
  51. package/dist/contour.themes.json +56 -12
  52. package/dist/contour.tokens.json +1318 -1053
  53. package/dist/contour.vue.d.ts +420 -0
  54. package/dist/contour.web-types.json +11703 -0
  55. package/dist/custom-elements.json +36120 -0
  56. package/dist/docs/actions.md +16 -6
  57. package/dist/docs/affordances.md +21 -85
  58. package/dist/docs/apireference.md +9 -5
  59. package/dist/docs/colour.md +10 -4
  60. package/dist/docs/componentindex.md +9 -22
  61. package/dist/docs/data.md +39 -58
  62. package/dist/docs/docs.md +12 -7
  63. package/dist/docs/feedback.md +30 -12
  64. package/dist/docs/field.md +28 -13
  65. package/dist/docs/forms.md +35 -19
  66. package/dist/docs/index.json +70 -61
  67. package/dist/docs/install.md +12 -7
  68. package/dist/docs/landing.md +7 -4
  69. package/dist/docs/mapengine.md +30 -8
  70. package/dist/docs/motion.md +12 -6
  71. package/dist/docs/navigation.md +31 -7
  72. package/dist/docs/overlays.md +32 -25
  73. package/dist/docs/overview.md +3 -2
  74. package/dist/docs/patterns.md +20 -10
  75. package/dist/docs/playground.md +11 -4
  76. package/dist/docs/principles.md +8 -6
  77. package/dist/docs/recipes.md +117 -13
  78. package/dist/docs/space.md +10 -6
  79. package/dist/docs/status.md +13 -14
  80. package/dist/docs/surfaces.md +17 -22
  81. package/dist/docs/theming.md +18 -32
  82. package/dist/docs/type.md +12 -5
  83. package/dist/docs/webcomponents.md +75 -33
  84. package/dist/hljs.css +1 -20
  85. package/dist/map-chrome.mapbox.css +68 -92
  86. package/dist/map-chrome.maplibre.css +68 -92
  87. package/dist/registry/items/contour-core.json +2 -2
  88. package/dist/registry/items/contour-data.json +2 -2
  89. package/dist/registry/items/contour-docs.json +2 -2
  90. package/dist/registry/items/contour-landing.json +2 -2
  91. package/dist/registry/registry.json +8 -8
  92. package/dist/surfaces/contour-core.min.css +1 -1
  93. package/dist/surfaces/contour-data.min.css +1 -1
  94. package/dist/surfaces/contour-docs.min.css +1 -1
  95. package/dist/surfaces/contour-landing.min.css +1 -1
  96. package/dist/svg/icons.svg +367 -0
  97. package/dist/wc/behaviours.mjs +222 -192
  98. package/dist/wc/content.mjs +486 -142
  99. package/dist/wc/core.mjs +917 -395
  100. package/dist/wc/dashboard.mjs +252 -25
  101. package/dist/wc/data-chart.mjs +1333 -0
  102. package/dist/wc/data-export.mjs +391 -0
  103. package/dist/wc/data-gauge.mjs +779 -0
  104. package/dist/wc/data-geo.mjs +696 -0
  105. package/dist/wc/data-glyphs.mjs +133 -0
  106. package/dist/wc/data-legend.mjs +431 -0
  107. package/dist/wc/data-readout.mjs +227 -0
  108. package/dist/wc/data-series.mjs +1004 -0
  109. package/dist/wc/data-table.mjs +751 -0
  110. package/dist/wc/data.mjs +15 -3707
  111. package/dist/wc/docs.mjs +113 -19
  112. package/dist/wc/feedback.mjs +320 -116
  113. package/dist/wc/forms-controls.mjs +635 -0
  114. package/dist/wc/forms-field.mjs +547 -0
  115. package/dist/wc/forms-groups.mjs +347 -0
  116. package/dist/wc/forms-input.mjs +292 -0
  117. package/dist/wc/forms.mjs +10 -1122
  118. package/dist/wc/glyph.mjs +204 -0
  119. package/dist/wc/index.mjs +16 -7
  120. package/dist/wc/interaction.mjs +322 -75
  121. package/dist/wc/layout.mjs +100 -29
  122. package/dist/wc/map.mjs +888 -285
  123. package/dist/wc/misc.mjs +137 -26
  124. package/dist/wc/navigation-menu.mjs +735 -0
  125. package/dist/wc/navigation-shell.mjs +495 -0
  126. package/dist/wc/navigation-tree.mjs +995 -0
  127. package/dist/wc/navigation.mjs +9 -1636
  128. package/dist/wc/registration.mjs +1 -8
  129. package/dist/wc/shadow.mjs +285 -113
  130. package/dist/wc/states.mjs +75 -78
  131. package/dist/wc/svg.mjs +209 -34
  132. package/dist/wc/ui-atoms.mjs +608 -0
  133. package/dist/wc/ui-data.mjs +1404 -0
  134. package/dist/wc/ui-feedback.mjs +419 -0
  135. package/dist/wc/ui-inputs.mjs +1570 -0
  136. package/dist/wc/ui-menus.mjs +307 -0
  137. package/dist/wc/ui-overlays.mjs +1605 -0
  138. package/integrations/README.md +25 -5
  139. package/integrations/ai/CLAUDE.md +6 -3
  140. package/integrations/ai/COPILOT.md +14 -0
  141. package/integrations/ai/GEMINI.md +14 -0
  142. package/integrations/ai/WINDSURF.md +14 -0
  143. package/integrations/ai/v0-prompt.md +13 -1
  144. package/integrations/frameworks/README.md +235 -0
  145. package/integrations/native/README.md +0 -3
  146. package/integrations/native/style-dictionary.config.json +1 -1
  147. package/integrations/tailwind/contour-theme.css +71 -13
  148. package/integrations/validate-markup.mjs +172 -0
  149. package/package.json +103 -39
  150. package/dist/wc/ui.mjs +0 -3560
@@ -0,0 +1,960 @@
1
+ {
2
+ "version": "1.0",
3
+ "name": "contour-agent-cookbook",
4
+ "audience": "an agent choosing which Contour block serves a UI intent",
5
+ "statement": "A routing layer over contour.components.json. `intents` map a single UI task to the one block (and variants) that serves it; `blueprints` compose several blocks into a working region — a map workspace, a choropleth, a time-slider playback — with the contour:* events that wire it, the tokens that thread it, and the `data` inputs each block consumes (the attribute and its shape). Every block, variant, event, token and data attribute named here is validated against the component contract, the CONTOUR_EVENTS vocabulary and the token census at build time, so the cookbook cannot route an agent to a name the system does not ship. The full element/state/token/attribute slice for a block is in contour.components.json; this file carries only the routing. No counts are stated here — those live in the contract and the token export.",
6
+ "source": "tools/lib/cookbook.mjs",
7
+ "surfaces": [
8
+ "landing",
9
+ "docs",
10
+ "data",
11
+ "all"
12
+ ],
13
+ "intents": [
14
+ {
15
+ "id": "button",
16
+ "task": "A button that performs an action",
17
+ "surface": "all",
18
+ "block": "c-btn",
19
+ "variants": [
20
+ "c-btn--primary",
21
+ "c-btn--secondary",
22
+ "c-btn--outline",
23
+ "c-btn--ghost",
24
+ "c-btn--danger"
25
+ ]
26
+ },
27
+ {
28
+ "id": "icon-button",
29
+ "task": "A button whose only content is an icon (give it an aria-label)",
30
+ "surface": "all",
31
+ "block": "c-btn",
32
+ "variants": [
33
+ "c-btn--icon"
34
+ ]
35
+ },
36
+ {
37
+ "id": "badge",
38
+ "task": "A small status or count label beside content",
39
+ "surface": "all",
40
+ "block": "c-badge",
41
+ "variants": [
42
+ "c-badge--primary",
43
+ "c-badge--success",
44
+ "c-badge--warning",
45
+ "c-badge--danger",
46
+ "c-badge--data"
47
+ ]
48
+ },
49
+ {
50
+ "id": "chip",
51
+ "task": "An interactive or removable token (filter, tag, selection)",
52
+ "surface": "all",
53
+ "block": "c-chip"
54
+ },
55
+ {
56
+ "id": "avatar",
57
+ "task": "A person or team avatar",
58
+ "surface": "all",
59
+ "block": "c-avatar"
60
+ },
61
+ {
62
+ "id": "status-light",
63
+ "task": "A labelled live/online/offline status indicator",
64
+ "surface": "all",
65
+ "block": "c-status-light"
66
+ },
67
+ {
68
+ "id": "tabs",
69
+ "task": "Switch between sibling panels of content",
70
+ "surface": "all",
71
+ "block": "c-tabs"
72
+ },
73
+ {
74
+ "id": "segmented",
75
+ "task": "A compact single-choice switch between 2–4 options",
76
+ "surface": "all",
77
+ "block": "c-segmented"
78
+ },
79
+ {
80
+ "id": "field",
81
+ "task": "A labelled form control with help and error text",
82
+ "surface": "all",
83
+ "block": "c-field"
84
+ },
85
+ {
86
+ "id": "text-input",
87
+ "task": "A single-line text, number, email or password input",
88
+ "surface": "all",
89
+ "block": "c-input"
90
+ },
91
+ {
92
+ "id": "select",
93
+ "task": "Choose one option from a native select",
94
+ "surface": "all",
95
+ "block": "c-select"
96
+ },
97
+ {
98
+ "id": "textarea",
99
+ "task": "A multi-line text input",
100
+ "surface": "all",
101
+ "block": "c-textarea"
102
+ },
103
+ {
104
+ "id": "switch",
105
+ "task": "A binary on/off setting that takes effect immediately",
106
+ "surface": "all",
107
+ "block": "c-switch"
108
+ },
109
+ {
110
+ "id": "checkbox",
111
+ "task": "A single on/off choice or a group of independent choices",
112
+ "surface": "all",
113
+ "block": "c-check"
114
+ },
115
+ {
116
+ "id": "radio",
117
+ "task": "A single choice from a small exclusive set",
118
+ "surface": "all",
119
+ "block": "c-radio"
120
+ },
121
+ {
122
+ "id": "combobox",
123
+ "task": "A filterable, editable single-choice list",
124
+ "surface": "all",
125
+ "block": "c-combobox"
126
+ },
127
+ {
128
+ "id": "search-field",
129
+ "task": "A search input with a submit affordance",
130
+ "surface": "all",
131
+ "block": "c-search-field"
132
+ },
133
+ {
134
+ "id": "range",
135
+ "task": "Choose a numeric value within a range",
136
+ "surface": "all",
137
+ "block": "c-range"
138
+ },
139
+ {
140
+ "id": "tooltip",
141
+ "task": "A short label revealed on hover/focus of a control",
142
+ "surface": "all",
143
+ "block": "c-tooltip"
144
+ },
145
+ {
146
+ "id": "popover",
147
+ "task": "A small floating panel anchored to a control",
148
+ "surface": "all",
149
+ "block": "c-popover"
150
+ },
151
+ {
152
+ "id": "dialog",
153
+ "task": "A modal that interrupts and requires a decision",
154
+ "surface": "all",
155
+ "block": "c-dialog"
156
+ },
157
+ {
158
+ "id": "drawer",
159
+ "task": "A panel that slides in from an edge for a focused task",
160
+ "surface": "all",
161
+ "block": "c-drawer"
162
+ },
163
+ {
164
+ "id": "sheet",
165
+ "task": "A bottom/top sheet for a contextual set of actions",
166
+ "surface": "all",
167
+ "block": "c-sheet"
168
+ },
169
+ {
170
+ "id": "menu",
171
+ "task": "A dropdown menu of commands attached to a trigger",
172
+ "surface": "all",
173
+ "block": "c-menu"
174
+ },
175
+ {
176
+ "id": "context-menu",
177
+ "task": "A right-click / long-press menu of actions on an item",
178
+ "surface": "all",
179
+ "block": "c-context-menu"
180
+ },
181
+ {
182
+ "id": "command-palette",
183
+ "task": "A keyboard-driven command/search palette",
184
+ "surface": "all",
185
+ "block": "c-command"
186
+ },
187
+ {
188
+ "id": "toast",
189
+ "task": "A transient confirmation or error message",
190
+ "surface": "all",
191
+ "block": "c-toast"
192
+ },
193
+ {
194
+ "id": "alert",
195
+ "task": "A persistent inline message with a severity",
196
+ "surface": "all",
197
+ "block": "c-alert",
198
+ "variants": [
199
+ "c-alert--info",
200
+ "c-alert--success",
201
+ "c-alert--warning",
202
+ "c-alert--danger"
203
+ ]
204
+ },
205
+ {
206
+ "id": "pagination",
207
+ "task": "Move through paged results",
208
+ "surface": "all",
209
+ "block": "c-pagination"
210
+ },
211
+ {
212
+ "id": "breadcrumb",
213
+ "task": "Show the path to the current page",
214
+ "surface": "all",
215
+ "block": "c-breadcrumb"
216
+ },
217
+ {
218
+ "id": "toolbar",
219
+ "task": "A row of controls scoped to a region or table",
220
+ "surface": "all",
221
+ "block": "c-toolbar"
222
+ },
223
+ {
224
+ "id": "tag",
225
+ "task": "A static keyword/label attached to content",
226
+ "surface": "all",
227
+ "block": "c-tag"
228
+ },
229
+ {
230
+ "id": "tree",
231
+ "task": "A hierarchical, navigable list",
232
+ "surface": "all",
233
+ "block": "c-tree"
234
+ },
235
+ {
236
+ "id": "disclosure",
237
+ "task": "A show/hide toggle for a section",
238
+ "surface": "all",
239
+ "block": "c-disclosure"
240
+ },
241
+ {
242
+ "id": "landing-hero",
243
+ "task": "The landing page's opening hero",
244
+ "surface": "landing",
245
+ "block": "c-landing-hero"
246
+ },
247
+ {
248
+ "id": "logo-wall",
249
+ "task": "A wall of customer/partner logos",
250
+ "surface": "landing",
251
+ "block": "c-logos"
252
+ },
253
+ {
254
+ "id": "feature-showcase",
255
+ "task": "A product feature showcase",
256
+ "surface": "landing",
257
+ "block": "c-landing-features"
258
+ },
259
+ {
260
+ "id": "metrics-band",
261
+ "task": "A band of headline numbers",
262
+ "surface": "landing",
263
+ "block": "c-metrics"
264
+ },
265
+ {
266
+ "id": "testimonial",
267
+ "task": "A customer quote / testimonial",
268
+ "surface": "landing",
269
+ "block": "c-testimonial"
270
+ },
271
+ {
272
+ "id": "pricing",
273
+ "task": "A pricing table / plan comparison",
274
+ "surface": "landing",
275
+ "block": "c-pricing"
276
+ },
277
+ {
278
+ "id": "comparison",
279
+ "task": "A feature comparison matrix",
280
+ "surface": "landing",
281
+ "block": "c-comparison"
282
+ },
283
+ {
284
+ "id": "faq",
285
+ "task": "A frequently-asked-questions list",
286
+ "surface": "landing",
287
+ "block": "c-faq"
288
+ },
289
+ {
290
+ "id": "cta",
291
+ "task": "A closing call-to-action band",
292
+ "surface": "landing",
293
+ "block": "c-cta"
294
+ },
295
+ {
296
+ "id": "section-head",
297
+ "task": "A titled section heading with optional lede",
298
+ "surface": "all",
299
+ "block": "c-section-head"
300
+ },
301
+ {
302
+ "id": "docs-nav",
303
+ "task": "The documentation navigation tree",
304
+ "surface": "docs",
305
+ "block": "c-docs-nav"
306
+ },
307
+ {
308
+ "id": "toc",
309
+ "task": "A table of contents for the current page",
310
+ "surface": "docs",
311
+ "block": "c-toc"
312
+ },
313
+ {
314
+ "id": "callout",
315
+ "task": "A note/tip/warning callout in prose",
316
+ "surface": "docs",
317
+ "block": "c-callout",
318
+ "variants": [
319
+ "c-callout--note",
320
+ "c-callout--tip",
321
+ "c-callout--warning",
322
+ "c-callout--danger"
323
+ ]
324
+ },
325
+ {
326
+ "id": "do-dont",
327
+ "task": "A do/don't comparison pair",
328
+ "surface": "docs",
329
+ "block": "c-do-dont"
330
+ },
331
+ {
332
+ "id": "steps",
333
+ "task": "An ordered step-by-step procedure",
334
+ "surface": "docs",
335
+ "block": "c-steps"
336
+ },
337
+ {
338
+ "id": "code-tabs",
339
+ "task": "Switch between language variants of a code sample",
340
+ "surface": "docs",
341
+ "block": "c-code-tabs"
342
+ },
343
+ {
344
+ "id": "code-block",
345
+ "task": "A syntax-highlighted code block (add line numbers with the variant)",
346
+ "surface": "docs",
347
+ "block": "c-code",
348
+ "variants": [
349
+ "c-code--numbered"
350
+ ]
351
+ },
352
+ {
353
+ "id": "install-block",
354
+ "task": "A copyable install command block",
355
+ "surface": "docs",
356
+ "block": "c-install"
357
+ },
358
+ {
359
+ "id": "diff",
360
+ "task": "A before/after diff of code",
361
+ "surface": "docs",
362
+ "block": "c-diff"
363
+ },
364
+ {
365
+ "id": "pager",
366
+ "task": "Previous/next links between doc pages",
367
+ "surface": "docs",
368
+ "block": "c-pager"
369
+ },
370
+ {
371
+ "id": "version-picker",
372
+ "task": "A documentation version selector",
373
+ "surface": "docs",
374
+ "block": "c-version"
375
+ },
376
+ {
377
+ "id": "file-tree",
378
+ "task": "A file/directory tree browser",
379
+ "surface": "docs",
380
+ "block": "c-file-tree"
381
+ },
382
+ {
383
+ "id": "prose",
384
+ "task": "The body copy column of a documentation page",
385
+ "surface": "docs",
386
+ "block": "c-prose"
387
+ },
388
+ {
389
+ "id": "kpi-tile",
390
+ "task": "A key-metric tile (value + label + delta)",
391
+ "surface": "data",
392
+ "block": "c-kpi"
393
+ },
394
+ {
395
+ "id": "panel",
396
+ "task": "A titled container for a dashboard widget",
397
+ "surface": "data",
398
+ "block": "c-panel"
399
+ },
400
+ {
401
+ "id": "chart-frame",
402
+ "task": "A chart frame with axes and a legend slot",
403
+ "surface": "data",
404
+ "block": "c-chart",
405
+ "variants": [
406
+ "c-chart--donut",
407
+ "c-chart--histogram"
408
+ ]
409
+ },
410
+ {
411
+ "id": "legend",
412
+ "task": "A chart legend (interactive, graduated or inline)",
413
+ "surface": "data",
414
+ "block": "c-legend",
415
+ "variants": [
416
+ "c-legend--interactive",
417
+ "c-legend--graduated",
418
+ "c-legend--inline"
419
+ ]
420
+ },
421
+ {
422
+ "id": "sparkline",
423
+ "task": "A small inline trend line",
424
+ "surface": "data",
425
+ "block": "c-sparkline"
426
+ },
427
+ {
428
+ "id": "filter-bar",
429
+ "task": "A horizontal bar of active filters",
430
+ "surface": "data",
431
+ "block": "c-filter-bar"
432
+ },
433
+ {
434
+ "id": "data-table",
435
+ "task": "A dense, sortable data table (wrap it in .c-table-wrap)",
436
+ "surface": "data",
437
+ "block": "c-table",
438
+ "variants": [
439
+ "c-table--compact",
440
+ "c-table--dense",
441
+ "c-table--virtual"
442
+ ]
443
+ },
444
+ {
445
+ "id": "activity-feed",
446
+ "task": "A chronological feed of events",
447
+ "surface": "data",
448
+ "block": "c-activity"
449
+ },
450
+ {
451
+ "id": "timeline",
452
+ "task": "A timestamped timeline of events",
453
+ "surface": "data",
454
+ "block": "c-timeline"
455
+ },
456
+ {
457
+ "id": "readout",
458
+ "task": "A labelled numeric readout / gauge value",
459
+ "surface": "data",
460
+ "block": "c-readout"
461
+ },
462
+ {
463
+ "id": "empty-state",
464
+ "task": "The placeholder shown when a region has no data",
465
+ "surface": "data",
466
+ "block": "c-empty"
467
+ },
468
+ {
469
+ "id": "skeleton",
470
+ "task": "A loading placeholder that mirrors the content shape",
471
+ "surface": "data",
472
+ "block": "c-skeleton",
473
+ "variants": [
474
+ "c-skeleton--text",
475
+ "c-skeleton--title",
476
+ "c-skeleton--static"
477
+ ]
478
+ },
479
+ {
480
+ "id": "spinner",
481
+ "task": "An indeterminate loading spinner",
482
+ "surface": "data",
483
+ "block": "c-spinner"
484
+ },
485
+ {
486
+ "id": "progress",
487
+ "task": "A determinate or indeterminate progress bar",
488
+ "surface": "data",
489
+ "block": "c-progress",
490
+ "variants": [
491
+ "c-progress--indeterminate",
492
+ "c-progress--paused"
493
+ ]
494
+ },
495
+ {
496
+ "id": "meter",
497
+ "task": "A bounded gauge/meter against a target",
498
+ "surface": "data",
499
+ "block": "c-meter"
500
+ }
501
+ ],
502
+ "blueprints": [
503
+ {
504
+ "id": "map-workspace",
505
+ "task": "The full spatial workspace: a map with chrome, a layer panel and a data split",
506
+ "surface": "data",
507
+ "blocks": [
508
+ "c-map-area",
509
+ "c-map-panel",
510
+ "c-layer-panel",
511
+ "c-coordinate",
512
+ "c-scale-bar",
513
+ "c-map-footer",
514
+ "c-split-map",
515
+ "c-data-grid"
516
+ ],
517
+ "events": [
518
+ "contour:map-attach",
519
+ "contour:map-viewport",
520
+ "contour:layer-visibility",
521
+ "contour:layer-reorder",
522
+ "contour:select",
523
+ "contour:split-change"
524
+ ],
525
+ "tokens": [
526
+ "--color-surface-1",
527
+ "--color-border",
528
+ "--header-height",
529
+ "--space-sm"
530
+ ],
531
+ "data": [
532
+ {
533
+ "block": "c-map-area",
534
+ "attr": "controls",
535
+ "shape": "which chrome to mount (compass, scale, zoom)"
536
+ },
537
+ {
538
+ "block": "c-layer-panel",
539
+ "attr": "items",
540
+ "shape": "layer descriptors: [{ id, name, visible }]"
541
+ },
542
+ {
543
+ "block": "c-coordinate",
544
+ "attr": "value",
545
+ "shape": "{ lat, lon, zoom } read from the attached map's viewport"
546
+ },
547
+ {
548
+ "block": "c-scale-bar",
549
+ "attr": "value",
550
+ "shape": "{ distance, resolution, latitude, zoom } from the viewport"
551
+ }
552
+ ],
553
+ "notes": [
554
+ "c-map-area is the composition host: call attachMap(mapInstance) on it and put chrome in its slots (top-right, bottom-left, bottom).",
555
+ "The map engine, tile pipeline and projection stay consumer-owned — Contour stops at chrome."
556
+ ]
557
+ },
558
+ {
559
+ "id": "choropleth",
560
+ "task": "A choropleth map with a graduated legend and a provenance readout",
561
+ "surface": "data",
562
+ "blocks": [
563
+ "c-map-area",
564
+ "c-legend",
565
+ "c-provenance",
566
+ "c-layer-panel"
567
+ ],
568
+ "events": [
569
+ "contour:map-attach",
570
+ "contour:legend-toggle",
571
+ "contour:select"
572
+ ],
573
+ "tokens": [
574
+ "--gradient-heat",
575
+ "--chart-grid",
576
+ "--color-surface-1"
577
+ ],
578
+ "data": [
579
+ {
580
+ "block": "c-map-area",
581
+ "attr": "attribution",
582
+ "shape": "attribution string for the data source"
583
+ },
584
+ {
585
+ "block": "c-provenance",
586
+ "attr": "source",
587
+ "shape": "source name; confidence is high | medium | low (else unknown)"
588
+ }
589
+ ],
590
+ "notes": [
591
+ "Use c-legend--graduated for a continuous ramp; the legend is the accessible-name surface for the ramp."
592
+ ]
593
+ },
594
+ {
595
+ "id": "temporal-playback",
596
+ "task": "A time-slider driving a map and a streaming chart over a temporal range",
597
+ "surface": "data",
598
+ "blocks": [
599
+ "c-map-area",
600
+ "c-time-slider",
601
+ "c-streaming-chart",
602
+ "c-coordinate"
603
+ ],
604
+ "events": [
605
+ "contour:time-change",
606
+ "contour:play",
607
+ "contour:pause",
608
+ "contour:speed-change",
609
+ "contour:map-viewport"
610
+ ],
611
+ "tokens": [
612
+ "--dur-sweep",
613
+ "--color-primary",
614
+ "--color-surface-1"
615
+ ],
616
+ "data": [
617
+ {
618
+ "block": "c-time-slider",
619
+ "attr": "value",
620
+ "shape": "current time (ms or ISO) within min..max"
621
+ },
622
+ {
623
+ "block": "c-time-slider",
624
+ "attr": "is-playing",
625
+ "shape": "boolean playhead state (also a boolean attribute)"
626
+ }
627
+ ],
628
+ "notes": [
629
+ "contour:time-change carries { progress, value }; the playhead is is-playing / current-time on the slider."
630
+ ]
631
+ },
632
+ {
633
+ "id": "spatial-filter-panel",
634
+ "task": "A spatial filter (draw/select an area) feeding a filter bar and a combobox",
635
+ "surface": "data",
636
+ "blocks": [
637
+ "c-spatial-filter",
638
+ "c-filter-bar",
639
+ "c-filter-pill",
640
+ "c-combobox",
641
+ "c-map-area"
642
+ ],
643
+ "events": [
644
+ "contour:spatial-filter",
645
+ "contour:filter-change",
646
+ "contour:filter"
647
+ ],
648
+ "tokens": [
649
+ "--color-primary-soft",
650
+ "--color-border"
651
+ ],
652
+ "data": [
653
+ {
654
+ "block": "c-spatial-filter",
655
+ "attr": "bounds",
656
+ "shape": "the drawn/selected area as a bbox or polygon"
657
+ },
658
+ {
659
+ "block": "c-spatial-filter",
660
+ "attr": "mode",
661
+ "shape": "draw | select | pan"
662
+ }
663
+ ],
664
+ "notes": [
665
+ "contour:filter-change carries { source, filter }; the filter bar renders active filters as removable pills."
666
+ ]
667
+ },
668
+ {
669
+ "id": "feature-inspector",
670
+ "task": "Click a map feature to inspect it in a popup and a drawer, with provenance",
671
+ "surface": "data",
672
+ "blocks": [
673
+ "c-feature-inspector",
674
+ "c-map-popup",
675
+ "c-provenance",
676
+ "c-drawer"
677
+ ],
678
+ "events": [
679
+ "contour:select",
680
+ "contour:inspect-action",
681
+ "contour:map-popup-reposition"
682
+ ],
683
+ "tokens": [
684
+ "--color-surface-raised",
685
+ "--z-tooltip"
686
+ ],
687
+ "data": [
688
+ {
689
+ "block": "c-feature-inspector",
690
+ "attr": "data",
691
+ "shape": "the selected feature's properties as a flat object"
692
+ },
693
+ {
694
+ "block": "c-feature-inspector",
695
+ "attr": "open",
696
+ "shape": "boolean; set true to show the inspector (also a boolean attribute)"
697
+ },
698
+ {
699
+ "block": "c-map-popup",
700
+ "attr": "content",
701
+ "shape": "popup body markup for the selected feature"
702
+ }
703
+ ],
704
+ "notes": [
705
+ "contour:select on a map mark carries { index, label }; the popup repositions on contour:map-popup-reposition."
706
+ ]
707
+ },
708
+ {
709
+ "id": "split-compare",
710
+ "task": "Two maps side by side in a resizable split for before/after comparison",
711
+ "surface": "data",
712
+ "blocks": [
713
+ "c-split-map",
714
+ "c-map-area",
715
+ "c-map-area",
716
+ "c-coordinate"
717
+ ],
718
+ "events": [
719
+ "contour:split-change",
720
+ "contour:map-viewport"
721
+ ],
722
+ "tokens": [
723
+ "--color-border",
724
+ "--space-sm"
725
+ ],
726
+ "data": [
727
+ {
728
+ "block": "c-map-area",
729
+ "attr": "controls",
730
+ "shape": "which chrome to mount on each map"
731
+ }
732
+ ],
733
+ "notes": [
734
+ "contour:split-change reports the split ratio; keep both map areas' viewports in sync in consumer code."
735
+ ]
736
+ },
737
+ {
738
+ "id": "bivariate-matrix",
739
+ "task": "A bivariate choropleth matrix with its legend",
740
+ "surface": "data",
741
+ "blocks": [
742
+ "c-bivariate",
743
+ "c-bivariate-legend",
744
+ "c-legend"
745
+ ],
746
+ "events": [
747
+ "contour:select",
748
+ "contour:legend-toggle"
749
+ ],
750
+ "tokens": [
751
+ "--chart-cyc-1",
752
+ "--color-data",
753
+ "--color-surface-1"
754
+ ],
755
+ "data": [
756
+ {
757
+ "block": "c-bivariate",
758
+ "attr": "axis-x",
759
+ "shape": "the x variable's label and domain"
760
+ },
761
+ {
762
+ "block": "c-bivariate",
763
+ "attr": "axis-y",
764
+ "shape": "the y variable's label and domain"
765
+ },
766
+ {
767
+ "block": "c-bivariate",
768
+ "attr": "colors",
769
+ "shape": "the n×n colour matrix for the two variables"
770
+ },
771
+ {
772
+ "block": "c-bivariate",
773
+ "attr": "selected",
774
+ "shape": "the active cell { x, y }"
775
+ }
776
+ ],
777
+ "notes": [
778
+ "c-bivariate encodes two variables into one cell colour; c-bivariate-legend decodes the 3×3 (or n×n) grid."
779
+ ]
780
+ },
781
+ {
782
+ "id": "origin-destination",
783
+ "task": "An origin–destination flow map with an accessible edge table",
784
+ "surface": "data",
785
+ "blocks": [
786
+ "c-flow-map",
787
+ "c-data-grid",
788
+ "c-legend"
789
+ ],
790
+ "events": [
791
+ "contour:select",
792
+ "contour:filter-change"
793
+ ],
794
+ "tokens": [
795
+ "--color-data",
796
+ "--color-border"
797
+ ],
798
+ "data": [
799
+ {
800
+ "block": "c-flow-map",
801
+ "attr": "nodes",
802
+ "shape": "node chips: [{ id, label }]"
803
+ },
804
+ {
805
+ "block": "c-flow-map",
806
+ "attr": "flows",
807
+ "shape": "edges: [{ source, target, magnitude }] — also rendered as an accessible summary table"
808
+ }
809
+ ],
810
+ "notes": [
811
+ "c-flow-map renders node chips and a flows/edges JSON attribute as an accessible summary table; WebGL edge geometry stays consumer-owned."
812
+ ]
813
+ },
814
+ {
815
+ "id": "isochrone-cluster",
816
+ "task": "Isochrone rings and clustered points on a map with a legend",
817
+ "surface": "data",
818
+ "blocks": [
819
+ "c-isochrone",
820
+ "c-cluster",
821
+ "c-legend",
822
+ "c-map-area"
823
+ ],
824
+ "events": [
825
+ "contour:cluster-toggle",
826
+ "contour:select",
827
+ "contour:map-attach"
828
+ ],
829
+ "tokens": [
830
+ "--color-primary-soft",
831
+ "--chart-grid"
832
+ ],
833
+ "data": [
834
+ {
835
+ "block": "c-isochrone",
836
+ "attr": "center",
837
+ "shape": "the origin { lat, lon }"
838
+ },
839
+ {
840
+ "block": "c-isochrone",
841
+ "attr": "rings",
842
+ "shape": "isochrone rings: [{ minutes, polygon }]"
843
+ }
844
+ ],
845
+ "notes": [
846
+ "c-isochrone and c-cluster are accessible hosts: they render item readouts and emit contour:select; rendering stays in the engine."
847
+ ]
848
+ },
849
+ {
850
+ "id": "elevation-profile",
851
+ "task": "An elevation profile with a contour plot and a numeric readout",
852
+ "surface": "data",
853
+ "blocks": [
854
+ "c-elevation",
855
+ "c-contour-plot",
856
+ "c-chart",
857
+ "c-readout"
858
+ ],
859
+ "events": [
860
+ "contour:select",
861
+ "contour:read",
862
+ "contour:map-viewport"
863
+ ],
864
+ "tokens": [
865
+ "--color-data",
866
+ "--chart-grid",
867
+ "--color-surface-1"
868
+ ],
869
+ "data": [
870
+ {
871
+ "block": "c-contour-plot",
872
+ "attr": "values",
873
+ "shape": "the scalar field samples the contours are generated from"
874
+ },
875
+ {
876
+ "block": "c-contour-plot",
877
+ "attr": "levels",
878
+ "shape": "the contour levels to extract"
879
+ }
880
+ ],
881
+ "notes": [
882
+ "Contour lines are generated, never drawn — every contour in the system comes from the field generator."
883
+ ]
884
+ },
885
+ {
886
+ "id": "layer-stack",
887
+ "task": "A layer visibility/reorder panel with a tree and a toolbar",
888
+ "surface": "data",
889
+ "blocks": [
890
+ "c-layer-panel",
891
+ "c-layer-switch",
892
+ "c-tree",
893
+ "c-toolbar"
894
+ ],
895
+ "events": [
896
+ "contour:layer-visibility",
897
+ "contour:layer-toggle",
898
+ "contour:layer-reorder",
899
+ "contour:layer-opacity"
900
+ ],
901
+ "tokens": [
902
+ "--color-surface-1",
903
+ "--color-border",
904
+ "--space-sm"
905
+ ],
906
+ "data": [
907
+ {
908
+ "block": "c-layer-panel",
909
+ "attr": "items",
910
+ "shape": "layer descriptors: [{ id, name, visible }]"
911
+ }
912
+ ],
913
+ "notes": [
914
+ "contour:layer-reorder carries { layerIds } — the full ordered array after the move, not a from/to pair."
915
+ ]
916
+ },
917
+ {
918
+ "id": "map-chrome",
919
+ "task": "The floating map chrome: scale bar, coordinate readout, footer and status",
920
+ "surface": "data",
921
+ "blocks": [
922
+ "c-scale-bar",
923
+ "c-coordinate",
924
+ "c-map-footer",
925
+ "c-provenance",
926
+ "c-status-light"
927
+ ],
928
+ "events": [
929
+ "contour:map-viewport",
930
+ "contour:bearing",
931
+ "contour:zoom"
932
+ ],
933
+ "tokens": [
934
+ "--color-surface-1",
935
+ "--color-border",
936
+ "--z-tooltip"
937
+ ],
938
+ "data": [
939
+ {
940
+ "block": "c-coordinate",
941
+ "attr": "value",
942
+ "shape": "{ lat, lon, zoom }"
943
+ },
944
+ {
945
+ "block": "c-scale-bar",
946
+ "attr": "distance",
947
+ "shape": "the on-screen distance the bar represents"
948
+ },
949
+ {
950
+ "block": "c-scale-bar",
951
+ "attr": "units",
952
+ "shape": "metric | imperial"
953
+ }
954
+ ],
955
+ "notes": [
956
+ "Scale bar and coordinate readout are viewport-responsive; feed them from the attached map's viewport events."
957
+ ]
958
+ }
959
+ ]
960
+ }