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.
- package/dist/cli/cli.cjs +1116 -112
- package/dist/cli/cli.cjs.map +1 -1
- package/dist/cloud/index.cjs +395 -72
- package/dist/cloud/index.cjs.map +1 -1
- package/dist/cloud/index.d.cts +60 -86
- package/dist/cloud/index.d.ts +60 -86
- package/dist/cloud/index.js +396 -71
- package/dist/cloud/index.js.map +1 -1
- package/dist/headless/index.cjs +1505 -791
- package/dist/headless/index.cjs.map +1 -1
- package/dist/headless/index.d.cts +83 -75
- package/dist/headless/index.d.ts +83 -75
- package/dist/headless/index.js +1514 -791
- package/dist/headless/index.js.map +1 -1
- package/dist/index.cjs +6281 -3190
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +337 -229
- package/dist/index.d.ts +337 -229
- package/dist/index.js +6362 -3231
- package/dist/index.js.map +1 -1
- package/dist/playwright/index.cjs +4 -4
- package/dist/playwright/index.cjs.map +1 -1
- package/dist/playwright/index.js +3 -3
- package/dist/playwright/index.js.map +1 -1
- package/dist/playwright/reporter.cjs +3 -3
- package/dist/playwright/reporter.cjs.map +1 -1
- package/dist/playwright/reporter.js +3 -3
- package/dist/playwright/reporter.js.map +1 -1
- package/dist/react/index.cjs +6291 -3206
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +239 -186
- package/dist/react/index.d.ts +239 -186
- package/dist/react/index.js +6338 -3208
- package/dist/react/index.js.map +1 -1
- package/dist/scan/index.cjs +212 -82
- package/dist/scan/index.cjs.map +1 -1
- package/dist/scan/index.d.cts +31 -0
- package/dist/scan/index.d.ts +31 -0
- package/dist/scan/index.js +211 -81
- package/dist/scan/index.js.map +1 -1
- package/package.json +10 -8
- package/templates/claude/api.md +110 -0
- package/templates/claude/audit.md +8 -2
- package/templates/claude/rules.md +15 -0
package/dist/scan/index.d.cts
CHANGED
|
@@ -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
|
}
|
package/dist/scan/index.d.ts
CHANGED
|
@@ -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
|
}
|