Merge pull request #5472 from xyflow/chore/node-edge-types-redux
Chore/node edge types redux
This commit is contained in:
@@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
'@xyflow/react': patch
|
||||||
|
'@xyflow/svelte': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Remove dangerouslySetInnerHTML from domAttributes
|
||||||
@@ -72,7 +72,10 @@ export type Edge<
|
|||||||
/**
|
/**
|
||||||
* General escape hatch for adding custom attributes to the edge's DOM element.
|
* General escape hatch for adding custom attributes to the edge's DOM element.
|
||||||
*/
|
*/
|
||||||
domAttributes?: Omit<SVGAttributes<SVGGElement>, 'id' | 'style' | 'className' | 'role' | 'aria-label'>;
|
domAttributes?: Omit<
|
||||||
|
SVGAttributes<SVGGElement>,
|
||||||
|
'id' | 'style' | 'className' | 'role' | 'aria-label' | 'dangerouslySetInnerHTML'
|
||||||
|
>;
|
||||||
};
|
};
|
||||||
|
|
||||||
type SmoothStepEdge<EdgeData extends Record<string, unknown> = Record<string, unknown>> = Edge<
|
type SmoothStepEdge<EdgeData extends Record<string, unknown> = Record<string, unknown>> = Edge<
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ export type Node<
|
|||||||
| 'role'
|
| 'role'
|
||||||
| 'aria-label'
|
| 'aria-label'
|
||||||
| 'defaultValue'
|
| 'defaultValue'
|
||||||
|
| 'dangerouslySetInnerHTML'
|
||||||
| keyof DOMAttributes<HTMLDivElement>
|
| keyof DOMAttributes<HTMLDivElement>
|
||||||
>;
|
>;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ export type Edge<
|
|||||||
*/
|
*/
|
||||||
domAttributes?: Omit<
|
domAttributes?: Omit<
|
||||||
SVGAttributes<SVGGElement>,
|
SVGAttributes<SVGGElement>,
|
||||||
'id' | 'style' | 'class' | 'role' | 'aria-label'
|
'id' | 'style' | 'class' | 'role' | 'aria-label' | 'dangerouslySetInnerHTML'
|
||||||
>;
|
>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ export type Node<
|
|||||||
| 'draggable'
|
| 'draggable'
|
||||||
| 'role'
|
| 'role'
|
||||||
| 'aria-label'
|
| 'aria-label'
|
||||||
|
| 'dangerouslySetInnerHTML'
|
||||||
| keyof DOMAttributes<HTMLDivElement>
|
| keyof DOMAttributes<HTMLDivElement>
|
||||||
>;
|
>;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user