@republicroad/seal-editor 1.0.0 → 1.2.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 +5 -5
- package/dist/index.d.ts +11 -0
- package/dist/index.js +2417 -2379
- package/dist/index.js.map +1 -1
- package/dist/schema-BmbNWz7t.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# `@republicroad/
|
|
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/
|
|
12
|
+
> **Live storybook:** https://republicroad.github.io/seal-editor/storybook/
|
|
13
13
|
|
|
14
14
|
## Installation
|
|
15
15
|
|
|
16
16
|
```bash
|
|
17
|
-
npm i @republicroad/
|
|
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/
|
|
27
|
-
import '@republicroad/
|
|
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
|
@@ -1393,6 +1393,16 @@ export declare type GraphDecisionNodeProps = {
|
|
|
1393
1393
|
children?: default_2.ReactNode;
|
|
1394
1394
|
actions?: default_2.ReactNode[];
|
|
1395
1395
|
status?: 'error' | 'success' | 'warning';
|
|
1396
|
+
trace?: {
|
|
1397
|
+
performance?: string | null;
|
|
1398
|
+
micros?: number;
|
|
1399
|
+
code?: string;
|
|
1400
|
+
} | null;
|
|
1401
|
+
traceError?: {
|
|
1402
|
+
code?: string | null;
|
|
1403
|
+
title?: string | null;
|
|
1404
|
+
message?: string | null;
|
|
1405
|
+
} | null;
|
|
1396
1406
|
diffStatus?: 'removed' | 'added' | 'modified' | 'moved';
|
|
1397
1407
|
noBodyPadding?: boolean;
|
|
1398
1408
|
color?: 'primary' | 'secondary' | string;
|
|
@@ -2124,6 +2134,7 @@ export declare type Simulation = {
|
|
|
2124
2134
|
export declare type SimulationError = {
|
|
2125
2135
|
title?: string;
|
|
2126
2136
|
message?: string;
|
|
2137
|
+
code?: string;
|
|
2127
2138
|
data: {
|
|
2128
2139
|
nodeId?: string;
|
|
2129
2140
|
};
|