uidex 0.3.0 → 0.5.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 (44) hide show
  1. package/dist/cli/cli.cjs +1116 -112
  2. package/dist/cli/cli.cjs.map +1 -1
  3. package/dist/cloud/index.cjs +395 -72
  4. package/dist/cloud/index.cjs.map +1 -1
  5. package/dist/cloud/index.d.cts +60 -86
  6. package/dist/cloud/index.d.ts +60 -86
  7. package/dist/cloud/index.js +396 -71
  8. package/dist/cloud/index.js.map +1 -1
  9. package/dist/headless/index.cjs +1505 -791
  10. package/dist/headless/index.cjs.map +1 -1
  11. package/dist/headless/index.d.cts +83 -75
  12. package/dist/headless/index.d.ts +83 -75
  13. package/dist/headless/index.js +1514 -791
  14. package/dist/headless/index.js.map +1 -1
  15. package/dist/index.cjs +6281 -3190
  16. package/dist/index.cjs.map +1 -1
  17. package/dist/index.d.cts +337 -229
  18. package/dist/index.d.ts +337 -229
  19. package/dist/index.js +6362 -3231
  20. package/dist/index.js.map +1 -1
  21. package/dist/playwright/index.cjs +4 -4
  22. package/dist/playwright/index.cjs.map +1 -1
  23. package/dist/playwright/index.js +3 -3
  24. package/dist/playwright/index.js.map +1 -1
  25. package/dist/playwright/reporter.cjs +3 -3
  26. package/dist/playwright/reporter.cjs.map +1 -1
  27. package/dist/playwright/reporter.js +3 -3
  28. package/dist/playwright/reporter.js.map +1 -1
  29. package/dist/react/index.cjs +6291 -3206
  30. package/dist/react/index.cjs.map +1 -1
  31. package/dist/react/index.d.cts +239 -186
  32. package/dist/react/index.d.ts +239 -186
  33. package/dist/react/index.js +6338 -3208
  34. package/dist/react/index.js.map +1 -1
  35. package/dist/scan/index.cjs +212 -82
  36. package/dist/scan/index.cjs.map +1 -1
  37. package/dist/scan/index.d.cts +31 -0
  38. package/dist/scan/index.d.ts +31 -0
  39. package/dist/scan/index.js +211 -81
  40. package/dist/scan/index.js.map +1 -1
  41. package/package.json +10 -8
  42. package/templates/claude/api.md +110 -0
  43. package/templates/claude/audit.md +8 -2
  44. package/templates/claude/rules.md +15 -0
@@ -31,11 +31,16 @@ interface Route {
31
31
  path: string;
32
32
  page: string;
33
33
  }
34
+ interface FlowStep {
35
+ entityId: string;
36
+ action?: string;
37
+ }
34
38
  interface Flow {
35
39
  kind: "flow";
36
40
  id: string;
37
41
  loc: Location;
38
42
  touches: string[];
43
+ steps: FlowStep[];
39
44
  }
40
45
  interface Page extends EntityWithMetaBase {
41
46
  kind: "page";
@@ -60,6 +65,26 @@ type EntityByKind<K extends EntityKind> = Extract<Entity, {
60
65
  kind: K;
61
66
  }>;
62
67
 
68
+ interface ReportRecord {
69
+ id: string;
70
+ entity?: string;
71
+ reporter?: {
72
+ id?: string;
73
+ email?: string;
74
+ name?: string;
75
+ };
76
+ title?: string;
77
+ body: string;
78
+ type: string;
79
+ severity: string;
80
+ status: string;
81
+ labels?: string[];
82
+ url: string;
83
+ route?: string;
84
+ pageTitle?: string;
85
+ screenshot?: string;
86
+ createdAt: string;
87
+ }
63
88
  interface Registry {
64
89
  add(entity: Entity): void;
65
90
  get<K extends EntityKind>(kind: K, id: string): EntityByKind<K> | undefined;
@@ -67,6 +92,11 @@ interface Registry {
67
92
  query(predicate: (entity: Entity) => boolean): Entity[];
68
93
  byScope(scope: Scope): Entity[];
69
94
  touchedBy(flowId: string): Entity[];
95
+ setReports(kind: EntityKind, id: string, reports: readonly ReportRecord[]): void;
96
+ getReports(kind: EntityKind, id: string): readonly ReportRecord[];
97
+ listReportKeys(): readonly string[];
98
+ archiveReport?: (reportId: string, reason?: string) => void | Promise<void>;
99
+ onReportsChange(cb: () => void): () => void;
70
100
  }
71
101
 
72
102
  interface SourceConfig {
@@ -346,6 +376,7 @@ declare namespace Uidex {
346
376
  interface Feature<FeatureIds extends string = string> {
347
377
  feature: FeatureIds | false;
348
378
  name?: string;
379
+ features?: readonly FeatureIds[];
349
380
  acceptance?: readonly string[];
350
381
  description?: string;
351
382
  }
@@ -31,11 +31,16 @@ interface Route {
31
31
  path: string;
32
32
  page: string;
33
33
  }
34
+ interface FlowStep {
35
+ entityId: string;
36
+ action?: string;
37
+ }
34
38
  interface Flow {
35
39
  kind: "flow";
36
40
  id: string;
37
41
  loc: Location;
38
42
  touches: string[];
43
+ steps: FlowStep[];
39
44
  }
40
45
  interface Page extends EntityWithMetaBase {
41
46
  kind: "page";
@@ -60,6 +65,26 @@ type EntityByKind<K extends EntityKind> = Extract<Entity, {
60
65
  kind: K;
61
66
  }>;
62
67
 
68
+ interface ReportRecord {
69
+ id: string;
70
+ entity?: string;
71
+ reporter?: {
72
+ id?: string;
73
+ email?: string;
74
+ name?: string;
75
+ };
76
+ title?: string;
77
+ body: string;
78
+ type: string;
79
+ severity: string;
80
+ status: string;
81
+ labels?: string[];
82
+ url: string;
83
+ route?: string;
84
+ pageTitle?: string;
85
+ screenshot?: string;
86
+ createdAt: string;
87
+ }
63
88
  interface Registry {
64
89
  add(entity: Entity): void;
65
90
  get<K extends EntityKind>(kind: K, id: string): EntityByKind<K> | undefined;
@@ -67,6 +92,11 @@ interface Registry {
67
92
  query(predicate: (entity: Entity) => boolean): Entity[];
68
93
  byScope(scope: Scope): Entity[];
69
94
  touchedBy(flowId: string): Entity[];
95
+ setReports(kind: EntityKind, id: string, reports: readonly ReportRecord[]): void;
96
+ getReports(kind: EntityKind, id: string): readonly ReportRecord[];
97
+ listReportKeys(): readonly string[];
98
+ archiveReport?: (reportId: string, reason?: string) => void | Promise<void>;
99
+ onReportsChange(cb: () => void): () => void;
70
100
  }
71
101
 
72
102
  interface SourceConfig {
@@ -346,6 +376,7 @@ declare namespace Uidex {
346
376
  interface Feature<FeatureIds extends string = string> {
347
377
  feature: FeatureIds | false;
348
378
  name?: string;
379
+ features?: readonly FeatureIds[];
349
380
  acceptance?: readonly string[];
350
381
  description?: string;
351
382
  }