@principal-ai/subsystems-react 0.28.4 → 0.28.6

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.
@@ -78,6 +78,11 @@ export interface WalkthroughViewerContext {
78
78
  stepIndex: number | null;
79
79
  /** Open a step's full source file over the walkthrough drawer (keeps snippets mounted). */
80
80
  onOpenFile: (path: string, opts?: SubsystemOpenFileOptions) => void;
81
+ /**
82
+ * Aliases of components marked `proposed`. A step whose file can't be read
83
+ * but whose endpoint is proposed can be labelled as planned, not missing.
84
+ */
85
+ proposedAliases: ReadonlySet<string>;
81
86
  }
82
87
 
83
88
  type DrawerTarget =
@@ -355,13 +360,15 @@ const WalkthroughDrawerContent = memo(function WalkthroughDrawerContent({
355
360
  walkthrough,
356
361
  stepIndex,
357
362
  onOpenFile,
363
+ proposedAliases,
358
364
  }: {
359
365
  render: (ctx: WalkthroughViewerContext) => ReactNode;
360
366
  walkthrough: SubsystemWalkthrough;
361
367
  stepIndex: number | null;
362
368
  onOpenFile: (path: string, opts?: SubsystemOpenFileOptions) => void;
369
+ proposedAliases: ReadonlySet<string>;
363
370
  }) {
364
- return <>{render({ walkthrough, stepIndex, onOpenFile })}</>;
371
+ return <>{render({ walkthrough, stepIndex, onOpenFile, proposedAliases })}</>;
365
372
  });
366
373
 
367
374
  interface InnerProps extends SubsystemComponentGraphProps {
@@ -2152,6 +2159,7 @@ function Inner({ components, relations, walkthroughs, initialWalkthroughId, onRe
2152
2159
  walkthrough={focusedWalkthrough}
2153
2160
  stepIndex={drawerTarget.stepIndex}
2154
2161
  onOpenFile={onOpenFileFromWalkthrough}
2162
+ proposedAliases={proposedAliases}
2155
2163
  />
2156
2164
  ) : drawerTarget?.kind === 'file' ? (
2157
2165
  <FileDrawerContent