@republicroad/seal-editor 1.1.0 → 1.3.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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # `@republicroad/jdm-editor`
1
+ # `@republicroad/seal-editor`
2
2
 
3
3
  React components for authoring [JDM](https://gorules.io/docs) (JSON Decision
4
4
  Model) documents: a decision graph canvas, decision tables, expression and
@@ -9,12 +9,12 @@ end-to-end with shadcn/ReUI + Tailwind.
9
9
  > significant divergence (ReactFlow 12, shadcn/ReUI stack, seed-derived
10
10
  > theming, i18n, pooled editors). Will not track upstream merges.
11
11
  >
12
- > **Live storybook:** https://republicroad.github.io/jdm-editor/
12
+ > **Live storybook:** https://republicroad.github.io/seal-editor/storybook/
13
13
 
14
14
  ## Installation
15
15
 
16
16
  ```bash
17
- npm i @republicroad/jdm-editor
17
+ npm i @republicroad/seal-editor
18
18
  ```
19
19
 
20
20
  **Heads-up (0.3.0+):** `monaco-editor` is a peer dependency — install it
@@ -23,8 +23,8 @@ explicitly: `npm i monaco-editor`.
23
23
  ## Quick start
24
24
 
25
25
  ```tsx
26
- import { DecisionGraph, JdmConfigProvider } from '@republicroad/jdm-editor';
27
- import '@republicroad/jdm-editor/dist/style.css';
26
+ import { DecisionGraph, JdmConfigProvider } from '@republicroad/seal-editor';
27
+ import '@republicroad/seal-editor/dist/style.css';
28
28
 
29
29
  <JdmConfigProvider
30
30
  seeds={{ primary: '#6366f1' }} // one seed → full light + dark palettes
package/dist/index.d.ts CHANGED
@@ -393,6 +393,11 @@ declare type DecisionGraphStoreType = {
393
393
  addNodes: (nodes: DecisionNode[]) => void;
394
394
  updateNode: (id: string, updater: DraftUpdateCallback<DecisionNode>) => void;
395
395
  removeNodes: (ids: string[]) => void;
396
+ autoLayout: (options?: {
397
+ ranksep?: number;
398
+ nodesep?: number;
399
+ fitView?: boolean;
400
+ }) => Promise<void>;
396
401
  duplicateNodes: (ids: string[]) => void;
397
402
  copyNodes: (ids: string[]) => void;
398
403
  pasteNodes: () => void;
@@ -1103,6 +1108,7 @@ declare const en: {
1103
1108
  readonly 'vh.compare.entry': "comparing";
1104
1109
  readonly 'dg.toolbar.uploadJson': "Upload JSON";
1105
1110
  readonly 'dg.toolbar.uploadExcel': "Upload Excel";
1111
+ readonly 'dg.toolbar.autoLayout': "Auto layout";
1106
1112
  readonly 'dg.toolbar.downloadJson': "Download JSON";
1107
1113
  readonly 'dg.toolbar.downloadExcel': "Download Excel";
1108
1114
  readonly 'dg.toolbar.searchNodes': "Search nodes";
@@ -1398,6 +1404,11 @@ export declare type GraphDecisionNodeProps = {
1398
1404
  micros?: number;
1399
1405
  code?: string;
1400
1406
  } | null;
1407
+ traceError?: {
1408
+ code?: string | null;
1409
+ title?: string | null;
1410
+ message?: string | null;
1411
+ } | null;
1401
1412
  diffStatus?: 'removed' | 'added' | 'modified' | 'moved';
1402
1413
  noBodyPadding?: boolean;
1403
1414
  color?: 'primary' | 'secondary' | string;
@@ -2129,6 +2140,7 @@ export declare type Simulation = {
2129
2140
  export declare type SimulationError = {
2130
2141
  title?: string;
2131
2142
  message?: string;
2143
+ code?: string;
2132
2144
  data: {
2133
2145
  nodeId?: string;
2134
2146
  };