@burdenoff/microfe-integrations 2026.510.111
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/README.md +35 -0
- package/dist/dev/main.d.ts +2 -0
- package/dist/dev/main.d.ts.map +1 -0
- package/dist/generated/global-operations.d.ts +2 -0
- package/dist/generated/global-operations.d.ts.map +1 -0
- package/dist/generated/global-types.d.ts +20716 -0
- package/dist/generated/global-types.d.ts.map +1 -0
- package/dist/generated/wspace-operations.d.ts +1645 -0
- package/dist/generated/wspace-operations.d.ts.map +1 -0
- package/dist/generated/wspace-operations.js +561 -0
- package/dist/generated/wspace-operations.js.map +1 -0
- package/dist/generated/wspace-types.d.ts +53434 -0
- package/dist/generated/wspace-types.d.ts.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +8 -0
- package/dist/integrations/IntegrationsAdminRoot.d.ts +19 -0
- package/dist/integrations/IntegrationsAdminRoot.d.ts.map +1 -0
- package/dist/integrations/IntegrationsAdminRoot.js +50 -0
- package/dist/integrations/IntegrationsAdminRoot.js.map +1 -0
- package/dist/integrations/IntegrationsAdminRoutes.d.ts +8 -0
- package/dist/integrations/IntegrationsAdminRoutes.d.ts.map +1 -0
- package/dist/integrations/IntegrationsAdminRoutes.js +110 -0
- package/dist/integrations/IntegrationsAdminRoutes.js.map +1 -0
- package/dist/integrations/IntegrationsRoot.d.ts +33 -0
- package/dist/integrations/IntegrationsRoot.d.ts.map +1 -0
- package/dist/integrations/IntegrationsRoot.js +78 -0
- package/dist/integrations/IntegrationsRoot.js.map +1 -0
- package/dist/integrations/IntegrationsRoutes.d.ts +17 -0
- package/dist/integrations/IntegrationsRoutes.d.ts.map +1 -0
- package/dist/integrations/IntegrationsUserRoutes.d.ts +8 -0
- package/dist/integrations/IntegrationsUserRoutes.d.ts.map +1 -0
- package/dist/integrations/IntegrationsUserRoutes.js +116 -0
- package/dist/integrations/IntegrationsUserRoutes.js.map +1 -0
- package/dist/integrations/components/AddConnectionDialog.d.ts +22 -0
- package/dist/integrations/components/AddConnectionDialog.d.ts.map +1 -0
- package/dist/integrations/components/AddConnectionDialog.js +655 -0
- package/dist/integrations/components/AddConnectionDialog.js.map +1 -0
- package/dist/integrations/components/ConfirmDialog.d.ts +17 -0
- package/dist/integrations/components/ConfirmDialog.d.ts.map +1 -0
- package/dist/integrations/components/ConfirmDialog.js +55 -0
- package/dist/integrations/components/ConfirmDialog.js.map +1 -0
- package/dist/integrations/components/ConnectionCard.d.ts +14 -0
- package/dist/integrations/components/ConnectionCard.d.ts.map +1 -0
- package/dist/integrations/components/ConnectionCard.js +101 -0
- package/dist/integrations/components/ConnectionCard.js.map +1 -0
- package/dist/integrations/components/ConnectionStatusBadge.d.ts +14 -0
- package/dist/integrations/components/ConnectionStatusBadge.d.ts.map +1 -0
- package/dist/integrations/components/ConnectionStatusBadge.js +12 -0
- package/dist/integrations/components/ConnectionStatusBadge.js.map +1 -0
- package/dist/integrations/components/CredentialStorageSelector.d.ts +16 -0
- package/dist/integrations/components/CredentialStorageSelector.d.ts.map +1 -0
- package/dist/integrations/components/CredentialStorageSelector.js +159 -0
- package/dist/integrations/components/CredentialStorageSelector.js.map +1 -0
- package/dist/integrations/components/ProviderCard.d.ts +16 -0
- package/dist/integrations/components/ProviderCard.d.ts.map +1 -0
- package/dist/integrations/components/ProviderCard.js +161 -0
- package/dist/integrations/components/ProviderCard.js.map +1 -0
- package/dist/integrations/components/ProviderIcon.d.ts +19 -0
- package/dist/integrations/components/ProviderIcon.d.ts.map +1 -0
- package/dist/integrations/components/ProviderIcon.js +92 -0
- package/dist/integrations/components/ProviderIcon.js.map +1 -0
- package/dist/integrations/components/ui.d.ts +6 -0
- package/dist/integrations/components/ui.d.ts.map +1 -0
- package/dist/integrations/constants/enums.d.ts +70 -0
- package/dist/integrations/constants/enums.d.ts.map +1 -0
- package/dist/integrations/constants/featureFlags.d.ts +7 -0
- package/dist/integrations/constants/featureFlags.d.ts.map +1 -0
- package/dist/integrations/constants/featureFlags.js +11 -0
- package/dist/integrations/constants/featureFlags.js.map +1 -0
- package/dist/integrations/constants/permissions.d.ts +22 -0
- package/dist/integrations/constants/permissions.d.ts.map +1 -0
- package/dist/integrations/constants/permissions.js +20 -0
- package/dist/integrations/constants/permissions.js.map +1 -0
- package/dist/integrations/events/integrations-events.d.ts +36 -0
- package/dist/integrations/events/integrations-events.d.ts.map +1 -0
- package/dist/integrations/events/useIntegrationsEventBus.d.ts +11 -0
- package/dist/integrations/events/useIntegrationsEventBus.d.ts.map +1 -0
- package/dist/integrations/events/useIntegrationsEventBus.js +23 -0
- package/dist/integrations/events/useIntegrationsEventBus.js.map +1 -0
- package/dist/integrations/hooks/useConnections.d.ts +84 -0
- package/dist/integrations/hooks/useConnections.d.ts.map +1 -0
- package/dist/integrations/hooks/useConnections.js +162 -0
- package/dist/integrations/hooks/useConnections.js.map +1 -0
- package/dist/integrations/hooks/useCredentialVaults.d.ts +15 -0
- package/dist/integrations/hooks/useCredentialVaults.d.ts.map +1 -0
- package/dist/integrations/hooks/useCredentialVaults.js +77 -0
- package/dist/integrations/hooks/useCredentialVaults.js.map +1 -0
- package/dist/integrations/hooks/useLogs.d.ts +27 -0
- package/dist/integrations/hooks/useLogs.d.ts.map +1 -0
- package/dist/integrations/hooks/useLogs.js +32 -0
- package/dist/integrations/hooks/useLogs.js.map +1 -0
- package/dist/integrations/hooks/useProviders.d.ts +97 -0
- package/dist/integrations/hooks/useProviders.d.ts.map +1 -0
- package/dist/integrations/hooks/useProviders.js +102 -0
- package/dist/integrations/hooks/useProviders.js.map +1 -0
- package/dist/integrations/index.d.ts +33 -0
- package/dist/integrations/index.d.ts.map +1 -0
- package/dist/integrations/index.js +6 -0
- package/dist/integrations/pages/AddConnectionWizard.d.ts +14 -0
- package/dist/integrations/pages/AddConnectionWizard.d.ts.map +1 -0
- package/dist/integrations/pages/AddConnectionWizard.js +635 -0
- package/dist/integrations/pages/AddConnectionWizard.js.map +1 -0
- package/dist/integrations/pages/ConnectionDetail.d.ts +5 -0
- package/dist/integrations/pages/ConnectionDetail.d.ts.map +1 -0
- package/dist/integrations/pages/ConnectionDetail.js +469 -0
- package/dist/integrations/pages/ConnectionDetail.js.map +1 -0
- package/dist/integrations/pages/ConnectionLogs.d.ts +5 -0
- package/dist/integrations/pages/ConnectionLogs.d.ts.map +1 -0
- package/dist/integrations/pages/ConnectionLogs.js +394 -0
- package/dist/integrations/pages/ConnectionLogs.js.map +1 -0
- package/dist/integrations/pages/ConnectionsList.d.ts +5 -0
- package/dist/integrations/pages/ConnectionsList.d.ts.map +1 -0
- package/dist/integrations/pages/ConnectionsList.js +258 -0
- package/dist/integrations/pages/ConnectionsList.js.map +1 -0
- package/dist/integrations/pages/IntegrationsAdminLandingPage.d.ts +11 -0
- package/dist/integrations/pages/IntegrationsAdminLandingPage.d.ts.map +1 -0
- package/dist/integrations/pages/IntegrationsLandingPage.d.ts +9 -0
- package/dist/integrations/pages/IntegrationsLandingPage.d.ts.map +1 -0
- package/dist/integrations/pages/IntegrationsOverview.d.ts +5 -0
- package/dist/integrations/pages/IntegrationsOverview.d.ts.map +1 -0
- package/dist/integrations/pages/IntegrationsOverview.js +432 -0
- package/dist/integrations/pages/IntegrationsOverview.js.map +1 -0
- package/dist/integrations/pages/IntegrationsSettings.d.ts +5 -0
- package/dist/integrations/pages/IntegrationsSettings.d.ts.map +1 -0
- package/dist/integrations/pages/IntegrationsSettings.js +222 -0
- package/dist/integrations/pages/IntegrationsSettings.js.map +1 -0
- package/dist/integrations/pages/IntegrationsUserLandingPage.d.ts +11 -0
- package/dist/integrations/pages/IntegrationsUserLandingPage.d.ts.map +1 -0
- package/dist/integrations/pages/IntegrationsUserLandingPage.js +56 -0
- package/dist/integrations/pages/IntegrationsUserLandingPage.js.map +1 -0
- package/dist/integrations/pages/ProviderCatalog.d.ts +9 -0
- package/dist/integrations/pages/ProviderCatalog.d.ts.map +1 -0
- package/dist/integrations/pages/ProviderCatalog.js +337 -0
- package/dist/integrations/pages/ProviderCatalog.js.map +1 -0
- package/dist/integrations/pages/ProviderDetail.d.ts +5 -0
- package/dist/integrations/pages/ProviderDetail.d.ts.map +1 -0
- package/dist/integrations/pages/ProviderDetail.js +386 -0
- package/dist/integrations/pages/ProviderDetail.js.map +1 -0
- package/dist/integrations/pages/ProviderEditorPage.d.ts +2 -0
- package/dist/integrations/pages/ProviderEditorPage.d.ts.map +1 -0
- package/dist/integrations/pages/ProviderEditorPage.js +412 -0
- package/dist/integrations/pages/ProviderEditorPage.js.map +1 -0
- package/dist/integrations/providers/IntegrationsProvider.d.ts +13 -0
- package/dist/integrations/providers/IntegrationsProvider.d.ts.map +1 -0
- package/dist/integrations/providers/IntegrationsProvider.js +121 -0
- package/dist/integrations/providers/IntegrationsProvider.js.map +1 -0
- package/dist/integrations/store/integrationsStore.d.ts +21 -0
- package/dist/integrations/store/integrationsStore.d.ts.map +1 -0
- package/dist/integrations/store/integrationsStore.js +43 -0
- package/dist/integrations/store/integrationsStore.js.map +1 -0
- package/dist/integrations/types/index.d.ts +217 -0
- package/dist/integrations/types/index.d.ts.map +1 -0
- package/dist/integrations/utils/appearance.d.ts +14 -0
- package/dist/integrations/utils/appearance.d.ts.map +1 -0
- package/dist/integrations/utils/appearance.js +64 -0
- package/dist/integrations/utils/appearance.js.map +1 -0
- package/dist/integrations/utils/cn.d.ts +8 -0
- package/dist/integrations/utils/cn.d.ts.map +1 -0
- package/dist/integrations/utils/cn.js +10 -0
- package/dist/integrations/utils/cn.js.map +1 -0
- package/dist/integrations/utils/constants.d.ts +194 -0
- package/dist/integrations/utils/constants.d.ts.map +1 -0
- package/dist/integrations/utils/constants.js +200 -0
- package/dist/integrations/utils/constants.js.map +1 -0
- package/dist/integrations/utils/i18n.d.ts +6 -0
- package/dist/integrations/utils/i18n.d.ts.map +1 -0
- package/dist/integrations/utils/integrationsHelpers.d.ts +39 -0
- package/dist/integrations/utils/integrationsHelpers.d.ts.map +1 -0
- package/dist/integrations/utils/integrationsHelpers.js +82 -0
- package/dist/integrations/utils/integrationsHelpers.js.map +1 -0
- package/dist/integrations/utils/mappers.d.ts +15 -0
- package/dist/integrations/utils/mappers.d.ts.map +1 -0
- package/dist/integrations/utils/mappers.js +151 -0
- package/dist/integrations/utils/mappers.js.map +1 -0
- package/dist/integrations/utils/navigation.d.ts +18 -0
- package/dist/integrations/utils/navigation.d.ts.map +1 -0
- package/dist/integrations/utils/navigation.js +13 -0
- package/dist/integrations/utils/navigation.js.map +1 -0
- package/dist/integrations/utils/oauthPopup.d.ts +16 -0
- package/dist/integrations/utils/oauthPopup.d.ts.map +1 -0
- package/dist/integrations/utils/oauthPopup.js +62 -0
- package/dist/integrations/utils/oauthPopup.js.map +1 -0
- package/dist/integrations/utils/paths.d.ts +5 -0
- package/dist/integrations/utils/paths.d.ts.map +1 -0
- package/dist/integrations/utils/paths.js +6 -0
- package/dist/integrations/utils/paths.js.map +1 -0
- package/dist/node_modules/@iconify/react/dist/iconify.js +1005 -0
- package/dist/node_modules/@iconify/react/dist/iconify.js.map +1 -0
- package/dist/node_modules/clsx/dist/clsx.js +18 -0
- package/dist/node_modules/clsx/dist/clsx.js.map +1 -0
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +1674 -0
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -0
- package/dist/utils/nativeBridge.d.ts +3 -0
- package/dist/utils/nativeBridge.d.ts.map +1 -0
- package/dist/utils/nativeBridge.js +2 -0
- package/package.json +107 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,cAAc,gBAAgB,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { useIntegrations as e } from "./integrations/providers/IntegrationsProvider.js";
|
|
2
|
+
import { INTEGRATION_PERMISSIONS as t } from "./integrations/constants/permissions.js";
|
|
3
|
+
import { useIntegrationsStore as n } from "./integrations/store/integrationsStore.js";
|
|
4
|
+
import { IntegrationsRoot as r } from "./integrations/IntegrationsRoot.js";
|
|
5
|
+
import { IntegrationsAdminRoot as i } from "./integrations/IntegrationsAdminRoot.js";
|
|
6
|
+
import { AddConnectionWizard as a } from "./integrations/pages/AddConnectionWizard.js";
|
|
7
|
+
import "./integrations/index.js";
|
|
8
|
+
export { a as AddConnectionWizard, t as INTEGRATION_PERMISSIONS, i as IntegrationsAdminRoot, r as IntegrationsRoot, e as useIntegrations, n as useIntegrationsStore };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { IntegrationsRootProps } from './types';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Admin root component for the Integrations microfrontend.
|
|
6
|
+
*
|
|
7
|
+
* This is the admin entry point that admin-app imports and renders.
|
|
8
|
+
* It sets up providers and renders admin-only routing (settings,
|
|
9
|
+
* future admin features).
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```tsx
|
|
13
|
+
* import { IntegrationsAdminRoot } from '@burdenoff/micro-fe/integrations';
|
|
14
|
+
*
|
|
15
|
+
* <IntegrationsAdminRoot basePath="/integrations" {...adminProps} />
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
export declare const IntegrationsAdminRoot: FC<IntegrationsRootProps>;
|
|
19
|
+
//# sourceMappingURL=IntegrationsAdminRoot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IntegrationsAdminRoot.d.ts","sourceRoot":"","sources":["../../src/integrations/IntegrationsAdminRoot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAKhC,OAAO,KAAK,EAAW,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAI9D;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,qBAAqB,EAAE,EAAE,CAAC,qBAAqB,CA6D3D,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { IntegrationsProvider as e } from "./providers/IntegrationsProvider.js";
|
|
2
|
+
import { joinPath as t } from "./utils/paths.js";
|
|
3
|
+
import { IntegrationsAdminRoutes as n } from "./IntegrationsAdminRoutes.js";
|
|
4
|
+
import { useEffect as r } from "react";
|
|
5
|
+
import { ErrorBoundary as i } from "@burdenoff/fe-libs/shared/components";
|
|
6
|
+
import { Settings as a, Store as o } from "lucide-react";
|
|
7
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
8
|
+
//#region src/integrations/IntegrationsAdminRoot.tsx
|
|
9
|
+
var c = (c) => {
|
|
10
|
+
let { registerNavItems: l, registerFooterItems: u, basePath: d = "/" } = c;
|
|
11
|
+
return r(() => {
|
|
12
|
+
if (l) return l([{
|
|
13
|
+
id: "integrations-admin-providers",
|
|
14
|
+
label: "Providers",
|
|
15
|
+
path: t(d, "providers"),
|
|
16
|
+
icon: /* @__PURE__ */ s(o, { size: 20 }),
|
|
17
|
+
order: 5,
|
|
18
|
+
group: "integrations"
|
|
19
|
+
}, {
|
|
20
|
+
id: "integrations-admin-settings",
|
|
21
|
+
label: "Settings",
|
|
22
|
+
path: t(d, "settings"),
|
|
23
|
+
icon: /* @__PURE__ */ s(a, { size: 20 }),
|
|
24
|
+
order: 10,
|
|
25
|
+
group: "integrations"
|
|
26
|
+
}]);
|
|
27
|
+
}, [l, d]), r(() => {
|
|
28
|
+
if (u) return u([{
|
|
29
|
+
id: "integrations-admin-status",
|
|
30
|
+
label: "Integrations Admin Ready",
|
|
31
|
+
type: "status",
|
|
32
|
+
order: 10,
|
|
33
|
+
section: "left"
|
|
34
|
+
}]);
|
|
35
|
+
}, [u]), /* @__PURE__ */ s(i, {
|
|
36
|
+
fallback: /* @__PURE__ */ s("div", {
|
|
37
|
+
className: "p-6 text-center text-text-secondary",
|
|
38
|
+
children: "Something went wrong loading this module. Please refresh the page."
|
|
39
|
+
}),
|
|
40
|
+
children: /* @__PURE__ */ s(e, {
|
|
41
|
+
...c,
|
|
42
|
+
adminMode: !0,
|
|
43
|
+
children: /* @__PURE__ */ s(n, {})
|
|
44
|
+
})
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
//#endregion
|
|
48
|
+
export { c as IntegrationsAdminRoot };
|
|
49
|
+
|
|
50
|
+
//# sourceMappingURL=IntegrationsAdminRoot.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IntegrationsAdminRoot.js","names":[],"sources":["../../src/integrations/IntegrationsAdminRoot.tsx"],"sourcesContent":["import type { FC } from 'react';\nimport { useEffect } from 'react';\nimport { ErrorBoundary } from '@burdenoff/fe-libs/shared/components';\nimport { Settings, Store } from 'lucide-react';\nimport { IntegrationsProvider } from './providers/IntegrationsProvider';\nimport type { NavItem, IntegrationsRootProps } from './types';\nimport { IntegrationsAdminRoutes } from './IntegrationsAdminRoutes';\nimport { joinPath } from './utils/paths';\n\n/**\n * Admin root component for the Integrations microfrontend.\n *\n * This is the admin entry point that admin-app imports and renders.\n * It sets up providers and renders admin-only routing (settings,\n * future admin features).\n *\n * @example\n * ```tsx\n * import { IntegrationsAdminRoot } from '@burdenoff/micro-fe/integrations';\n *\n * <IntegrationsAdminRoot basePath=\"/integrations\" {...adminProps} />\n * ```\n */\nexport const IntegrationsAdminRoot: FC<IntegrationsRootProps> = (props) => {\n const { registerNavItems, registerFooterItems, basePath = '/' } = props;\n\n // Register admin navigation items\n useEffect(() => {\n if (!registerNavItems) return;\n\n const navItems: NavItem[] = [\n {\n id: 'integrations-admin-providers',\n label: 'Providers',\n path: joinPath(basePath, 'providers'),\n icon: <Store size={20} />,\n order: 5,\n group: 'integrations',\n },\n {\n id: 'integrations-admin-settings',\n label: 'Settings',\n path: joinPath(basePath, 'settings'),\n icon: <Settings size={20} />,\n order: 10,\n group: 'integrations',\n },\n ];\n\n const cleanup = registerNavItems(navItems);\n return cleanup;\n }, [registerNavItems, basePath]);\n\n // Register footer items\n useEffect(() => {\n if (!registerFooterItems) return;\n\n const footerItems = [\n {\n id: 'integrations-admin-status',\n label: 'Integrations Admin 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]);\n\n return (\n <ErrorBoundary\n fallback={\n <div className=\"p-6 text-center text-text-secondary\">\n Something went wrong loading this module. Please refresh the page.\n </div>\n }\n >\n <IntegrationsProvider {...props} adminMode>\n <IntegrationsAdminRoutes />\n </IntegrationsProvider>\n </ErrorBoundary>\n );\n};\n"],"mappings":";;;;;;;;AAuBA,IAAa,KAAoD,MAAU;CACzE,IAAM,EAAE,qBAAkB,wBAAqB,cAAW,QAAQ;AA+ClE,QA5CA,QAAgB;AACT,QAsBL,QADgB,EAnBY,CAC1B;GACE,IAAI;GACJ,OAAO;GACP,MAAM,EAAS,GAAU,YAAY;GACrC,MAAM,kBAAC,GAAD,EAAO,MAAM,IAAM,CAAA;GACzB,OAAO;GACP,OAAO;GACR,EACD;GACE,IAAI;GACJ,OAAO;GACP,MAAM,EAAS,GAAU,WAAW;GACpC,MAAM,kBAAC,GAAD,EAAU,MAAM,IAAM,CAAA;GAC5B,OAAO;GACP,OAAO;GACR,CACF,CAEyC;IAEzC,CAAC,GAAkB,EAAS,CAAC,EAGhC,QAAgB;AACT,QAaL,QADgB,EAVI,CAClB;GACE,IAAI;GACJ,OAAO;GACP,MAAM;GACN,OAAO;GACP,SAAS;GACV,CACF,CAE+C;IAE/C,CAAC,EAAoB,CAAC,EAGvB,kBAAC,GAAD;EACE,UACE,kBAAC,OAAD;GAAK,WAAU;aAAsC;GAE/C,CAAA;YAGR,kBAAC,GAAD;GAAsB,GAAI;GAAO,WAAA;aAC/B,kBAAC,GAAD,EAA2B,CAAA;GACN,CAAA;EACT,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Admin-facing routes for the Integrations microfrontend.
|
|
3
|
+
*
|
|
4
|
+
* Includes: Settings (module configuration).
|
|
5
|
+
* Excludes user features: Overview, Providers, Connections, Activity Logs.
|
|
6
|
+
*/
|
|
7
|
+
export declare function IntegrationsAdminRoutes(): import("react/jsx-runtime").JSX.Element | null;
|
|
8
|
+
//# sourceMappingURL=IntegrationsAdminRoutes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IntegrationsAdminRoutes.d.ts","sourceRoot":"","sources":["../../src/integrations/IntegrationsAdminRoutes.tsx"],"names":[],"mappings":"AAsFA;;;;;GAKG;AACH,wBAAgB,uBAAuB,mDAkCtC"}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { useIntegrations as e } from "./providers/IntegrationsProvider.js";
|
|
2
|
+
import { Component as t, Suspense as n, lazy as r } from "react";
|
|
3
|
+
import { AlertTriangle as i, Loader2 as a, RefreshCw as o } from "lucide-react";
|
|
4
|
+
import { Navigate as s, Route as c, Routes as l, useLocation as u } from "react-router-dom";
|
|
5
|
+
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
6
|
+
//#region src/integrations/IntegrationsAdminRoutes.tsx
|
|
7
|
+
var p = r(() => import("./pages/IntegrationsSettings.js").then((e) => ({ default: e.IntegrationsSettings }))), m = r(() => import("./pages/ProviderCatalog.js").then((e) => ({ default: e.ProviderCatalog }))), h = r(() => import("./pages/ProviderDetail.js").then((e) => ({ default: e.ProviderDetail }))), g = r(() => import("./pages/ProviderEditorPage.js").then((e) => ({ default: e.ProviderEditorPage })));
|
|
8
|
+
function _() {
|
|
9
|
+
return /* @__PURE__ */ d("div", {
|
|
10
|
+
className: "flex items-center justify-center min-h-[400px]",
|
|
11
|
+
children: /* @__PURE__ */ d(a, { className: "h-8 w-8 animate-spin text-primary" })
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
var v = class extends t {
|
|
15
|
+
constructor(e) {
|
|
16
|
+
super(e), this.state = {
|
|
17
|
+
hasError: !1,
|
|
18
|
+
error: null,
|
|
19
|
+
retryKey: 0
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
static getDerivedStateFromError(e) {
|
|
23
|
+
return {
|
|
24
|
+
hasError: !0,
|
|
25
|
+
error: e
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
componentDidCatch(e, t) {
|
|
29
|
+
console.error("[Integrations Admin] Lazy page load failed:", e, t);
|
|
30
|
+
}
|
|
31
|
+
handleRetry = () => {
|
|
32
|
+
this.setState((e) => ({
|
|
33
|
+
hasError: !1,
|
|
34
|
+
error: null,
|
|
35
|
+
retryKey: e.retryKey + 1
|
|
36
|
+
}));
|
|
37
|
+
};
|
|
38
|
+
render() {
|
|
39
|
+
return this.state.hasError ? /* @__PURE__ */ f("div", {
|
|
40
|
+
className: "flex flex-col items-center justify-center min-h-[400px] gap-4 text-center p-6",
|
|
41
|
+
children: [
|
|
42
|
+
/* @__PURE__ */ d("div", {
|
|
43
|
+
className: "p-3 rounded-full bg-destructive/10",
|
|
44
|
+
children: /* @__PURE__ */ d(i, { className: "h-8 w-8 text-destructive" })
|
|
45
|
+
}),
|
|
46
|
+
/* @__PURE__ */ f("div", {
|
|
47
|
+
className: "space-y-2",
|
|
48
|
+
children: [/* @__PURE__ */ d("h3", {
|
|
49
|
+
className: "text-lg font-semibold text-foreground",
|
|
50
|
+
children: "Failed to load page"
|
|
51
|
+
}), /* @__PURE__ */ d("p", {
|
|
52
|
+
className: "text-sm text-muted-foreground max-w-md",
|
|
53
|
+
children: this.state.error?.message || "The page chunk could not be loaded. This may be due to a network issue."
|
|
54
|
+
})]
|
|
55
|
+
}),
|
|
56
|
+
/* @__PURE__ */ f("button", {
|
|
57
|
+
onClick: this.handleRetry,
|
|
58
|
+
className: "inline-flex items-center gap-2 px-4 py-2 text-sm font-medium rounded-md bg-primary text-primary-foreground hover:bg-primary/90 transition-colors",
|
|
59
|
+
children: [/* @__PURE__ */ d(o, { className: "h-4 w-4" }), "Try Again"]
|
|
60
|
+
})
|
|
61
|
+
]
|
|
62
|
+
}) : /* @__PURE__ */ d("div", { children: this.props.children }, this.state.retryKey);
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
function y() {
|
|
66
|
+
let { basePath: t } = e(), r = u(), i = t && t !== "/" ? t.endsWith("/") ? t.slice(0, -1) : t : "";
|
|
67
|
+
return i && !(r.pathname === i || r.pathname.startsWith(i + "/")) ? null : /* @__PURE__ */ d(v, { children: /* @__PURE__ */ d(n, {
|
|
68
|
+
fallback: /* @__PURE__ */ d(_, {}),
|
|
69
|
+
children: /* @__PURE__ */ f(l, { children: [
|
|
70
|
+
/* @__PURE__ */ d(c, {
|
|
71
|
+
index: !0,
|
|
72
|
+
element: /* @__PURE__ */ d(s, {
|
|
73
|
+
to: "providers",
|
|
74
|
+
replace: !0
|
|
75
|
+
})
|
|
76
|
+
}),
|
|
77
|
+
/* @__PURE__ */ d(c, {
|
|
78
|
+
path: "providers",
|
|
79
|
+
element: /* @__PURE__ */ d(m, { showCreateProviderButton: !0 })
|
|
80
|
+
}),
|
|
81
|
+
/* @__PURE__ */ d(c, {
|
|
82
|
+
path: "providers/new",
|
|
83
|
+
element: /* @__PURE__ */ d(g, {})
|
|
84
|
+
}),
|
|
85
|
+
/* @__PURE__ */ d(c, {
|
|
86
|
+
path: "providers/:providerId",
|
|
87
|
+
element: /* @__PURE__ */ d(h, {})
|
|
88
|
+
}),
|
|
89
|
+
/* @__PURE__ */ d(c, {
|
|
90
|
+
path: "providers/:providerId/edit",
|
|
91
|
+
element: /* @__PURE__ */ d(g, {})
|
|
92
|
+
}),
|
|
93
|
+
/* @__PURE__ */ d(c, {
|
|
94
|
+
path: "settings",
|
|
95
|
+
element: /* @__PURE__ */ d(p, {})
|
|
96
|
+
}),
|
|
97
|
+
/* @__PURE__ */ d(c, {
|
|
98
|
+
path: "*",
|
|
99
|
+
element: /* @__PURE__ */ d(s, {
|
|
100
|
+
to: "",
|
|
101
|
+
replace: !0
|
|
102
|
+
})
|
|
103
|
+
})
|
|
104
|
+
] })
|
|
105
|
+
}) });
|
|
106
|
+
}
|
|
107
|
+
//#endregion
|
|
108
|
+
export { y as IntegrationsAdminRoutes };
|
|
109
|
+
|
|
110
|
+
//# sourceMappingURL=IntegrationsAdminRoutes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IntegrationsAdminRoutes.js","names":[],"sources":["../../src/integrations/IntegrationsAdminRoutes.tsx"],"sourcesContent":["import { lazy, Suspense, Component, type ReactNode, type ErrorInfo } from 'react';\nimport { Navigate, Route, Routes, useLocation } from 'react-router-dom';\nimport { Loader2, AlertTriangle, RefreshCw } from 'lucide-react';\nimport { useIntegrations } from './providers/IntegrationsProvider';\n\n// Lazy loaded pages\nconst IntegrationsSettings = lazy(() =>\n import('./pages/IntegrationsSettings').then((m) => ({ default: m.IntegrationsSettings }))\n);\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 ProviderEditorPage = lazy(() =>\n import('./pages/ProviderEditorPage').then((m) => ({ default: m.ProviderEditorPage }))\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=\"h-8 w-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 Admin] 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-destructive/10\">\n <AlertTriangle className=\"h-8 w-8 text-destructive\" />\n </div>\n <div className=\"space-y-2\">\n <h3 className=\"text-lg font-semibold text-foreground\">Failed to load page</h3>\n <p className=\"text-sm text-muted-foreground 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 onClick={this.handleRetry}\n className=\"inline-flex items-center gap-2 px-4 py-2 text-sm font-medium rounded-md bg-primary text-primary-foreground hover:bg-primary/90 transition-colors\"\n >\n <RefreshCw className=\"h-4 w-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 * Admin-facing routes for the Integrations microfrontend.\n *\n * Includes: Settings (module configuration).\n * Excludes user features: Overview, Providers, Connections, Activity Logs.\n */\nexport function IntegrationsAdminRoutes() {\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 <Route index element={<Navigate to=\"providers\" replace />} />\n <Route path=\"providers\" element={<ProviderCatalog showCreateProviderButton />} />\n <Route path=\"providers/new\" element={<ProviderEditorPage />} />\n <Route path=\"providers/:providerId\" element={<ProviderDetail />} />\n <Route path=\"providers/:providerId/edit\" element={<ProviderEditorPage />} />\n <Route path=\"settings\" element={<IntegrationsSettings />} />\n\n {/* Catch-all: redirect to admin landing */}\n <Route path=\"*\" element={<Navigate to=\"\" replace />} />\n </Routes>\n </Suspense>\n </LazyErrorBoundary>\n );\n}\n"],"mappings":"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"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { IntegrationsRootProps } from './types';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Root component for the Integrations microfrontend.
|
|
6
|
+
*
|
|
7
|
+
* This is the main entry point that host applications import and render.
|
|
8
|
+
* It sets up the necessary providers and renders the internal routing.
|
|
9
|
+
* Automatically registers navigation items with the shell if registration functions are provided.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```tsx
|
|
13
|
+
* import { IntegrationsRoot, type IntegrationsRootProps } from '@burdenoff/micro-fe/integrations';
|
|
14
|
+
*
|
|
15
|
+
* function App() {
|
|
16
|
+
* const props: IntegrationsRootProps = {
|
|
17
|
+
* basePath: '/integrations',
|
|
18
|
+
* navigate: (path) => router.push(path),
|
|
19
|
+
* currentUser: { id: '1', email: 'user@example.com', firstName: 'John', lastName: 'Doe' },
|
|
20
|
+
* workspaceId: 'ws-123',
|
|
21
|
+
* apiGatewayUrl: 'https://api.example.com',
|
|
22
|
+
* authToken: 'token',
|
|
23
|
+
* onConnectionSelect: (conn) => console.log('Connection selected:', conn),
|
|
24
|
+
* onProviderSelect: (provider) => console.log('Provider selected:', provider),
|
|
25
|
+
* registerNavItems: (items) => { return () => {}; },
|
|
26
|
+
* };
|
|
27
|
+
*
|
|
28
|
+
* return <IntegrationsRoot {...props} />;
|
|
29
|
+
* }
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
export declare const IntegrationsRoot: FC<IntegrationsRootProps>;
|
|
33
|
+
//# sourceMappingURL=IntegrationsRoot.d.ts.map
|
|
@@ -0,0 +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;AAMhC,OAAO,KAAK,EAAW,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAI9D;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CA0FtD,CAAC"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { IntegrationsProvider as e } from "./providers/IntegrationsProvider.js";
|
|
2
|
+
import { IntegrationsUserRoutes as t } from "./IntegrationsUserRoutes.js";
|
|
3
|
+
import { joinPath as n } from "./utils/paths.js";
|
|
4
|
+
import { useEffect as r } from "react";
|
|
5
|
+
import { ErrorBoundary as i } from "@burdenoff/fe-libs/shared/components";
|
|
6
|
+
import { FileText as a, LayoutDashboard as o, Link2 as s, Plug as c, Store as l } from "lucide-react";
|
|
7
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
8
|
+
import { FeatureFlagProvider as d } from "@burdenoff/fe-libs/shared/feature-flags";
|
|
9
|
+
//#region src/integrations/IntegrationsRoot.tsx
|
|
10
|
+
var f = (f) => {
|
|
11
|
+
let { registerNavItems: p, registerFooterItems: m, basePath: h = "/" } = f;
|
|
12
|
+
return r(() => {
|
|
13
|
+
if (p) return p({
|
|
14
|
+
id: "integrations",
|
|
15
|
+
label: "Integrations",
|
|
16
|
+
path: h,
|
|
17
|
+
icon: /* @__PURE__ */ u(c, { size: 20 }),
|
|
18
|
+
order: 10,
|
|
19
|
+
group: "integrations",
|
|
20
|
+
children: [
|
|
21
|
+
{
|
|
22
|
+
id: "integrations-overview",
|
|
23
|
+
label: "Overview",
|
|
24
|
+
path: h,
|
|
25
|
+
icon: /* @__PURE__ */ u(o, { size: 16 }),
|
|
26
|
+
order: 10
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
id: "integrations-providers",
|
|
30
|
+
label: "Providers",
|
|
31
|
+
path: n(h, "providers"),
|
|
32
|
+
icon: /* @__PURE__ */ u(l, { size: 16 }),
|
|
33
|
+
order: 20
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
id: "integrations-connections",
|
|
37
|
+
label: "Connections",
|
|
38
|
+
path: n(h, "connections"),
|
|
39
|
+
icon: /* @__PURE__ */ u(s, { size: 16 }),
|
|
40
|
+
order: 30
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
id: "integrations-logs",
|
|
44
|
+
label: "Activity Logs",
|
|
45
|
+
path: n(h, "logs"),
|
|
46
|
+
icon: /* @__PURE__ */ u(a, { size: 16 }),
|
|
47
|
+
order: 40
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
});
|
|
51
|
+
}, [p, h]), r(() => {
|
|
52
|
+
if (m) return m([{
|
|
53
|
+
id: "integrations-status",
|
|
54
|
+
label: "Integrations Ready",
|
|
55
|
+
type: "status",
|
|
56
|
+
order: 10,
|
|
57
|
+
section: "left"
|
|
58
|
+
}]);
|
|
59
|
+
}, [m]), /* @__PURE__ */ u(d, {
|
|
60
|
+
workspaceId: f.workspaceId ?? null,
|
|
61
|
+
gateway: "workspace",
|
|
62
|
+
defaultEnabled: !1,
|
|
63
|
+
children: /* @__PURE__ */ u(i, {
|
|
64
|
+
fallback: /* @__PURE__ */ u("div", {
|
|
65
|
+
className: "p-6 text-center text-text-secondary",
|
|
66
|
+
children: "Something went wrong loading this module. Please refresh the page."
|
|
67
|
+
}),
|
|
68
|
+
children: /* @__PURE__ */ u(e, {
|
|
69
|
+
...f,
|
|
70
|
+
children: /* @__PURE__ */ u(t, {})
|
|
71
|
+
})
|
|
72
|
+
})
|
|
73
|
+
});
|
|
74
|
+
};
|
|
75
|
+
//#endregion
|
|
76
|
+
export { f as IntegrationsRoot };
|
|
77
|
+
|
|
78
|
+
//# sourceMappingURL=IntegrationsRoot.js.map
|
|
@@ -0,0 +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 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\n // Register navigation items with the shell\n useEffect(() => {\n if (!registerNavItems) return;\n\n const integrationsNavItem: NavItem = {\n id: 'integrations',\n label: 'Integrations',\n path: basePath,\n icon: <Plug size={20} />,\n order: 10,\n group: 'integrations',\n children: [\n {\n id: 'integrations-overview',\n label: 'Overview',\n path: basePath,\n icon: <LayoutDashboard size={16} />,\n order: 10,\n },\n {\n id: 'integrations-providers',\n label: 'Providers',\n path: joinPath(basePath, 'providers'),\n icon: <Store size={16} />,\n order: 20,\n },\n {\n id: 'integrations-connections',\n label: 'Connections',\n path: joinPath(basePath, 'connections'),\n icon: <Link2 size={16} />,\n order: 30,\n },\n {\n id: 'integrations-logs',\n label: '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]);\n\n // Register footer items\n useEffect(() => {\n if (!registerFooterItems) return;\n\n const footerItems = [\n {\n id: 'integrations-status',\n label: '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]);\n\n return (\n <FeatureFlagProvider\n workspaceId={props.workspaceId ?? null}\n gateway=\"workspace\"\n defaultEnabled={false}\n >\n <ErrorBoundary\n fallback={\n <div className=\"p-6 text-center text-text-secondary\">\n Something went wrong loading this module. Please refresh the page.\n </div>\n }\n >\n <IntegrationsProvider {...props}>\n <IntegrationsUserRoutes />\n </IntegrationsProvider>\n </ErrorBoundary>\n </FeatureFlagProvider>\n );\n};\n"],"mappings":";;;;;;;;;AAsCA,IAAa,KAA+C,MAAU;CACpE,IAAM,EAAE,qBAAkB,wBAAqB,cAAW,QAAQ;AAsElE,QAnEA,QAAgB;AACT,QA6CL,QAHgB,EAxCqB;GACnC,IAAI;GACJ,OAAO;GACP,MAAM;GACN,MAAM,kBAAC,GAAD,EAAM,MAAM,IAAM,CAAA;GACxB,OAAO;GACP,OAAO;GACP,UAAU;IACR;KACE,IAAI;KACJ,OAAO;KACP,MAAM;KACN,MAAM,kBAAC,GAAD,EAAiB,MAAM,IAAM,CAAA;KACnC,OAAO;KACR;IACD;KACE,IAAI;KACJ,OAAO;KACP,MAAM,EAAS,GAAU,YAAY;KACrC,MAAM,kBAAC,GAAD,EAAO,MAAM,IAAM,CAAA;KACzB,OAAO;KACR;IACD;KACE,IAAI;KACJ,OAAO;KACP,MAAM,EAAS,GAAU,cAAc;KACvC,MAAM,kBAAC,GAAD,EAAO,MAAM,IAAM,CAAA;KACzB,OAAO;KACR;IACD;KACE,IAAI;KACJ,OAAO;KACP,MAAM,EAAS,GAAU,OAAO;KAChC,MAAM,kBAAC,GAAD,EAAU,MAAM,IAAM,CAAA;KAC5B,OAAO;KACR;IACF;GACF,CAGoD;IAIpD,CAAC,GAAkB,EAAS,CAAC,EAGhC,QAAgB;AACT,QAaL,QADgB,EAVI,CAClB;GACE,IAAI;GACJ,OAAO;GACP,MAAM;GACN,OAAO;GACP,SAAS;GACV,CACF,CAE+C;IAE/C,CAAC,EAAoB,CAAC,EAGvB,kBAAC,GAAD;EACE,aAAa,EAAM,eAAe;EAClC,SAAQ;EACR,gBAAgB;YAEhB,kBAAC,GAAD;GACE,UACE,kBAAC,OAAD;IAAK,WAAU;cAAsC;IAE/C,CAAA;aAGR,kBAAC,GAAD;IAAsB,GAAI;cACxB,kBAAC,GAAD,EAA0B,CAAA;IACL,CAAA;GACT,CAAA;EACI,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Internal router for the Integrations microfrontend.
|
|
3
|
+
* This component handles routing within the microfrontend using React Router v7.
|
|
4
|
+
*
|
|
5
|
+
* Routes (relative to basePath, e.g., /integrations):
|
|
6
|
+
* - / → Overview dashboard
|
|
7
|
+
* - /providers → Provider catalog
|
|
8
|
+
* - /providers/:providerId → Provider detail page
|
|
9
|
+
* - /connections → Connections list
|
|
10
|
+
* - /connections/add → Add connection wizard
|
|
11
|
+
* - /connections/add/:providerId → Add connection with pre-selected provider
|
|
12
|
+
* - /connections/:connectionId → Connection detail page
|
|
13
|
+
* - /logs → Activity logs
|
|
14
|
+
* - /settings → Module settings
|
|
15
|
+
*/
|
|
16
|
+
export declare function IntegrationsRoutes(): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
//# sourceMappingURL=IntegrationsRoutes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IntegrationsRoutes.d.ts","sourceRoot":"","sources":["../../src/integrations/IntegrationsRoutes.tsx"],"names":[],"mappings":"AA+FA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,kBAAkB,4CA+BjC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* User-facing routes for the Integrations microfrontend.
|
|
3
|
+
*
|
|
4
|
+
* Includes: Overview, Providers, Connections, Activity Logs.
|
|
5
|
+
* Excludes admin features: Settings.
|
|
6
|
+
*/
|
|
7
|
+
export declare function IntegrationsUserRoutes(): import("react/jsx-runtime").JSX.Element | null;
|
|
8
|
+
//# sourceMappingURL=IntegrationsUserRoutes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IntegrationsUserRoutes.d.ts","sourceRoot":"","sources":["../../src/integrations/IntegrationsUserRoutes.tsx"],"names":[],"mappings":"AA+FA;;;;;GAKG;AACH,wBAAgB,sBAAsB,mDA2CrC"}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { useIntegrations as e } from "./providers/IntegrationsProvider.js";
|
|
2
|
+
import { IntegrationsUserLandingPage as t } from "./pages/IntegrationsUserLandingPage.js";
|
|
3
|
+
import { Component as n, Suspense as r, lazy as i } from "react";
|
|
4
|
+
import { AlertTriangle as a, Loader2 as o, RefreshCw as s } from "lucide-react";
|
|
5
|
+
import { Navigate as c, Route as l, Routes as u, useLocation as d } from "react-router-dom";
|
|
6
|
+
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
7
|
+
//#region src/integrations/IntegrationsUserRoutes.tsx
|
|
8
|
+
var m = i(() => import("./pages/ProviderCatalog.js").then((e) => ({ default: e.ProviderCatalog }))), h = i(() => import("./pages/ProviderDetail.js").then((e) => ({ default: e.ProviderDetail }))), g = i(() => import("./pages/ConnectionsList.js").then((e) => ({ default: e.ConnectionsList }))), _ = i(() => import("./pages/AddConnectionWizard.js").then((e) => ({ default: e.AddConnectionWizard }))), v = i(() => import("./pages/ConnectionDetail.js").then((e) => ({ default: e.ConnectionDetail }))), y = i(() => import("./pages/ConnectionLogs.js").then((e) => ({ default: e.ConnectionLogs })));
|
|
9
|
+
function b() {
|
|
10
|
+
return /* @__PURE__ */ f("div", {
|
|
11
|
+
className: "flex items-center justify-center min-h-[400px]",
|
|
12
|
+
children: /* @__PURE__ */ f(o, { className: "h-8 w-8 animate-spin text-primary" })
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
var x = class extends n {
|
|
16
|
+
constructor(e) {
|
|
17
|
+
super(e), this.state = {
|
|
18
|
+
hasError: !1,
|
|
19
|
+
error: null,
|
|
20
|
+
retryKey: 0
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
static getDerivedStateFromError(e) {
|
|
24
|
+
return {
|
|
25
|
+
hasError: !0,
|
|
26
|
+
error: e
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
componentDidCatch(e, t) {
|
|
30
|
+
console.error("[Integrations] Lazy page load failed:", e, t);
|
|
31
|
+
}
|
|
32
|
+
handleRetry = () => {
|
|
33
|
+
this.setState((e) => ({
|
|
34
|
+
hasError: !1,
|
|
35
|
+
error: null,
|
|
36
|
+
retryKey: e.retryKey + 1
|
|
37
|
+
}));
|
|
38
|
+
};
|
|
39
|
+
render() {
|
|
40
|
+
return this.state.hasError ? /* @__PURE__ */ p("div", {
|
|
41
|
+
className: "flex flex-col items-center justify-center min-h-[400px] gap-4 text-center p-6",
|
|
42
|
+
children: [
|
|
43
|
+
/* @__PURE__ */ f("div", {
|
|
44
|
+
className: "p-3 rounded-full bg-destructive/10",
|
|
45
|
+
children: /* @__PURE__ */ f(a, { className: "h-8 w-8 text-destructive" })
|
|
46
|
+
}),
|
|
47
|
+
/* @__PURE__ */ p("div", {
|
|
48
|
+
className: "space-y-2",
|
|
49
|
+
children: [/* @__PURE__ */ f("h3", {
|
|
50
|
+
className: "text-lg font-semibold text-foreground",
|
|
51
|
+
children: "Failed to load page"
|
|
52
|
+
}), /* @__PURE__ */ f("p", {
|
|
53
|
+
className: "text-sm text-muted-foreground max-w-md",
|
|
54
|
+
children: this.state.error?.message || "The page chunk could not be loaded. This may be due to a network issue."
|
|
55
|
+
})]
|
|
56
|
+
}),
|
|
57
|
+
/* @__PURE__ */ p("button", {
|
|
58
|
+
onClick: this.handleRetry,
|
|
59
|
+
className: "inline-flex items-center gap-2 px-4 py-2 text-sm font-medium rounded-md bg-primary text-primary-foreground hover:bg-primary/90 transition-colors",
|
|
60
|
+
children: [/* @__PURE__ */ f(s, { className: "h-4 w-4" }), "Try Again"]
|
|
61
|
+
})
|
|
62
|
+
]
|
|
63
|
+
}) : /* @__PURE__ */ f("div", { children: this.props.children }, this.state.retryKey);
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
function S() {
|
|
67
|
+
let { basePath: n } = e(), i = d(), a = n && n !== "/" ? n.endsWith("/") ? n.slice(0, -1) : n : "";
|
|
68
|
+
return a && !(i.pathname === a || i.pathname.startsWith(a + "/")) ? null : /* @__PURE__ */ f(x, { children: /* @__PURE__ */ f(r, {
|
|
69
|
+
fallback: /* @__PURE__ */ f(b, {}),
|
|
70
|
+
children: /* @__PURE__ */ p(u, { children: [
|
|
71
|
+
/* @__PURE__ */ f(l, {
|
|
72
|
+
index: !0,
|
|
73
|
+
element: /* @__PURE__ */ f(t, {})
|
|
74
|
+
}),
|
|
75
|
+
/* @__PURE__ */ f(l, {
|
|
76
|
+
path: "providers",
|
|
77
|
+
element: /* @__PURE__ */ f(m, {})
|
|
78
|
+
}),
|
|
79
|
+
/* @__PURE__ */ f(l, {
|
|
80
|
+
path: "providers/:providerId",
|
|
81
|
+
element: /* @__PURE__ */ f(h, {})
|
|
82
|
+
}),
|
|
83
|
+
/* @__PURE__ */ f(l, {
|
|
84
|
+
path: "connections",
|
|
85
|
+
element: /* @__PURE__ */ f(g, {})
|
|
86
|
+
}),
|
|
87
|
+
/* @__PURE__ */ f(l, {
|
|
88
|
+
path: "connections/add",
|
|
89
|
+
element: /* @__PURE__ */ f(_, {})
|
|
90
|
+
}),
|
|
91
|
+
/* @__PURE__ */ f(l, {
|
|
92
|
+
path: "connections/add/:providerId",
|
|
93
|
+
element: /* @__PURE__ */ f(_, {})
|
|
94
|
+
}),
|
|
95
|
+
/* @__PURE__ */ f(l, {
|
|
96
|
+
path: "connections/:connectionId",
|
|
97
|
+
element: /* @__PURE__ */ f(v, {})
|
|
98
|
+
}),
|
|
99
|
+
/* @__PURE__ */ f(l, {
|
|
100
|
+
path: "logs",
|
|
101
|
+
element: /* @__PURE__ */ f(y, {})
|
|
102
|
+
}),
|
|
103
|
+
/* @__PURE__ */ f(l, {
|
|
104
|
+
path: "*",
|
|
105
|
+
element: /* @__PURE__ */ f(c, {
|
|
106
|
+
to: "",
|
|
107
|
+
replace: !0
|
|
108
|
+
})
|
|
109
|
+
})
|
|
110
|
+
] })
|
|
111
|
+
}) });
|
|
112
|
+
}
|
|
113
|
+
//#endregion
|
|
114
|
+
export { S as IntegrationsUserRoutes };
|
|
115
|
+
|
|
116
|
+
//# sourceMappingURL=IntegrationsUserRoutes.js.map
|
|
@@ -0,0 +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 } from 'react-router-dom';\nimport { Loader2, AlertTriangle, RefreshCw } from 'lucide-react';\nimport { useIntegrations } from './providers/IntegrationsProvider';\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 ConnectionLogs = lazy(() =>\n import('./pages/ConnectionLogs').then((m) => ({ default: m.ConnectionLogs }))\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=\"h-8 w-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-destructive/10\">\n <AlertTriangle className=\"h-8 w-8 text-destructive\" />\n </div>\n <div className=\"space-y-2\">\n <h3 className=\"text-lg font-semibold text-foreground\">Failed to load page</h3>\n <p className=\"text-sm text-muted-foreground 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 onClick={this.handleRetry}\n className=\"inline-flex items-center gap-2 px-4 py-2 text-sm font-medium rounded-md bg-primary text-primary-foreground hover:bg-primary/90 transition-colors\"\n >\n <RefreshCw className=\"h-4 w-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={<AddConnectionWizard />} />\n <Route path=\"connections/add/:providerId\" element={<AddConnectionWizard />} />\n <Route path=\"connections/:connectionId\" element={<ConnectionDetail />} />\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":"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"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AddConnectionDialog -- n8n-style popup for creating new connections.
|
|
3
|
+
*
|
|
4
|
+
* Replaces the full-page AddConnectionWizard with an inline modal dialog.
|
|
5
|
+
* Uses the same hooks and GraphQL operations that already exist in
|
|
6
|
+
* microfe-integrations (useCreateConnection, useInitiateOAuth, etc.).
|
|
7
|
+
*
|
|
8
|
+
* Opens from any page via Zustand store state, so there is no navigation
|
|
9
|
+
* to /connections/add — the dialog overlays the current page.
|
|
10
|
+
*/
|
|
11
|
+
export interface AddConnectionDialogProps {
|
|
12
|
+
/** Whether the dialog is open */
|
|
13
|
+
open: boolean;
|
|
14
|
+
/** Callback to close the dialog */
|
|
15
|
+
onClose: () => void;
|
|
16
|
+
/** Pre-selected provider ID (skips provider picker step) */
|
|
17
|
+
preselectedProviderId?: string | null;
|
|
18
|
+
/** Callback when a connection is successfully created */
|
|
19
|
+
onConnectionCreated?: (connectionId: string) => void;
|
|
20
|
+
}
|
|
21
|
+
export declare function AddConnectionDialog({ open, onClose, preselectedProviderId, onConnectionCreated, }: AddConnectionDialogProps): import("react/jsx-runtime").JSX.Element | null;
|
|
22
|
+
//# sourceMappingURL=AddConnectionDialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AddConnectionDialog.d.ts","sourceRoot":"","sources":["../../../src/integrations/components/AddConnectionDialog.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AA2CH,MAAM,WAAW,wBAAwB;IACvC,iCAAiC;IACjC,IAAI,EAAE,OAAO,CAAC;IACd,mCAAmC;IACnC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,4DAA4D;IAC5D,qBAAqB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC,yDAAyD;IACzD,mBAAmB,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;CACtD;AAQD,wBAAgB,mBAAmB,CAAC,EAClC,IAAI,EACJ,OAAO,EACP,qBAAqB,EACrB,mBAAmB,GACpB,EAAE,wBAAwB,kDAoxB1B"}
|