@adminide-stack/form-builder-core 5.1.4-alpha.231 → 5.1.4-alpha.241
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/lib/config/connectorsConfig.d.ts +3 -3
- package/lib/config/connectorsConfig.d.ts.map +1 -1
- package/lib/config/connectorsConfig.js +12 -12
- package/lib/config/connectorsConfig.js.map +1 -1
- package/lib/config/mcpConnectorConfig.d.ts +17 -0
- package/lib/config/mcpConnectorConfig.d.ts.map +1 -0
- package/lib/config/mcpConnectorConfig.js +110 -0
- package/lib/config/mcpConnectorConfig.js.map +1 -0
- package/lib/index.d.ts +4 -3
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/package.json +2 -2
|
@@ -5,15 +5,15 @@
|
|
|
5
5
|
* - credentials-browser (connector cards, credentials table)
|
|
6
6
|
* - form-builder-browser (OAuthConnectorConfigPanel – known-provider dropdown)
|
|
7
7
|
*
|
|
8
|
-
* Keep this as the single source of truth so ids,
|
|
8
|
+
* Keep this as the single source of truth so ids, provider URLs, scopes, etc.
|
|
9
9
|
* never drift between packages.
|
|
10
10
|
*/
|
|
11
11
|
export interface ConnectorConfig {
|
|
12
12
|
id: string;
|
|
13
13
|
title: string;
|
|
14
14
|
description: string;
|
|
15
|
-
/** OAuth
|
|
16
|
-
|
|
15
|
+
/** OAuth/OIDC provider base URL */
|
|
16
|
+
providerUrl: string;
|
|
17
17
|
icon: {
|
|
18
18
|
name: string;
|
|
19
19
|
style?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connectorsConfig.d.ts","sourceRoot":"","sources":["../../src/config/connectorsConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,MAAM,WAAW,eAAe;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,
|
|
1
|
+
{"version":3,"file":"connectorsConfig.d.ts","sourceRoot":"","sources":["../../src/config/connectorsConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,MAAM,WAAW,eAAe;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,mCAAmC;IACnC,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE;QACF,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,CAAC,EAAE;YAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;KACjC,CAAC;IACF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,6CAA6C;IAC7C,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,uDAAuD;IACvD,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,gBAAgB,EAAE,eAAe,EAmJ7C,CAAC"}
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
* - credentials-browser (connector cards, credentials table)
|
|
6
6
|
* - form-builder-browser (OAuthConnectorConfigPanel – known-provider dropdown)
|
|
7
7
|
*
|
|
8
|
-
* Keep this as the single source of truth so ids,
|
|
8
|
+
* Keep this as the single source of truth so ids, provider URLs, scopes, etc.
|
|
9
9
|
* never drift between packages.
|
|
10
10
|
*/
|
|
11
11
|
const connectorsConfig = [{
|
|
12
12
|
id: 'gmail',
|
|
13
13
|
title: 'Gmail',
|
|
14
14
|
description: 'Draft replies, search your inbox, and summarize email threads instantly',
|
|
15
|
-
|
|
15
|
+
providerUrl: 'https://accounts.google.com',
|
|
16
16
|
icon: {
|
|
17
17
|
name: 'AiOutlineMail',
|
|
18
18
|
style: {
|
|
@@ -26,7 +26,7 @@ const connectorsConfig = [{
|
|
|
26
26
|
id: 'google-calendar',
|
|
27
27
|
title: 'Google Calendar',
|
|
28
28
|
description: 'View and manage your calendar events, schedule meetings, and set reminders',
|
|
29
|
-
|
|
29
|
+
providerUrl: 'https://accounts.google.com',
|
|
30
30
|
icon: {
|
|
31
31
|
name: 'AiOutlineCalendar',
|
|
32
32
|
style: {
|
|
@@ -40,7 +40,7 @@ const connectorsConfig = [{
|
|
|
40
40
|
id: 'notion',
|
|
41
41
|
title: 'Notion',
|
|
42
42
|
description: 'Access your Notion pages, databases, and create new content seamlessly',
|
|
43
|
-
|
|
43
|
+
providerUrl: 'https://api.notion.com/v1',
|
|
44
44
|
icon: {
|
|
45
45
|
name: 'AiOutlineFileText',
|
|
46
46
|
style: {
|
|
@@ -55,7 +55,7 @@ const connectorsConfig = [{
|
|
|
55
55
|
id: 'google-drive',
|
|
56
56
|
title: 'Google Drive',
|
|
57
57
|
description: 'Access and manage your files, folders, and documents from Google Drive',
|
|
58
|
-
|
|
58
|
+
providerUrl: 'https://accounts.google.com',
|
|
59
59
|
icon: {
|
|
60
60
|
name: 'AiOutlineFolder',
|
|
61
61
|
style: {
|
|
@@ -69,7 +69,7 @@ const connectorsConfig = [{
|
|
|
69
69
|
id: 'outlook-mail',
|
|
70
70
|
title: 'Outlook Mail',
|
|
71
71
|
description: 'Send and receive emails, manage your inbox, and organize messages',
|
|
72
|
-
|
|
72
|
+
providerUrl: 'https://login.microsoftonline.com/common',
|
|
73
73
|
icon: {
|
|
74
74
|
name: 'AiOutlineMail',
|
|
75
75
|
style: {
|
|
@@ -83,7 +83,7 @@ const connectorsConfig = [{
|
|
|
83
83
|
id: 'slack',
|
|
84
84
|
title: 'Slack',
|
|
85
85
|
description: 'Send messages, create channels, and collaborate with your team',
|
|
86
|
-
|
|
86
|
+
providerUrl: 'https://slack.com',
|
|
87
87
|
icon: {
|
|
88
88
|
name: 'AiOutlineMessage',
|
|
89
89
|
style: {
|
|
@@ -97,7 +97,7 @@ const connectorsConfig = [{
|
|
|
97
97
|
id: 'github',
|
|
98
98
|
title: 'GitHub',
|
|
99
99
|
description: 'Access repositories, manage issues, and review pull requests',
|
|
100
|
-
|
|
100
|
+
providerUrl: 'https://github.com',
|
|
101
101
|
icon: {
|
|
102
102
|
name: 'AiOutlineGithub',
|
|
103
103
|
style: {
|
|
@@ -111,7 +111,7 @@ const connectorsConfig = [{
|
|
|
111
111
|
id: 'outlook-calendar',
|
|
112
112
|
title: 'Outlook Calendar',
|
|
113
113
|
description: 'Manage your calendar, schedule meetings, and view availability',
|
|
114
|
-
|
|
114
|
+
providerUrl: 'https://login.microsoftonline.com',
|
|
115
115
|
icon: {
|
|
116
116
|
name: 'AiOutlineCalendar',
|
|
117
117
|
style: {
|
|
@@ -125,7 +125,7 @@ const connectorsConfig = [{
|
|
|
125
125
|
id: 'linear',
|
|
126
126
|
title: 'Linear',
|
|
127
127
|
description: 'Track issues, manage projects, and collaborate on your work',
|
|
128
|
-
|
|
128
|
+
providerUrl: 'https://linear.app',
|
|
129
129
|
icon: {
|
|
130
130
|
name: 'AiOutlineCheckSquare',
|
|
131
131
|
style: {
|
|
@@ -140,7 +140,7 @@ const connectorsConfig = [{
|
|
|
140
140
|
id: 'asana',
|
|
141
141
|
title: 'Asana',
|
|
142
142
|
description: 'Organize tasks, track projects, and collaborate with your team',
|
|
143
|
-
|
|
143
|
+
providerUrl: 'https://app.asana.com',
|
|
144
144
|
icon: {
|
|
145
145
|
name: 'AiOutlineProject',
|
|
146
146
|
style: {
|
|
@@ -154,7 +154,7 @@ const connectorsConfig = [{
|
|
|
154
154
|
id: 'jira',
|
|
155
155
|
title: 'Jira',
|
|
156
156
|
description: 'Issue and project tracking',
|
|
157
|
-
|
|
157
|
+
providerUrl: 'https://auth.atlassian.com',
|
|
158
158
|
icon: {
|
|
159
159
|
name: 'AiOutlineCheckSquare',
|
|
160
160
|
style: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connectorsConfig.js","sources":["../../src/config/connectorsConfig.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;;;;;;;;;AASG;sBAEc,GAAe,CAAA;IAC5B,EAAE;OACF,EAAK;aACL,EAAW,yEAAS;
|
|
1
|
+
{"version":3,"file":"connectorsConfig.js","sources":["../../src/config/connectorsConfig.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;;;;;;;;;AASG;sBAEc,GAAe,CAAA;IAC5B,EAAE;OACF,EAAK;aACL,EAAW,yEAAS;aACpB,EAAA,6BAAmC;MACnC,EAAA;AACA,IAAA,IAAI,EAAE,eAAA;SACF,EAAA;AACA,MAAA,QAAM,EAAE;;;OACV,EAAA,SAAA;SACG,EAAC,IAAE;QACR,EAAA,CAAO,0BAAU,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA;;AAEjB,EAAA,EAAA,EAAA,iBAAkB;OAClB,EAAA,iBAAA;aACS,EAAA,4EAAO;AACnB,EAAA,WAAA,EAAA,6BAAA;AAED,EAAA,IAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type AuthMethod = 'oauth' | 'mcp';
|
|
2
|
+
export interface MCPProviderConfig {
|
|
3
|
+
id: string;
|
|
4
|
+
title: string;
|
|
5
|
+
description: string;
|
|
6
|
+
scopes: string[];
|
|
7
|
+
mcpUrl: string;
|
|
8
|
+
icon: {
|
|
9
|
+
name: string;
|
|
10
|
+
style?: {
|
|
11
|
+
fontSize?: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
color?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const mcpProvidersConfig: MCPProviderConfig[];
|
|
17
|
+
//# sourceMappingURL=mcpConnectorConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcpConnectorConfig.d.ts","sourceRoot":"","sources":["../../src/config/mcpConnectorConfig.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,KAAK,CAAC;AAEzC,MAAM,WAAW,iBAAiB;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE;QACF,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,CAAC,EAAE;YAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;KACjC,CAAC;IACF,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,kBAAkB,EAAE,iBAAiB,EA2FjD,CAAC"}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
const mcpProvidersConfig = [{
|
|
2
|
+
id: 'linear',
|
|
3
|
+
title: 'Linear',
|
|
4
|
+
description: 'Project management and issue tracking',
|
|
5
|
+
scopes: ['read', 'write'],
|
|
6
|
+
mcpUrl: 'https://mcp.linear.app',
|
|
7
|
+
// Base URL for OAuth discovery
|
|
8
|
+
icon: {
|
|
9
|
+
name: 'AiOutlineProject'
|
|
10
|
+
},
|
|
11
|
+
color: '#5E6AD2'
|
|
12
|
+
}, {
|
|
13
|
+
id: 'notion',
|
|
14
|
+
title: 'Notion',
|
|
15
|
+
description: 'All-in-one workspace for notes and docs',
|
|
16
|
+
mcpUrl: 'https://mcp.notion.com',
|
|
17
|
+
// Base URL for OAuth discovery
|
|
18
|
+
scopes: ['read:consent'],
|
|
19
|
+
icon: {
|
|
20
|
+
name: 'AiOutlineFileText'
|
|
21
|
+
},
|
|
22
|
+
color: '#000000'
|
|
23
|
+
}, {
|
|
24
|
+
id: 'github',
|
|
25
|
+
title: 'GitHub',
|
|
26
|
+
description: 'Code hosting and collaboration',
|
|
27
|
+
scopes: ['repo', 'read:org', 'read:user'],
|
|
28
|
+
mcpUrl: '',
|
|
29
|
+
// GitHub MCP requires self-hosted setup or Cloudflare Workers deployment
|
|
30
|
+
icon: {
|
|
31
|
+
name: 'AiOutlineGithub'
|
|
32
|
+
},
|
|
33
|
+
color: '#24292E'
|
|
34
|
+
}, {
|
|
35
|
+
id: 'slack',
|
|
36
|
+
title: 'Slack',
|
|
37
|
+
description: 'Team communication and messaging',
|
|
38
|
+
scopes: ['channels:read', 'chat:write', 'users:read'],
|
|
39
|
+
mcpUrl: '',
|
|
40
|
+
// Slack MCP requires self-hosted setup with bot token
|
|
41
|
+
icon: {
|
|
42
|
+
name: 'AiOutlineSlack'
|
|
43
|
+
},
|
|
44
|
+
color: '#4A154B'
|
|
45
|
+
}, {
|
|
46
|
+
id: 'jira',
|
|
47
|
+
title: 'Jira',
|
|
48
|
+
description: 'Issue and project tracking',
|
|
49
|
+
scopes: ['read:jira-work', 'write:jira-work'],
|
|
50
|
+
mcpUrl: 'https://mcp.atlassian.com/v1',
|
|
51
|
+
icon: {
|
|
52
|
+
name: 'AiOutlineBug'
|
|
53
|
+
},
|
|
54
|
+
color: '#0052CC'
|
|
55
|
+
}, {
|
|
56
|
+
id: 'hugging-face',
|
|
57
|
+
title: 'Hugging Face',
|
|
58
|
+
description: 'AI models and machine learning platform',
|
|
59
|
+
scopes: ['read'],
|
|
60
|
+
mcpUrl: 'https://huggingface.co',
|
|
61
|
+
// Hugging Face MCP configured via settings page (https://huggingface.co/settings/mcp)
|
|
62
|
+
icon: {
|
|
63
|
+
name: 'AiOutlineApi'
|
|
64
|
+
},
|
|
65
|
+
color: '#FFD21E'
|
|
66
|
+
}, {
|
|
67
|
+
id: 'airtable',
|
|
68
|
+
title: 'AirTable',
|
|
69
|
+
description: 'Spreadsheet-database hybrid',
|
|
70
|
+
scopes: ['data.records:read', 'data.records:write', 'schema.bases:read'],
|
|
71
|
+
mcpUrl: '',
|
|
72
|
+
// Airtable MCP requires self-hosted setup (runs on localhost:8000)
|
|
73
|
+
icon: {
|
|
74
|
+
name: 'AiOutlineFileText'
|
|
75
|
+
},
|
|
76
|
+
color: '#7B68EE'
|
|
77
|
+
}, {
|
|
78
|
+
id: 'posthog',
|
|
79
|
+
title: 'PostHog',
|
|
80
|
+
description: 'Product analytics and feature flags',
|
|
81
|
+
scopes: ['read', 'write'],
|
|
82
|
+
mcpUrl: 'https://mcp.posthog.com',
|
|
83
|
+
// Base URL for OAuth discovery (US region)
|
|
84
|
+
icon: {
|
|
85
|
+
name: 'AiOutlineSearch'
|
|
86
|
+
},
|
|
87
|
+
color: '#F9BD2B'
|
|
88
|
+
}, {
|
|
89
|
+
id: 'todoist',
|
|
90
|
+
title: 'Todoist',
|
|
91
|
+
description: 'Task management and to-do lists',
|
|
92
|
+
scopes: ['task:add', 'data:read', 'data:read_write'],
|
|
93
|
+
mcpUrl: 'https://ai.todoist.net',
|
|
94
|
+
// Base URL for OAuth discovery
|
|
95
|
+
icon: {
|
|
96
|
+
name: 'AiOutlineCheckSquare'
|
|
97
|
+
},
|
|
98
|
+
color: '#E44332'
|
|
99
|
+
}, {
|
|
100
|
+
id: 'monday',
|
|
101
|
+
title: 'Monday',
|
|
102
|
+
description: 'Work management and collaboration',
|
|
103
|
+
scopes: ['read', 'write'],
|
|
104
|
+
mcpUrl: 'https://mcp.monday.com',
|
|
105
|
+
// Base URL for OAuth discovery
|
|
106
|
+
icon: {
|
|
107
|
+
name: 'AiOutlineCalendar'
|
|
108
|
+
},
|
|
109
|
+
color: '#FF3D57'
|
|
110
|
+
}];export{mcpProvidersConfig};//# sourceMappingURL=mcpConnectorConfig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcpConnectorConfig.js","sources":["../../src/config/mcpConnectorConfig.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAY,MAAA,kBAAa,GAAO,CAAG;AAEnC,EAAA,EAAA,EAAM;OACA,UAAS;sDACG;QACd,EAAA,CAAA,MAAa,SAAO,CAAA;QACpB,EAAM,wBAAW;;AAEjB,EAAA,IAAA,EAAI;QACA,EAAA;AACA,GAAA;;;MACF,QAAA;OACF,EAAK,QAAG;AACX,EAAA,WAAA,EAAA,yCAAA;AAED,EAAA,MAAA,EAAA,wBAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export * from './config/connectorsConfig';
|
|
2
|
-
export * from './
|
|
2
|
+
export * from './config/mcpConnectorConfig';
|
|
3
3
|
export * from './inngest/generateFunctionCode';
|
|
4
|
-
export
|
|
4
|
+
export * from './inngest/interfaces/types';
|
|
5
5
|
export * from './inngest/monacoAutocompleteIntegration';
|
|
6
|
-
export
|
|
6
|
+
export { extractFunctionBody, generateFromExtractedFunctions } from './inngest/stepGenerator';
|
|
7
7
|
export * from './utils/deepMergeFormSteps';
|
|
8
|
+
export * from './utils/json';
|
|
8
9
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yCAAyC,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,8BAA8B,EAAE,MAAM,yBAAyB,CAAC;AAC9F,cAAc,4BAA4B,CAAC;AAC3C,cAAc,cAAc,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{connectorsConfig}from'./config/connectorsConfig.js';export{generateFunctionCode,generateHandlerBody,generateHandlerBodyWithReturn,generateStepFromFunction,generateStepFunctionsFromDB,wrapStepsInInngestFunction}from'./inngest/generateFunctionCode.js';export{
|
|
1
|
+
export{connectorsConfig}from'./config/connectorsConfig.js';export{mcpProvidersConfig}from'./config/mcpConnectorConfig.js';export{generateFunctionCode,generateHandlerBody,generateHandlerBodyWithReturn,generateStepFromFunction,generateStepFunctionsFromDB,wrapStepsInInngestFunction}from'./inngest/generateFunctionCode.js';export{getAvailableDefinitions,installLibraryForAutocomplete,setupMonacoAutocomplete,setupStepAutocomplete,updateAutocompleteConfig}from'./inngest/monacoAutocompleteIntegration.js';export{cleanStepCode,extractFunctionBody,extractStepVarName,generateFromExtractedFunctions}from'./inngest/stepGenerator.js';export{deepMergeElements,deepMergeFormSteps}from'./utils/deepMergeFormSteps.js';export{flatten,unflatten}from'./utils/json.js';//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adminide-stack/form-builder-core",
|
|
3
|
-
"version": "5.1.4-alpha.
|
|
3
|
+
"version": "5.1.4-alpha.241",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -24,5 +24,5 @@
|
|
|
24
24
|
"publishConfig": {
|
|
25
25
|
"access": "public"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "64616a5d820d6d7e44b1766d3f1988766f9f6c35"
|
|
28
28
|
}
|