@republicroad/seal-editor 1.8.0 → 1.10.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
@@ -73,6 +73,7 @@ declare type BaseNode<Component extends string, InputName extends string, Inputs
73
73
  shortDescription?: string;
74
74
  group?: string;
75
75
  searchKeywords?: string[];
76
+ meta?: CustomNodeSpecification<any, Component>['meta'];
76
77
  handleLeft?: boolean;
77
78
  handleRight?: boolean;
78
79
  inputs?: [...Inputs];
@@ -269,6 +270,11 @@ export declare type CustomNodeSpecification<Data extends object, Component exten
269
270
  documentationUrl?: string;
270
271
  shortDescription?: string;
271
272
  searchKeywords?: string[];
273
+ meta?: {
274
+ origin: 'reference' | 'extension' | 'industry';
275
+ version: string;
276
+ license?: 'oss' | 'proprietary';
277
+ };
272
278
  renderTab?: (props: {
273
279
  id: string;
274
280
  user?: string;
@@ -1887,6 +1893,11 @@ export declare type NodeSpecification<T = any> = {
1887
1893
  documentationUrl?: string;
1888
1894
  shortDescription?: string;
1889
1895
  searchKeywords?: string[];
1896
+ meta?: {
1897
+ origin: 'reference' | 'extension' | 'industry';
1898
+ version: string;
1899
+ license?: 'oss' | 'proprietary';
1900
+ };
1890
1901
  helper?: string | default_2.ReactNode;
1891
1902
  renderTab?: (props: {
1892
1903
  id: string;
@@ -2145,6 +2156,8 @@ declare type SetDecisionGraphOptions = {
2145
2156
  skipOnChangeEvent?: boolean;
2146
2157
  };
2147
2158
 
2159
+ export declare const setUdfCompletions: (tools: UdfCompletionTool[]) => void;
2160
+
2148
2161
  export declare type Simulation = {
2149
2162
  result?: SimulationOk;
2150
2163
  } & {
@@ -2395,6 +2408,23 @@ declare type TraceFunctionLog = {
2395
2408
 
2396
2409
  declare type TranslationKey = keyof typeof en;
2397
2410
 
2411
+ export declare type UdfCompletionTool = {
2412
+ name: string;
2413
+ title?: string;
2414
+ description?: string;
2415
+ deprecated?: {
2416
+ since?: string;
2417
+ note?: string;
2418
+ };
2419
+ parameters?: {
2420
+ properties?: Record<string, {
2421
+ type?: string;
2422
+ description?: string;
2423
+ }>;
2424
+ required?: string[];
2425
+ };
2426
+ };
2427
+
2398
2428
  export declare const updateRequestSchemaExamples: (schemaValue: unknown, examples: Array<Record<string, unknown>>, examplesMeta?: RequestExampleMeta[]) => string;
2399
2429
 
2400
2430
  export declare function useDecisionGraphActions(): DecisionGraphStoreType['actions'];
@@ -2481,11 +2511,6 @@ declare type ViewConfigPermission = 'edit:values' | 'edit:rules' | 'edit:full';
2481
2511
  export { }
2482
2512
 
2483
2513
 
2484
- declare namespace ContextMenuSub {
2485
- var displayName: string;
2486
- }
2487
-
2488
-
2489
2514
  declare global {
2490
2515
  interface Window {
2491
2516
  monaco?: Monaco;
@@ -2499,6 +2524,11 @@ declare module '@gorules/zen-engine-wasm' {
2499
2524
  }
2500
2525
  }
2501
2526
 
2527
+
2528
+ declare namespace ContextMenuSub {
2529
+ var displayName: string;
2530
+ }
2531
+
2502
2532
  declare namespace console {
2503
2533
  function log(...args: any[]): void;
2504
2534
  async function sleep(durationMs: number): Promise<void>;