@n8n/frontend-module-sdk 0.14.0 → 0.15.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/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@n8n/frontend-module-sdk",
4
- "version": "0.14.0",
4
+ "version": "0.15.0",
5
5
  "main": "src/index.ts",
6
6
  "import": "src/index.ts",
7
7
  "exports": {
8
8
  ".": "./src/index.ts"
9
9
  },
10
10
  "dependencies": {
11
- "@n8n/api-types": "1.44.0",
12
- "@n8n/design-system": "2.43.0",
13
- "@n8n/utils": "1.51.0",
14
- "n8n-workflow": "2.44.0",
11
+ "@n8n/api-types": "1.45.0",
12
+ "@n8n/design-system": "2.44.0",
13
+ "@n8n/utils": "1.52.0",
14
+ "n8n-workflow": "2.45.0",
15
15
  "vue": "^3.5.13",
16
16
  "vue-router": "^4.5.0"
17
17
  },
@@ -1,3 +1,5 @@
1
+ import type { WorkflowReviewVersionSnapshot } from '@n8n/api-types';
2
+
1
3
  /**
2
4
  * UI a module renders but does not own.
3
5
  *
@@ -9,8 +11,9 @@
9
11
  * decide between local and remote search, and the search itself all live in
10
12
  * `features/collaboration/projects`, which sits above the module layer. A module
11
13
  * that needs to filter by project renders this instead of importing any of it.
14
+ * `workflow-diff` renders plain workflow snapshots with the editor canvas.
12
15
  */
13
- export type ModuleComponentSlot = 'project-filter';
16
+ export type ModuleComponentSlot = 'project-filter' | 'workflow-diff';
14
17
 
15
18
  /**
16
19
  * The `v-model` value of the `project-filter` slot. `null` means "all projects".
@@ -20,3 +23,16 @@ export type ModuleComponentSlot = 'project-filter';
20
23
  * originates in the host.
21
24
  */
22
25
  export type SlotProjectSelection = { id: string } | null;
26
+
27
+ /** Plain snapshots keep the editor canvas types inside the shell. */
28
+ export type SlotWorkflowDiffProps = {
29
+ workflowId: string;
30
+ workflowName: string;
31
+ sourceSnapshot?: WorkflowReviewVersionSnapshot;
32
+ targetSnapshot?: WorkflowReviewVersionSnapshot;
33
+ sourceLabel?: string;
34
+ targetLabel?: string;
35
+ showFullscreenButton?: boolean;
36
+ canvasIdPrefix?: string;
37
+ hideTitle?: boolean;
38
+ };