fix(editor): Use display option's @Version specifier (#7351)

Nodes can have properties that have a displayOption which specifies a
version
for which node versions that property applies to. We should take this
into
account when forming the action types for a Node in the NodeList.

For example Notion node has 2 version which have different Page
operations.
This commit is contained in:
Tomi Turtiainen
2023-10-05 15:57:47 +03:00
committed by GitHub
parent aa1bf95136
commit afbf0c3d5e
3 changed files with 413 additions and 6 deletions

View File

@@ -1116,6 +1116,8 @@ export interface IDisplayOptions {
[key: string]: NodeParameterValue[] | undefined;
};
show?: {
// eslint-disable-next-line @typescript-eslint/naming-convention
'@version'?: number[];
[key: string]: NodeParameterValue[] | undefined;
};