@n8n/frontend-module-sdk 0.14.2 → 0.15.1
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.
|
|
4
|
+
"version": "0.15.1",
|
|
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.
|
|
12
|
-
"@n8n/design-system": "2.
|
|
13
|
-
"@n8n/utils": "1.
|
|
14
|
-
"n8n-workflow": "2.
|
|
11
|
+
"@n8n/api-types": "1.45.1",
|
|
12
|
+
"@n8n/design-system": "2.44.1",
|
|
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,6 @@
|
|
|
1
1
|
export { mcpExposeAllOffer } from './mcpExposeAllOffer';
|
|
2
|
+
// Experiment cleanup (123_surface_mcp_to_claude_trial_users)
|
|
3
|
+
export { mcpDiscoverySettings } from './mcpDiscoverySettings';
|
|
4
|
+
// EOF Experiment cleanup
|
|
2
5
|
export { modalOpeners } from './modalOpeners';
|
|
3
6
|
export { workflowMcpAccessSync } from './workflowMcpAccessSync';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// Experiment cleanup (123_surface_mcp_to_claude_trial_users)
|
|
2
|
+
import { declareCapability } from '../declareCapability';
|
|
3
|
+
import type { Component } from 'vue';
|
|
4
|
+
|
|
5
|
+
export interface McpDiscoverySettings {
|
|
6
|
+
connectHint: Component;
|
|
7
|
+
overrides():
|
|
8
|
+
| {
|
|
9
|
+
description: string;
|
|
10
|
+
docsLeadingText: string;
|
|
11
|
+
clientTitle: string;
|
|
12
|
+
clientDescription: string;
|
|
13
|
+
connectVariant: 'solid' | 'outline';
|
|
14
|
+
}
|
|
15
|
+
| undefined;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/** Optional experiment settings supplied by the shell. No provider means no treatment. */
|
|
19
|
+
export const mcpDiscoverySettings =
|
|
20
|
+
declareCapability<McpDiscoverySettings>('mcp-discovery-settings');
|
|
21
|
+
// EOF Experiment cleanup
|
package/src/types/component.ts
CHANGED
|
@@ -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
|
+
};
|