@republicroad/seal-editor 1.25.0 → 1.26.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
@@ -415,6 +415,7 @@ declare type DecisionGraphStoreType = {
415
415
  activePanel?: string;
416
416
  onPanelsChange?: (val?: string) => void;
417
417
  simulate?: Simulation;
418
+ simulateRuns: SimulateRunEntry[];
418
419
  user: string;
419
420
  simulatorRequest?: string;
420
421
  simulatorExampleBinding?: SimulatorExampleBinding;
@@ -465,6 +466,8 @@ declare type DecisionGraphStoreType = {
465
466
  openTab: (id: string) => void;
466
467
  goToNode: (id: string) => void;
467
468
  setActivePanel: (panel?: string) => void;
469
+ pushSimulateRun: (entry: SimulateRunEntry) => void;
470
+ clearSimulateRuns: () => void;
468
471
  setCompactMode: (mode: boolean) => void;
469
472
  toggleCompactMode: () => void;
470
473
  setNodeType: (id: string, kind: NodeTypeKind, vt: VariableType) => void;
@@ -1146,6 +1149,7 @@ declare const en: {
1146
1149
  readonly 'dt.field.output.add': "Add Output";
1147
1150
  readonly 'dt.field.output.label': "Output Field";
1148
1151
  readonly 'dt.field.label': "Field label";
1152
+ readonly 'dt.field.browse': "Browse fields";
1149
1153
  readonly 'dt.field.name': "Name";
1150
1154
  readonly 'dt.field.type': "Field Type";
1151
1155
  readonly 'dt.field.outputType': "Output Type";
@@ -1200,6 +1204,10 @@ declare const en: {
1200
1204
  readonly 'dg.toolbar.downloadExcel': "Download Excel";
1201
1205
  readonly 'dg.toolbar.searchNodes': "Search nodes";
1202
1206
  readonly 'dg.toolbar.closeClose': "Close panel";
1207
+ readonly 'dg.simulation.toastOk': "Simulation finished";
1208
+ readonly 'dg.simulation.toastErr': "Simulation failed";
1209
+ readonly 'dg.simulation.runsEmpty': "No runs yet — run a simulation to build history";
1210
+ readonly 'dg.simulation.runsClear': "Clear history";
1203
1211
  readonly 'dg.toolbar.schema': "JSON Schema";
1204
1212
  readonly 'dg.tabs.close': "Close";
1205
1213
  readonly 'dg.tabs.closeAll': "Close all Tabs";
@@ -2444,6 +2452,15 @@ declare type SetDecisionGraphOptions = {
2444
2452
 
2445
2453
  export declare const setUdfCompletions: (tools: UdfCompletionTool[]) => void;
2446
2454
 
2455
+ declare type SimulateRunEntry = {
2456
+ id: string;
2457
+ ts: string;
2458
+ ok: boolean;
2459
+ performance?: string;
2460
+ error?: string;
2461
+ snapshot: Simulation;
2462
+ };
2463
+
2447
2464
  export declare type Simulation = {
2448
2465
  result?: SimulationOk;
2449
2466
  } & {
@@ -2817,16 +2834,16 @@ export declare const writeRequestInputContract: (content: RequestContentLike & R
2817
2834
  export { }
2818
2835
 
2819
2836
 
2820
- declare module '@gorules/zen-engine-wasm' {
2821
- interface VariableType {
2822
- __hash: string;
2837
+ declare global {
2838
+ interface Window {
2839
+ monaco?: Monaco;
2823
2840
  }
2824
2841
  }
2825
2842
 
2826
2843
 
2827
- declare global {
2828
- interface Window {
2829
- monaco?: Monaco;
2844
+ declare module '@gorules/zen-engine-wasm' {
2845
+ interface VariableType {
2846
+ __hash: string;
2830
2847
  }
2831
2848
  }
2832
2849