@contractspec/example.analytics-dashboard 3.9.8 → 3.9.10

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 (112) hide show
  1. package/dist/browser/dashboard/dashboard.enum.js +1 -34
  2. package/dist/browser/dashboard/dashboard.operation.js +1 -289
  3. package/dist/browser/dashboard/dashboard.presentation.js +1 -200
  4. package/dist/browser/dashboard/dashboard.schema.js +1 -126
  5. package/dist/browser/dashboard/dashboard.test-spec.js +1 -213
  6. package/dist/browser/dashboard/index.js +1 -299
  7. package/dist/browser/dashboard.feature.js +1 -683
  8. package/dist/browser/datasource/posthog-datasource.js +4 -289
  9. package/dist/browser/docs/analytics-dashboard.docblock.js +5 -49
  10. package/dist/browser/docs/index.js +5 -49
  11. package/dist/browser/events.js +1 -81
  12. package/dist/browser/example.js +1 -42
  13. package/dist/browser/handlers/analytics.handlers.js +4 -278
  14. package/dist/browser/handlers/index.js +7 -571
  15. package/dist/browser/handlers/query.handlers.js +4 -294
  16. package/dist/browser/index.js +12 -2317
  17. package/dist/browser/query/index.js +1 -159
  18. package/dist/browser/query/query.enum.js +1 -11
  19. package/dist/browser/query/query.operation.js +1 -154
  20. package/dist/browser/query/query.presentation.js +1 -122
  21. package/dist/browser/query/query.schema.js +1 -70
  22. package/dist/browser/query/query.test-spec.js +1 -113
  23. package/dist/browser/query-engine/index.js +4 -491
  24. package/dist/browser/seeders/index.js +2 -20
  25. package/dist/browser/ui/AnalyticsDashboard.js +1 -1115
  26. package/dist/browser/ui/AnalyticsDashboard.widgets.js +1 -94
  27. package/dist/browser/ui/AnalyticsQueriesTable.js +1 -188
  28. package/dist/browser/ui/hooks/index.js +1 -660
  29. package/dist/browser/ui/hooks/useAnalyticsData.js +1 -657
  30. package/dist/browser/ui/index.js +5 -1283
  31. package/dist/browser/ui/renderers/analytics.markdown.js +5 -756
  32. package/dist/browser/ui/renderers/index.js +5 -756
  33. package/dist/browser/visualizations/catalog.js +1 -457
  34. package/dist/browser/visualizations/index.js +1 -611
  35. package/dist/browser/visualizations/specs.breakdown.js +1 -140
  36. package/dist/browser/visualizations/specs.performance.js +1 -198
  37. package/dist/browser/visualizations/widgets.js +1 -595
  38. package/dist/dashboard/dashboard.enum.js +1 -34
  39. package/dist/dashboard/dashboard.operation.js +1 -289
  40. package/dist/dashboard/dashboard.presentation.js +1 -200
  41. package/dist/dashboard/dashboard.schema.js +1 -126
  42. package/dist/dashboard/dashboard.test-spec.js +1 -213
  43. package/dist/dashboard/index.js +1 -299
  44. package/dist/dashboard.feature.js +1 -683
  45. package/dist/datasource/posthog-datasource.js +4 -289
  46. package/dist/docs/analytics-dashboard.docblock.js +5 -49
  47. package/dist/docs/index.js +5 -49
  48. package/dist/events.js +1 -81
  49. package/dist/example.js +1 -42
  50. package/dist/handlers/analytics.handlers.js +4 -278
  51. package/dist/handlers/index.js +7 -571
  52. package/dist/handlers/query.handlers.js +4 -294
  53. package/dist/index.js +12 -2317
  54. package/dist/node/dashboard/dashboard.enum.js +1 -34
  55. package/dist/node/dashboard/dashboard.operation.js +1 -289
  56. package/dist/node/dashboard/dashboard.presentation.js +1 -200
  57. package/dist/node/dashboard/dashboard.schema.js +1 -126
  58. package/dist/node/dashboard/dashboard.test-spec.js +1 -213
  59. package/dist/node/dashboard/index.js +1 -299
  60. package/dist/node/dashboard.feature.js +1 -683
  61. package/dist/node/datasource/posthog-datasource.js +4 -289
  62. package/dist/node/docs/analytics-dashboard.docblock.js +5 -49
  63. package/dist/node/docs/index.js +5 -49
  64. package/dist/node/events.js +1 -81
  65. package/dist/node/example.js +1 -42
  66. package/dist/node/handlers/analytics.handlers.js +4 -278
  67. package/dist/node/handlers/index.js +7 -571
  68. package/dist/node/handlers/query.handlers.js +4 -294
  69. package/dist/node/index.js +12 -2317
  70. package/dist/node/query/index.js +1 -159
  71. package/dist/node/query/query.enum.js +1 -11
  72. package/dist/node/query/query.operation.js +1 -154
  73. package/dist/node/query/query.presentation.js +1 -122
  74. package/dist/node/query/query.schema.js +1 -70
  75. package/dist/node/query/query.test-spec.js +1 -113
  76. package/dist/node/query-engine/index.js +4 -491
  77. package/dist/node/seeders/index.js +2 -20
  78. package/dist/node/ui/AnalyticsDashboard.js +1 -1115
  79. package/dist/node/ui/AnalyticsDashboard.widgets.js +1 -94
  80. package/dist/node/ui/AnalyticsQueriesTable.js +1 -188
  81. package/dist/node/ui/hooks/index.js +1 -660
  82. package/dist/node/ui/hooks/useAnalyticsData.js +1 -657
  83. package/dist/node/ui/index.js +5 -1283
  84. package/dist/node/ui/renderers/analytics.markdown.js +5 -756
  85. package/dist/node/ui/renderers/index.js +5 -756
  86. package/dist/node/visualizations/catalog.js +1 -457
  87. package/dist/node/visualizations/index.js +1 -611
  88. package/dist/node/visualizations/specs.breakdown.js +1 -140
  89. package/dist/node/visualizations/specs.performance.js +1 -198
  90. package/dist/node/visualizations/widgets.js +1 -595
  91. package/dist/query/index.js +1 -159
  92. package/dist/query/query.enum.js +1 -11
  93. package/dist/query/query.operation.js +1 -154
  94. package/dist/query/query.presentation.js +1 -122
  95. package/dist/query/query.schema.js +1 -70
  96. package/dist/query/query.test-spec.js +1 -113
  97. package/dist/query-engine/index.js +4 -491
  98. package/dist/seeders/index.js +2 -20
  99. package/dist/ui/AnalyticsDashboard.js +1 -1115
  100. package/dist/ui/AnalyticsDashboard.widgets.js +1 -94
  101. package/dist/ui/AnalyticsQueriesTable.js +1 -188
  102. package/dist/ui/hooks/index.js +1 -660
  103. package/dist/ui/hooks/useAnalyticsData.js +1 -657
  104. package/dist/ui/index.js +5 -1283
  105. package/dist/ui/renderers/analytics.markdown.js +5 -756
  106. package/dist/ui/renderers/index.js +5 -756
  107. package/dist/visualizations/catalog.js +1 -457
  108. package/dist/visualizations/index.js +1 -611
  109. package/dist/visualizations/specs.breakdown.js +1 -140
  110. package/dist/visualizations/specs.performance.js +1 -198
  111. package/dist/visualizations/widgets.js +1 -595
  112. package/package.json +13 -13
