@glyphjs/components 0.3.0 → 0.4.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.cjs +432 -71
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -3
- package/dist/index.d.ts +6 -3
- package/dist/index.js +433 -72
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.d.cts
CHANGED
|
@@ -4,7 +4,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
4
4
|
|
|
5
5
|
interface CalloutData {
|
|
6
6
|
type: 'info' | 'warning' | 'error' | 'tip';
|
|
7
|
-
title?: string;
|
|
7
|
+
title?: string | InlineNode[];
|
|
8
8
|
content: string | InlineNode[];
|
|
9
9
|
markdown?: boolean;
|
|
10
10
|
}
|
|
@@ -158,6 +158,7 @@ interface GraphData {
|
|
|
158
158
|
nodes: GraphNodeData[];
|
|
159
159
|
edges: GraphEdgeData[];
|
|
160
160
|
layout?: 'top-down' | 'left-right' | 'bottom-up' | 'radial' | 'force';
|
|
161
|
+
interactionMode?: 'modifier-key' | 'click-to-activate' | 'always';
|
|
161
162
|
}
|
|
162
163
|
declare function Graph({ data, block, outgoingRefs, onNavigate, onInteraction, container, }: GlyphComponentProps<GraphData>): ReactElement;
|
|
163
164
|
|
|
@@ -214,8 +215,9 @@ interface RelationData {
|
|
|
214
215
|
entities: Entity[];
|
|
215
216
|
relationships: Relationship[];
|
|
216
217
|
layout?: 'top-down' | 'left-right';
|
|
218
|
+
interactionMode?: 'modifier-key' | 'click-to-activate' | 'always';
|
|
217
219
|
}
|
|
218
|
-
declare function Relation({ data }: GlyphComponentProps<RelationData>): ReactElement;
|
|
220
|
+
declare function Relation({ data, block }: GlyphComponentProps<RelationData>): ReactElement;
|
|
219
221
|
|
|
220
222
|
declare const relationDefinition: GlyphComponentDefinition<RelationData>;
|
|
221
223
|
|
|
@@ -311,8 +313,9 @@ interface FlowchartData {
|
|
|
311
313
|
nodes: FlowchartNodeData[];
|
|
312
314
|
edges: FlowchartEdgeData[];
|
|
313
315
|
direction: 'top-down' | 'left-right';
|
|
316
|
+
interactionMode?: 'modifier-key' | 'click-to-activate' | 'always';
|
|
314
317
|
}
|
|
315
|
-
declare function Flowchart({ data, container }: GlyphComponentProps<FlowchartData>): ReactElement;
|
|
318
|
+
declare function Flowchart({ data, block, container, }: GlyphComponentProps<FlowchartData>): ReactElement;
|
|
316
319
|
|
|
317
320
|
declare const flowchartDefinition: GlyphComponentDefinition<FlowchartData>;
|
|
318
321
|
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
4
4
|
|
|
5
5
|
interface CalloutData {
|
|
6
6
|
type: 'info' | 'warning' | 'error' | 'tip';
|
|
7
|
-
title?: string;
|
|
7
|
+
title?: string | InlineNode[];
|
|
8
8
|
content: string | InlineNode[];
|
|
9
9
|
markdown?: boolean;
|
|
10
10
|
}
|
|
@@ -158,6 +158,7 @@ interface GraphData {
|
|
|
158
158
|
nodes: GraphNodeData[];
|
|
159
159
|
edges: GraphEdgeData[];
|
|
160
160
|
layout?: 'top-down' | 'left-right' | 'bottom-up' | 'radial' | 'force';
|
|
161
|
+
interactionMode?: 'modifier-key' | 'click-to-activate' | 'always';
|
|
161
162
|
}
|
|
162
163
|
declare function Graph({ data, block, outgoingRefs, onNavigate, onInteraction, container, }: GlyphComponentProps<GraphData>): ReactElement;
|
|
163
164
|
|
|
@@ -214,8 +215,9 @@ interface RelationData {
|
|
|
214
215
|
entities: Entity[];
|
|
215
216
|
relationships: Relationship[];
|
|
216
217
|
layout?: 'top-down' | 'left-right';
|
|
218
|
+
interactionMode?: 'modifier-key' | 'click-to-activate' | 'always';
|
|
217
219
|
}
|
|
218
|
-
declare function Relation({ data }: GlyphComponentProps<RelationData>): ReactElement;
|
|
220
|
+
declare function Relation({ data, block }: GlyphComponentProps<RelationData>): ReactElement;
|
|
219
221
|
|
|
220
222
|
declare const relationDefinition: GlyphComponentDefinition<RelationData>;
|
|
221
223
|
|
|
@@ -311,8 +313,9 @@ interface FlowchartData {
|
|
|
311
313
|
nodes: FlowchartNodeData[];
|
|
312
314
|
edges: FlowchartEdgeData[];
|
|
313
315
|
direction: 'top-down' | 'left-right';
|
|
316
|
+
interactionMode?: 'modifier-key' | 'click-to-activate' | 'always';
|
|
314
317
|
}
|
|
315
|
-
declare function Flowchart({ data, container }: GlyphComponentProps<FlowchartData>): ReactElement;
|
|
318
|
+
declare function Flowchart({ data, block, container, }: GlyphComponentProps<FlowchartData>): ReactElement;
|
|
316
319
|
|
|
317
320
|
declare const flowchartDefinition: GlyphComponentDefinition<FlowchartData>;
|
|
318
321
|
|