@gjsify/storybook 0.35.0 → 0.37.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.
@@ -1,19 +1,19 @@
1
1
  import type Adw from '@girs/adw-1';
2
2
  import type { StorybookWindow } from './window.js';
3
- /** Options for {@link installStorybookProbe} (env vars supply the CI-side defaults). */
3
+ /** Options for {@link installStorybookProbe}; env vars carry the CI-side defaults. */
4
4
  export interface StorybookProbeOptions {
5
- /** Story `Category/Name` title to open as the representative render. Default: `GJSIFY_STORYBOOK_PROBE_STORY`, else the first story. */
5
+ /** Story to open, by `Category/Name`. Default: `GJSIFY_STORYBOOK_PROBE_STORY`, else the first. */
6
6
  story?: string;
7
- /** A widget type (e.g. `AdwSwitchRow`) that MUST appear in the opened story's subtree. Default: `GJSIFY_STORYBOOK_PROBE_STORY_WIDGET`. */
7
+ /** A widget type that MUST appear in the opened story's subtree. Default: `GJSIFY_STORYBOOK_PROBE_STORY_WIDGET`. */
8
8
  storyWidget?: string;
9
- /** Chrome widget types required in the DumpTree. Default: NavigationSplitView + sidebar ListBox + controls OverlaySplitView. */
9
+ /** Chrome widget types required in the DumpTree. Default: {@link DEFAULT_REQUIRED_CHROME}. */
10
10
  requireChrome?: string[];
11
11
  /** Path to write the JSON result. Default: `GJSIFY_STORYBOOK_PROBE_OUT`. */
12
12
  out?: string;
13
13
  /** Max ms to wait for the surface to realize before capturing. Default 8000. */
14
14
  timeoutMs?: number;
15
15
  }
16
- /** The result the probe logs + writes — the machine-readable proof record. */
16
+ /** The machine-readable proof record the probe logs and writes. */
17
17
  export interface StorybookProbeResult {
18
18
  ok: boolean;
19
19
  reason?: string;
@@ -32,9 +32,8 @@ export interface StorybookProbeResult {
32
32
  /** Truthy-env check, matching `@gjsify/devtools`' `GJSIFY_DEVTOOLS` gate semantics. */
33
33
  export declare function probeEnabled(): boolean;
34
34
  /**
35
- * Install the storybook self-verification probe. A no-op unless it is called
36
- * (the caller gates on {@link probeEnabled}). Opens a representative story, then
37
- * polls for the GSK render, asserts the chrome + story subtree + a non-empty PNG,
38
- * logs `STORYBOOK PROBE: PASS|FAIL`, writes the JSON result, and quits the app.
35
+ * Open a representative story, poll for the GSK render, assert chrome + story subtree +
36
+ * a non-empty PNG, log `STORYBOOK PROBE: PASS|FAIL`, write the JSON result, quit the app.
37
+ * The caller gates the call on {@link probeEnabled}.
39
38
  */
40
39
  export declare function installStorybookProbe(app: Adw.Application, window: StorybookWindow, options?: StorybookProbeOptions): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gjsify/storybook",
3
- "version": "0.35.0",
3
+ "version": "0.37.0",
4
4
  "description": "Reusable GTK/Adwaita storybook for GJS — author *.story.ts and browse them in a generic component explorer",
5
5
  "type": "module",
6
6
  "module": "lib/esm/index.js",
@@ -41,13 +41,13 @@
41
41
  "@girs/glib-2.0": "^4.1.0",
42
42
  "@girs/gobject-2.0": "^4.1.0",
43
43
  "@girs/gtk-4.0": "^4.1.0",
44
- "@gjsify/devtools": "^0.35.0",
45
- "@gjsify/stories": "^0.35.0",
46
- "@gjsify/storybook-core": "^0.35.0"
44
+ "@gjsify/devtools": "^0.37.0",
45
+ "@gjsify/stories": "^0.37.0",
46
+ "@gjsify/storybook-core": "^0.37.0"
47
47
  },
48
48
  "devDependencies": {
49
- "@gjsify/cli": "^0.35.0",
50
- "@gjsify/unit": "^0.35.0",
49
+ "@gjsify/cli": "^0.37.0",
50
+ "@gjsify/unit": "^0.37.0",
51
51
  "@types/node": "^25.9.2",
52
52
  "typescript": "^6.0.3"
53
53
  },