@@ -1,683 +1 @@
1
- // src/visualizations/specs.breakdown.ts
2
- import { defineVisualization } from "@contractspec/lib.contracts-spec/visualizations";
3
- var QUERY_REF = { key: "analytics.query.execute", version: "1.0.0" };
4
- var META = {
5
- version: "1.0.0",
6
- domain: "analytics",
7
- stability: "experimental",
8
- owners: ["@example.analytics-dashboard"],
9
- tags: ["analytics", "dashboard", "visualization"]
10
- };
11
- var ChannelMixVisualization = defineVisualization({
12
- meta: {
13
- ...META,
14
- key: "analytics.visualization.channel-mix",
15
- title: "Channel Mix",
16
- description: "Session distribution across acquisition channels.",
17
- goal: "Explain which channels currently drive the largest share of traffic.",
18
- context: "Marketing attribution dashboard."
19
- },
20
- source: { primary: QUERY_REF, resultPath: "data" },
21
- visualization: {
22
- kind: "pie",
23
- nameDimension: "channel",
24
- valueMeasure: "sessions",
25
- dimensions: [
26
- {
27
- key: "channel",
28
- label: "Channel",
29
- dataPath: "channel",
30
- type: "category"
31
- }
32
- ],
33
- measures: [{ key: "sessions", label: "Sessions", dataPath: "sessions" }],
34
- table: { caption: "Sessions by acquisition channel." }
35
- }
36
- });
37
- var EngagementHeatmapVisualization = defineVisualization({
38
- meta: {
39
- ...META,
40
- key: "analytics.visualization.engagement-heatmap",
41
- title: "Engagement Heatmap",
42
- description: "Average engagement score by weekday and time band.",
43
- goal: "Reveal the highest-engagement time windows for product activity.",
44
- context: "Usage analytics dashboard."
45
- },
46
- source: { primary: QUERY_REF, resultPath: "data" },
47
- visualization: {
48
- kind: "heatmap",
49
- xDimension: "timeBand",
50
- yDimension: "weekday",
51
- valueMeasure: "engagementScore",
52
- dimensions: [
53
- {
54
- key: "timeBand",
55
- label: "Time Band",
56
- dataPath: "timeBand",
57
- type: "category"
58
- },
59
- {
60
- key: "weekday",
61
- label: "Weekday",
62
- dataPath: "weekday",
63
- type: "category"
64
- }
65
- ],
66
- measures: [
67
- {
68
- key: "engagementScore",
69
- label: "Engagement",
70
- dataPath: "engagementScore"
71
- }
72
- ],
73
- table: { caption: "Engagement score by weekday and time band." }
74
- }
75
- });
76
- var ConversionFunnelVisualization = defineVisualization({
77
- meta: {
78
- ...META,
79
- key: "analytics.visualization.conversion-funnel",
80
- title: "Conversion Funnel",
81
- description: "Progression through the main acquisition funnel.",
82
- goal: "Show where the product is losing the largest share of prospects.",
83
- context: "Growth dashboard."
84
- },
85
- source: { primary: QUERY_REF, resultPath: "data" },
86
- visualization: {
87
- kind: "funnel",
88
- nameDimension: "stage",
89
- valueMeasure: "users",
90
- sort: "descending",
91
- dimensions: [
92
- { key: "stage", label: "Stage", dataPath: "stage", type: "category" }
93
- ],
94
- measures: [{ key: "users", label: "Users", dataPath: "users" }],
95
- table: { caption: "Users per conversion stage." }
96
- }
97
- });
98
- var AccountCoverageGeoVisualization = defineVisualization({
99
- meta: {
100
- ...META,
101
- key: "analytics.visualization.account-coverage-geo",
102
- title: "Account Coverage",
103
- description: "High-value accounts plotted on a slippy-map surface.",
104
- goal: "Locate where active commercial concentration is strongest.",
105
- context: "Territory coverage dashboard."
106
- },
107
- source: { primary: QUERY_REF, resultPath: "data" },
108
- visualization: {
109
- kind: "geo",
110
- mode: "slippy-map",
111
- variant: "scatter",
112
- nameDimension: "city",
113
- latitudeDimension: "latitude",
114
- longitudeDimension: "longitude",
115
- valueMeasure: "accounts",
116
- dimensions: [
117
- { key: "city", label: "City", dataPath: "city", type: "category" },
118
- {
119
- key: "latitude",
120
- label: "Latitude",
121
- dataPath: "latitude",
122
- type: "latitude"
123
- },
124
- {
125
- key: "longitude",
126
- label: "Longitude",
127
- dataPath: "longitude",
128
- type: "longitude"
129
- }
130
- ],
131
- measures: [{ key: "accounts", label: "Accounts", dataPath: "accounts" }],
132
- table: { caption: "Account concentration by city." }
133
- }
134
- });
135
-
136
- // src/visualizations/specs.performance.ts
137
- import { defineVisualization as defineVisualization2 } from "@contractspec/lib.contracts-spec/visualizations";
138
- var QUERY_REF2 = { key: "analytics.query.execute", version: "1.0.0" };
139
- var META2 = {
140
- version: "1.0.0",
141
- domain: "analytics",
142
- stability: "experimental",
143
- owners: ["@example.analytics-dashboard"],
144
- tags: ["analytics", "dashboard", "visualization"]
145
- };
146
- var RevenueMetricVisualization = defineVisualization2({
147
- meta: {
148
- ...META2,
149
- key: "analytics.visualization.revenue-metric",
150
- title: "Revenue Snapshot",
151
- description: "Current recurring revenue with prior-period comparison.",
152
- goal: "Highlight the headline commercial metric for the dashboard.",
153
- context: "Executive revenue overview."
154
- },
155
- source: { primary: QUERY_REF2, resultPath: "data" },
156
- visualization: {
157
- kind: "metric",
158
- measure: "totalRevenue",
159
- comparisonMeasure: "priorRevenue",
160
- dimensions: [
161
- { key: "period", label: "Period", dataPath: "period", type: "time" }
162
- ],
163
- measures: [
164
- {
165
- key: "totalRevenue",
166
- label: "Revenue",
167
- dataPath: "totalRevenue",
168
- format: "currency"
169
- },
170
- {
171
- key: "priorRevenue",
172
- label: "Prior Revenue",
173
- dataPath: "priorRevenue",
174
- format: "currency"
175
- }
176
- ],
177
- sparkline: { dimension: "period", measure: "totalRevenue" },
178
- table: { caption: "Revenue trend and prior period values." }
179
- }
180
- });
181
- var RevenueTrendVisualization = defineVisualization2({
182
- meta: {
183
- ...META2,
184
- key: "analytics.visualization.revenue-trend",
185
- title: "Revenue Trend",
186
- description: "Monthly revenue progression for the current quarter.",
187
- goal: "Track whether revenue growth is accelerating or stalling.",
188
- context: "Quarterly commercial dashboard."
189
- },
190
- source: { primary: QUERY_REF2, resultPath: "data" },
191
- visualization: {
192
- kind: "cartesian",
193
- variant: "line",
194
- xDimension: "date",
195
- yMeasures: ["revenue"],
196
- dimensions: [
197
- { key: "date", label: "Month", dataPath: "date", type: "time" }
198
- ],
199
- measures: [
200
- {
201
- key: "revenue",
202
- label: "Revenue",
203
- dataPath: "revenue",
204
- format: "currency",
205
- color: "#0f766e"
206
- }
207
- ],
208
- thresholds: [
209
- { key: "target", value: 140000, label: "Target", color: "#dc2626" }
210
- ],
211
- table: { caption: "Monthly revenue values." }
212
- }
213
- });
214
- var RegionalRevenueVisualization = defineVisualization2({
215
- meta: {
216
- ...META2,
217
- key: "analytics.visualization.regional-revenue",
218
- title: "Regional Revenue",
219
- description: "Revenue split by sales territory.",
220
- goal: "Compare the strongest and weakest performing territories.",
221
- context: "Territory planning and commercial comparison."
222
- },
223
- source: { primary: QUERY_REF2, resultPath: "data" },
224
- visualization: {
225
- kind: "cartesian",
226
- variant: "bar",
227
- xDimension: "region",
228
- yMeasures: ["revenue"],
229
- dimensions: [
230
- { key: "region", label: "Region", dataPath: "region", type: "category" }
231
- ],
232
- measures: [
233
- {
234
- key: "revenue",
235
- label: "Revenue",
236
- dataPath: "revenue",
237
- format: "currency",
238
- color: "#1d4ed8"
239
- }
240
- ],
241
- table: { caption: "Revenue by region." }
242
- }
243
- });
244
- var RetentionAreaVisualization = defineVisualization2({
245
- meta: {
246
- ...META2,
247
- key: "analytics.visualization.retention-area",
248
- title: "Retention Curve",
249
- description: "Weekly retention progression across the active cohort.",
250
- goal: "Show whether user retention remains above the desired floor.",
251
- context: "Product health dashboard."
252
- },
253
- source: { primary: QUERY_REF2, resultPath: "data" },
254
- visualization: {
255
- kind: "cartesian",
256
- variant: "area",
257
- xDimension: "week",
258
- yMeasures: ["retentionRate"],
259
- dimensions: [
260
- { key: "week", label: "Week", dataPath: "week", type: "category" }
261
- ],
262
- measures: [
263
- {
264
- key: "retentionRate",
265
- label: "Retention",
266
- dataPath: "retentionRate",
267
- format: "percentage",
268
- color: "#16a34a"
269
- }
270
- ],
271
- thresholds: [
272
- { key: "floor", value: 0.5, label: "Floor", color: "#f59e0b" }
273
- ],
274
- table: { caption: "Weekly retention rate." }
275
- }
276
- });
277
- var PipelineScatterVisualization = defineVisualization2({
278
- meta: {
279
- ...META2,
280
- key: "analytics.visualization.pipeline-scatter",
281
- title: "Pipeline Velocity",
282
- description: "Deal-cycle length against win rate for active accounts.",
283
- goal: "Spot outliers where the sales cycle is long but conversion remains weak.",
284
- context: "Commercial operations dashboard."
285
- },
286
- source: { primary: QUERY_REF2, resultPath: "data" },
287
- visualization: {
288
- kind: "cartesian",
289
- variant: "scatter",
290
- xDimension: "cycleDays",
291
- yMeasures: ["winRate"],
292
- dimensions: [
293
- {
294
- key: "cycleDays",
295
- label: "Cycle Days",
296
- dataPath: "cycleDays",
297
- type: "number"
298
- }
299
- ],
300
- measures: [
301
- {
302
- key: "winRate",
303
- label: "Win Rate",
304
- dataPath: "winRate",
305
- format: "percentage",
306
- color: "#7c3aed"
307
- },
308
- {
309
- key: "arr",
310
- label: "ARR",
311
- dataPath: "arr",
312
- format: "currency"
313
- }
314
- ],
315
- series: [
316
- {
317
- key: "pipeline",
318
- label: "Accounts",
319
- measure: "winRate",
320
- type: "scatter",
321
- color: "#7c3aed"
322
- }
323
- ],
324
- table: { caption: "Sales cycle and win rate per account." }
325
- }
326
- });
327
-
328
- // src/visualizations/catalog.ts
329
- import { VisualizationRegistry } from "@contractspec/lib.contracts-spec/visualizations";
330
- var AnalyticsVisualizationSpecs = [
331
- RevenueMetricVisualization,
332
- RevenueTrendVisualization,
333
- RegionalRevenueVisualization,
334
- RetentionAreaVisualization,
335
- PipelineScatterVisualization,
336
- ChannelMixVisualization,
337
- EngagementHeatmapVisualization,
338
- ConversionFunnelVisualization,
339
- AccountCoverageGeoVisualization
340
- ];
341
- var AnalyticsVisualizationRegistry = new VisualizationRegistry([
342
- ...AnalyticsVisualizationSpecs
343
- ]);
344
- var AnalyticsVisualizationRefs = AnalyticsVisualizationSpecs.map((spec) => refOf(spec));
345
- var AnalyticsVisualizationSpecMap = new Map(AnalyticsVisualizationSpecs.map((spec) => [
346
- visualizationRefKey(spec.meta),
347
- spec
348
- ]));
349
- var AnalyticsVisualizationSampleData = {
350
- [visualizationRefKey(RevenueMetricVisualization.meta)]: {
351
- data: [
352
- { period: "2025-11-01", totalRevenue: 112000, priorRevenue: 103000 },
353
- { period: "2025-12-01", totalRevenue: 119000, priorRevenue: 110000 },
354
- { period: "2026-01-01", totalRevenue: 126500, priorRevenue: 116000 },
355
- { period: "2026-02-01", totalRevenue: 133000, priorRevenue: 124000 },
356
- { period: "2026-03-01", totalRevenue: 145500, priorRevenue: 133000 }
357
- ]
358
- },
359
- [visualizationRefKey(RevenueTrendVisualization.meta)]: {
360
- data: [
361
- { date: "2025-11-01", revenue: 112000 },
362
- { date: "2025-12-01", revenue: 119000 },
363
- { date: "2026-01-01", revenue: 126500 },
364
- { date: "2026-02-01", revenue: 133000 },
365
- { date: "2026-03-01", revenue: 145500 }
366
- ]
367
- },
368
- [visualizationRefKey(RegionalRevenueVisualization.meta)]: {
369
- data: [
370
- { region: "North America", revenue: 210000 },
371
- { region: "EMEA", revenue: 174000 },
372
- { region: "APAC", revenue: 132000 },
373
- { region: "LATAM", revenue: 88000 }
374
- ]
375
- },
376
- [visualizationRefKey(RetentionAreaVisualization.meta)]: {
377
- data: [
378
- { week: "Week 1", retentionRate: 0.71 },
379
- { week: "Week 2", retentionRate: 0.66 },
380
- { week: "Week 3", retentionRate: 0.62 },
381
- { week: "Week 4", retentionRate: 0.58 },
382
- { week: "Week 5", retentionRate: 0.55 },
383
- { week: "Week 6", retentionRate: 0.53 }
384
- ]
385
- },
386
- [visualizationRefKey(PipelineScatterVisualization.meta)]: {
387
- data: [
388
- { cycleDays: 18, winRate: 0.31, arr: 82000 },
389
- { cycleDays: 26, winRate: 0.44, arr: 65000 },
390
- { cycleDays: 33, winRate: 0.27, arr: 91000 },
391
- { cycleDays: 14, winRate: 0.56, arr: 47000 },
392
- { cycleDays: 21, winRate: 0.48, arr: 59000 },
393
- { cycleDays: 39, winRate: 0.22, arr: 114000 }
394
- ]
395
- },
396
- [visualizationRefKey(ChannelMixVisualization.meta)]: {
397
- data: [
398
- { channel: "Direct", sessions: 4200 },
399
- { channel: "Organic Search", sessions: 3600 },
400
- { channel: "Paid Search", sessions: 2100 },
401
- { channel: "Partner", sessions: 1400 },
402
- { channel: "Referral", sessions: 900 }
403
- ]
404
- },
405
- [visualizationRefKey(EngagementHeatmapVisualization.meta)]: {
406
- data: [
407
- { weekday: "Mon", timeBand: "09:00", engagementScore: 74 },
408
- { weekday: "Mon", timeBand: "13:00", engagementScore: 82 },
409
- { weekday: "Tue", timeBand: "09:00", engagementScore: 69 },
410
- { weekday: "Tue", timeBand: "13:00", engagementScore: 88 },
411
- { weekday: "Wed", timeBand: "09:00", engagementScore: 77 },
412
- { weekday: "Wed", timeBand: "13:00", engagementScore: 91 },
413
- { weekday: "Thu", timeBand: "09:00", engagementScore: 72 },
414
- { weekday: "Thu", timeBand: "13:00", engagementScore: 86 },
415
- { weekday: "Fri", timeBand: "09:00", engagementScore: 65 },
416
- { weekday: "Fri", timeBand: "13:00", engagementScore: 79 }
417
- ]
418
- },
419
- [visualizationRefKey(ConversionFunnelVisualization.meta)]: {
420
- data: [
421
- { stage: "Visited Site", users: 12000 },
422
- { stage: "Started Trial", users: 4200 },
423
- { stage: "Activated Workspace", users: 2400 },
424
- { stage: "Requested Demo", users: 980 },
425
- { stage: "Closed Won", users: 310 }
426
- ]
427
- },
428
- [visualizationRefKey(AccountCoverageGeoVisualization.meta)]: {
429
- data: [
430
- { city: "Paris", latitude: 48.8566, longitude: 2.3522, accounts: 48 },
431
- { city: "London", latitude: 51.5072, longitude: -0.1276, accounts: 62 },
432
- { city: "New York", latitude: 40.7128, longitude: -74.006, accounts: 71 },
433
- { city: "Toronto", latitude: 43.6532, longitude: -79.3832, accounts: 36 },
434
- {
435
- city: "Singapore",
436
- latitude: 1.3521,
437
- longitude: 103.8198,
438
- accounts: 29
439
- }
440
- ]
441
- }
442
- };
443
- function refOf(spec) {
444
- return { key: spec.meta.key, version: spec.meta.version };
445
- }
446
- function visualizationRefKey(ref) {
447
- return `${ref.key}.v${ref.version}`;
448
- }
449
-
450
- // src/visualizations/widgets.ts
451
- var LEGACY_VISUALIZATION_REFS = {
452
- METRIC: refOf(RevenueMetricVisualization),
453
- LINE_CHART: refOf(RevenueTrendVisualization),
454
- BAR_CHART: refOf(RegionalRevenueVisualization),
455
- AREA_CHART: refOf(RetentionAreaVisualization),
456
- SCATTER_PLOT: refOf(PipelineScatterVisualization),
457
- PIE_CHART: refOf(ChannelMixVisualization),
458
- HEATMAP: refOf(EngagementHeatmapVisualization),
459
- FUNNEL: refOf(ConversionFunnelVisualization),
460
- MAP: refOf(AccountCoverageGeoVisualization)
461
- };
462
- function createExampleWidgets(dashboardId) {
463
- return [
464
- widget(dashboardId, "widget_revenue_metric", "Revenue Snapshot", "METRIC", 0, 0, 4, 2, {
465
- layout: "single",
466
- bindings: [binding(RevenueMetricVisualization, 200)]
467
- }),
468
- widget(dashboardId, "widget_revenue_trend", "Revenue Trend", "LINE_CHART", 4, 0, 8, 4, {
469
- layout: "single",
470
- bindings: [binding(RevenueTrendVisualization)]
471
- }),
472
- widget(dashboardId, "widget_regional_revenue", "Regional Revenue", "BAR_CHART", 0, 2, 6, 4, {
473
- layout: "single",
474
- bindings: [binding(RegionalRevenueVisualization)]
475
- }),
476
- widget(dashboardId, "widget_channel_mix", "Channel Mix", "PIE_CHART", 6, 2, 6, 4, {
477
- layout: "single",
478
- bindings: [binding(ChannelMixVisualization)]
479
- }),
480
- widget(dashboardId, "widget_retention", "Retention Curve", "AREA_CHART", 0, 6, 6, 4, {
481
- layout: "single",
482
- bindings: [binding(RetentionAreaVisualization)]
483
- }),
484
- widget(dashboardId, "widget_pipeline", "Pipeline Velocity", "SCATTER_PLOT", 6, 6, 6, 4, {
485
- layout: "single",
486
- bindings: [binding(PipelineScatterVisualization)]
487
- }),
488
- widget(dashboardId, "widget_heatmap", "Engagement Heatmap", "HEATMAP", 0, 10, 8, 4, {
489
- layout: "single",
490
- bindings: [binding(EngagementHeatmapVisualization)]
491
- }),
492
- widget(dashboardId, "widget_funnel", "Conversion Funnel", "FUNNEL", 8, 10, 4, 4, {
493
- layout: "single",
494
- bindings: [binding(ConversionFunnelVisualization)]
495
- }),
496
- widget(dashboardId, "widget_geo", "Account Coverage", "MAP", 0, 14, 12, 5, {
497
- layout: "single",
498
- bindings: [binding(AccountCoverageGeoVisualization, 360)]
499
- }),
500
- widget(dashboardId, "widget_comparison", "Commercial Comparison", "EMBED", 0, 19, 12, 6, {
501
- layout: "comparison",
502
- description: "Compare regional distribution, channel balance, and funnel shape.",
503
- bindings: [
504
- binding(RegionalRevenueVisualization, 240),
505
- binding(ChannelMixVisualization, 240),
506
- binding(ConversionFunnelVisualization, 240)
507
- ]
508
- }),
509
- widget(dashboardId, "widget_timeline", "Growth Timeline", "EMBED", 0, 25, 12, 6, {
510
- layout: "timeline",
511
- description: "Track revenue and retention over the same reporting cadence.",
512
- bindings: [
513
- binding(RevenueTrendVisualization, 220),
514
- binding(RetentionAreaVisualization, 220)
515
- ]
516
- })
517
- ];
518
- }
519
- function resolveAnalyticsWidget(widget) {
520
- const config = parseWidgetConfig(widget);
521
- const bindings = config.bindings.map((binding) => {
522
- const spec = AnalyticsVisualizationSpecMap.get(visualizationRefKey(binding.ref));
523
- if (!spec)
524
- return null;
525
- return {
526
- key: `${widget.id}:${visualizationRefKey(binding.ref)}`,
527
- spec,
528
- data: binding.data,
529
- title: binding.title ?? spec.meta.title,
530
- description: binding.description ?? spec.meta.description,
531
- height: binding.height
532
- };
533
- }).filter((binding) => Boolean(binding));
534
- if (!bindings.length)
535
- return null;
536
- return {
537
- id: widget.id,
538
- name: widget.name,
539
- description: config.description,
540
- layout: config.layout,
541
- gridX: widget.gridX,
542
- gridY: widget.gridY,
543
- gridWidth: widget.gridWidth,
544
- gridHeight: widget.gridHeight,
545
- bindings
546
- };
547
- }
548
- function parseWidgetConfig(widget) {
549
- if (isAnalyticsWidgetConfig(widget.config)) {
550
- return widget.config;
551
- }
552
- const legacyRef = LEGACY_VISUALIZATION_REFS[widget.type];
553
- return legacyRef ? {
554
- layout: "single",
555
- bindings: [
556
- {
557
- ref: legacyRef,
558
- data: AnalyticsVisualizationSampleData[visualizationRefKey(legacyRef)]
559
- }
560
- ]
561
- } : { layout: "single", bindings: [] };
562
- }
563
- function binding(spec, height = 280) {
564
- return {
565
- ref: refOf(spec),
566
- data: AnalyticsVisualizationSampleData[visualizationRefKey(spec.meta)],
567
- height
568
- };
569
- }
570
- function widget(dashboardId, id, name, type, gridX, gridY, gridWidth, gridHeight, config) {
571
- const now = new Date;
572
- return {
573
- id,
574
- dashboardId,
575
- name,
576
- type,
577
- gridX,
578
- gridY,
579
- gridWidth,
580
- gridHeight,
581
- config,
582
- createdAt: now,
583
- updatedAt: now
584
- };
585
- }
586
- function isAnalyticsWidgetConfig(value) {
587
- if (!value || typeof value !== "object")
588
- return false;
589
- const candidate = value;
590
- return (candidate.layout === "single" || candidate.layout === "comparison" || candidate.layout === "timeline") && Array.isArray(candidate.bindings);
591
- }
592
- // src/dashboard.feature.ts
593
- import { defineFeature } from "@contractspec/lib.contracts-spec";
594
- var AnalyticsDashboardFeature = defineFeature({
595
- meta: {
596
- key: "analytics-dashboard",
597
- version: "1.0.0",
598
- title: "Analytics Dashboard",
599
- description: "Analytics dashboards with customizable widgets and queries",
600
- domain: "analytics",
601
- owners: ["@analytics-dashboard"],
602
- tags: ["analytics", "dashboards", "widgets", "queries"],
603
- stability: "experimental"
604
- },
605
- operations: [
606
- { key: "analytics.dashboard.create", version: "1.0.0" },
607
- { key: "analytics.dashboard.list", version: "1.0.0" },
608
- { key: "analytics.dashboard.get", version: "1.0.0" },
609
- { key: "analytics.widget.add", version: "1.0.0" },
610
- { key: "analytics.query.create", version: "1.0.0" },
611
- { key: "analytics.query.execute", version: "1.0.0" }
612
- ],
613
- events: [
614
- { key: "analytics.dashboard.created", version: "1.0.0" },
615
- { key: "analytics.widget.added", version: "1.0.0" },
616
- { key: "analytics.query.created", version: "1.0.0" }
617
- ],
618
- presentations: [
619
- { key: "analytics.dashboard.viewList", version: "1.0.0" },
620
- { key: "analytics.dashboard.view", version: "1.0.0" },
621
- { key: "analytics.dashboard.editor", version: "1.0.0" },
622
- { key: "analytics.query.list", version: "1.0.0" },
623
- { key: "analytics.query.builder", version: "1.0.0" }
624
- ],
625
- visualizations: [...AnalyticsVisualizationRefs],
626
- opToPresentation: [
627
- {
628
- op: { key: "analytics.dashboard.list", version: "1.0.0" },
629
- pres: { key: "analytics.dashboard.viewList", version: "1.0.0" }
630
- },
631
- {
632
- op: { key: "analytics.dashboard.get", version: "1.0.0" },
633
- pres: { key: "analytics.dashboard.view", version: "1.0.0" }
634
- },
635
- {
636
- op: { key: "analytics.dashboard.create", version: "1.0.0" },
637
- pres: { key: "analytics.dashboard.editor", version: "1.0.0" }
638
- },
639
- {
640
- op: { key: "analytics.query.create", version: "1.0.0" },
641
- pres: { key: "analytics.query.builder", version: "1.0.0" }
642
- }
643
- ],
644
- presentationsTargets: [
645
- {
646
- key: "analytics.dashboard.viewList",
647
- version: "1.0.0",
648
- targets: ["react", "markdown", "application/json"]
649
- },
650
- {
651
- key: "analytics.dashboard.view",
652
- version: "1.0.0",
653
- targets: ["react", "markdown"]
654
- },
655
- {
656
- key: "analytics.dashboard.editor",
657
- version: "1.0.0",
658
- targets: ["react"]
659
- },
660
- {
661
- key: "analytics.query.builder",
662
- version: "1.0.0",
663
- targets: ["react"]
664
- }
665
- ],
666
- capabilities: {
667
- requires: [
668
- { key: "identity", version: "1.0.0" },
669
- { key: "metering", version: "1.0.0" },
670
- { key: "audit-trail", version: "1.0.0" }
671
- ]
672
- },
673
- telemetry: [{ key: "analytics-dashboard.telemetry", version: "1.0.0" }],
674
- docs: [
675
- "docs.examples.analytics-dashboard",
676
- "docs.examples.analytics-dashboard.goal",
677
- "docs.examples.analytics-dashboard.usage",
678
- "docs.examples.analytics-dashboard.constraints"
679
- ]
680
- });
681
- export {
682
- AnalyticsDashboardFeature
683
- };
1
+ import{defineVisualization as O}from"@contractspec/lib.contracts-spec/visualizations";var _={key:"analytics.query.execute",version:"1.0.0"},C={version:"1.0.0",domain:"analytics",stability:"experimental",owners:["@example.analytics-dashboard"],tags:["analytics","dashboard","visualization"]},m=O({meta:{...C,key:"analytics.visualization.channel-mix",title:"Channel Mix",description:"Session distribution across acquisition channels.",goal:"Explain which channels currently drive the largest share of traffic.",context:"Marketing attribution dashboard."},source:{primary:_,resultPath:"data"},visualization:{kind:"pie",nameDimension:"channel",valueMeasure:"sessions",dimensions:[{key:"channel",label:"Channel",dataPath:"channel",type:"category"}],measures:[{key:"sessions",label:"Sessions",dataPath:"sessions"}],table:{caption:"Sessions by acquisition channel."}}}),G=O({meta:{...C,key:"analytics.visualization.engagement-heatmap",title:"Engagement Heatmap",description:"Average engagement score by weekday and time band.",goal:"Reveal the highest-engagement time windows for product activity.",context:"Usage analytics dashboard."},source:{primary:_,resultPath:"data"},visualization:{kind:"heatmap",xDimension:"timeBand",yDimension:"weekday",valueMeasure:"engagementScore",dimensions:[{key:"timeBand",label:"Time Band",dataPath:"timeBand",type:"category"},{key:"weekday",label:"Weekday",dataPath:"weekday",type:"category"}],measures:[{key:"engagementScore",label:"Engagement",dataPath:"engagementScore"}],table:{caption:"Engagement score by weekday and time band."}}}),D=O({meta:{...C,key:"analytics.visualization.conversion-funnel",title:"Conversion Funnel",description:"Progression through the main acquisition funnel.",goal:"Show where the product is losing the largest share of prospects.",context:"Growth dashboard."},source:{primary:_,resultPath:"data"},visualization:{kind:"funnel",nameDimension:"stage",valueMeasure:"users",sort:"descending",dimensions:[{key:"stage",label:"Stage",dataPath:"stage",type:"category"}],measures:[{key:"users",label:"Users",dataPath:"users"}],table:{caption:"Users per conversion stage."}}}),L=O({meta:{...C,key:"analytics.visualization.account-coverage-geo",title:"Account Coverage",description:"High-value accounts plotted on a slippy-map surface.",goal:"Locate where active commercial concentration is strongest.",context:"Territory coverage dashboard."},source:{primary:_,resultPath:"data"},visualization:{kind:"geo",mode:"slippy-map",variant:"scatter",nameDimension:"city",latitudeDimension:"latitude",longitudeDimension:"longitude",valueMeasure:"accounts",dimensions:[{key:"city",label:"City",dataPath:"city",type:"category"},{key:"latitude",label:"Latitude",dataPath:"latitude",type:"latitude"},{key:"longitude",label:"Longitude",dataPath:"longitude",type:"longitude"}],measures:[{key:"accounts",label:"Accounts",dataPath:"accounts"}],table:{caption:"Account concentration by city."}}});import{defineVisualization as S}from"@contractspec/lib.contracts-spec/visualizations";var K={key:"analytics.query.execute",version:"1.0.0"},Q={version:"1.0.0",domain:"analytics",stability:"experimental",owners:["@example.analytics-dashboard"],tags:["analytics","dashboard","visualization"]},X=S({meta:{...Q,key:"analytics.visualization.revenue-metric",title:"Revenue Snapshot",description:"Current recurring revenue with prior-period comparison.",goal:"Highlight the headline commercial metric for the dashboard.",context:"Executive revenue overview."},source:{primary:K,resultPath:"data"},visualization:{kind:"metric",measure:"totalRevenue",comparisonMeasure:"priorRevenue",dimensions:[{key:"period",label:"Period",dataPath:"period",type:"time"}],measures:[{key:"totalRevenue",label:"Revenue",dataPath:"totalRevenue",format:"currency"},{key:"priorRevenue",label:"Prior Revenue",dataPath:"priorRevenue",format:"currency"}],sparkline:{dimension:"period",measure:"totalRevenue"},table:{caption:"Revenue trend and prior period values."}}}),N=S({meta:{...Q,key:"analytics.visualization.revenue-trend",title:"Revenue Trend",description:"Monthly revenue progression for the current quarter.",goal:"Track whether revenue growth is accelerating or stalling.",context:"Quarterly commercial dashboard."},source:{primary:K,resultPath:"data"},visualization:{kind:"cartesian",variant:"line",xDimension:"date",yMeasures:["revenue"],dimensions:[{key:"date",label:"Month",dataPath:"date",type:"time"}],measures:[{key:"revenue",label:"Revenue",dataPath:"revenue",format:"currency",color:"#0f766e"}],thresholds:[{key:"target",value:140000,label:"Target",color:"#dc2626"}],table:{caption:"Monthly revenue values."}}}),W=S({meta:{...Q,key:"analytics.visualization.regional-revenue",title:"Regional Revenue",description:"Revenue split by sales territory.",goal:"Compare the strongest and weakest performing territories.",context:"Territory planning and commercial comparison."},source:{primary:K,resultPath:"data"},visualization:{kind:"cartesian",variant:"bar",xDimension:"region",yMeasures:["revenue"],dimensions:[{key:"region",label:"Region",dataPath:"region",type:"category"}],measures:[{key:"revenue",label:"Revenue",dataPath:"revenue",format:"currency",color:"#1d4ed8"}],table:{caption:"Revenue by region."}}}),Z=S({meta:{...Q,key:"analytics.visualization.retention-area",title:"Retention Curve",description:"Weekly retention progression across the active cohort.",goal:"Show whether user retention remains above the desired floor.",context:"Product health dashboard."},source:{primary:K,resultPath:"data"},visualization:{kind:"cartesian",variant:"area",xDimension:"week",yMeasures:["retentionRate"],dimensions:[{key:"week",label:"Week",dataPath:"week",type:"category"}],measures:[{key:"retentionRate",label:"Retention",dataPath:"retentionRate",format:"percentage",color:"#16a34a"}],thresholds:[{key:"floor",value:0.5,label:"Floor",color:"#f59e0b"}],table:{caption:"Weekly retention rate."}}}),H=S({meta:{...Q,key:"analytics.visualization.pipeline-scatter",title:"Pipeline Velocity",description:"Deal-cycle length against win rate for active accounts.",goal:"Spot outliers where the sales cycle is long but conversion remains weak.",context:"Commercial operations dashboard."},source:{primary:K,resultPath:"data"},visualization:{kind:"cartesian",variant:"scatter",xDimension:"cycleDays",yMeasures:["winRate"],dimensions:[{key:"cycleDays",label:"Cycle Days",dataPath:"cycleDays",type:"number"}],measures:[{key:"winRate",label:"Win Rate",dataPath:"winRate",format:"percentage",color:"#7c3aed"},{key:"arr",label:"ARR",dataPath:"arr",format:"currency"}],series:[{key:"pipeline",label:"Accounts",measure:"winRate",type:"scatter",color:"#7c3aed"}],table:{caption:"Sales cycle and win rate per account."}}});import{VisualizationRegistry as p}from"@contractspec/lib.contracts-spec/visualizations";var Y=[X,N,W,Z,H,m,G,D,L],v=new p([...Y]),T=Y.map((x)=>J(x)),A=new Map(Y.map((x)=>[q(x.meta),x])),y={[q(X.meta)]:{data:[{period:"2025-11-01",totalRevenue:112000,priorRevenue:103000},{period:"2025-12-01",totalRevenue:119000,priorRevenue:110000},{period:"2026-01-01",totalRevenue:126500,priorRevenue:116000},{period:"2026-02-01",totalRevenue:133000,priorRevenue:124000},{period:"2026-03-01",totalRevenue:145500,priorRevenue:133000}]},[q(N.meta)]:{data:[{date:"2025-11-01",revenue:112000},{date:"2025-12-01",revenue:119000},{date:"2026-01-01",revenue:126500},{date:"2026-02-01",revenue:133000},{date:"2026-03-01",revenue:145500}]},[q(W.meta)]:{data:[{region:"North America",revenue:210000},{region:"EMEA",revenue:174000},{region:"APAC",revenue:132000},{region:"LATAM",revenue:88000}]},[q(Z.meta)]:{data:[{week:"Week 1",retentionRate:0.71},{week:"Week 2",retentionRate:0.66},{week:"Week 3",retentionRate:0.62},{week:"Week 4",retentionRate:0.58},{week:"Week 5",retentionRate:0.55},{week:"Week 6",retentionRate:0.53}]},[q(H.meta)]:{data:[{cycleDays:18,winRate:0.31,arr:82000},{cycleDays:26,winRate:0.44,arr:65000},{cycleDays:33,winRate:0.27,arr:91000},{cycleDays:14,winRate:0.56,arr:47000},{cycleDays:21,winRate:0.48,arr:59000},{cycleDays:39,winRate:0.22,arr:114000}]},[q(m.meta)]:{data:[{channel:"Direct",sessions:4200},{channel:"Organic Search",sessions:3600},{channel:"Paid Search",sessions:2100},{channel:"Partner",sessions:1400},{channel:"Referral",sessions:900}]},[q(G.meta)]:{data:[{weekday:"Mon",timeBand:"09:00",engagementScore:74},{weekday:"Mon",timeBand:"13:00",engagementScore:82},{weekday:"Tue",timeBand:"09:00",engagementScore:69},{weekday:"Tue",timeBand:"13:00",engagementScore:88},{weekday:"Wed",timeBand:"09:00",engagementScore:77},{weekday:"Wed",timeBand:"13:00",engagementScore:91},{weekday:"Thu",timeBand:"09:00",engagementScore:72},{weekday:"Thu",timeBand:"13:00",engagementScore:86},{weekday:"Fri",timeBand:"09:00",engagementScore:65},{weekday:"Fri",timeBand:"13:00",engagementScore:79}]},[q(D.meta)]:{data:[{stage:"Visited Site",users:12000},{stage:"Started Trial",users:4200},{stage:"Activated Workspace",users:2400},{stage:"Requested Demo",users:980},{stage:"Closed Won",users:310}]},[q(L.meta)]:{data:[{city:"Paris",latitude:48.8566,longitude:2.3522,accounts:48},{city:"London",latitude:51.5072,longitude:-0.1276,accounts:62},{city:"New York",latitude:40.7128,longitude:-74.006,accounts:71},{city:"Toronto",latitude:43.6532,longitude:-79.3832,accounts:36},{city:"Singapore",latitude:1.3521,longitude:103.8198,accounts:29}]}};function J(x){return{key:x.meta.key,version:x.meta.version}}function q(x){return`${x.key}.v${x.version}`}var h={METRIC:J(X),LINE_CHART:J(N),BAR_CHART:J(W),AREA_CHART:J(Z),SCATTER_PLOT:J(H),PIE_CHART:J(m),HEATMAP:J(G),FUNNEL:J(D),MAP:J(L)};function V(x){return[$(x,"widget_revenue_metric","Revenue Snapshot","METRIC",0,0,4,2,{layout:"single",bindings:[B(X,200)]}),$(x,"widget_revenue_trend","Revenue Trend","LINE_CHART",4,0,8,4,{layout:"single",bindings:[B(N)]}),$(x,"widget_regional_revenue","Regional Revenue","BAR_CHART",0,2,6,4,{layout:"single",bindings:[B(W)]}),$(x,"widget_channel_mix","Channel Mix","PIE_CHART",6,2,6,4,{layout:"single",bindings:[B(m)]}),$(x,"widget_retention","Retention Curve","AREA_CHART",0,6,6,4,{layout:"single",bindings:[B(Z)]}),$(x,"widget_pipeline","Pipeline Velocity","SCATTER_PLOT",6,6,6,4,{layout:"single",bindings:[B(H)]}),$(x,"widget_heatmap","Engagement Heatmap","HEATMAP",0,10,8,4,{layout:"single",bindings:[B(G)]}),$(x,"widget_funnel","Conversion Funnel","FUNNEL",8,10,4,4,{layout:"single",bindings:[B(D)]}),$(x,"widget_geo","Account Coverage","MAP",0,14,12,5,{layout:"single",bindings:[B(L,360)]}),$(x,"widget_comparison","Commercial Comparison","EMBED",0,19,12,6,{layout:"comparison",description:"Compare regional distribution, channel balance, and funnel shape.",bindings:[B(W,240),B(m,240),B(D,240)]}),$(x,"widget_timeline","Growth Timeline","EMBED",0,25,12,6,{layout:"timeline",description:"Track revenue and retention over the same reporting cadence.",bindings:[B(N,220),B(Z,220)]})]}function R(x){let j=f(x),U=j.bindings.map((k)=>{let P=A.get(q(k.ref));if(!P)return null;return{key:`${x.id}:${q(k.ref)}`,spec:P,data:k.data,title:k.title??P.meta.title,description:k.description??P.meta.description,height:k.height}}).filter((k)=>Boolean(k));if(!U.length)return null;return{id:x.id,name:x.name,description:j.description,layout:j.layout,gridX:x.gridX,gridY:x.gridY,gridWidth:x.gridWidth,gridHeight:x.gridHeight,bindings:U}}function f(x){if(z(x.config))return x.config;let j=h[x.type];return j?{layout:"single",bindings:[{ref:j,data:y[q(j)]}]}:{layout:"single",bindings:[]}}function B(x,j=280){return{ref:J(x),data:y[q(x.meta)],height:j}}function $(x,j,U,k,P,M,w,I,E){let F=new Date;return{id:j,dashboardId:x,name:U,type:k,gridX:P,gridY:M,gridWidth:w,gridHeight:I,config:E,createdAt:F,updatedAt:F}}function z(x){if(!x||typeof x!=="object")return!1;let j=x;return(j.layout==="single"||j.layout==="comparison"||j.layout==="timeline")&&Array.isArray(j.bindings)}import{defineFeature as b}from"@contractspec/lib.contracts-spec";var kx=b({meta:{key:"analytics-dashboard",version:"1.0.0",title:"Analytics Dashboard",description:"Analytics dashboards with customizable widgets and queries",domain:"analytics",owners:["@analytics-dashboard"],tags:["analytics","dashboards","widgets","queries"],stability:"experimental"},operations:[{key:"analytics.dashboard.create",version:"1.0.0"},{key:"analytics.dashboard.list",version:"1.0.0"},{key:"analytics.dashboard.get",version:"1.0.0"},{key:"analytics.widget.add",version:"1.0.0"},{key:"analytics.query.create",version:"1.0.0"},{key:"analytics.query.execute",version:"1.0.0"}],events:[{key:"analytics.dashboard.created",version:"1.0.0"},{key:"analytics.widget.added",version:"1.0.0"},{key:"analytics.query.created",version:"1.0.0"}],presentations:[{key:"analytics.dashboard.viewList",version:"1.0.0"},{key:"analytics.dashboard.view",version:"1.0.0"},{key:"analytics.dashboard.editor",version:"1.0.0"},{key:"analytics.query.list",version:"1.0.0"},{key:"analytics.query.builder",version:"1.0.0"}],visualizations:[...T],opToPresentation:[{op:{key:"analytics.dashboard.list",version:"1.0.0"},pres:{key:"analytics.dashboard.viewList",version:"1.0.0"}},{op:{key:"analytics.dashboard.get",version:"1.0.0"},pres:{key:"analytics.dashboard.view",version:"1.0.0"}},{op:{key:"analytics.dashboard.create",version:"1.0.0"},pres:{key:"analytics.dashboard.editor",version:"1.0.0"}},{op:{key:"analytics.query.create",version:"1.0.0"},pres:{key:"analytics.query.builder",version:"1.0.0"}}],presentationsTargets:[{key:"analytics.dashboard.viewList",version:"1.0.0",targets:["react","markdown","application/json"]},{key:"analytics.dashboard.view",version:"1.0.0",targets:["react","markdown"]},{key:"analytics.dashboard.editor",version:"1.0.0",targets:["react"]},{key:"analytics.query.builder",version:"1.0.0",targets:["react"]}],capabilities:{requires:[{key:"identity",version:"1.0.0"},{key:"metering",version:"1.0.0"},{key:"audit-trail",version:"1.0.0"}]},telemetry:[{key:"analytics-dashboard.telemetry",version:"1.0.0"}],docs:["docs.examples.analytics-dashboard","docs.examples.analytics-dashboard.goal","docs.examples.analytics-dashboard.usage","docs.examples.analytics-dashboard.constraints"]});export{kx as AnalyticsDashboardFeature};