@republicroad/seal-editor 1.18.0 → 1.20.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
@@ -1304,6 +1304,30 @@ declare const en: {
1304
1304
  readonly 'cf.argsDriftMissing': "missing";
1305
1305
  readonly 'cf.argsDriftUnrecognized': "unrecognized";
1306
1306
  readonly 'cf.argsFillMissing': "Fill missing defaults";
1307
+ readonly 'cf.instanceOverview': "Instances";
1308
+ readonly 'cf.parallelHint': "runs in parallel";
1309
+ readonly 'cf.duplicateKeyError': "Duplicate output key — parallel results will overwrite";
1310
+ readonly 'cf.modeTable': "Table";
1311
+ readonly 'cf.modeCode': "Code";
1312
+ readonly 'cf.codeInvalidJson': "Invalid JSON";
1313
+ readonly 'cf.modeLiteral': "Value";
1314
+ readonly 'cf.modeExpression': "Expression";
1315
+ readonly 'cf.modeReference': "Reference";
1316
+ readonly 'cf.addInstance': "Add instance";
1317
+ readonly 'cf.paramKey': "Output key";
1318
+ readonly 'cf.paramRequired': "required";
1319
+ readonly 'cf.paramSection': "Parameters";
1320
+ readonly 'cf.dependsOn': "Depends on";
1321
+ readonly 'cf.instanceEmpty': "No instances yet";
1322
+ readonly 'cf.selectInstance': "Select an instance on the left to edit";
1323
+ readonly 'cf.noParams': "This function declares no parameters";
1324
+ readonly 'cf.unknownFunction': "Function not in scope — pick one from the catalog";
1325
+ readonly 'cf.result': "Result";
1326
+ readonly 'cf.lastRunHint': "From the last simulation run — re-run after edits to refresh";
1327
+ readonly 'cf.noFunctionsInScope': "No functions in scope — host must provide a function catalog (customFunctions/schema)";
1328
+ readonly 'cf.orphanScopeHint': "Original namespace offline ({{kind}}) — all functions are selectable";
1329
+ readonly 'cf.field': "Field";
1330
+ readonly 'cf.fieldInsert': "Insert field path";
1307
1331
  readonly 'request.noDefinitions': "No field definitions";
1308
1332
  readonly 'request.schemaPriorityTooltip': "Schema has the highest priority. Definitions and example data sync into schema, but schema remains the source of truth.";
1309
1333
  readonly 'request.simulateTooltip': "Open simulator";
@@ -1459,6 +1483,16 @@ export declare type FixturesRunner = (graph: DecisionGraphType, fixtures: Contra
1459
1483
  declare const Function_2: default_2.FC<FunctionProps>;
1460
1484
  export { Function_2 as Function }
1461
1485
 
1486
+ export declare type FunctionInstance = {
1487
+ id: string;
1488
+ key: string;
1489
+ call: {
1490
+ $call: string;
1491
+ kwargs: Record<string, unknown>;
1492
+ };
1493
+ dependsOn?: string[];
1494
+ };
1495
+
1462
1496
  declare type FunctionLibrary = {
1463
1497
  name: string;
1464
1498
  tagline: string;
@@ -1504,6 +1538,14 @@ export declare type FunctionProps = {
1504
1538
  };
1505
1539
  };
1506
1540
 
1541
+ declare type FunctionScope = {
1542
+ mode: FunctionScopeMode;
1543
+ functions: any[];
1544
+ orphanKind?: string;
1545
+ };
1546
+
1547
+ declare type FunctionScopeMode = 'scoped' | 'legacy' | 'free';
1548
+
1507
1549
  declare type GenerateNodeParams = {
1508
1550
  index: number;
1509
1551
  };
@@ -1711,6 +1753,24 @@ declare type InputTypeMap = {
1711
1753
  text: string;
1712
1754
  };
1713
1755
 
1756
+ declare type InstanceDriftSummary = {
1757
+ missing: number;
1758
+ unrecognized: number;
1759
+ };
1760
+
1761
+ export declare const InstanceEditor: default_2.FC<InstanceEditorProps>;
1762
+
1763
+ declare type InstanceEditorProps = {
1764
+ instances: FunctionInstance[];
1765
+ functionScope: FunctionScope;
1766
+ disabled?: boolean;
1767
+ fieldPaths?: string[];
1768
+ driftByInstance?: Record<string, InstanceDriftSummary>;
1769
+ duplicateKeys?: string[];
1770
+ outputsByKey?: Record<string, unknown>;
1771
+ onChange: (instances: FunctionInstance[]) => void;
1772
+ };
1773
+
1714
1774
  declare type InterpolationParams = Record<string, string | number>;
1715
1775
 
1716
1776
  export declare const JdmConfigProvider: default_2.FC<JdmConfigProviderProps>;