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.
Files changed (43) hide show
  1. package/dist/cli/cli.cjs +1273 -343
  2. package/dist/cli/cli.cjs.map +1 -1
  3. package/dist/headless/index.cjs +3 -0
  4. package/dist/headless/index.cjs.map +1 -1
  5. package/dist/headless/index.d.cts +19 -13
  6. package/dist/headless/index.d.ts +19 -13
  7. package/dist/headless/index.js +3 -0
  8. package/dist/headless/index.js.map +1 -1
  9. package/dist/index.cjs +3 -0
  10. package/dist/index.cjs.map +1 -1
  11. package/dist/index.d.cts +19 -13
  12. package/dist/index.d.ts +19 -13
  13. package/dist/index.js +3 -0
  14. package/dist/index.js.map +1 -1
  15. package/dist/playwright/index.cjs +36 -7
  16. package/dist/playwright/index.cjs.map +1 -1
  17. package/dist/playwright/index.js +36 -7
  18. package/dist/playwright/index.js.map +1 -1
  19. package/dist/playwright/states-reporter.cjs +36 -7
  20. package/dist/playwright/states-reporter.cjs.map +1 -1
  21. package/dist/playwright/states-reporter.d.cts +15 -0
  22. package/dist/playwright/states-reporter.d.ts +15 -0
  23. package/dist/playwright/states-reporter.js +36 -7
  24. package/dist/playwright/states-reporter.js.map +1 -1
  25. package/dist/playwright/states.cjs +8 -0
  26. package/dist/playwright/states.cjs.map +1 -1
  27. package/dist/playwright/states.d.cts +44 -1
  28. package/dist/playwright/states.d.ts +44 -1
  29. package/dist/playwright/states.js +7 -0
  30. package/dist/playwright/states.js.map +1 -1
  31. package/dist/react/index.cjs +3 -0
  32. package/dist/react/index.cjs.map +1 -1
  33. package/dist/react/index.d.cts +19 -13
  34. package/dist/react/index.d.ts +19 -13
  35. package/dist/react/index.js +3 -0
  36. package/dist/react/index.js.map +1 -1
  37. package/dist/scan/index.cjs +1217 -257
  38. package/dist/scan/index.cjs.map +1 -1
  39. package/dist/scan/index.d.cts +410 -104
  40. package/dist/scan/index.d.ts +410 -104
  41. package/dist/scan/index.js +1197 -253
  42. package/dist/scan/index.js.map +1 -1
  43. package/package.json +17 -17
