@republicroad/seal-editor 1.23.0 → 1.25.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 +59 -6
- package/dist/index.js +3314 -2980
- package/dist/index.js.map +1 -1
- package/dist/schema.d.ts +6 -6
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -97,6 +97,13 @@ export declare const buildRequestSchemaFromDefinitions: (schemaValue: unknown, d
|
|
|
97
97
|
|
|
98
98
|
export declare const calculateDiffGraph: (currentGraph: DecisionGraphType, previousGraph: DecisionGraphType, options?: ProcessNodesOptions) => DecisionGraphType;
|
|
99
99
|
|
|
100
|
+
declare type CellHistoryEntry = {
|
|
101
|
+
rowId: string;
|
|
102
|
+
columnId: string;
|
|
103
|
+
previousValue: string;
|
|
104
|
+
value: string;
|
|
105
|
+
};
|
|
106
|
+
|
|
100
107
|
export declare const clusterToolbarItems: (items: ToolbarItem[]) => ToolbarItem[];
|
|
101
108
|
|
|
102
109
|
export declare const CodeEditor: default_2.ForwardRefExoticComponent<{
|
|
@@ -171,6 +178,8 @@ export declare const codemirror: {
|
|
|
171
178
|
linter: typeof linter;
|
|
172
179
|
};
|
|
173
180
|
|
|
181
|
+
export declare const coerceToTypedValue: (raw: unknown) => TypedValue;
|
|
182
|
+
|
|
174
183
|
export declare const COLUMN_FIELD_TYPE_OPTIONS: {
|
|
175
184
|
value: ColumnFieldType['type'];
|
|
176
185
|
label: string;
|
|
@@ -932,11 +941,20 @@ declare type DecisionTableStoreType = {
|
|
|
932
941
|
trace: SimulationTrace<SimulationTraceDataTable>;
|
|
933
942
|
inputData?: GetNodeDataResult;
|
|
934
943
|
};
|
|
944
|
+
cellUndoStack: CellHistoryEntry[][];
|
|
945
|
+
cellRedoStack: CellHistoryEntry[][];
|
|
935
946
|
};
|
|
936
947
|
actions: {
|
|
937
948
|
setDecisionTable: (val: DecisionTableType) => void;
|
|
938
949
|
setCursor: (cursor: TableCursor | null) => void;
|
|
939
950
|
commitData: (data: string, cursor: TableCursor) => void;
|
|
951
|
+
commitCells: (changes: Array<{
|
|
952
|
+
value: string;
|
|
953
|
+
columnId: string;
|
|
954
|
+
rowIndex: number;
|
|
955
|
+
}>) => void;
|
|
956
|
+
undoCells: () => void;
|
|
957
|
+
redoCells: () => void;
|
|
940
958
|
swapRows: (source: number, target: number) => void;
|
|
941
959
|
addRowAbove: (target?: number) => void;
|
|
942
960
|
addRowBelow: (target?: number) => void;
|
|
@@ -1113,6 +1131,9 @@ declare const en: {
|
|
|
1113
1131
|
readonly 'dt.toolbar.addRowBelow': "Add row below";
|
|
1114
1132
|
readonly 'dt.toolbar.removeRow': "Remove row";
|
|
1115
1133
|
readonly 'dt.toolbar.toggleColumns': "Toggle columns";
|
|
1134
|
+
readonly 'dt.toolbar.undo': "Undo cell changes";
|
|
1135
|
+
readonly 'dt.toolbar.redo': "Redo cell changes";
|
|
1136
|
+
readonly 'dt.cellsSkipped': "Skipped {{count}} non-writable cell(s)";
|
|
1116
1137
|
readonly 'dt.toolbar.removeRowConfirm': "Remove row?";
|
|
1117
1138
|
readonly 'dt.table.column': "Table column";
|
|
1118
1139
|
readonly 'dt.table.excelColumn': "Excel column";
|
|
@@ -1309,6 +1330,8 @@ declare const en: {
|
|
|
1309
1330
|
readonly 'cf.instanceOverview': "Instances";
|
|
1310
1331
|
readonly 'cf.parallelHint': "runs in parallel";
|
|
1311
1332
|
readonly 'cf.duplicateKeyError': "Duplicate output key — parallel results will overwrite";
|
|
1333
|
+
readonly 'cf.scheduleCycleError': "Circular dependency detected: {{keys}}";
|
|
1334
|
+
readonly 'cf.instanceLayerHint': "Execution layer {{layer}}";
|
|
1312
1335
|
readonly 'cf.modeTable': "Table";
|
|
1313
1336
|
readonly 'cf.modeCode': "Code";
|
|
1314
1337
|
readonly 'cf.codeInvalidJson': "Invalid JSON";
|
|
@@ -1770,9 +1793,21 @@ declare type InstanceEditorProps = {
|
|
|
1770
1793
|
driftByInstance?: Record<string, InstanceDriftSummary>;
|
|
1771
1794
|
duplicateKeys?: string[];
|
|
1772
1795
|
outputsByKey?: Record<string, unknown>;
|
|
1796
|
+
schedule?: InstanceSchedule;
|
|
1773
1797
|
onChange: (instances: FunctionInstance[]) => void;
|
|
1774
1798
|
};
|
|
1775
1799
|
|
|
1800
|
+
declare type InstanceSchedule = {
|
|
1801
|
+
ok: true;
|
|
1802
|
+
layers: string[][];
|
|
1803
|
+
hasEdges: boolean;
|
|
1804
|
+
depsByItem: Record<string, string[]>;
|
|
1805
|
+
} | {
|
|
1806
|
+
ok: false;
|
|
1807
|
+
error: 'DUPLICATE_OUTPUT' | 'CYCLE_DETECTED';
|
|
1808
|
+
keys: string[];
|
|
1809
|
+
};
|
|
1810
|
+
|
|
1776
1811
|
declare type InterpolationParams = Record<string, string | number>;
|
|
1777
1812
|
|
|
1778
1813
|
export declare const JdmConfigProvider: default_2.FC<JdmConfigProviderProps>;
|
|
@@ -2659,6 +2694,24 @@ declare type TraceFunctionLog = {
|
|
|
2659
2694
|
|
|
2660
2695
|
declare type TranslationKey = keyof typeof en;
|
|
2661
2696
|
|
|
2697
|
+
export declare const TypedInput: default_2.FC<TypedInputProps>;
|
|
2698
|
+
|
|
2699
|
+
declare type TypedInputProps = {
|
|
2700
|
+
parameterType: string;
|
|
2701
|
+
value?: TypedValue;
|
|
2702
|
+
onChange: (value: TypedValue) => void;
|
|
2703
|
+
disabled?: boolean;
|
|
2704
|
+
placeholder?: string;
|
|
2705
|
+
fieldPaths?: string[];
|
|
2706
|
+
};
|
|
2707
|
+
|
|
2708
|
+
export declare type TypedValue = {
|
|
2709
|
+
mode: TypedValueMode;
|
|
2710
|
+
value: unknown;
|
|
2711
|
+
};
|
|
2712
|
+
|
|
2713
|
+
export declare type TypedValueMode = 'literal' | 'expression' | 'reference';
|
|
2714
|
+
|
|
2662
2715
|
export declare type UdfCompletionTool = {
|
|
2663
2716
|
name: string;
|
|
2664
2717
|
title?: string;
|
|
@@ -2764,16 +2817,16 @@ export declare const writeRequestInputContract: (content: RequestContentLike & R
|
|
|
2764
2817
|
export { }
|
|
2765
2818
|
|
|
2766
2819
|
|
|
2767
|
-
declare
|
|
2768
|
-
interface
|
|
2769
|
-
|
|
2820
|
+
declare module '@gorules/zen-engine-wasm' {
|
|
2821
|
+
interface VariableType {
|
|
2822
|
+
__hash: string;
|
|
2770
2823
|
}
|
|
2771
2824
|
}
|
|
2772
2825
|
|
|
2773
2826
|
|
|
2774
|
-
declare
|
|
2775
|
-
interface
|
|
2776
|
-
|
|
2827
|
+
declare global {
|
|
2828
|
+
interface Window {
|
|
2829
|
+
monaco?: Monaco;
|
|
2777
2830
|
}
|
|
2778
2831
|
}
|
|
2779
2832
|
|