@pygmalionjs/pygmalion 0.6.22 → 0.6.23

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.
@@ -349,10 +349,14 @@ export interface DesignImportInitialPage {
349
349
  */
350
350
  runtimes?: readonly string[];
351
351
  scenarioId?: string;
352
+ /** Every authored scenario this initial screen demonstrates. */
353
+ scenarioIds?: readonly string[];
352
354
  interactions?: DesignScreenInteraction[];
353
355
  environment?: StoryboardEnvironment;
354
356
  preset?: DesignScreenPreset;
355
357
  assertions?: DesignScreenAssertion[];
358
+ /** Warm preview group declared by the host for this complete screen state. */
359
+ session?: string;
356
360
  }
357
361
  export interface DesignImportCoverageItem {
358
362
  expected: number;
@@ -0,0 +1,15 @@
1
+ import { type StoryboardDefinition, type StoryboardGraph } from './storyboardGraph';
2
+ import type { DesignImportAsset, DesignImportInitialPage, DesignScenarioSource } from './designImport';
3
+ export type AuthoredStoryboardGraphOptions = {
4
+ pages: readonly DesignImportInitialPage[];
5
+ assets?: readonly DesignImportAsset[];
6
+ scenarios?: readonly DesignScenarioSource[];
7
+ storyboard?: StoryboardDefinition;
8
+ };
9
+ /**
10
+ * Builds a graph from host-owned screen declarations when source discovery is
11
+ * intentionally disabled. The authored graph must not depend on a Vite
12
+ * discovery endpoint: a Next host, or any runtime with its own route catalog,
13
+ * already has the canonical frame identities and workflow paths.
14
+ */
15
+ export declare function createAuthoredStoryboardGraph(options: AuthoredStoryboardGraphOptions): StoryboardGraph | null;
@@ -1,4 +1,4 @@
1
- import { type DesignImportController, type DesignImportInitialPage } from './editor/designImport';
1
+ import { type DesignImportController, type DesignImportInitialPage, type DesignScenarioSource } from './editor/designImport';
2
2
  import { type ComponentRegistry } from './editor/registry';
3
3
  import { type DesignComponentConnectionDef } from './editor/componentConnections';
4
4
  import { type ApplyPayload, type DesignChangePayload, type DesignChangeResult, type InspectApplyResult, type InspectImpactResult, type InspectPreviewResult } from './editor/host';
@@ -66,6 +66,7 @@ export type { NodeSelector } from './editor/nodeSelector';
66
66
  export { validateScreenDimensions } from './editor/screenDimensions';
67
67
  export type { ComponentBranch, ScreenDimensionDef, ScreenDimensionDiagnostic, ScreenDimensionOption, } from './editor/screenDimensions';
68
68
  export { createStoryboardPathEdges, createStoryboardGraph, storyboardScreenRecipeKey, } from './editor/storyboardGraph';
69
+ export { createAuthoredStoryboardGraph } from './editor/storyboardAuthored';
69
70
  export type { StoryboardDefinition, StoryboardGraph, StoryboardGraphBranch, StoryboardGraphBuildOptions, StoryboardGraphCoverage, StoryboardGraphEdge, StoryboardGraphEdgeInput, StoryboardGraphEdgeLabelScope, StoryboardGraphEdgeOrigin, StoryboardGraphNode, StoryboardGraphSourceGroup, StoryboardGraphWarning, StoryboardGraphWarningCode, StoryboardPathInput, } from './editor/storyboardGraph';
70
71
  export { createStoryboardRouteScenarioId, createStoryboardGraphFromDiscovery, getStoryboardDiscoveryBaselineEnvironment, loadStoryboardDiscovery, publishStoryboardDiscovery, resolveStoryboardScreenCases, } from './editor/storyboardDiscovery';
71
72
  export type { LoadStoryboardDiscoveryOptions, StoryboardDiscoveryCandidate, StoryboardDiscoveryEdge, StoryboardDiscoveryFetch, StoryboardDiscoveryGraphOptions, StoryboardDiscoveryManifest, StoryboardDiscoveryResponse, StoryboardDiscoveryResult, StoryboardDiscoveryRoute, StoryboardDiscoveryScenario, StoryboardResolvedPage, } from './editor/storyboardDiscovery';
@@ -214,7 +215,7 @@ export declare function pygmalionOpenPreview(): void;
214
215
  export declare function pygmalionResetCurrentEdits(): boolean;
215
216
  export interface InitialPageDef extends DesignImportInitialPage {
216
217
  }
217
- export declare function PygmalionEditor({ registry, tokens, initialPages, initialCanvas, initialEditMode, componentConnections, viewportPresets, sessionPresets, previewEnvironmentControls, designImport, onTokensChange, appOrigin, previewRevision, previewCacheNamespace, previewArtifacts, previewArtifactEndpoint, previewConcurrency, previewOpen, onPreviewOpenChange, flowCanvas, frameSurface, captureSupply, screenFlows, screenFlowConcurrency, scenarioCoverage, screenDimensions, screenLists, sectionHeaders, sectionHeaderLabels, screenLanes, frameBranchKinds, frameLabelLabels, screenCards, liveScreenBudget, screenStateAxes, interactiveStates, surfaceClassifications, onApply, onDesignChange, onInspectApply, onInspectPreview, onInspectImpact, storyboard, sessionStoryboards, storyboardDiscovery, storyboardDiscoveryEndpoint, }: {
218
+ export declare function PygmalionEditor({ registry, tokens, initialPages, initialCanvas, initialEditMode, componentConnections, viewportPresets, sessionPresets, previewEnvironmentControls, designImport, onTokensChange, appOrigin, previewRevision, previewCacheNamespace, previewArtifacts, previewArtifactEndpoint, previewConcurrency, previewOpen, onPreviewOpenChange, flowCanvas, frameSurface, captureSupply, screenFlows, screenFlowConcurrency, scenarioCoverage, screenDimensions, screenLists, sectionHeaders, sectionHeaderLabels, screenLanes, frameBranchKinds, frameLabelLabels, screenCards, liveScreenBudget, screenStateAxes, interactiveStates, surfaceClassifications, onApply, onDesignChange, onInspectApply, onInspectPreview, onInspectImpact, storyboard, storyboardScenarios, sessionStoryboards, storyboardDiscovery, storyboardDiscoveryEndpoint, }: {
218
219
  registry?: ComponentRegistry;
219
220
  tokens?: TokenDef[];
220
221
  initialPages?: InitialPageDef[];
@@ -398,6 +399,8 @@ export declare function PygmalionEditor({ registry, tokens, initialPages, initia
398
399
  onInspectImpact?: (componentFiles: string[]) => Promise<InspectImpactResult>;
399
400
  /** Authored paths, starts, and primary journey merged with discovered navigation. */
400
401
  storyboard?: StoryboardDefinition;
402
+ /** Code-owned scenario inventory for hosts that declare their own route catalog. */
403
+ storyboardScenarios?: readonly DesignScenarioSource[];
401
404
  /**
402
405
  * Runtime-specific storyboards keyed by `SessionPresetDef.id`.
403
406
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pygmalionjs/pygmalion",
3
- "version": "0.6.22",
3
+ "version": "0.6.23",
4
4
  "description": "Code-backed DOM design sandbox and visual QA editor",
5
5
  "license": "UNLICENSED",
6
6
  "publishConfig": {