@republicroad/seal-editor 1.28.0 → 1.29.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/index.d.ts CHANGED
@@ -467,6 +467,8 @@ declare type DecisionGraphStoreType = {
467
467
  goToNode: (id: string) => void;
468
468
  setActivePanel: (panel?: string) => void;
469
469
  pushSimulateRun: (entry: SimulateRunEntry) => void;
470
+ setSimulateRunPinned: (id: string, pinned: boolean) => void;
471
+ hydrateSimulateRuns: (entries: SimulateRunEntry[]) => void;
470
472
  clearSimulateRuns: () => void;
471
473
  setCompactMode: (mode: boolean) => void;
472
474
  toggleCompactMode: () => void;
@@ -1207,6 +1209,9 @@ declare const en: {
1207
1209
  readonly 'dg.simulation.toastOk': "Simulation finished";
1208
1210
  readonly 'dg.simulation.toastErr': "Simulation failed";
1209
1211
  readonly 'dg.simulation.runsEmpty': "No runs yet — run a simulation to build history";
1212
+ readonly 'dg.simulation.pin': "Pin run (keep output across reloads)";
1213
+ readonly 'dg.simulation.unpin': "Unpin run";
1214
+ readonly 'dg.simulation.payloadEvicted': "Run payload evicted (unpinned) — re-run to inspect";
1210
1215
  readonly 'dg.simulation.runsClear': "Clear history";
1211
1216
  readonly 'dg.toolbar.schema': "JSON Schema";
1212
1217
  readonly 'dg.tabs.close': "Close";
@@ -1680,6 +1685,7 @@ declare type GraphRef = DecisionGraphStoreType['actions'] & {
1680
1685
  export declare const GraphSimulator: default_2.FC<GraphSimulatorProps>;
1681
1686
 
1682
1687
  export declare type GraphSimulatorProps = {
1688
+ runsPersistenceKey?: string;
1683
1689
  onClear?: () => void;
1684
1690
  loading?: boolean;
1685
1691
  simulationFooter?: default_2.ReactNode;
@@ -2458,7 +2464,8 @@ declare type SimulateRunEntry = {
2458
2464
  ok: boolean;
2459
2465
  performance?: string;
2460
2466
  error?: string;
2461
- snapshot: Simulation;
2467
+ pinned?: boolean;
2468
+ snapshot?: Simulation;
2462
2469
  };
2463
2470
 
2464
2471
  export declare type Simulation = {
@@ -2834,16 +2841,16 @@ export declare const writeRequestInputContract: (content: RequestContentLike & R
2834
2841
  export { }
2835
2842
 
2836
2843
 
2837
- declare global {
2838
- interface Window {
2839
- monaco?: Monaco;
2844
+ declare module '@gorules/zen-engine-wasm' {
2845
+ interface VariableType {
2846
+ __hash: string;
2840
2847
  }
2841
2848
  }
2842
2849
 
2843
2850
 
2844
- declare module '@gorules/zen-engine-wasm' {
2845
- interface VariableType {
2846
- __hash: string;
2851
+ declare global {
2852
+ interface Window {
2853
+ monaco?: Monaco;
2847
2854
  }
2848
2855
  }
2849
2856