@burdenoff/microfe-integrations 2026.1102.1 → 2026.1107.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/dist/generated/global-types.d.ts +198 -35
- package/dist/generated/global-types.d.ts.map +1 -1
- package/dist/generated/wspace-operations.d.ts +412 -0
- package/dist/generated/wspace-operations.d.ts.map +1 -1
- package/dist/generated/wspace-operations.js +255 -111
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.d.ts +1095 -11
- package/dist/generated/wspace-types.d.ts.map +1 -1
- package/dist/generated/wspace-types.js +8 -2
- package/dist/generated/wspace-types.js.map +1 -1
- package/dist/integrations/IntegrationsRoot.d.ts.map +1 -1
- package/dist/integrations/IntegrationsRoot.js +43 -36
- package/dist/integrations/IntegrationsRoot.js.map +1 -1
- package/dist/integrations/IntegrationsUserRoutes.d.ts.map +1 -1
- package/dist/integrations/IntegrationsUserRoutes.js +16 -12
- package/dist/integrations/IntegrationsUserRoutes.js.map +1 -1
- package/dist/integrations/components/ConnectorSubmissionCard.d.ts.map +1 -1
- package/dist/integrations/components/ConnectorSubmissionCard.js +137 -83
- package/dist/integrations/components/ConnectorSubmissionCard.js.map +1 -1
- package/dist/integrations/hooks/useConnectorSubmissions.d.ts +9 -1
- package/dist/integrations/hooks/useConnectorSubmissions.d.ts.map +1 -1
- package/dist/integrations/hooks/useConnectorSubmissions.js +35 -25
- package/dist/integrations/hooks/useConnectorSubmissions.js.map +1 -1
- package/dist/integrations/hooks/useMailbox.d.ts +123 -0
- package/dist/integrations/hooks/useMailbox.d.ts.map +1 -0
- package/dist/integrations/hooks/useMailbox.js +87 -0
- package/dist/integrations/hooks/useMailbox.js.map +1 -0
- package/dist/integrations/pages/ConnectorSubmissionsPage.d.ts.map +1 -1
- package/dist/integrations/pages/ConnectorSubmissionsPage.js +606 -319
- package/dist/integrations/pages/ConnectorSubmissionsPage.js.map +1 -1
- package/dist/integrations/pages/MailboxInbox.d.ts +7 -0
- package/dist/integrations/pages/MailboxInbox.d.ts.map +1 -0
- package/dist/integrations/pages/MailboxInbox.js +550 -0
- package/dist/integrations/pages/MailboxInbox.js.map +1 -0
- package/dist/integrations/store/mailboxStore.d.ts +26 -0
- package/dist/integrations/store/mailboxStore.d.ts.map +1 -0
- package/dist/integrations/store/mailboxStore.js +52 -0
- package/dist/integrations/store/mailboxStore.js.map +1 -0
- package/dist/integrations/translations/en.d.ts +1 -0
- package/dist/integrations/translations/en.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IntegrationsRoot.d.ts","sourceRoot":"","sources":["../../src/integrations/IntegrationsRoot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAOhC,OAAO,KAAK,EAAW,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAI9D;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,
|
|
1
|
+
{"version":3,"file":"IntegrationsRoot.d.ts","sourceRoot":"","sources":["../../src/integrations/IntegrationsRoot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAOhC,OAAO,KAAK,EAAW,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAI9D;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CAmGtD,CAAC"}
|
|
@@ -4,84 +4,91 @@ import { IntegrationsUserRoutes as n } from "./IntegrationsUserRoutes.js";
|
|
|
4
4
|
import { joinPath as r } from "./utils/paths.js";
|
|
5
5
|
import { useEffect as i } from "react";
|
|
6
6
|
import { ErrorBoundary as a } from "@burdenoff/fe-libs/shared/components";
|
|
7
|
-
import { FileText as o,
|
|
8
|
-
import { jsx as
|
|
9
|
-
import { FeatureFlagProvider as
|
|
7
|
+
import { FileText as o, Inbox as s, LayoutDashboard as c, Link2 as l, Plug as u, Store as d } from "lucide-react";
|
|
8
|
+
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
9
|
+
import { FeatureFlagProvider as m } from "@burdenoff/fe-libs/shared/feature-flags";
|
|
10
10
|
//#region src/integrations/IntegrationsRoot.tsx
|
|
11
|
-
var
|
|
12
|
-
let { registerNavItems:
|
|
11
|
+
var h = (h) => {
|
|
12
|
+
let { registerNavItems: g, registerFooterItems: _, basePath: v = "/" } = h, y = t();
|
|
13
13
|
return i(() => {
|
|
14
|
-
if (
|
|
14
|
+
if (g) return g({
|
|
15
15
|
id: "integrations",
|
|
16
|
-
label:
|
|
17
|
-
path:
|
|
18
|
-
icon: /* @__PURE__ */
|
|
16
|
+
label: y("integrations.nav.integrations", "Integrations"),
|
|
17
|
+
path: v,
|
|
18
|
+
icon: /* @__PURE__ */ f(u, { size: 20 }),
|
|
19
19
|
order: 10,
|
|
20
20
|
group: "integrations",
|
|
21
21
|
children: [
|
|
22
22
|
{
|
|
23
23
|
id: "integrations-overview",
|
|
24
|
-
label:
|
|
25
|
-
path:
|
|
26
|
-
icon: /* @__PURE__ */
|
|
24
|
+
label: y("integrations.nav.overview", "Overview"),
|
|
25
|
+
path: v,
|
|
26
|
+
icon: /* @__PURE__ */ f(c, { size: 16 }),
|
|
27
27
|
order: 10
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
30
|
id: "integrations-providers",
|
|
31
|
-
label:
|
|
32
|
-
path: r(
|
|
33
|
-
icon: /* @__PURE__ */ d
|
|
31
|
+
label: y("integrations.nav.providers", "Providers"),
|
|
32
|
+
path: r(v, "providers"),
|
|
33
|
+
icon: /* @__PURE__ */ f(d, { size: 16 }),
|
|
34
34
|
order: 20
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
37
|
id: "integrations-connections",
|
|
38
|
-
label:
|
|
39
|
-
path: r(
|
|
40
|
-
icon: /* @__PURE__ */
|
|
38
|
+
label: y("integrations.nav.connections", "Connections"),
|
|
39
|
+
path: r(v, "connections"),
|
|
40
|
+
icon: /* @__PURE__ */ f(l, { size: 16 }),
|
|
41
41
|
order: 30
|
|
42
42
|
},
|
|
43
|
+
{
|
|
44
|
+
id: "integrations-inbox",
|
|
45
|
+
label: y("integrations.nav.inbox", "Inbox"),
|
|
46
|
+
path: r(v, "inbox"),
|
|
47
|
+
icon: /* @__PURE__ */ f(s, { size: 16 }),
|
|
48
|
+
order: 35
|
|
49
|
+
},
|
|
43
50
|
{
|
|
44
51
|
id: "integrations-logs",
|
|
45
|
-
label:
|
|
46
|
-
path: r(
|
|
47
|
-
icon: /* @__PURE__ */
|
|
52
|
+
label: y("integrations.nav.activityLogs", "Activity Logs"),
|
|
53
|
+
path: r(v, "logs"),
|
|
54
|
+
icon: /* @__PURE__ */ f(o, { size: 16 }),
|
|
48
55
|
order: 40
|
|
49
56
|
}
|
|
50
57
|
]
|
|
51
58
|
});
|
|
52
59
|
}, [
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
60
|
+
g,
|
|
61
|
+
v,
|
|
62
|
+
y
|
|
56
63
|
]), i(() => {
|
|
57
|
-
if (
|
|
64
|
+
if (_) return _([{
|
|
58
65
|
id: "integrations-status",
|
|
59
|
-
label:
|
|
66
|
+
label: y("integrations.nav.statusReady", "Integrations Ready"),
|
|
60
67
|
type: "status",
|
|
61
68
|
order: 10,
|
|
62
69
|
section: "left"
|
|
63
70
|
}]);
|
|
64
|
-
}, [
|
|
65
|
-
workspaceId:
|
|
71
|
+
}, [_, y]), /* @__PURE__ */ f(m, {
|
|
72
|
+
workspaceId: h.workspaceId ?? null,
|
|
66
73
|
gateway: "global",
|
|
67
74
|
defaultEnabled: !1,
|
|
68
|
-
children: /* @__PURE__ */
|
|
69
|
-
fallback: /* @__PURE__ */
|
|
75
|
+
children: /* @__PURE__ */ f(a, {
|
|
76
|
+
fallback: /* @__PURE__ */ p("div", {
|
|
70
77
|
className: "p-6 text-center text-text-secondary",
|
|
71
78
|
children: [
|
|
72
|
-
|
|
79
|
+
y("integrations.errorBoundary.title", "Something went wrong loading this module."),
|
|
73
80
|
" ",
|
|
74
|
-
|
|
81
|
+
y("integrations.errorBoundary.refresh", "Please refresh the page.")
|
|
75
82
|
]
|
|
76
83
|
}),
|
|
77
|
-
children: /* @__PURE__ */
|
|
78
|
-
...
|
|
79
|
-
children: /* @__PURE__ */
|
|
84
|
+
children: /* @__PURE__ */ f(e, {
|
|
85
|
+
...h,
|
|
86
|
+
children: /* @__PURE__ */ f(n, {})
|
|
80
87
|
})
|
|
81
88
|
})
|
|
82
89
|
});
|
|
83
90
|
};
|
|
84
91
|
//#endregion
|
|
85
|
-
export {
|
|
92
|
+
export { h as IntegrationsRoot };
|
|
86
93
|
|
|
87
94
|
//# sourceMappingURL=IntegrationsRoot.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IntegrationsRoot.js","names":[],"sources":["../../src/integrations/IntegrationsRoot.tsx"],"sourcesContent":["import type { FC } from 'react';\nimport { useEffect } from 'react';\nimport { ErrorBoundary } from '@burdenoff/fe-libs/shared/components';\nimport { Plug, LayoutDashboard, Store, Link2, FileText } from 'lucide-react';\nimport { IntegrationsProvider } from './providers/IntegrationsProvider';\nimport { FeatureFlagProvider } from '@burdenoff/fe-libs/shared/feature-flags';\nimport { useTr } from './hooks/useTr';\nimport type { NavItem, IntegrationsRootProps } from './types';\nimport { IntegrationsUserRoutes } from './IntegrationsUserRoutes';\nimport { joinPath } from './utils/paths';\n\n/**\n * Root component for the Integrations microfrontend.\n *\n * This is the main entry point that host applications import and render.\n * It sets up the necessary providers and renders the internal routing.\n * Automatically registers navigation items with the shell if registration functions are provided.\n *\n * @example\n * ```tsx\n * import { IntegrationsRoot, type IntegrationsRootProps } from '@burdenoff/micro-fe/integrations';\n *\n * function App() {\n * const props: IntegrationsRootProps = {\n * basePath: '/integrations',\n * navigate: (path) => router.push(path),\n * currentUser: { id: '1', email: 'user@example.com', firstName: 'John', lastName: 'Doe' },\n * workspaceId: 'ws-123',\n * apiGatewayUrl: 'https://api.example.com',\n * authToken: 'token',\n * onConnectionSelect: (conn) => console.log('Connection selected:', conn),\n * onProviderSelect: (provider) => console.log('Provider selected:', provider),\n * registerNavItems: (items) => { return () => {}; },\n * };\n *\n * return <IntegrationsRoot {...props} />;\n * }\n * ```\n */\nexport const IntegrationsRoot: FC<IntegrationsRootProps> = (props) => {\n const { registerNavItems, registerFooterItems, basePath = '/' } = props;\n const tr = useTr();\n\n // Register navigation items with the shell\n useEffect(() => {\n if (!registerNavItems) return;\n\n const integrationsNavItem: NavItem = {\n id: 'integrations',\n label: tr('integrations.nav.integrations', 'Integrations'),\n path: basePath,\n icon: <Plug size={20} />,\n order: 10,\n group: 'integrations',\n children: [\n {\n id: 'integrations-overview',\n label: tr('integrations.nav.overview', 'Overview'),\n path: basePath,\n icon: <LayoutDashboard size={16} />,\n order: 10,\n },\n {\n id: 'integrations-providers',\n label: tr('integrations.nav.providers', 'Providers'),\n path: joinPath(basePath, 'providers'),\n icon: <Store size={16} />,\n order: 20,\n },\n {\n id: 'integrations-connections',\n label: tr('integrations.nav.connections', 'Connections'),\n path: joinPath(basePath, 'connections'),\n icon: <Link2 size={16} />,\n order: 30,\n },\n {\n id: 'integrations-logs',\n label: tr('integrations.nav.activityLogs', 'Activity Logs'),\n path: joinPath(basePath, 'logs'),\n icon: <FileText size={16} />,\n order: 40,\n },\n ],\n };\n\n // Register and get cleanup function\n const cleanup = registerNavItems(integrationsNavItem);\n\n // Return cleanup function to unregister on unmount\n return cleanup;\n }, [registerNavItems, basePath, tr]);\n\n // Register footer items\n useEffect(() => {\n if (!registerFooterItems) return;\n\n const footerItems = [\n {\n id: 'integrations-status',\n label: tr('integrations.nav.statusReady', 'Integrations Ready'),\n type: 'status' as const,\n order: 10,\n section: 'left' as const,\n },\n ];\n\n const cleanup = registerFooterItems(footerItems);\n return cleanup;\n }, [registerFooterItems, tr]);\n\n return (\n <FeatureFlagProvider\n workspaceId={props.workspaceId ?? null}\n gateway=\"global\"\n defaultEnabled={false}\n >\n <ErrorBoundary\n fallback={\n <div className=\"p-6 text-center text-text-secondary\">\n {tr('integrations.errorBoundary.title', 'Something went wrong loading this module.')}{' '}\n {tr('integrations.errorBoundary.refresh', 'Please refresh the page.')}\n </div>\n }\n >\n <IntegrationsProvider {...props}>\n <IntegrationsUserRoutes />\n </IntegrationsProvider>\n </ErrorBoundary>\n </FeatureFlagProvider>\n );\n};\n"],"mappings":";;;;;;;;;;AAuCA,IAAa,KAA+C,MAAU;CACpE,IAAM,EAAE,qBAAkB,wBAAqB,cAAW,QAAQ,GAC5D,IAAK,GAAO;
|
|
1
|
+
{"version":3,"file":"IntegrationsRoot.js","names":[],"sources":["../../src/integrations/IntegrationsRoot.tsx"],"sourcesContent":["import type { FC } from 'react';\nimport { useEffect } from 'react';\nimport { ErrorBoundary } from '@burdenoff/fe-libs/shared/components';\nimport { Plug, LayoutDashboard, Store, Link2, FileText, Inbox } from 'lucide-react';\nimport { IntegrationsProvider } from './providers/IntegrationsProvider';\nimport { FeatureFlagProvider } from '@burdenoff/fe-libs/shared/feature-flags';\nimport { useTr } from './hooks/useTr';\nimport type { NavItem, IntegrationsRootProps } from './types';\nimport { IntegrationsUserRoutes } from './IntegrationsUserRoutes';\nimport { joinPath } from './utils/paths';\n\n/**\n * Root component for the Integrations microfrontend.\n *\n * This is the main entry point that host applications import and render.\n * It sets up the necessary providers and renders the internal routing.\n * Automatically registers navigation items with the shell if registration functions are provided.\n *\n * @example\n * ```tsx\n * import { IntegrationsRoot, type IntegrationsRootProps } from '@burdenoff/micro-fe/integrations';\n *\n * function App() {\n * const props: IntegrationsRootProps = {\n * basePath: '/integrations',\n * navigate: (path) => router.push(path),\n * currentUser: { id: '1', email: 'user@example.com', firstName: 'John', lastName: 'Doe' },\n * workspaceId: 'ws-123',\n * apiGatewayUrl: 'https://api.example.com',\n * authToken: 'token',\n * onConnectionSelect: (conn) => console.log('Connection selected:', conn),\n * onProviderSelect: (provider) => console.log('Provider selected:', provider),\n * registerNavItems: (items) => { return () => {}; },\n * };\n *\n * return <IntegrationsRoot {...props} />;\n * }\n * ```\n */\nexport const IntegrationsRoot: FC<IntegrationsRootProps> = (props) => {\n const { registerNavItems, registerFooterItems, basePath = '/' } = props;\n const tr = useTr();\n\n // Register navigation items with the shell\n useEffect(() => {\n if (!registerNavItems) return;\n\n const integrationsNavItem: NavItem = {\n id: 'integrations',\n label: tr('integrations.nav.integrations', 'Integrations'),\n path: basePath,\n icon: <Plug size={20} />,\n order: 10,\n group: 'integrations',\n children: [\n {\n id: 'integrations-overview',\n label: tr('integrations.nav.overview', 'Overview'),\n path: basePath,\n icon: <LayoutDashboard size={16} />,\n order: 10,\n },\n {\n id: 'integrations-providers',\n label: tr('integrations.nav.providers', 'Providers'),\n path: joinPath(basePath, 'providers'),\n icon: <Store size={16} />,\n order: 20,\n },\n {\n id: 'integrations-connections',\n label: tr('integrations.nav.connections', 'Connections'),\n path: joinPath(basePath, 'connections'),\n icon: <Link2 size={16} />,\n order: 30,\n },\n {\n id: 'integrations-inbox',\n label: tr('integrations.nav.inbox', 'Inbox'),\n path: joinPath(basePath, 'inbox'),\n icon: <Inbox size={16} />,\n order: 35,\n },\n {\n id: 'integrations-logs',\n label: tr('integrations.nav.activityLogs', 'Activity Logs'),\n path: joinPath(basePath, 'logs'),\n icon: <FileText size={16} />,\n order: 40,\n },\n ],\n };\n\n // Register and get cleanup function\n const cleanup = registerNavItems(integrationsNavItem);\n\n // Return cleanup function to unregister on unmount\n return cleanup;\n }, [registerNavItems, basePath, tr]);\n\n // Register footer items\n useEffect(() => {\n if (!registerFooterItems) return;\n\n const footerItems = [\n {\n id: 'integrations-status',\n label: tr('integrations.nav.statusReady', 'Integrations Ready'),\n type: 'status' as const,\n order: 10,\n section: 'left' as const,\n },\n ];\n\n const cleanup = registerFooterItems(footerItems);\n return cleanup;\n }, [registerFooterItems, tr]);\n\n return (\n <FeatureFlagProvider\n workspaceId={props.workspaceId ?? null}\n gateway=\"global\"\n defaultEnabled={false}\n >\n <ErrorBoundary\n fallback={\n <div className=\"p-6 text-center text-text-secondary\">\n {tr('integrations.errorBoundary.title', 'Something went wrong loading this module.')}{' '}\n {tr('integrations.errorBoundary.refresh', 'Please refresh the page.')}\n </div>\n }\n >\n <IntegrationsProvider {...props}>\n <IntegrationsUserRoutes />\n </IntegrationsProvider>\n </ErrorBoundary>\n </FeatureFlagProvider>\n );\n};\n"],"mappings":";;;;;;;;;;AAuCA,IAAa,KAA+C,MAAU;CACpE,IAAM,EAAE,qBAAkB,wBAAqB,cAAW,QAAQ,GAC5D,IAAK,GAAO;AA6ElB,QA1EA,QAAgB;AACT,QAoDL,QAHgB,EA/CqB;GACnC,IAAI;GACJ,OAAO,EAAG,iCAAiC,eAAe;GAC1D,MAAM;GACN,MAAM,kBAAC,GAAD,EAAM,MAAM,IAAM,CAAA;GACxB,OAAO;GACP,OAAO;GACP,UAAU;IACR;KACE,IAAI;KACJ,OAAO,EAAG,6BAA6B,WAAW;KAClD,MAAM;KACN,MAAM,kBAAC,GAAD,EAAiB,MAAM,IAAM,CAAA;KACnC,OAAO;KACR;IACD;KACE,IAAI;KACJ,OAAO,EAAG,8BAA8B,YAAY;KACpD,MAAM,EAAS,GAAU,YAAY;KACrC,MAAM,kBAAC,GAAD,EAAO,MAAM,IAAM,CAAA;KACzB,OAAO;KACR;IACD;KACE,IAAI;KACJ,OAAO,EAAG,gCAAgC,cAAc;KACxD,MAAM,EAAS,GAAU,cAAc;KACvC,MAAM,kBAAC,GAAD,EAAO,MAAM,IAAM,CAAA;KACzB,OAAO;KACR;IACD;KACE,IAAI;KACJ,OAAO,EAAG,0BAA0B,QAAQ;KAC5C,MAAM,EAAS,GAAU,QAAQ;KACjC,MAAM,kBAAC,GAAD,EAAO,MAAM,IAAM,CAAA;KACzB,OAAO;KACR;IACD;KACE,IAAI;KACJ,OAAO,EAAG,iCAAiC,gBAAgB;KAC3D,MAAM,EAAS,GAAU,OAAO;KAChC,MAAM,kBAAC,GAAD,EAAU,MAAM,IAAM,CAAA;KAC5B,OAAO;KACR;IACF;GACF,CAGoD;IAIpD;EAAC;EAAkB;EAAU;EAAG,CAAC,EAGpC,QAAgB;AACT,QAaL,QADgB,EAVI,CAClB;GACE,IAAI;GACJ,OAAO,EAAG,gCAAgC,qBAAqB;GAC/D,MAAM;GACN,OAAO;GACP,SAAS;GACV,CACF,CAE+C;IAE/C,CAAC,GAAqB,EAAG,CAAC,EAG3B,kBAAC,GAAD;EACE,aAAa,EAAM,eAAe;EAClC,SAAQ;EACR,gBAAgB;YAEhB,kBAAC,GAAD;GACE,UACE,kBAAC,OAAD;IAAK,WAAU;cAAf;KACG,EAAG,oCAAoC,4CAA4C;KAAE;KACrF,EAAG,sCAAsC,2BAA2B;KACjE;;aAGR,kBAAC,GAAD;IAAsB,GAAI;cACxB,kBAAC,GAAD,EAA0B,CAAA;IACL,CAAA;GACT,CAAA;EACI,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IntegrationsUserRoutes.d.ts","sourceRoot":"","sources":["../../src/integrations/IntegrationsUserRoutes.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"IntegrationsUserRoutes.d.ts","sourceRoot":"","sources":["../../src/integrations/IntegrationsUserRoutes.tsx"],"names":[],"mappings":"AA2IA;;;;;GAKG;AACH,wBAAgB,sBAAsB,uCAiDrC"}
|
|
@@ -7,27 +7,27 @@ import { AlertTriangle as s, Loader2 as c, RefreshCw as l } from "lucide-react";
|
|
|
7
7
|
import { Navigate as u, Route as d, Routes as f, useLocation as p, useNavigate as m, useParams as h } from "react-router";
|
|
8
8
|
import { jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
9
9
|
//#region src/integrations/IntegrationsUserRoutes.tsx
|
|
10
|
-
var v = o(() => import("./pages/ProviderCatalog.js").then((e) => ({ default: e.ProviderCatalog }))), y = o(() => import("./pages/ProviderDetail.js").then((e) => ({ default: e.ProviderDetail }))), b = o(() => import("./pages/ConnectionsList.js").then((e) => ({ default: e.ConnectionsList }))), x = o(() => import("./pages/AddConnectionWizard.js").then((e) => ({ default: e.AddConnectionWizard }))), S = o(() => import("./pages/ConnectionDetail.js").then((e) => ({ default: e.ConnectionDetail }))), C = o(() => import("./pages/ConnectorSubmissionsPage.js").then((e) => ({ default: e.ConnectorSubmissionsPage }))), w = o(() => import("./pages/ConnectionLogs.js").then((e) => ({ default: e.ConnectionLogs }))),
|
|
10
|
+
var v = o(() => import("./pages/ProviderCatalog.js").then((e) => ({ default: e.ProviderCatalog }))), y = o(() => import("./pages/ProviderDetail.js").then((e) => ({ default: e.ProviderDetail }))), b = o(() => import("./pages/ConnectionsList.js").then((e) => ({ default: e.ConnectionsList }))), x = o(() => import("./pages/AddConnectionWizard.js").then((e) => ({ default: e.AddConnectionWizard }))), S = o(() => import("./pages/ConnectionDetail.js").then((e) => ({ default: e.ConnectionDetail }))), C = o(() => import("./pages/ConnectorSubmissionsPage.js").then((e) => ({ default: e.ConnectorSubmissionsPage }))), w = o(() => import("./pages/MailboxInbox.js").then((e) => ({ default: e.MailboxInbox }))), T = o(() => import("./pages/ConnectionLogs.js").then((e) => ({ default: e.ConnectionLogs }))), E = new Set([
|
|
11
11
|
"slack-user",
|
|
12
12
|
"teams-user",
|
|
13
13
|
"discord-user"
|
|
14
14
|
]);
|
|
15
|
-
function
|
|
15
|
+
function D() {
|
|
16
16
|
let { basePath: r } = e(), { providerId: i } = h(), { search: a } = p(), o = m(), s = new URLSearchParams(a), c = s.get("providerKey");
|
|
17
|
-
return s.get("returnTo") && s.get("channelId") && c &&
|
|
17
|
+
return s.get("returnTo") && s.get("channelId") && c && E.has(c) ? /* @__PURE__ */ g(x, {}) : /* @__PURE__ */ g(t, {
|
|
18
18
|
open: !0,
|
|
19
19
|
onClose: () => o(n(r ?? "/", "connections")),
|
|
20
20
|
preselectedProviderId: i,
|
|
21
21
|
preselectedProviderKey: c
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function O() {
|
|
25
25
|
return /* @__PURE__ */ g("div", {
|
|
26
26
|
className: "flex items-center justify-center min-h-[400px]",
|
|
27
27
|
children: /* @__PURE__ */ g(c, { className: "size-8 animate-spin text-primary" })
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
|
-
var
|
|
30
|
+
var k = class extends i {
|
|
31
31
|
constructor(e) {
|
|
32
32
|
super(e), this.state = {
|
|
33
33
|
hasError: !1,
|
|
@@ -79,10 +79,10 @@ var O = class extends i {
|
|
|
79
79
|
}) : /* @__PURE__ */ g("div", { children: this.props.children }, this.state.retryKey);
|
|
80
80
|
}
|
|
81
81
|
};
|
|
82
|
-
function
|
|
82
|
+
function A() {
|
|
83
83
|
let { basePath: t } = e(), n = p(), i = t && t !== "/" ? t.endsWith("/") ? t.slice(0, -1) : t : "";
|
|
84
|
-
return i && !(n.pathname === i || n.pathname.startsWith(i + "/")) ? null : /* @__PURE__ */ g(
|
|
85
|
-
fallback: /* @__PURE__ */ g(
|
|
84
|
+
return i && !(n.pathname === i || n.pathname.startsWith(i + "/")) ? null : /* @__PURE__ */ g(k, { children: /* @__PURE__ */ g(a, {
|
|
85
|
+
fallback: /* @__PURE__ */ g(O, {}),
|
|
86
86
|
children: /* @__PURE__ */ _(f, { children: [
|
|
87
87
|
/* @__PURE__ */ g(d, {
|
|
88
88
|
index: !0,
|
|
@@ -102,11 +102,11 @@ function k() {
|
|
|
102
102
|
}),
|
|
103
103
|
/* @__PURE__ */ g(d, {
|
|
104
104
|
path: "connections/add",
|
|
105
|
-
element: /* @__PURE__ */ g(
|
|
105
|
+
element: /* @__PURE__ */ g(D, {})
|
|
106
106
|
}),
|
|
107
107
|
/* @__PURE__ */ g(d, {
|
|
108
108
|
path: "connections/add/:providerId",
|
|
109
|
-
element: /* @__PURE__ */ g(
|
|
109
|
+
element: /* @__PURE__ */ g(D, {})
|
|
110
110
|
}),
|
|
111
111
|
/* @__PURE__ */ g(d, {
|
|
112
112
|
path: "connections/:connectionId",
|
|
@@ -117,9 +117,13 @@ function k() {
|
|
|
117
117
|
element: /* @__PURE__ */ g(C, {})
|
|
118
118
|
}),
|
|
119
119
|
/* @__PURE__ */ g(d, {
|
|
120
|
-
path: "
|
|
120
|
+
path: "inbox",
|
|
121
121
|
element: /* @__PURE__ */ g(w, {})
|
|
122
122
|
}),
|
|
123
|
+
/* @__PURE__ */ g(d, {
|
|
124
|
+
path: "logs",
|
|
125
|
+
element: /* @__PURE__ */ g(T, {})
|
|
126
|
+
}),
|
|
123
127
|
/* @__PURE__ */ g(d, {
|
|
124
128
|
path: "*",
|
|
125
129
|
element: /* @__PURE__ */ g(u, {
|
|
@@ -131,6 +135,6 @@ function k() {
|
|
|
131
135
|
}) });
|
|
132
136
|
}
|
|
133
137
|
//#endregion
|
|
134
|
-
export {
|
|
138
|
+
export { A as IntegrationsUserRoutes };
|
|
135
139
|
|
|
136
140
|
//# sourceMappingURL=IntegrationsUserRoutes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IntegrationsUserRoutes.js","names":[],"sources":["../../src/integrations/IntegrationsUserRoutes.tsx"],"sourcesContent":["import { lazy, Suspense, Component, type ReactNode, type ErrorInfo } from 'react';\nimport { Navigate, Route, Routes, useLocation, useNavigate, useParams } from 'react-router';\nimport { Loader2, AlertTriangle, RefreshCw } from 'lucide-react';\nimport { AddConnectionDialog } from './components/AddConnectionDialog';\nimport { useIntegrations } from './providers/IntegrationsProvider';\nimport { joinPath } from './utils/navigation';\n\n// Eager loaded - primary landing page\nimport { IntegrationsUserLandingPage } from './pages/IntegrationsUserLandingPage';\n\n// Lazy loaded pages\nconst ProviderCatalog = lazy(() =>\n import('./pages/ProviderCatalog').then((m) => ({ default: m.ProviderCatalog }))\n);\nconst ProviderDetail = lazy(() =>\n import('./pages/ProviderDetail').then((m) => ({ default: m.ProviderDetail }))\n);\nconst ConnectionsList = lazy(() =>\n import('./pages/ConnectionsList').then((m) => ({ default: m.ConnectionsList }))\n);\nconst AddConnectionWizard = lazy(() =>\n import('./pages/AddConnectionWizard').then((m) => ({ default: m.AddConnectionWizard }))\n);\nconst ConnectionDetail = lazy(() =>\n import('./pages/ConnectionDetail').then((m) => ({ default: m.ConnectionDetail }))\n);\nconst ConnectorSubmissionsPage = lazy(() =>\n import('./pages/ConnectorSubmissionsPage').then((m) => ({\n default: m.ConnectorSubmissionsPage,\n }))\n);\nconst ConnectionLogs = lazy(() =>\n import('./pages/ConnectionLogs').then((m) => ({ default: m.ConnectionLogs }))\n);\n\nconst BOTLIT_CHANNEL_PROVIDER_KEYS = new Set(['slack-user', 'teams-user', 'discord-user']);\n\n/** Deep links use the same schema-driven dialog as the Connections and provider pages. */\nfunction ConnectionAddRoute() {\n const { basePath } = useIntegrations();\n const { providerId } = useParams<{ providerId: string }>();\n const { search } = useLocation();\n const navigate = useNavigate();\n const params = new URLSearchParams(search);\n const providerKey = params.get('providerKey');\n\n // Botlit's existing channel setup needs its full-page OAuth return redirect.\n // Other deep links (including the FluidGrids channel picker) must honor the\n // shared dialog's provider/method storage policy instead of the old wizard.\n if (\n params.get('returnTo') &&\n params.get('channelId') &&\n providerKey &&\n BOTLIT_CHANNEL_PROVIDER_KEYS.has(providerKey)\n ) {\n return <AddConnectionWizard />;\n }\n\n return (\n <AddConnectionDialog\n open\n onClose={() => navigate(joinPath(basePath ?? '/', 'connections'))}\n preselectedProviderId={providerId}\n preselectedProviderKey={providerKey}\n />\n );\n}\n\n/**\n * Loading fallback for lazy-loaded pages\n */\nfunction PageLoader() {\n return (\n <div className=\"flex items-center justify-center min-h-[400px]\">\n <Loader2 className=\"size-8 animate-spin text-primary\" />\n </div>\n );\n}\n\n/**\n * Error boundary for lazy-loaded page chunks.\n * Catches chunk-load failures and renders a retry UI instead of an infinite spinner.\n */\nclass LazyErrorBoundary extends Component<\n { children: ReactNode },\n { hasError: boolean; error: Error | null; retryKey: number }\n> {\n constructor(props: { children: ReactNode }) {\n super(props);\n this.state = { hasError: false, error: null, retryKey: 0 };\n }\n\n static getDerivedStateFromError(error: Error) {\n return { hasError: true, error };\n }\n\n componentDidCatch(error: Error, errorInfo: ErrorInfo) {\n console.error('[Integrations] Lazy page load failed:', error, errorInfo);\n }\n\n handleRetry = () => {\n // Increment retryKey to force React to remount the lazy tree,\n // which triggers a fresh dynamic import instead of reusing the cached rejection.\n this.setState((prev) => ({ hasError: false, error: null, retryKey: prev.retryKey + 1 }));\n };\n\n render() {\n if (this.state.hasError) {\n return (\n <div className=\"flex flex-col items-center justify-center min-h-[400px] gap-4 text-center p-6\">\n <div className=\"p-3 rounded-full bg-status-error-bg/10\">\n <AlertTriangle className=\"size-8 text-status-error-text\" />\n </div>\n <div className=\"space-y-2\">\n <h3 className=\"text-lg font-semibold text-text-primary\">Failed to load page</h3>\n <p className=\"text-sm text-text-secondary max-w-md\">\n {this.state.error?.message ||\n 'The page chunk could not be loaded. This may be due to a network issue.'}\n </p>\n </div>\n <button\n type=\"button\"\n onClick={this.handleRetry}\n className=\"inline-flex items-center gap-2 px-4 py-2 text-sm font-medium rounded-md bg-action-primary-bg text-action-primary-text hover:bg-action-primary-bg/90 transition-colors\"\n >\n <RefreshCw className=\"size-4\" />\n Try Again\n </button>\n </div>\n );\n }\n\n return <div key={this.state.retryKey}>{this.props.children}</div>;\n }\n}\n\n/**\n * User-facing routes for the Integrations microfrontend.\n *\n * Includes: Overview, Providers, Connections, Activity Logs.\n * Excludes admin features: Settings.\n */\nexport function IntegrationsUserRoutes() {\n const { basePath } = useIntegrations();\n const location = useLocation();\n\n const normalizedBasePath =\n basePath && basePath !== '/' ? (basePath.endsWith('/') ? basePath.slice(0, -1) : basePath) : '';\n\n if (normalizedBasePath) {\n const pathMatches =\n location.pathname === normalizedBasePath ||\n location.pathname.startsWith(normalizedBasePath + '/');\n\n if (!pathMatches) {\n return null;\n }\n }\n\n return (\n <LazyErrorBoundary>\n <Suspense fallback={<PageLoader />}>\n <Routes>\n {/* Tabbed landing - default route (eager loaded) */}\n <Route index element={<IntegrationsUserLandingPage />} />\n\n {/* Providers (lazy loaded) */}\n <Route path=\"providers\" element={<ProviderCatalog />} />\n <Route path=\"providers/:providerId\" element={<ProviderDetail />} />\n\n {/* Connections (lazy loaded) */}\n <Route path=\"connections\" element={<ConnectionsList />} />\n <Route path=\"connections/add\" element={<ConnectionAddRoute />} />\n <Route path=\"connections/add/:providerId\" element={<ConnectionAddRoute />} />\n <Route path=\"connections/:connectionId\" element={<ConnectionDetail />} />\n\n {/* Third-party connector publishing (BOFF-4417) */}\n <Route path=\"developer/connectors\" element={<ConnectorSubmissionsPage />} />\n\n {/* Logs (lazy loaded) */}\n <Route path=\"logs\" element={<ConnectionLogs />} />\n\n {/* Catch-all route - redirect to overview */}\n <Route path=\"*\" element={<Navigate to=\"\" replace />} />\n </Routes>\n </Suspense>\n </LazyErrorBoundary>\n );\n}\n"],"mappings":";;;;;;;;;AAWA,IAAM,IAAkB,QACtB,OAAO,8BAA2B,MAAM,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,CAChF,EACK,IAAiB,QACrB,OAAO,6BAA0B,MAAM,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAC9E,EACK,IAAkB,QACtB,OAAO,8BAA2B,MAAM,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,CAChF,EACK,IAAsB,QAC1B,OAAO,kCAA+B,MAAM,OAAO,EAAE,SAAS,EAAE,qBAAqB,EAAE,CACxF,EACK,IAAmB,QACvB,OAAO,+BAA4B,MAAM,OAAO,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAClF,EACK,IAA2B,QAC/B,OAAO,uCAAoC,MAAM,OAAO,EACtD,SAAS,EAAE,0BACZ,EAAE,CACJ,EACK,IAAiB,QACrB,OAAO,6BAA0B,MAAM,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAC9E,EAEK,IAA+B,IAAI,IAAI;CAAC;CAAc;CAAc;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AAA;IAAI,CAAA;GAG5E,kBAAC,GAAD;IAAO,MAAK;IAAO,SAAS,kBAAC,GAAD,EAAkB,CAAA;IAAI,CAAA;GAGlD,kBAAC,GAAD;IAAO,MAAK;IAAI,SAAS,kBAAC,GAAD;KAAU,IAAG;KAAG,SAAA;KAAU,CAAA;IAAI,CAAA;GAChD,EAAA,CAAA;EACA,CAAA,EACO,CAAA"}
|
|
1
|
+
{"version":3,"file":"IntegrationsUserRoutes.js","names":[],"sources":["../../src/integrations/IntegrationsUserRoutes.tsx"],"sourcesContent":["import { lazy, Suspense, Component, type ReactNode, type ErrorInfo } from 'react';\nimport { Navigate, Route, Routes, useLocation, useNavigate, useParams } from 'react-router';\nimport { Loader2, AlertTriangle, RefreshCw } from 'lucide-react';\nimport { AddConnectionDialog } from './components/AddConnectionDialog';\nimport { useIntegrations } from './providers/IntegrationsProvider';\nimport { joinPath } from './utils/navigation';\n\n// Eager loaded - primary landing page\nimport { IntegrationsUserLandingPage } from './pages/IntegrationsUserLandingPage';\n\n// Lazy loaded pages\nconst ProviderCatalog = lazy(() =>\n import('./pages/ProviderCatalog').then((m) => ({ default: m.ProviderCatalog }))\n);\nconst ProviderDetail = lazy(() =>\n import('./pages/ProviderDetail').then((m) => ({ default: m.ProviderDetail }))\n);\nconst ConnectionsList = lazy(() =>\n import('./pages/ConnectionsList').then((m) => ({ default: m.ConnectionsList }))\n);\nconst AddConnectionWizard = lazy(() =>\n import('./pages/AddConnectionWizard').then((m) => ({ default: m.AddConnectionWizard }))\n);\nconst ConnectionDetail = lazy(() =>\n import('./pages/ConnectionDetail').then((m) => ({ default: m.ConnectionDetail }))\n);\nconst ConnectorSubmissionsPage = lazy(() =>\n import('./pages/ConnectorSubmissionsPage').then((m) => ({\n default: m.ConnectorSubmissionsPage,\n }))\n);\nconst MailboxInbox = lazy(() =>\n import('./pages/MailboxInbox').then((m) => ({ default: m.MailboxInbox }))\n);\nconst ConnectionLogs = lazy(() =>\n import('./pages/ConnectionLogs').then((m) => ({ default: m.ConnectionLogs }))\n);\n\nconst BOTLIT_CHANNEL_PROVIDER_KEYS = new Set(['slack-user', 'teams-user', 'discord-user']);\n\n/** Deep links use the same schema-driven dialog as the Connections and provider pages. */\nfunction ConnectionAddRoute() {\n const { basePath } = useIntegrations();\n const { providerId } = useParams<{ providerId: string }>();\n const { search } = useLocation();\n const navigate = useNavigate();\n const params = new URLSearchParams(search);\n const providerKey = params.get('providerKey');\n\n // Botlit's existing channel setup needs its full-page OAuth return redirect.\n // Other deep links (including the FluidGrids channel picker) must honor the\n // shared dialog's provider/method storage policy instead of the old wizard.\n if (\n params.get('returnTo') &&\n params.get('channelId') &&\n providerKey &&\n BOTLIT_CHANNEL_PROVIDER_KEYS.has(providerKey)\n ) {\n return <AddConnectionWizard />;\n }\n\n return (\n <AddConnectionDialog\n open\n onClose={() => navigate(joinPath(basePath ?? '/', 'connections'))}\n preselectedProviderId={providerId}\n preselectedProviderKey={providerKey}\n />\n );\n}\n\n/**\n * Loading fallback for lazy-loaded pages\n */\nfunction PageLoader() {\n return (\n <div className=\"flex items-center justify-center min-h-[400px]\">\n <Loader2 className=\"size-8 animate-spin text-primary\" />\n </div>\n );\n}\n\n/**\n * Error boundary for lazy-loaded page chunks.\n * Catches chunk-load failures and renders a retry UI instead of an infinite spinner.\n */\nclass LazyErrorBoundary extends Component<\n { children: ReactNode },\n { hasError: boolean; error: Error | null; retryKey: number }\n> {\n constructor(props: { children: ReactNode }) {\n super(props);\n this.state = { hasError: false, error: null, retryKey: 0 };\n }\n\n static getDerivedStateFromError(error: Error) {\n return { hasError: true, error };\n }\n\n componentDidCatch(error: Error, errorInfo: ErrorInfo) {\n console.error('[Integrations] Lazy page load failed:', error, errorInfo);\n }\n\n handleRetry = () => {\n // Increment retryKey to force React to remount the lazy tree,\n // which triggers a fresh dynamic import instead of reusing the cached rejection.\n this.setState((prev) => ({ hasError: false, error: null, retryKey: prev.retryKey + 1 }));\n };\n\n render() {\n if (this.state.hasError) {\n return (\n <div className=\"flex flex-col items-center justify-center min-h-[400px] gap-4 text-center p-6\">\n <div className=\"p-3 rounded-full bg-status-error-bg/10\">\n <AlertTriangle className=\"size-8 text-status-error-text\" />\n </div>\n <div className=\"space-y-2\">\n <h3 className=\"text-lg font-semibold text-text-primary\">Failed to load page</h3>\n <p className=\"text-sm text-text-secondary max-w-md\">\n {this.state.error?.message ||\n 'The page chunk could not be loaded. This may be due to a network issue.'}\n </p>\n </div>\n <button\n type=\"button\"\n onClick={this.handleRetry}\n className=\"inline-flex items-center gap-2 px-4 py-2 text-sm font-medium rounded-md bg-action-primary-bg text-action-primary-text hover:bg-action-primary-bg/90 transition-colors\"\n >\n <RefreshCw className=\"size-4\" />\n Try Again\n </button>\n </div>\n );\n }\n\n return <div key={this.state.retryKey}>{this.props.children}</div>;\n }\n}\n\n/**\n * User-facing routes for the Integrations microfrontend.\n *\n * Includes: Overview, Providers, Connections, Activity Logs.\n * Excludes admin features: Settings.\n */\nexport function IntegrationsUserRoutes() {\n const { basePath } = useIntegrations();\n const location = useLocation();\n\n const normalizedBasePath =\n basePath && basePath !== '/' ? (basePath.endsWith('/') ? basePath.slice(0, -1) : basePath) : '';\n\n if (normalizedBasePath) {\n const pathMatches =\n location.pathname === normalizedBasePath ||\n location.pathname.startsWith(normalizedBasePath + '/');\n\n if (!pathMatches) {\n return null;\n }\n }\n\n return (\n <LazyErrorBoundary>\n <Suspense fallback={<PageLoader />}>\n <Routes>\n {/* Tabbed landing - default route (eager loaded) */}\n <Route index element={<IntegrationsUserLandingPage />} />\n\n {/* Providers (lazy loaded) */}\n <Route path=\"providers\" element={<ProviderCatalog />} />\n <Route path=\"providers/:providerId\" element={<ProviderDetail />} />\n\n {/* Connections (lazy loaded) */}\n <Route path=\"connections\" element={<ConnectionsList />} />\n <Route path=\"connections/add\" element={<ConnectionAddRoute />} />\n <Route path=\"connections/add/:providerId\" element={<ConnectionAddRoute />} />\n <Route path=\"connections/:connectionId\" element={<ConnectionDetail />} />\n\n {/* Third-party connector publishing (BOFF-4417) */}\n <Route path=\"developer/connectors\" element={<ConnectorSubmissionsPage />} />\n\n {/* Connected mailbox (lazy loaded, BOFF-4422) */}\n <Route path=\"inbox\" element={<MailboxInbox />} />\n\n {/* Logs (lazy loaded) */}\n <Route path=\"logs\" element={<ConnectionLogs />} />\n\n {/* Catch-all route - redirect to overview */}\n <Route path=\"*\" element={<Navigate to=\"\" replace />} />\n </Routes>\n </Suspense>\n </LazyErrorBoundary>\n );\n}\n"],"mappings":";;;;;;;;;AAWA,IAAM,IAAkB,QACtB,OAAO,8BAA2B,MAAM,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,CAChF,EACK,IAAiB,QACrB,OAAO,6BAA0B,MAAM,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAC9E,EACK,IAAkB,QACtB,OAAO,8BAA2B,MAAM,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,CAChF,EACK,IAAsB,QAC1B,OAAO,kCAA+B,MAAM,OAAO,EAAE,SAAS,EAAE,qBAAqB,EAAE,CACxF,EACK,IAAmB,QACvB,OAAO,+BAA4B,MAAM,OAAO,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAClF,EACK,IAA2B,QAC/B,OAAO,uCAAoC,MAAM,OAAO,EACtD,SAAS,EAAE,0BACZ,EAAE,CACJ,EACK,IAAe,QACnB,OAAO,2BAAwB,MAAM,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,CAC1E,EACK,IAAiB,QACrB,OAAO,6BAA0B,MAAM,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAC9E,EAEK,IAA+B,IAAI,IAAI;CAAC;CAAc;CAAc;CAAe,CAAC;AAG1F,SAAS,IAAqB;CAC5B,IAAM,EAAE,gBAAa,GAAiB,EAChC,EAAE,kBAAe,GAAmC,EACpD,EAAE,cAAW,GAAa,EAC1B,IAAW,GAAa,EACxB,IAAS,IAAI,gBAAgB,EAAO,EACpC,IAAc,EAAO,IAAI,cAAc;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GAAD;IAAO,MAAK;IAAI,SAAS,kBAAC,GAAD;KAAU,IAAG;KAAG,SAAA;KAAU,CAAA;IAAI,CAAA;GAChD,EAAA,CAAA;EACA,CAAA,EACO,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConnectorSubmissionCard.d.ts","sourceRoot":"","sources":["../../../src/integrations/components/ConnectorSubmissionCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMvC,OAAO,EACL,KAAK,mBAAmB,EACxB,yBAAyB,EAC1B,MAAM,kCAAkC,CAAC;AA+B1C,wBAAgB,8BAA8B,CAAC,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,EAAE,yBAAyB,CAAA;CAAE,+BAa/F;AAED,UAAU,4BAA4B;IACpC,UAAU,EAAE,mBAAmB,CAAC;IAChC,0DAA0D;IAC1D,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,OAAO,CAAC,EAAE,SAAS,CAAC;CACrB;AAED,qEAAqE;AACrE,wBAAgB,uBAAuB,CAAC,EACtC,UAAU,EACV,oBAA4B,EAC5B,OAAO,GACR,EAAE,4BAA4B,+
|
|
1
|
+
{"version":3,"file":"ConnectorSubmissionCard.d.ts","sourceRoot":"","sources":["../../../src/integrations/components/ConnectorSubmissionCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMvC,OAAO,EACL,KAAK,mBAAmB,EACxB,yBAAyB,EAC1B,MAAM,kCAAkC,CAAC;AA+B1C,wBAAgB,8BAA8B,CAAC,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,EAAE,yBAAyB,CAAA;CAAE,+BAa/F;AAED,UAAU,4BAA4B;IACpC,UAAU,EAAE,mBAAmB,CAAC;IAChC,0DAA0D;IAC1D,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,OAAO,CAAC,EAAE,SAAS,CAAC;CACrB;AAED,qEAAqE;AACrE,wBAAgB,uBAAuB,CAAC,EACtC,UAAU,EACV,oBAA4B,EAC5B,OAAO,GACR,EAAE,4BAA4B,+BAkM9B"}
|