@republicroad/seal-editor 1.31.0 → 1.32.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
@@ -368,6 +368,14 @@ declare type DecisionGraphEmptyType = {
368
368
  components?: DecisionGraphStoreType['state']['components'];
369
369
  customNodes?: DecisionGraphStoreType['state']['customNodes'];
370
370
  allowedNamespaces?: Set<string>;
371
+ extraCommands?: Array<{
372
+ id: string;
373
+ group: string;
374
+ label: string;
375
+ icon?: default_2.ReactNode;
376
+ keywords: string;
377
+ run: () => void;
378
+ }>;
371
379
  hideLeftToolbar?: DecisionGraphStoreType['state']['hideLeftToolbar'];
372
380
  name?: DecisionGraphStoreType['state']['name'];
373
381
  viewConfigCta?: DecisionGraphStoreType['state']['viewConfigCta'];
@@ -418,6 +426,14 @@ declare type DecisionGraphStoreType = {
418
426
  simulate?: Simulation;
419
427
  simulateRuns: SimulateRunEntry[];
420
428
  commandMenuOpen: boolean;
429
+ extraCommands: Array<{
430
+ id: string;
431
+ group: string;
432
+ label: string;
433
+ icon?: default_2.ReactNode;
434
+ keywords: string;
435
+ run: () => void;
436
+ }>;
421
437
  user: string;
422
438
  simulatorRequest?: string;
423
439
  simulatorExampleBinding?: SimulatorExampleBinding;
@@ -470,6 +486,14 @@ declare type DecisionGraphStoreType = {
470
486
  setActivePanel: (panel?: string) => void;
471
487
  pushSimulateRun: (entry: SimulateRunEntry) => void;
472
488
  setCommandMenuOpen: (open: boolean) => void;
489
+ setExtraCommands: (commands: Array<{
490
+ id: string;
491
+ group: string;
492
+ label: string;
493
+ icon?: default_2.ReactNode;
494
+ keywords: string;
495
+ run: () => void;
496
+ }>) => void;
473
497
  setSimulateRunPinned: (id: string, pinned: boolean) => void;
474
498
  hydrateSimulateRuns: (entries: SimulateRunEntry[]) => void;
475
499
  clearSimulateRuns: () => void;
@@ -1220,6 +1244,7 @@ declare const en: {
1220
1244
  readonly 'dg.simulation.runsEmpty': "No runs yet — run a simulation to build history";
1221
1245
  readonly 'dg.simulation.pin': "Pin run (keep output across reloads)";
1222
1246
  readonly 'dg.simulation.unpin': "Unpin run";
1247
+ readonly 'dg.simulation.copy': "Copy JSON";
1223
1248
  readonly 'dg.simulation.payloadEvicted': "Run payload evicted (unpinned) — re-run to inspect";
1224
1249
  readonly 'dg.simulation.runsClear': "Clear history";
1225
1250
  readonly 'dg.toolbar.schema': "JSON Schema";