@@ -15,8 +15,8 @@ interface EntityRef {
15
15
  /**
16
16
  * The four kinds every captured route is expected to render — the state-matrix
17
17
  * axis. A capture that only shoots the happy path leaves most of the value on
18
- * the table, so a missing core kind must be captured, waived (the page CANNOT
19
- * render it), or acknowledged in the MISSING_KINDS baseline.
18
+ * the table, so a missing core kind must be captured or ACKNOWLEDGED (see
19
+ * `Metadata.acknowledge`).
20
20
  */
21
21
  declare const CORE_STATE_KINDS: readonly ["loading", "empty", "populated", "error"];
22
22
  type CoreStateKind = (typeof CORE_STATE_KINDS)[number];
@@ -50,18 +50,24 @@ interface Metadata {
50
50
  /** Declared render states (see StateDecl); the capture-completeness gate. */
51
51
  states?: StateDecl[];
52
52
  /**
53
- * `false` opts this page/feature/widget out of visual-states capture forever
54
- * (a redirect, a static notice, an internal target). The page-coverage gate
55
- * treats an opted-out route as accounted-for. Reason belongs in `description`.
53
+ * The ONE way to say "don't complain about this gap": scope typed reason.
54
+ *
55
+ * - scope `"*"` covers the whole entity (a redirect page that can never be
56
+ * captured, a component whose states are not gated here);
57
+ * - a core-kind scope covers that one cell of this page's route matrix.
58
+ *
59
+ * `type: "impossible"` is a permanent design statement and needs a `reason`;
60
+ * `type: "backlog"` is debt and does not. Keeping both as values of one field
61
+ * is what makes mislabeling debt as impossible a visible, reviewable edit.
62
+ * `captured-elsewhere` is computed by the workspace and never authored here.
56
63
  */
57
- capture?: boolean;
58
- /**
59
- * Per-core-kind waivers: a core kind this page's route legitimately CANNOT
60
- * render (a create form has no `empty`), mapped to a substantive reason. The
61
- * state-matrix gate treats a waived kind as accounted-for. A waiver is a
62
- * permanent design statement — unlike MISSING_KINDS backlog, which is debt.
63
- */
64
- waivers?: Partial<Record<CoreStateKind, string>>;
64
+ acknowledge?: Partial<Record<AcknowledgeScope, MetaAcknowledgment>>;
65
+ }
66
+ /** Scope of an acknowledgment: one core kind, or the whole entity. */
67
+ type AcknowledgeScope = CoreStateKind | "*";
68
+ interface MetaAcknowledgment {
69
+ type: "impossible" | "backlog";
70
+ reason?: string;
65
71
  }
66
72
  interface EntityWithMetaBase {
67
73
  id: string;
@@ -15,8 +15,8 @@ interface EntityRef {
15
15
  /**
16
16
  * The four kinds every captured route is expected to render — the state-matrix
17
17
  * axis. A capture that only shoots the happy path leaves most of the value on
18
- * the table, so a missing core kind must be captured, waived (the page CANNOT
19
- * render it), or acknowledged in the MISSING_KINDS baseline.
18
+ * the table, so a missing core kind must be captured or ACKNOWLEDGED (see
19
+ * `Metadata.acknowledge`).
20
20
  */
21
21
  declare const CORE_STATE_KINDS: readonly ["loading", "empty", "populated", "error"];
22
22
  type CoreStateKind = (typeof CORE_STATE_KINDS)[number];
@@ -50,18 +50,24 @@ interface Metadata {
50
50
  /** Declared render states (see StateDecl); the capture-completeness gate. */
51
51
  states?: StateDecl[];
52
52
  /**
53
- * `false` opts this page/feature/widget out of visual-states capture forever
54
- * (a redirect, a static notice, an internal target). The page-coverage gate
55
- * treats an opted-out route as accounted-for. Reason belongs in `description`.
53
+ * The ONE way to say "don't complain about this gap": scope typed reason.
54
+ *
55
+ * - scope `"*"` covers the whole entity (a redirect page that can never be
56
+ * captured, a component whose states are not gated here);
57
+ * - a core-kind scope covers that one cell of this page's route matrix.
58
+ *
59
+ * `type: "impossible"` is a permanent design statement and needs a `reason`;
60
+ * `type: "backlog"` is debt and does not. Keeping both as values of one field
61
+ * is what makes mislabeling debt as impossible a visible, reviewable edit.
62
+ * `captured-elsewhere` is computed by the workspace and never authored here.
56
63
  */
57
- capture?: boolean;
58
- /**
59
- * Per-core-kind waivers: a core kind this page's route legitimately CANNOT
60
- * render (a create form has no `empty`), mapped to a substantive reason. The
61
- * state-matrix gate treats a waived kind as accounted-for. A waiver is a
62
- * permanent design statement — unlike MISSING_KINDS backlog, which is debt.
63
- */
64
- waivers?: Partial<Record<CoreStateKind, string>>;
64
+ acknowledge?: Partial<Record<AcknowledgeScope, MetaAcknowledgment>>;
65
+ }
66
+ /** Scope of an acknowledgment: one core kind, or the whole entity. */
67
+ type AcknowledgeScope = CoreStateKind | "*";
68
+ interface MetaAcknowledgment {
69
+ type: "impossible" | "backlog";
70
+ reason?: string;
65
71
  }
66
72
  interface EntityWithMetaBase {
67
73
  id: string;
@@ -1002,6 +1002,9 @@ var tailwind_built_default = `/*! tailwindcss v4.2.2 | MIT License | https://tai
1002
1002
  .flex-1 {
1003
1003
  flex: 1;
1004
1004
  }
1005
+ .shrink {
1006
+ flex-shrink: 1;
1007
+ }
1005
1008
  .shrink-0 {
1006
1009
  flex-shrink: 0;
1007
1010
  }