uidex 0.8.0 → 0.10.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 +1273 -343
- package/dist/cli/cli.cjs.map +1 -1
- package/dist/headless/index.cjs +3 -0
- package/dist/headless/index.cjs.map +1 -1
- package/dist/headless/index.d.cts +19 -13
- package/dist/headless/index.d.ts +19 -13
- package/dist/headless/index.js +3 -0
- package/dist/headless/index.js.map +1 -1
- package/dist/index.cjs +3 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +19 -13
- package/dist/index.d.ts +19 -13
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/playwright/index.cjs +36 -7
- package/dist/playwright/index.cjs.map +1 -1
- package/dist/playwright/index.js +36 -7
- package/dist/playwright/index.js.map +1 -1
- package/dist/playwright/states-reporter.cjs +36 -7
- package/dist/playwright/states-reporter.cjs.map +1 -1
- package/dist/playwright/states-reporter.d.cts +15 -0
- package/dist/playwright/states-reporter.d.ts +15 -0
- package/dist/playwright/states-reporter.js +36 -7
- package/dist/playwright/states-reporter.js.map +1 -1
- package/dist/playwright/states.cjs +8 -0
- package/dist/playwright/states.cjs.map +1 -1
- package/dist/playwright/states.d.cts +44 -1
- package/dist/playwright/states.d.ts +44 -1
- package/dist/playwright/states.js +7 -0
- package/dist/playwright/states.js.map +1 -1
- package/dist/react/index.cjs +3 -0
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +19 -13
- package/dist/react/index.d.ts +19 -13
- package/dist/react/index.js +3 -0
- package/dist/react/index.js.map +1 -1
- package/dist/scan/index.cjs +1217 -257
- package/dist/scan/index.cjs.map +1 -1
- package/dist/scan/index.d.cts +410 -104
- package/dist/scan/index.d.ts +410 -104
- package/dist/scan/index.js +1197 -253
- package/dist/scan/index.js.map +1 -1
- package/package.json +17 -17
package/dist/react/index.d.cts
CHANGED
|
@@ -18,8 +18,8 @@ interface EntityRef {
|
|
|
18
18
|
/**
|
|
19
19
|
* The four kinds every captured route is expected to render — the state-matrix
|
|
20
20
|
* axis. A capture that only shoots the happy path leaves most of the value on
|
|
21
|
-
* the table, so a missing core kind must be captured
|
|
22
|
-
*
|
|
21
|
+
* the table, so a missing core kind must be captured or ACKNOWLEDGED (see
|
|
22
|
+
* `Metadata.acknowledge`).
|
|
23
23
|
*/
|
|
24
24
|
declare const CORE_STATE_KINDS: readonly ["loading", "empty", "populated", "error"];
|
|
25
25
|
type CoreStateKind = (typeof CORE_STATE_KINDS)[number];
|
|
@@ -53,18 +53,24 @@ interface Metadata {
|
|
|
53
53
|
/** Declared render states (see StateDecl); the capture-completeness gate. */
|
|
54
54
|
states?: StateDecl[];
|
|
55
55
|
/**
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
56
|
+
* The ONE way to say "don't complain about this gap": scope → typed reason.
|
|
57
|
+
*
|
|
58
|
+
* - scope `"*"` covers the whole entity (a redirect page that can never be
|
|
59
|
+
* captured, a component whose states are not gated here);
|
|
60
|
+
* - a core-kind scope covers that one cell of this page's route matrix.
|
|
61
|
+
*
|
|
62
|
+
* `type: "impossible"` is a permanent design statement and needs a `reason`;
|
|
63
|
+
* `type: "backlog"` is debt and does not. Keeping both as values of one field
|
|
64
|
+
* is what makes mislabeling debt as impossible a visible, reviewable edit.
|
|
65
|
+
* `captured-elsewhere` is computed by the workspace and never authored here.
|
|
59
66
|
*/
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
waivers?: Partial<Record<CoreStateKind, string>>;
|
|
67
|
+
acknowledge?: Partial<Record<AcknowledgeScope, MetaAcknowledgment>>;
|
|
68
|
+
}
|
|
69
|
+
/** Scope of an acknowledgment: one core kind, or the whole entity. */
|
|
70
|
+
type AcknowledgeScope = CoreStateKind | "*";
|
|
71
|
+
interface MetaAcknowledgment {
|
|
72
|
+
type: "impossible" | "backlog";
|
|
73
|
+
reason?: string;
|
|
68
74
|
}
|
|
69
75
|
interface EntityWithMetaBase {
|
|
70
76
|
id: string;
|
package/dist/react/index.d.ts
CHANGED
|
@@ -18,8 +18,8 @@ interface EntityRef {
|
|
|
18
18
|
/**
|
|
19
19
|
* The four kinds every captured route is expected to render — the state-matrix
|
|
20
20
|
* axis. A capture that only shoots the happy path leaves most of the value on
|
|
21
|
-
* the table, so a missing core kind must be captured
|
|
22
|
-
*
|
|
21
|
+
* the table, so a missing core kind must be captured or ACKNOWLEDGED (see
|
|
22
|
+
* `Metadata.acknowledge`).
|
|
23
23
|
*/
|
|
24
24
|
declare const CORE_STATE_KINDS: readonly ["loading", "empty", "populated", "error"];
|
|
25
25
|
type CoreStateKind = (typeof CORE_STATE_KINDS)[number];
|
|
@@ -53,18 +53,24 @@ interface Metadata {
|
|
|
53
53
|
/** Declared render states (see StateDecl); the capture-completeness gate. */
|
|
54
54
|
states?: StateDecl[];
|
|
55
55
|
/**
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
56
|
+
* The ONE way to say "don't complain about this gap": scope → typed reason.
|
|
57
|
+
*
|
|
58
|
+
* - scope `"*"` covers the whole entity (a redirect page that can never be
|
|
59
|
+
* captured, a component whose states are not gated here);
|
|
60
|
+
* - a core-kind scope covers that one cell of this page's route matrix.
|
|
61
|
+
*
|
|
62
|
+
* `type: "impossible"` is a permanent design statement and needs a `reason`;
|
|
63
|
+
* `type: "backlog"` is debt and does not. Keeping both as values of one field
|
|
64
|
+
* is what makes mislabeling debt as impossible a visible, reviewable edit.
|
|
65
|
+
* `captured-elsewhere` is computed by the workspace and never authored here.
|
|
59
66
|
*/
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
waivers?: Partial<Record<CoreStateKind, string>>;
|
|
67
|
+
acknowledge?: Partial<Record<AcknowledgeScope, MetaAcknowledgment>>;
|
|
68
|
+
}
|
|
69
|
+
/** Scope of an acknowledgment: one core kind, or the whole entity. */
|
|
70
|
+
type AcknowledgeScope = CoreStateKind | "*";
|
|
71
|
+
interface MetaAcknowledgment {
|
|
72
|
+
type: "impossible" | "backlog";
|
|
73
|
+
reason?: string;
|
|
68
74
|
}
|
|
69
75
|
interface EntityWithMetaBase {
|
|
70
76
|
id: string;
|