@burdenoff/microfe-integrations 2026.1107.2 → 2026.1109.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/dev/main.d.ts +0 -2
- package/dist/generated/global-operations.d.ts +4 -2
- package/dist/generated/global-types.d.ts +2 -22
- package/dist/generated/wspace-operations.d.ts +995 -705
- package/dist/generated/wspace-operations.js +180 -167
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.d.ts +4 -24
- package/dist/generated/wspace-types.js +1 -2
- package/dist/generated/wspace-types.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/integrations/ConnectSourceDialog.d.ts +0 -2
- package/dist/integrations/ConnectSourceDialog.js +13 -14
- package/dist/integrations/ConnectSourceDialog.js.map +1 -1
- package/dist/integrations/ConnectionsPanel.d.ts +0 -2
- package/dist/integrations/ConnectionsPanel.js +5 -6
- package/dist/integrations/ConnectionsPanel.js.map +1 -1
- package/dist/integrations/IntegrationsAdminRoot.d.ts +0 -2
- package/dist/integrations/IntegrationsAdminRoot.js +14 -11
- package/dist/integrations/IntegrationsAdminRoot.js.map +1 -1
- package/dist/integrations/IntegrationsAdminRoutes.d.ts +1 -2
- package/dist/integrations/IntegrationsAdminRoutes.js +1 -2
- package/dist/integrations/IntegrationsAdminRoutes.js.map +1 -1
- package/dist/integrations/IntegrationsRoot.d.ts +0 -2
- package/dist/integrations/IntegrationsRoot.js +9 -6
- package/dist/integrations/IntegrationsRoot.js.map +1 -1
- package/dist/integrations/IntegrationsUserRoutes.d.ts +1 -2
- package/dist/integrations/IntegrationsUserRoutes.js +7 -8
- package/dist/integrations/IntegrationsUserRoutes.js.map +1 -1
- package/dist/integrations/components/AddConnectionDialog.d.ts +1 -3
- package/dist/integrations/components/AddConnectionDialog.js +12 -15
- package/dist/integrations/components/AddConnectionDialog.js.map +1 -1
- package/dist/integrations/components/AuthMethodsEditor.d.ts +0 -2
- package/dist/integrations/components/AuthMethodsEditor.js +1 -2
- package/dist/integrations/components/AuthMethodsEditor.js.map +1 -1
- package/dist/integrations/components/ConfirmDialog.d.ts +1 -3
- package/dist/integrations/components/ConfirmDialog.js +1 -2
- package/dist/integrations/components/ConfirmDialog.js.map +1 -1
- package/dist/integrations/components/ConnectionCard.d.ts +0 -2
- package/dist/integrations/components/ConnectionCard.js +9 -10
- package/dist/integrations/components/ConnectionCard.js.map +1 -1
- package/dist/integrations/components/ConnectionModalFrame.d.ts +0 -2
- package/dist/integrations/components/ConnectionModalFrame.js +2 -3
- package/dist/integrations/components/ConnectionModalFrame.js.map +1 -1
- package/dist/integrations/components/ConnectionSharing.d.ts +0 -2
- package/dist/integrations/components/ConnectionSharing.js +7 -8
- package/dist/integrations/components/ConnectionSharing.js.map +1 -1
- package/dist/integrations/components/ConnectionStatusBadge.d.ts +0 -2
- package/dist/integrations/components/ConnectionStatusBadge.js +1 -2
- package/dist/integrations/components/ConnectionStatusBadge.js.map +1 -1
- package/dist/integrations/components/ConnectorSubmissionCard.d.ts +2 -4
- package/dist/integrations/components/ConnectorSubmissionCard.js +8 -9
- package/dist/integrations/components/ConnectorSubmissionCard.js.map +1 -1
- package/dist/integrations/components/ConnectorSubmissionPager.d.ts +1 -2
- package/dist/integrations/components/ConnectorSubmissionPager.js +1 -2
- package/dist/integrations/components/ConnectorSubmissionPager.js.map +1 -1
- package/dist/integrations/components/MailMessageBody.d.ts +1 -3
- package/dist/integrations/components/MailMessageBody.js +4 -5
- package/dist/integrations/components/MailMessageBody.js.map +1 -1
- package/dist/integrations/components/ProviderCard.d.ts +0 -2
- package/dist/integrations/components/ProviderCard.js +8 -9
- package/dist/integrations/components/ProviderCard.js.map +1 -1
- package/dist/integrations/constants/featureFlags.d.ts +0 -1
- package/dist/integrations/constants/featureFlags.js +1 -2
- package/dist/integrations/constants/featureFlags.js.map +1 -1
- package/dist/integrations/constants/permissions.d.ts +0 -1
- package/dist/integrations/constants/permissions.js +1 -2
- package/dist/integrations/constants/permissions.js.map +1 -1
- package/dist/integrations/events/integrations-events.d.ts +0 -1
- package/dist/integrations/events/useIntegrationsEventBus.d.ts +0 -2
- package/dist/integrations/events/useIntegrationsEventBus.js +1 -2
- package/dist/integrations/events/useIntegrationsEventBus.js.map +1 -1
- package/dist/integrations/hooks/useConnections.d.ts +3 -14
- package/dist/integrations/hooks/useConnections.js +74 -75
- package/dist/integrations/hooks/useConnections.js.map +1 -1
- package/dist/integrations/hooks/useConnectorSubmissions.d.ts +2 -10
- package/dist/integrations/hooks/useConnectorSubmissions.js +23 -24
- package/dist/integrations/hooks/useConnectorSubmissions.js.map +1 -1
- package/dist/integrations/hooks/useFormatDate.d.ts +0 -1
- package/dist/integrations/hooks/useFormatDate.js +1 -2
- package/dist/integrations/hooks/useFormatDate.js.map +1 -1
- package/dist/integrations/hooks/useFormatLastUsed.d.ts +0 -1
- package/dist/integrations/hooks/useFormatLastUsed.js +1 -2
- package/dist/integrations/hooks/useFormatLastUsed.js.map +1 -1
- package/dist/integrations/hooks/useLabel.d.ts +0 -2
- package/dist/integrations/hooks/useLabel.js +1 -2
- package/dist/integrations/hooks/useLabel.js.map +1 -1
- package/dist/integrations/hooks/useLogs.d.ts +1 -6
- package/dist/integrations/hooks/useLogs.js +6 -7
- package/dist/integrations/hooks/useLogs.js.map +1 -1
- package/dist/integrations/hooks/useMailbox.d.ts +19 -43
- package/dist/integrations/hooks/useMailbox.js +46 -47
- package/dist/integrations/hooks/useMailbox.js.map +1 -1
- package/dist/integrations/hooks/useProviders.d.ts +3 -14
- package/dist/integrations/hooks/useProviders.js +42 -43
- package/dist/integrations/hooks/useProviders.js.map +1 -1
- package/dist/integrations/hooks/useTr.d.ts +0 -1
- package/dist/integrations/hooks/useTr.js +1 -2
- package/dist/integrations/hooks/useTr.js.map +1 -1
- package/dist/integrations/index.d.ts +0 -1
- package/dist/integrations/index.js +9 -8
- package/dist/integrations/pages/AddConnectionWizard.d.ts +1 -2
- package/dist/integrations/pages/AddConnectionWizard.js +291 -306
- package/dist/integrations/pages/AddConnectionWizard.js.map +1 -1
- package/dist/integrations/pages/ConnectionDetail.d.ts +1 -2
- package/dist/integrations/pages/ConnectionDetail.js +241 -246
- package/dist/integrations/pages/ConnectionDetail.js.map +1 -1
- package/dist/integrations/pages/ConnectionLogs.d.ts +1 -2
- package/dist/integrations/pages/ConnectionLogs.js +154 -155
- package/dist/integrations/pages/ConnectionLogs.js.map +1 -1
- package/dist/integrations/pages/ConnectionsList.d.ts +1 -2
- package/dist/integrations/pages/ConnectionsList.js +40 -41
- package/dist/integrations/pages/ConnectionsList.js.map +1 -1
- package/dist/integrations/pages/ConnectorReviewQueuePage.d.ts +1 -2
- package/dist/integrations/pages/ConnectorReviewQueuePage.js +9 -10
- package/dist/integrations/pages/ConnectorReviewQueuePage.js.map +1 -1
- package/dist/integrations/pages/ConnectorSubmissionsPage.d.ts +1 -2
- package/dist/integrations/pages/ConnectorSubmissionsPage.js +138 -139
- package/dist/integrations/pages/ConnectorSubmissionsPage.js.map +1 -1
- package/dist/integrations/pages/IntegrationsOverview.d.ts +1 -2
- package/dist/integrations/pages/IntegrationsOverview.js +35 -36
- package/dist/integrations/pages/IntegrationsOverview.js.map +1 -1
- package/dist/integrations/pages/IntegrationsSettings.d.ts +1 -2
- package/dist/integrations/pages/IntegrationsSettings.js +7 -8
- package/dist/integrations/pages/IntegrationsSettings.js.map +1 -1
- package/dist/integrations/pages/IntegrationsUserLandingPage.d.ts +1 -2
- package/dist/integrations/pages/IntegrationsUserLandingPage.js +1 -2
- package/dist/integrations/pages/IntegrationsUserLandingPage.js.map +1 -1
- package/dist/integrations/pages/MailboxInbox.d.ts +1 -2
- package/dist/integrations/pages/MailboxInbox.js +135 -140
- package/dist/integrations/pages/MailboxInbox.js.map +1 -1
- package/dist/integrations/pages/ProviderCatalog.d.ts +1 -2
- package/dist/integrations/pages/ProviderCatalog.js +107 -108
- package/dist/integrations/pages/ProviderCatalog.js.map +1 -1
- package/dist/integrations/pages/ProviderDetail.d.ts +1 -2
- package/dist/integrations/pages/ProviderDetail.js +21 -22
- package/dist/integrations/pages/ProviderDetail.js.map +1 -1
- package/dist/integrations/pages/ProviderEditorPage.d.ts +1 -2
- package/dist/integrations/pages/ProviderEditorPage.js +261 -264
- package/dist/integrations/pages/ProviderEditorPage.js.map +1 -1
- package/dist/integrations/providers/IntegrationsProvider.d.ts +0 -2
- package/dist/integrations/providers/IntegrationsProvider.js +109 -96
- package/dist/integrations/providers/IntegrationsProvider.js.map +1 -1
- package/dist/integrations/store/integrationsStore.d.ts +0 -2
- package/dist/integrations/store/integrationsStore.js +1 -2
- package/dist/integrations/store/integrationsStore.js.map +1 -1
- package/dist/integrations/store/mailboxStore.d.ts +0 -2
- package/dist/integrations/store/mailboxStore.js +1 -2
- package/dist/integrations/store/mailboxStore.js.map +1 -1
- package/dist/integrations/translations/en.d.ts +0 -1
- package/dist/integrations/types/index.d.ts +0 -1
- package/dist/integrations/utils/appearance.d.ts +0 -1
- package/dist/integrations/utils/appearance.js +1 -2
- package/dist/integrations/utils/appearance.js.map +1 -1
- package/dist/integrations/utils/cn.d.ts +0 -2
- package/dist/integrations/utils/cn.js +2 -3
- package/dist/integrations/utils/cn.js.map +1 -1
- package/dist/integrations/utils/constants.d.ts +0 -1
- package/dist/integrations/utils/constants.js +1 -2
- package/dist/integrations/utils/constants.js.map +1 -1
- package/dist/integrations/utils/integrationsHelpers.d.ts +0 -2
- package/dist/integrations/utils/integrationsHelpers.js +1 -2
- package/dist/integrations/utils/integrationsHelpers.js.map +1 -1
- package/dist/integrations/utils/mailHtml.d.ts +0 -2
- package/dist/integrations/utils/mailHtml.js +3 -4
- package/dist/integrations/utils/mailHtml.js.map +1 -1
- package/dist/integrations/utils/mappers.d.ts +0 -2
- package/dist/integrations/utils/mappers.js +2 -3
- package/dist/integrations/utils/mappers.js.map +1 -1
- package/dist/integrations/utils/navigation.d.ts +0 -1
- package/dist/integrations/utils/navigation.js +2 -8
- package/dist/integrations/utils/navigation.js.map +1 -1
- package/dist/integrations/utils/paths.d.ts +0 -1
- package/dist/integrations/utils/paths.js +1 -2
- package/dist/integrations/utils/paths.js.map +1 -1
- package/dist/node_modules/clsx/dist/clsx.js +8 -7
- package/dist/node_modules/clsx/dist/clsx.js.map +1 -1
- package/dist/node_modules/dompurify/dist/purify.es.js +20 -36
- package/dist/node_modules/dompurify/dist/purify.es.js.map +1 -1
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +229 -167
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -1
- package/dist/utils/nativeBridge.d.ts +0 -1
- package/dist/utils/nativeBridge.js +1 -2
- package/package.json +63 -49
- package/dist/dev/main.d.ts.map +0 -1
- package/dist/generated/global-operations.d.ts.map +0 -1
- package/dist/generated/global-types.d.ts.map +0 -1
- package/dist/generated/wspace-operations.d.ts.map +0 -1
- package/dist/generated/wspace-types.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/integrations/ConnectSourceDialog.d.ts.map +0 -1
- package/dist/integrations/ConnectionsPanel.d.ts.map +0 -1
- package/dist/integrations/IntegrationsAdminRoot.d.ts.map +0 -1
- package/dist/integrations/IntegrationsAdminRoutes.d.ts.map +0 -1
- package/dist/integrations/IntegrationsRoot.d.ts.map +0 -1
- package/dist/integrations/IntegrationsUserRoutes.d.ts.map +0 -1
- package/dist/integrations/components/AddConnectionDialog.d.ts.map +0 -1
- package/dist/integrations/components/AuthMethodsEditor.d.ts.map +0 -1
- package/dist/integrations/components/ConfirmDialog.d.ts.map +0 -1
- package/dist/integrations/components/ConnectionCard.d.ts.map +0 -1
- package/dist/integrations/components/ConnectionModalFrame.d.ts.map +0 -1
- package/dist/integrations/components/ConnectionSharing.d.ts.map +0 -1
- package/dist/integrations/components/ConnectionStatusBadge.d.ts.map +0 -1
- package/dist/integrations/components/ConnectorSubmissionCard.d.ts.map +0 -1
- package/dist/integrations/components/ConnectorSubmissionPager.d.ts.map +0 -1
- package/dist/integrations/components/MailMessageBody.d.ts.map +0 -1
- package/dist/integrations/components/ProviderCard.d.ts.map +0 -1
- package/dist/integrations/constants/featureFlags.d.ts.map +0 -1
- package/dist/integrations/constants/permissions.d.ts.map +0 -1
- package/dist/integrations/events/integrations-events.d.ts.map +0 -1
- package/dist/integrations/events/useIntegrationsEventBus.d.ts.map +0 -1
- package/dist/integrations/hooks/useConnections.d.ts.map +0 -1
- package/dist/integrations/hooks/useConnectorSubmissions.d.ts.map +0 -1
- package/dist/integrations/hooks/useFormatDate.d.ts.map +0 -1
- package/dist/integrations/hooks/useFormatLastUsed.d.ts.map +0 -1
- package/dist/integrations/hooks/useLabel.d.ts.map +0 -1
- package/dist/integrations/hooks/useLogs.d.ts.map +0 -1
- package/dist/integrations/hooks/useMailbox.d.ts.map +0 -1
- package/dist/integrations/hooks/useProviders.d.ts.map +0 -1
- package/dist/integrations/hooks/useTr.d.ts.map +0 -1
- package/dist/integrations/index.d.ts.map +0 -1
- package/dist/integrations/pages/AddConnectionWizard.d.ts.map +0 -1
- package/dist/integrations/pages/ConnectionDetail.d.ts.map +0 -1
- package/dist/integrations/pages/ConnectionLogs.d.ts.map +0 -1
- package/dist/integrations/pages/ConnectionsList.d.ts.map +0 -1
- package/dist/integrations/pages/ConnectorReviewQueuePage.d.ts.map +0 -1
- package/dist/integrations/pages/ConnectorSubmissionsPage.d.ts.map +0 -1
- package/dist/integrations/pages/IntegrationsOverview.d.ts.map +0 -1
- package/dist/integrations/pages/IntegrationsSettings.d.ts.map +0 -1
- package/dist/integrations/pages/IntegrationsUserLandingPage.d.ts.map +0 -1
- package/dist/integrations/pages/MailboxInbox.d.ts.map +0 -1
- package/dist/integrations/pages/ProviderCatalog.d.ts.map +0 -1
- package/dist/integrations/pages/ProviderDetail.d.ts.map +0 -1
- package/dist/integrations/pages/ProviderEditorPage.d.ts.map +0 -1
- package/dist/integrations/providers/IntegrationsProvider.d.ts.map +0 -1
- package/dist/integrations/store/integrationsStore.d.ts.map +0 -1
- package/dist/integrations/store/mailboxStore.d.ts.map +0 -1
- package/dist/integrations/translations/en.d.ts.map +0 -1
- package/dist/integrations/types/index.d.ts.map +0 -1
- package/dist/integrations/utils/appearance.d.ts.map +0 -1
- package/dist/integrations/utils/cn.d.ts.map +0 -1
- package/dist/integrations/utils/constants.d.ts.map +0 -1
- package/dist/integrations/utils/integrationsHelpers.d.ts.map +0 -1
- package/dist/integrations/utils/mailHtml.d.ts.map +0 -1
- package/dist/integrations/utils/mappers.d.ts.map +0 -1
- package/dist/integrations/utils/navigation.d.ts.map +0 -1
- package/dist/integrations/utils/paths.d.ts.map +0 -1
- package/dist/utils/nativeBridge.d.ts.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { ConnectionsPanelProps } from './ConnectionsPanel';
|
|
3
|
-
|
|
4
3
|
/**
|
|
5
4
|
* The base props hosts already pass `ConnectionsPanel` / `IntegrationsRoot`
|
|
6
5
|
* (`basePath`, `navigate`, `workspaceId`, tokens, ...), plus the open state in
|
|
@@ -18,4 +17,3 @@ export type ConnectSourceDialogProps = ConnectionsPanelProps & {
|
|
|
18
17
|
onConnectionCreated?: (connectionId: string) => void;
|
|
19
18
|
};
|
|
20
19
|
export declare const ConnectSourceDialog: FC<ConnectSourceDialogProps>;
|
|
21
|
-
//# sourceMappingURL=ConnectSourceDialog.d.ts.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { IntegrationsProvider as e } from "./providers/IntegrationsProvider.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { AddConnectionDialog as t } from "./components/AddConnectionDialog.js";
|
|
3
|
+
import { ConnectionModalFrame as n } from "./components/ConnectionModalFrame.js";
|
|
4
|
+
import { useTr as r } from "./hooks/useTr.js";
|
|
5
5
|
import { useCallback as i } from "react";
|
|
6
6
|
import { ErrorBoundary as a } from "@burdenoff/fe-libs/shared/components";
|
|
7
7
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
8
|
-
|
|
8
|
+
// src/integrations/ConnectSourceDialog.tsx
|
|
9
9
|
var c = "connect-source-error-title";
|
|
10
10
|
function l({ onClose: e }) {
|
|
11
|
-
let
|
|
12
|
-
return /* @__PURE__ */ s(
|
|
11
|
+
let t = r();
|
|
12
|
+
return /* @__PURE__ */ s(n, {
|
|
13
13
|
onClose: e,
|
|
14
14
|
labelledBy: c,
|
|
15
15
|
presentation: "sheet",
|
|
@@ -19,28 +19,28 @@ function l({ onClose: e }) {
|
|
|
19
19
|
/* @__PURE__ */ o("h2", {
|
|
20
20
|
id: c,
|
|
21
21
|
className: "text-lg font-semibold text-text-primary",
|
|
22
|
-
children:
|
|
22
|
+
children: t("integrations.errorBoundary.title", "Something went wrong loading this module.")
|
|
23
23
|
}),
|
|
24
24
|
/* @__PURE__ */ o("p", {
|
|
25
25
|
className: "text-sm text-text-secondary",
|
|
26
|
-
children:
|
|
26
|
+
children: t("integrations.errorBoundary.refresh", "Please refresh the page.")
|
|
27
27
|
}),
|
|
28
28
|
/* @__PURE__ */ o("button", {
|
|
29
29
|
type: "button",
|
|
30
30
|
onClick: e,
|
|
31
31
|
className: "px-4 py-2 text-sm font-medium rounded-md border border-border-subtle hover:bg-accent transition-colors",
|
|
32
|
-
children:
|
|
32
|
+
children: t("integrations.common.close", "Close")
|
|
33
33
|
})
|
|
34
34
|
]
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
|
-
var u = ({ open:
|
|
38
|
-
let d =
|
|
39
|
-
return
|
|
37
|
+
var u = ({ open: n, onOpenChange: s, onConnectionCreated: c, ...u }) => {
|
|
38
|
+
let d = r(), f = i(() => s(!1), [s]);
|
|
39
|
+
return n ? /* @__PURE__ */ o(a, {
|
|
40
40
|
fallback: /* @__PURE__ */ o(l, { onClose: f }),
|
|
41
41
|
children: /* @__PURE__ */ o(e, {
|
|
42
42
|
...u,
|
|
43
|
-
children: /* @__PURE__ */ o(
|
|
43
|
+
children: /* @__PURE__ */ o(t, {
|
|
44
44
|
open: !0,
|
|
45
45
|
onClose: f,
|
|
46
46
|
presentation: "sheet",
|
|
@@ -50,7 +50,6 @@ var u = ({ open: r, onOpenChange: s, onConnectionCreated: c, ...u }) => {
|
|
|
50
50
|
})
|
|
51
51
|
}) : null;
|
|
52
52
|
};
|
|
53
|
-
//#endregion
|
|
54
53
|
export { u as ConnectSourceDialog };
|
|
55
54
|
|
|
56
55
|
//# sourceMappingURL=ConnectSourceDialog.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConnectSourceDialog.js","names":[],"sources":["../../src/integrations/ConnectSourceDialog.tsx"],"sourcesContent":["/**\n * ConnectSourceDialog: \"Connect a source\" over whatever page the user is on.\n *\n * ★★ WHY (BOFF-8158). The assistant's attach menu offers \"Connect a source\".\n * Two hosts navigated to `/integrations/connections`, where the assistant panel\n * then covered the page's \"Add Connection\" button. The other two put the whole\n * Connections PAGE (`ConnectionsPanel`) into a 512 px Radix dialog, so \"Add\n * Connection\" opened a second dialog nested in the first, laid out against the\n * host's transformed box, with the form 0 px wide on phones.\n *\n * This is ONE modal: centred on desktop, a bottom sheet below `md`. It opens\n * straight on the provider picker, then the credential form, then Connect in an\n * always-visible footer. The content is `AddConnectionDialog`'s own, so it is\n * the same connection screen every product already uses, not a second one.\n *\n * ★ It never navigates. There is no `<Routes>` in here (an `IntegrationsRoot`\n * inside a dialog would match the host's URL and fall through to its\n * `<Navigate>`), and nothing calls `navigate` when it opens.\n *\n * ★ Hosts render THIS as the modal. Do not wrap it in another dialog: it\n * portals to `document.body`, and a host modal's focus trap would fight it.\n *\n * @example\n * ```tsx\n * const [open, setOpen] = useState(false);\n * useEffect(() => {\n * const onConnect = () => setOpen(true);\n * window.addEventListener(CONNECT_SOURCE_EVENT, onConnect);\n * return () => window.removeEventListener(CONNECT_SOURCE_EVENT, onConnect);\n * }, []);\n *\n * <ConnectSourceDialog\n * open={open}\n * onOpenChange={setOpen}\n * basePath=\"/integrations\"\n * {...protectedWorkspaceBaseProps}\n * navigate={navigate}\n * />\n * ```\n */\nimport { useCallback, type FC } from 'react';\nimport { ErrorBoundary } from '@burdenoff/fe-libs/shared/components';\nimport { IntegrationsProvider } from './providers/IntegrationsProvider';\nimport { AddConnectionDialog } from './components/AddConnectionDialog';\nimport { ConnectionModalFrame } from './components/ConnectionModalFrame';\nimport { useTr } from './hooks/useTr';\nimport type { ConnectionsPanelProps } from './ConnectionsPanel';\n\n/**\n * The base props hosts already pass `ConnectionsPanel` / `IntegrationsRoot`\n * (`basePath`, `navigate`, `workspaceId`, tokens, ...), plus the open state in\n * the same `open` / `onOpenChange` shape as the dialog it replaces.\n *\n * ★ Pass `basePath` as the routed mount does. Without it `IntegrationsProvider`\n * runs standalone and creates its own router, which throws inside a host router.\n */\nexport type ConnectSourceDialogProps = ConnectionsPanelProps & {\n /** Whether the dialog is showing. It renders nothing while closed. */\n open: boolean;\n /** Called with `false` when the user closes it (X, Cancel, Escape, backdrop). */\n onOpenChange: (open: boolean) => void;\n /** Called with the new connection's id once it is created and authenticated. */\n onConnectionCreated?: (connectionId: string) => void;\n};\n\nconst FALLBACK_TITLE_ID = 'connect-source-error-title';\n\n/**\n * Shown if the connection screen throws. Rendered inside the same frame so the\n * failure stays a dismissible modal instead of text dropped into the host page\n * wherever the dialog is mounted.\n */\nfunction ConnectSourceErrorFallback({ onClose }: { onClose: () => void }) {\n const tr = useTr();\n return (\n <ConnectionModalFrame\n onClose={onClose}\n labelledBy={FALLBACK_TITLE_ID}\n presentation=\"sheet\"\n size=\"notice\"\n testId=\"connect-source-error\"\n >\n <h2 id={FALLBACK_TITLE_ID} className=\"text-lg font-semibold text-text-primary\">\n {tr('integrations.errorBoundary.title', 'Something went wrong loading this module.')}\n </h2>\n <p className=\"text-sm text-text-secondary\">\n {tr('integrations.errorBoundary.refresh', 'Please refresh the page.')}\n </p>\n <button\n type=\"button\"\n onClick={onClose}\n className=\"px-4 py-2 text-sm font-medium rounded-md border border-border-subtle hover:bg-accent transition-colors\"\n >\n {tr('integrations.common.close', 'Close')}\n </button>\n </ConnectionModalFrame>\n );\n}\n\nexport const ConnectSourceDialog: FC<ConnectSourceDialogProps> = ({\n open,\n onOpenChange,\n onConnectionCreated,\n ...integrationsProps\n}) => {\n const tr = useTr();\n const close = useCallback(() => onOpenChange(false), [onOpenChange]);\n\n // Unmounted while closed: nothing is fetched until the user asks, and every\n // open starts fresh on the picker (and with a reset error boundary).\n if (!open) return null;\n\n return (\n <ErrorBoundary fallback={<ConnectSourceErrorFallback onClose={close} />}>\n <IntegrationsProvider {...integrationsProps}>\n <AddConnectionDialog\n open\n onClose={close}\n presentation=\"sheet\"\n pickerTitle={tr('integrations.connectSource.title', 'Connect a source')}\n onConnectionCreated={onConnectionCreated}\n />\n </IntegrationsProvider>\n </ErrorBoundary>\n );\n};\n"],"mappings":";;;;;;;;AAiEA,
|
|
1
|
+
{"version":3,"file":"ConnectSourceDialog.js","names":["FALLBACK_TITLE_ID","ConnectSourceErrorFallback","tr","useTr","ConnectionModalFrame","onClose","ConnectSourceDialog","integrationsProps","close","useCallback","onOpenChange","open","ErrorBoundary","IntegrationsProvider","AddConnectionDialog"],"sources":["../../src/integrations/ConnectSourceDialog.tsx"],"sourcesContent":["/**\n * ConnectSourceDialog: \"Connect a source\" over whatever page the user is on.\n *\n * ★★ WHY (BOFF-8158). The assistant's attach menu offers \"Connect a source\".\n * Two hosts navigated to `/integrations/connections`, where the assistant panel\n * then covered the page's \"Add Connection\" button. The other two put the whole\n * Connections PAGE (`ConnectionsPanel`) into a 512 px Radix dialog, so \"Add\n * Connection\" opened a second dialog nested in the first, laid out against the\n * host's transformed box, with the form 0 px wide on phones.\n *\n * This is ONE modal: centred on desktop, a bottom sheet below `md`. It opens\n * straight on the provider picker, then the credential form, then Connect in an\n * always-visible footer. The content is `AddConnectionDialog`'s own, so it is\n * the same connection screen every product already uses, not a second one.\n *\n * ★ It never navigates. There is no `<Routes>` in here (an `IntegrationsRoot`\n * inside a dialog would match the host's URL and fall through to its\n * `<Navigate>`), and nothing calls `navigate` when it opens.\n *\n * ★ Hosts render THIS as the modal. Do not wrap it in another dialog: it\n * portals to `document.body`, and a host modal's focus trap would fight it.\n *\n * @example\n * ```tsx\n * const [open, setOpen] = useState(false);\n * useEffect(() => {\n * const onConnect = () => setOpen(true);\n * window.addEventListener(CONNECT_SOURCE_EVENT, onConnect);\n * return () => window.removeEventListener(CONNECT_SOURCE_EVENT, onConnect);\n * }, []);\n *\n * <ConnectSourceDialog\n * open={open}\n * onOpenChange={setOpen}\n * basePath=\"/integrations\"\n * {...protectedWorkspaceBaseProps}\n * navigate={navigate}\n * />\n * ```\n */\nimport { useCallback, type FC } from 'react';\nimport { ErrorBoundary } from '@burdenoff/fe-libs/shared/components';\nimport { IntegrationsProvider } from './providers/IntegrationsProvider';\nimport { AddConnectionDialog } from './components/AddConnectionDialog';\nimport { ConnectionModalFrame } from './components/ConnectionModalFrame';\nimport { useTr } from './hooks/useTr';\nimport type { ConnectionsPanelProps } from './ConnectionsPanel';\n\n/**\n * The base props hosts already pass `ConnectionsPanel` / `IntegrationsRoot`\n * (`basePath`, `navigate`, `workspaceId`, tokens, ...), plus the open state in\n * the same `open` / `onOpenChange` shape as the dialog it replaces.\n *\n * ★ Pass `basePath` as the routed mount does. Without it `IntegrationsProvider`\n * runs standalone and creates its own router, which throws inside a host router.\n */\nexport type ConnectSourceDialogProps = ConnectionsPanelProps & {\n /** Whether the dialog is showing. It renders nothing while closed. */\n open: boolean;\n /** Called with `false` when the user closes it (X, Cancel, Escape, backdrop). */\n onOpenChange: (open: boolean) => void;\n /** Called with the new connection's id once it is created and authenticated. */\n onConnectionCreated?: (connectionId: string) => void;\n};\n\nconst FALLBACK_TITLE_ID = 'connect-source-error-title';\n\n/**\n * Shown if the connection screen throws. Rendered inside the same frame so the\n * failure stays a dismissible modal instead of text dropped into the host page\n * wherever the dialog is mounted.\n */\nfunction ConnectSourceErrorFallback({ onClose }: { onClose: () => void }) {\n const tr = useTr();\n return (\n <ConnectionModalFrame\n onClose={onClose}\n labelledBy={FALLBACK_TITLE_ID}\n presentation=\"sheet\"\n size=\"notice\"\n testId=\"connect-source-error\"\n >\n <h2 id={FALLBACK_TITLE_ID} className=\"text-lg font-semibold text-text-primary\">\n {tr('integrations.errorBoundary.title', 'Something went wrong loading this module.')}\n </h2>\n <p className=\"text-sm text-text-secondary\">\n {tr('integrations.errorBoundary.refresh', 'Please refresh the page.')}\n </p>\n <button\n type=\"button\"\n onClick={onClose}\n className=\"px-4 py-2 text-sm font-medium rounded-md border border-border-subtle hover:bg-accent transition-colors\"\n >\n {tr('integrations.common.close', 'Close')}\n </button>\n </ConnectionModalFrame>\n );\n}\n\nexport const ConnectSourceDialog: FC<ConnectSourceDialogProps> = ({\n open,\n onOpenChange,\n onConnectionCreated,\n ...integrationsProps\n}) => {\n const tr = useTr();\n const close = useCallback(() => onOpenChange(false), [onOpenChange]);\n\n // Unmounted while closed: nothing is fetched until the user asks, and every\n // open starts fresh on the picker (and with a reset error boundary).\n if (!open) return null;\n\n return (\n <ErrorBoundary fallback={<ConnectSourceErrorFallback onClose={close} />}>\n <IntegrationsProvider {...integrationsProps}>\n <AddConnectionDialog\n open\n onClose={close}\n presentation=\"sheet\"\n pickerTitle={tr('integrations.connectSource.title', 'Connect a source')}\n onConnectionCreated={onConnectionCreated}\n />\n </IntegrationsProvider>\n </ErrorBoundary>\n );\n};\n"],"mappings":";;;;;;;;AAiEA,IAAMA,IAAoB;AAO1B,SAASC,EAA2B,EAAE,cAAoC;CACxE,IAAMC,IAAKC,EAAM;CACjB,OACE,kBAACC,GAAD;EACW;EACT,YAAYJ;EACZ,cAAa;EACb,MAAK;EACL,QAAO;EALT,UAAA;GAOE,kBAAC,MAAD;IAAI,IAAIA;IAAmB,WAAU;IAClC,UAAAE,EAAG,oCAAoC,2CAA2C;GACjF,CAAA;GACJ,kBAAC,KAAD;IAAG,WAAU;IACV,UAAAA,EAAG,sCAAsC,0BAA0B;GACnE,CAAA;GACH,kBAAC,UAAD;IACE,MAAK;IACL,SAASG;IACT,WAAU;IAET,UAAAH,EAAG,6BAA6B,OAAO;GAClC,CAAA;EACY;;AAE1B;AAEA,IAAaI,KAAqD,EAChE,SACA,iBACA,wBACA,GAAGC,QACC;CACJ,IAAML,IAAKC,EAAM,GACXK,IAAQC,QAAkBC,EAAa,EAAK,GAAG,CAACA,CAAY,CAAC;CAMnE,OAFKC,IAGH,kBAACC,GAAD;EAAe,UAAU,kBAACX,GAAD,EAA4B,SAASO,EAAQ,CAAA;EACpE,UAAA,kBAACK,GAAD;GAAsB,GAAIN;GACxB,UAAA,kBAACO,GAAD;IACE,MAAA;IACA,SAASN;IACT,cAAa;IACb,aAAaN,EAAG,oCAAoC,kBAAkB;IACjD;GACtB,CAAA;EACmB,CAAA;CACT,CAAA,IAbC;AAepB"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { IntegrationsRootProps } from './types';
|
|
3
|
-
|
|
4
3
|
/**
|
|
5
4
|
* The same props `IntegrationsRoot` takes.
|
|
6
5
|
*
|
|
@@ -15,4 +14,3 @@ import { IntegrationsRootProps } from './types';
|
|
|
15
14
|
*/
|
|
16
15
|
export type ConnectionsPanelProps = IntegrationsRootProps;
|
|
17
16
|
export declare const ConnectionsPanel: FC<ConnectionsPanelProps>;
|
|
18
|
-
//# sourceMappingURL=ConnectionsPanel.d.ts.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { IntegrationsProvider as e } from "./providers/IntegrationsProvider.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { ConnectionsList as t } from "./pages/ConnectionsList.js";
|
|
3
|
+
import { useTr as n } from "./hooks/useTr.js";
|
|
4
4
|
import { ErrorBoundary as r } from "@burdenoff/fe-libs/shared/components";
|
|
5
5
|
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
6
6
|
import { FeatureFlagProvider as o } from "@burdenoff/fe-libs/shared/feature-flags";
|
|
7
|
-
|
|
7
|
+
// src/integrations/ConnectionsPanel.tsx
|
|
8
8
|
var s = (s) => {
|
|
9
|
-
let c =
|
|
9
|
+
let c = n();
|
|
10
10
|
return /* @__PURE__ */ i(o, {
|
|
11
11
|
workspaceId: s.workspaceId ?? null,
|
|
12
12
|
gateway: "global",
|
|
@@ -22,12 +22,11 @@ var s = (s) => {
|
|
|
22
22
|
}),
|
|
23
23
|
children: /* @__PURE__ */ i(e, {
|
|
24
24
|
...s,
|
|
25
|
-
children: /* @__PURE__ */ i(
|
|
25
|
+
children: /* @__PURE__ */ i(t, {})
|
|
26
26
|
})
|
|
27
27
|
})
|
|
28
28
|
});
|
|
29
29
|
};
|
|
30
|
-
//#endregion
|
|
31
30
|
export { s as ConnectionsPanel };
|
|
32
31
|
|
|
33
32
|
//# sourceMappingURL=ConnectionsPanel.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConnectionsPanel.js","names":[],"sources":["../../src/integrations/ConnectionsPanel.tsx"],"sourcesContent":["/**\n * The connections screen, without the router.\n *\n * ★★ WHY THIS EXISTS AND `IntegrationsRoot` COULD NOT BE USED. The assistant's\n * attach menu offers \"Connect a source\", and it was reported that it \"opens the\n * page but I need a popup in the centre\" — navigating away tears the user out\n * of the conversation they were having. A host wants to render the connections\n * screen inside a dialog, over whatever page the user is on.\n *\n * `IntegrationsRoot` cannot do that. It renders `IntegrationsUserRoutes`, whose\n * `<Routes>` matches against the CURRENT URL. Mounted in a dialog while the\n * user sits at `/dashboard`, the inner routes match none of their paths and\n * fall through to `<Route path=\"*\" element={<Navigate to=\"\" replace />} />` —\n * so opening the dialog would navigate the host app. Wrapping it in a\n * `MemoryRouter` is not an escape either: react-router still asserts\n * `You cannot render a <Router> inside another <Router>`, so it throws.\n *\n * ★ `ConnectionsList` itself needs no router. It takes `navigate` from\n * `IntegrationsProvider` — a plain callback the host supplies — so it works\n * anywhere its providers are mounted. This composes exactly the provider stack\n * `IntegrationsRoot` does, minus the routes and minus the shell nav/footer\n * registration, which a dialog has no business performing.\n *\n * ★ The SAME screen, not a second implementation. Products reuse this rather\n * than growing their own connection management, which is the thing this module\n * exists to own.\n *\n * ★★ For the assistant's \"Connect a source\", render `ConnectSourceDialog`\n * instead of this panel inside a host dialog (BOFF-8158). \"Add Connection\" here\n * opens `AddConnectionDialog`, which portals to `document.body`; inside a host\n * modal, that modal's focus trap and outside-click handling fight it.\n */\nimport type { FC } from 'react';\nimport { ErrorBoundary } from '@burdenoff/fe-libs/shared/components';\nimport { FeatureFlagProvider } from '@burdenoff/fe-libs/shared/feature-flags';\nimport { IntegrationsProvider } from './providers/IntegrationsProvider';\nimport { ConnectionsList } from './pages/ConnectionsList';\nimport { useTr } from './hooks/useTr';\nimport type { IntegrationsRootProps } from './types';\n\n/**\n * The same props `IntegrationsRoot` takes.\n *\n * ★ `registerNavItems` / `registerFooterItems` are deliberately NOT called\n * here: they register items with the host's shell chrome, which is wrong for a\n * surface that lives and dies with a dialog. They cannot be typed away —\n * `IntegrationsRootProps` extends `MicrofrontendRootProps`, which is\n * `Record<string, unknown>`, so an index signature makes `keyof` equal `string`\n * and `Omit` collapses every field to `unknown` rather than removing two. An\n * `Omit` here would look like a constraint while silently destroying the types\n * of the props that matter, so this is an alias and the contract is the doc.\n */\nexport type ConnectionsPanelProps = IntegrationsRootProps;\n\nexport const ConnectionsPanel: FC<ConnectionsPanelProps> = (props) => {\n const tr = useTr();\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 <ConnectionsList />\n </IntegrationsProvider>\n </ErrorBoundary>\n </FeatureFlagProvider>\n );\n};\n"],"mappings":";;;;;;;AAsDA,
|
|
1
|
+
{"version":3,"file":"ConnectionsPanel.js","names":["ConnectionsPanel","tr","useTr","FeatureFlagProvider","props","ErrorBoundary","IntegrationsProvider","ConnectionsList"],"sources":["../../src/integrations/ConnectionsPanel.tsx"],"sourcesContent":["/**\n * The connections screen, without the router.\n *\n * ★★ WHY THIS EXISTS AND `IntegrationsRoot` COULD NOT BE USED. The assistant's\n * attach menu offers \"Connect a source\", and it was reported that it \"opens the\n * page but I need a popup in the centre\" — navigating away tears the user out\n * of the conversation they were having. A host wants to render the connections\n * screen inside a dialog, over whatever page the user is on.\n *\n * `IntegrationsRoot` cannot do that. It renders `IntegrationsUserRoutes`, whose\n * `<Routes>` matches against the CURRENT URL. Mounted in a dialog while the\n * user sits at `/dashboard`, the inner routes match none of their paths and\n * fall through to `<Route path=\"*\" element={<Navigate to=\"\" replace />} />` —\n * so opening the dialog would navigate the host app. Wrapping it in a\n * `MemoryRouter` is not an escape either: react-router still asserts\n * `You cannot render a <Router> inside another <Router>`, so it throws.\n *\n * ★ `ConnectionsList` itself needs no router. It takes `navigate` from\n * `IntegrationsProvider` — a plain callback the host supplies — so it works\n * anywhere its providers are mounted. This composes exactly the provider stack\n * `IntegrationsRoot` does, minus the routes and minus the shell nav/footer\n * registration, which a dialog has no business performing.\n *\n * ★ The SAME screen, not a second implementation. Products reuse this rather\n * than growing their own connection management, which is the thing this module\n * exists to own.\n *\n * ★★ For the assistant's \"Connect a source\", render `ConnectSourceDialog`\n * instead of this panel inside a host dialog (BOFF-8158). \"Add Connection\" here\n * opens `AddConnectionDialog`, which portals to `document.body`; inside a host\n * modal, that modal's focus trap and outside-click handling fight it.\n */\nimport type { FC } from 'react';\nimport { ErrorBoundary } from '@burdenoff/fe-libs/shared/components';\nimport { FeatureFlagProvider } from '@burdenoff/fe-libs/shared/feature-flags';\nimport { IntegrationsProvider } from './providers/IntegrationsProvider';\nimport { ConnectionsList } from './pages/ConnectionsList';\nimport { useTr } from './hooks/useTr';\nimport type { IntegrationsRootProps } from './types';\n\n/**\n * The same props `IntegrationsRoot` takes.\n *\n * ★ `registerNavItems` / `registerFooterItems` are deliberately NOT called\n * here: they register items with the host's shell chrome, which is wrong for a\n * surface that lives and dies with a dialog. They cannot be typed away —\n * `IntegrationsRootProps` extends `MicrofrontendRootProps`, which is\n * `Record<string, unknown>`, so an index signature makes `keyof` equal `string`\n * and `Omit` collapses every field to `unknown` rather than removing two. An\n * `Omit` here would look like a constraint while silently destroying the types\n * of the props that matter, so this is an alias and the contract is the doc.\n */\nexport type ConnectionsPanelProps = IntegrationsRootProps;\n\nexport const ConnectionsPanel: FC<ConnectionsPanelProps> = (props) => {\n const tr = useTr();\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 <ConnectionsList />\n </IntegrationsProvider>\n </ErrorBoundary>\n </FeatureFlagProvider>\n );\n};\n"],"mappings":";;;;;;;AAsDA,IAAaA,KAA+C,MAAU;CACpE,IAAMC,IAAKC,EAAM;CAEjB,OACE,kBAACC,GAAD;EACE,aAAaC,EAAM,eAAe;EAClC,SAAQ;EACR,gBAAgB;EAEhB,UAAA,kBAACC,GAAD;GACE,UACE,kBAAC,OAAD;IAAK,WAAU;IAAf,UAAA;KACGJ,EAAG,oCAAoC,2CAA2C;KAAG;KACrFA,EAAG,sCAAsC,0BAA0B;IACjE;;GAGP,UAAA,kBAACK,GAAD;IAAsB,GAAIF;IACxB,UAAA,kBAACG,GAAD,CAAkB,CAAA;GACE,CAAA;EACT,CAAA;CACI,CAAA;AAEzB"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { IntegrationsRootProps } from './types';
|
|
3
|
-
|
|
4
3
|
/**
|
|
5
4
|
* Admin root component for the Integrations microfrontend.
|
|
6
5
|
*
|
|
@@ -16,4 +15,3 @@ import { IntegrationsRootProps } from './types';
|
|
|
16
15
|
* ```
|
|
17
16
|
*/
|
|
18
17
|
export declare const IntegrationsAdminRoot: FC<IntegrationsRootProps>;
|
|
19
|
-
//# sourceMappingURL=IntegrationsAdminRoot.d.ts.map
|
|
@@ -1,42 +1,46 @@
|
|
|
1
1
|
import { IntegrationsProvider as e } from "./providers/IntegrationsProvider.js";
|
|
2
2
|
import { useTr as t } from "./hooks/useTr.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { IntegrationsAdminRoutes as n } from "./IntegrationsAdminRoutes.js";
|
|
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
7
|
import { Settings as o, Store as s } from "lucide-react";
|
|
8
8
|
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
9
|
-
|
|
9
|
+
// src/integrations/IntegrationsAdminRoot.tsx
|
|
10
10
|
var u = (u) => {
|
|
11
11
|
let { registerNavItems: d, registerFooterItems: f, basePath: p = "/" } = u, m = t();
|
|
12
12
|
return i(() => {
|
|
13
|
-
if (d) return
|
|
13
|
+
if (!d) return;
|
|
14
|
+
let e = [{
|
|
14
15
|
id: "integrations-admin-providers",
|
|
15
16
|
label: m("integrations.nav.providers", "Providers"),
|
|
16
|
-
path:
|
|
17
|
+
path: r(p, "providers"),
|
|
17
18
|
icon: /* @__PURE__ */ c(s, { size: 20 }),
|
|
18
19
|
order: 5,
|
|
19
20
|
group: "integrations"
|
|
20
21
|
}, {
|
|
21
22
|
id: "integrations-admin-settings",
|
|
22
23
|
label: m("integrations.nav.settings", "Settings"),
|
|
23
|
-
path:
|
|
24
|
+
path: r(p, "settings"),
|
|
24
25
|
icon: /* @__PURE__ */ c(o, { size: 20 }),
|
|
25
26
|
order: 10,
|
|
26
27
|
group: "integrations"
|
|
27
|
-
}]
|
|
28
|
+
}];
|
|
29
|
+
return d(e);
|
|
28
30
|
}, [
|
|
29
31
|
d,
|
|
30
32
|
p,
|
|
31
33
|
m
|
|
32
34
|
]), i(() => {
|
|
33
|
-
if (f) return
|
|
35
|
+
if (!f) return;
|
|
36
|
+
let e = [{
|
|
34
37
|
id: "integrations-admin-status",
|
|
35
38
|
label: m("integrations.nav.adminStatusReady", "Integrations Admin Ready"),
|
|
36
39
|
type: "status",
|
|
37
40
|
order: 10,
|
|
38
41
|
section: "left"
|
|
39
|
-
}]
|
|
42
|
+
}];
|
|
43
|
+
return f(e);
|
|
40
44
|
}, [f, m]), /* @__PURE__ */ c(a, {
|
|
41
45
|
fallback: /* @__PURE__ */ l("div", {
|
|
42
46
|
className: "p-6 text-center text-text-secondary",
|
|
@@ -49,11 +53,10 @@ var u = (u) => {
|
|
|
49
53
|
children: /* @__PURE__ */ c(e, {
|
|
50
54
|
...u,
|
|
51
55
|
adminMode: !0,
|
|
52
|
-
children: /* @__PURE__ */ c(
|
|
56
|
+
children: /* @__PURE__ */ c(n, {})
|
|
53
57
|
})
|
|
54
58
|
});
|
|
55
59
|
};
|
|
56
|
-
//#endregion
|
|
57
60
|
export { u as IntegrationsAdminRoot };
|
|
58
61
|
|
|
59
62
|
//# sourceMappingURL=IntegrationsAdminRoot.js.map
|
|
@@ -1 +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 { useTr } from './hooks/useTr';\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 const tr = useTr();\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: tr('integrations.nav.providers', '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: tr('integrations.nav.settings', '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, tr]);\n\n // Register footer items\n useEffect(() => {\n if (!registerFooterItems) return;\n\n const footerItems = [\n {\n id: 'integrations-admin-status',\n label: tr('integrations.nav.adminStatusReady', '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, tr]);\n\n return (\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} adminMode>\n <IntegrationsAdminRoutes />\n </IntegrationsProvider>\n </ErrorBoundary>\n );\n};\n"],"mappings":";;;;;;;;;AAwBA,
|
|
1
|
+
{"version":3,"file":"IntegrationsAdminRoot.js","names":["IntegrationsAdminRoot","props","tr","useTr","useEffect","registerNavItems","navItems","joinPath","basePath","Store","Settings","registerFooterItems","footerItems","ErrorBoundary","IntegrationsProvider","IntegrationsAdminRoutes"],"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 { useTr } from './hooks/useTr';\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 const tr = useTr();\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: tr('integrations.nav.providers', '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: tr('integrations.nav.settings', '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, tr]);\n\n // Register footer items\n useEffect(() => {\n if (!registerFooterItems) return;\n\n const footerItems = [\n {\n id: 'integrations-admin-status',\n label: tr('integrations.nav.adminStatusReady', '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, tr]);\n\n return (\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} adminMode>\n <IntegrationsAdminRoutes />\n </IntegrationsProvider>\n </ErrorBoundary>\n );\n};\n"],"mappings":";;;;;;;;;AAwBA,IAAaA,KAAoD,MAAU;CACzE,IAAM,EAAE,qBAAkB,wBAAqB,cAAW,QAAQC,GAC5DC,IAAKC,EAAM;CA+CjB,OA5CAC,QAAgB;EACd,IAAI,CAACC,GAAkB;EAEvB,IAAMC,IAAsB,CAC1B;GACE,IAAI;GACJ,OAAOJ,EAAG,8BAA8B,WAAW;GACnD,MAAMK,EAASC,GAAU,WAAW;GACpC,MAAM,kBAACC,GAAD,EAAO,MAAM,GAAK,CAAA;GACxB,OAAO;GACP,OAAO;EACT,GACA;GACE,IAAI;GACJ,OAAOP,EAAG,6BAA6B,UAAU;GACjD,MAAMK,EAASC,GAAU,UAAU;GACnC,MAAM,kBAACE,GAAD,EAAU,MAAM,GAAK,CAAA;GAC3B,OAAO;GACP,OAAO;EACT,CACF;EAGA,OADgBL,EAAiBC,CAC1B;CACT,GAAG;EAACD;EAAkBG;EAAUN;CAAE,CAAC,GAGnCE,QAAgB;EACd,IAAI,CAACO,GAAqB;EAE1B,IAAMC,IAAc,CAClB;GACE,IAAI;GACJ,OAAOV,EAAG,qCAAqC,0BAA0B;GACzE,MAAM;GACN,OAAO;GACP,SAAS;EACX,CACF;EAGA,OADgBS,EAAoBC,CAC7B;CACT,GAAG,CAACD,GAAqBT,CAAE,CAAC,GAG1B,kBAACW,GAAD;EACE,UACE,kBAAC,OAAD;GAAK,WAAU;GAAf,UAAA;IACGX,EAAG,oCAAoC,2CAA2C;IAAG;IACrFA,EAAG,sCAAsC,0BAA0B;GACjE;;EAGP,UAAA,kBAACY,GAAD;GAAsB,GAAIb;GAAO,WAAA;GAC/B,UAAA,kBAACc,GAAD,CAA0B,CAAA;EACN,CAAA;CACT,CAAA;AAEnB"}
|
|
@@ -4,5 +4,4 @@
|
|
|
4
4
|
* Includes: Settings (module configuration).
|
|
5
5
|
* Excludes user features: Overview, Providers, Connections, Activity Logs.
|
|
6
6
|
*/
|
|
7
|
-
export declare function IntegrationsAdminRoutes(): import(
|
|
8
|
-
//# sourceMappingURL=IntegrationsAdminRoutes.d.ts.map
|
|
7
|
+
export declare function IntegrationsAdminRoutes(): import('react').JSX.Element | null;
|
|
@@ -3,7 +3,7 @@ import { Component as t, Suspense as n, lazy as r } from "react";
|
|
|
3
3
|
import { AlertTriangle as i, Loader2 as a, RefreshCw as o } from "lucide-react";
|
|
4
4
|
import { Navigate as s, Route as c, Routes as l, useLocation as u } from "react-router";
|
|
5
5
|
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
6
|
-
|
|
6
|
+
// src/integrations/IntegrationsAdminRoutes.tsx
|
|
7
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/ConnectorReviewQueuePage.js").then((e) => ({ default: e.ConnectorReviewQueuePage }))), _ = r(() => import("./pages/ProviderEditorPage.js").then((e) => ({ default: e.ProviderEditorPage })));
|
|
8
8
|
function v() {
|
|
9
9
|
return /* @__PURE__ */ d("div", {
|
|
@@ -109,7 +109,6 @@ function b() {
|
|
|
109
109
|
] })
|
|
110
110
|
}) });
|
|
111
111
|
}
|
|
112
|
-
//#endregion
|
|
113
112
|
export { b as IntegrationsAdminRoutes };
|
|
114
113
|
|
|
115
114
|
//# sourceMappingURL=IntegrationsAdminRoutes.js.map
|
|
@@ -1 +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';\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 ConnectorReviewQueuePage = lazy(() =>\n import('./pages/ConnectorReviewQueuePage').then((m) => ({\n default: m.ConnectorReviewQueuePage,\n }))\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=\"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 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-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 * 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 {/* Third-party connector review queue (BOFF-4417) */}\n <Route path=\"connector-reviews\" element={<ConnectorReviewQueuePage />} />\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":";;;;;;AAMA,
|
|
1
|
+
{"version":3,"file":"IntegrationsAdminRoutes.js","names":["IntegrationsSettings","lazy","m","ProviderCatalog","ProviderDetail","ConnectorReviewQueuePage","ProviderEditorPage","PageLoader","Loader2","LazyErrorBoundary","Component","props","error","errorInfo","prev","AlertTriangle","RefreshCw","IntegrationsAdminRoutes","useIntegrations","location","useLocation","normalizedBasePath","basePath","Suspense","Routes","Route","Navigate"],"sources":["../../src/integrations/IntegrationsAdminRoutes.tsx"],"sourcesContent":["import { lazy, Suspense, Component, type ReactNode, type ErrorInfo } from 'react';\nimport { Navigate, Route, Routes, useLocation } from 'react-router';\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 ConnectorReviewQueuePage = lazy(() =>\n import('./pages/ConnectorReviewQueuePage').then((m) => ({\n default: m.ConnectorReviewQueuePage,\n }))\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=\"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 override 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 override 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 * 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 {/* Third-party connector review queue (BOFF-4417) */}\n <Route path=\"connector-reviews\" element={<ConnectorReviewQueuePage />} />\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":";;;;;;AAMA,IAAMA,IAAuBC,QAC3B,OAAO,kCAA+B,CAAC,MAAM,OAAO,EAAE,SAASC,EAAE,qBAAqB,EAAE,CAC1F,GACMC,IAAkBF,QACtB,OAAO,6BAA0B,CAAC,MAAM,OAAO,EAAE,SAASC,EAAE,gBAAgB,EAAE,CAChF,GACME,IAAiBH,QACrB,OAAO,4BAAyB,CAAC,MAAM,OAAO,EAAE,SAASC,EAAE,eAAe,EAAE,CAC9E,GACMG,IAA2BJ,QAC/B,OAAO,sCAAmC,CAAC,MAAM,OAAO,EACtD,SAASC,EAAE,yBACb,EAAE,CACJ,GACMI,IAAqBL,QACzB,OAAO,gCAA6B,CAAC,MAAM,OAAO,EAAE,SAASC,EAAE,mBAAmB,EAAE,CACtF;AAKA,SAASK,IAAa;CACpB,OACE,kBAAC,OAAD;EAAK,WAAU;EACb,UAAA,kBAACC,GAAD,EAAS,WAAU,mCAAoC,CAAA;CACpD,CAAA;AAET;AAMA,IAAMC,IAAN,cAAgCC,EAG9B;CACA,YAAY,GAAgC;EAE1C,AADA,MAAMC,CAAK,GACX,KAAK,QAAQ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EAC/B,UAAA,kBAACiB,GAAD,EAAA,UAAA;GACE,kBAACC,GAAD;IAAO,OAAA;IAAM,SAAS,kBAACC,GAAD;KAAU,IAAG;KAAY,SAAA;IAAS,CAAA;GAAI,CAAA;GAC5D,kBAACD,GAAD;IAAO,MAAK;IAAY,SAAS,kBAACtB,GAAD,EAAiB,0BAAA,GAA0B,CAAA;GAAI,CAAA;GAChF,kBAACsB,GAAD;IAAO,MAAK;IAAgB,SAAS,kBAACnB,GAAD,CAAqB,CAAA;GAAI,CAAA;GAC9D,kBAACmB,GAAD;IAAO,MAAK;IAAwB,SAAS,kBAACrB,GAAD,CAAiB,CAAA;GAAI,CAAA;GAClE,kBAACqB,GAAD;IAAO,MAAK;IAA6B,SAAS,kBAACnB,GAAD,CAAqB,CAAA;GAAI,CAAA;GAC3E,kBAACmB,GAAD;IAAO,MAAK;IAAW,SAAS,kBAACzB,GAAD,CAAuB,CAAA;GAAI,CAAA;GAE3D,kBAACyB,GAAD;IAAO,MAAK;IAAoB,SAAS,kBAACpB,GAAD,CAA2B,CAAA;GAAI,CAAA;GAGxE,kBAACoB,GAAD;IAAO,MAAK;IAAI,SAAS,kBAACC,GAAD;KAAU,IAAG;KAAG,SAAA;IAAS,CAAA;GAAI,CAAA;EAChD,EAAA,CAAA;CACA,CAAA,EACO,CAAA;AAEvB"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { IntegrationsRootProps } from './types';
|
|
3
|
-
|
|
4
3
|
/**
|
|
5
4
|
* Root component for the Integrations microfrontend.
|
|
6
5
|
*
|
|
@@ -30,4 +29,3 @@ import { IntegrationsRootProps } from './types';
|
|
|
30
29
|
* ```
|
|
31
30
|
*/
|
|
32
31
|
export declare const IntegrationsRoot: FC<IntegrationsRootProps>;
|
|
33
|
-
//# sourceMappingURL=IntegrationsRoot.d.ts.map
|
|
@@ -7,11 +7,12 @@ import { ErrorBoundary as a } from "@burdenoff/fe-libs/shared/components";
|
|
|
7
7
|
import { FileText as o, Inbox as s, LayoutDashboard as c, Link2 as l, Plug as u, Store as d } from "lucide-react";
|
|
8
8
|
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
9
9
|
import { FeatureFlagProvider as m } from "@burdenoff/fe-libs/shared/feature-flags";
|
|
10
|
-
|
|
10
|
+
// src/integrations/IntegrationsRoot.tsx
|
|
11
11
|
var h = (h) => {
|
|
12
12
|
let { registerNavItems: g, registerFooterItems: _, basePath: v = "/" } = h, y = t();
|
|
13
13
|
return i(() => {
|
|
14
|
-
if (g) return
|
|
14
|
+
if (!g) return;
|
|
15
|
+
let e = {
|
|
15
16
|
id: "integrations",
|
|
16
17
|
label: y("integrations.nav.integrations", "Integrations"),
|
|
17
18
|
path: v,
|
|
@@ -55,19 +56,22 @@ var h = (h) => {
|
|
|
55
56
|
order: 40
|
|
56
57
|
}
|
|
57
58
|
]
|
|
58
|
-
}
|
|
59
|
+
};
|
|
60
|
+
return g(e);
|
|
59
61
|
}, [
|
|
60
62
|
g,
|
|
61
63
|
v,
|
|
62
64
|
y
|
|
63
65
|
]), i(() => {
|
|
64
|
-
if (_) return
|
|
66
|
+
if (!_) return;
|
|
67
|
+
let e = [{
|
|
65
68
|
id: "integrations-status",
|
|
66
69
|
label: y("integrations.nav.statusReady", "Integrations Ready"),
|
|
67
70
|
type: "status",
|
|
68
71
|
order: 10,
|
|
69
72
|
section: "left"
|
|
70
|
-
}]
|
|
73
|
+
}];
|
|
74
|
+
return _(e);
|
|
71
75
|
}, [_, y]), /* @__PURE__ */ f(m, {
|
|
72
76
|
workspaceId: h.workspaceId ?? null,
|
|
73
77
|
gateway: "global",
|
|
@@ -88,7 +92,6 @@ var h = (h) => {
|
|
|
88
92
|
})
|
|
89
93
|
});
|
|
90
94
|
};
|
|
91
|
-
//#endregion
|
|
92
95
|
export { h as IntegrationsRoot };
|
|
93
96
|
|
|
94
97
|
//# 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, 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,
|
|
1
|
+
{"version":3,"file":"IntegrationsRoot.js","names":["IntegrationsRoot","props","tr","useTr","useEffect","registerNavItems","integrationsNavItem","basePath","Plug","LayoutDashboard","joinPath","Store","Link2","Inbox","FileText","registerFooterItems","footerItems","FeatureFlagProvider","ErrorBoundary","IntegrationsProvider","IntegrationsUserRoutes"],"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,IAAaA,KAA+C,MAAU;CACpE,IAAM,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ACF;EAGA,OADgBa,EAAoBC,CAC7B;CACT,GAAG,CAACD,GAAqBb,CAAE,CAAC,GAG1B,kBAACe,GAAD;EACE,aAAahB,EAAM,eAAe;EAClC,SAAQ;EACR,gBAAgB;EAEhB,UAAA,kBAACiB,GAAD;GACE,UACE,kBAAC,OAAD;IAAK,WAAU;IAAf,UAAA;KACGhB,EAAG,oCAAoC,2CAA2C;KAAG;KACrFA,EAAG,sCAAsC,0BAA0B;IACjE;;GAGP,UAAA,kBAACiB,GAAD;IAAsB,GAAIlB;IACxB,UAAA,kBAACmB,GAAD,CAAyB,CAAA;GACL,CAAA;EACT,CAAA;CACI,CAAA;AAEzB"}
|
|
@@ -4,5 +4,4 @@
|
|
|
4
4
|
* Includes: Overview, Providers, Connections, Activity Logs.
|
|
5
5
|
* Excludes admin features: Settings.
|
|
6
6
|
*/
|
|
7
|
-
export declare function IntegrationsUserRoutes(): import(
|
|
8
|
-
//# sourceMappingURL=IntegrationsUserRoutes.d.ts.map
|
|
7
|
+
export declare function IntegrationsUserRoutes(): import('react').JSX.Element | null;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { AddConnectionDialog as e } from "./components/AddConnectionDialog.js";
|
|
2
|
+
import { useIntegrations as t } from "./providers/IntegrationsProvider.js";
|
|
3
3
|
import { joinPath as n } from "./utils/navigation.js";
|
|
4
4
|
import { IntegrationsUserLandingPage as r } from "./pages/IntegrationsUserLandingPage.js";
|
|
5
5
|
import { Component as i, Suspense as a, lazy as o } from "react";
|
|
6
6
|
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
|
-
|
|
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([
|
|
9
|
+
// 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/MailboxInbox.js").then((e) => ({ default: e.MailboxInbox }))), T = o(() => import("./pages/ConnectionLogs.js").then((e) => ({ default: e.ConnectionLogs }))), E = /* @__PURE__ */ new Set([
|
|
11
11
|
"slack-user",
|
|
12
12
|
"teams-user",
|
|
13
13
|
"discord-user"
|
|
14
14
|
]);
|
|
15
15
|
function D() {
|
|
16
|
-
let { basePath: r } =
|
|
17
|
-
return s.get("returnTo") && s.get("channelId") && c && E.has(c) ? /* @__PURE__ */ g(x, {}) : /* @__PURE__ */ g(
|
|
16
|
+
let { basePath: r } = t(), { 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 && E.has(c) ? /* @__PURE__ */ g(x, {}) : /* @__PURE__ */ g(e, {
|
|
18
18
|
open: !0,
|
|
19
19
|
onClose: () => o(n(r ?? "/", "connections")),
|
|
20
20
|
preselectedProviderId: i,
|
|
@@ -80,7 +80,7 @@ var k = class extends i {
|
|
|
80
80
|
}
|
|
81
81
|
};
|
|
82
82
|
function A() {
|
|
83
|
-
let { basePath:
|
|
83
|
+
let { basePath: e } = t(), n = p(), i = e && e !== "/" ? e.endsWith("/") ? e.slice(0, -1) : e : "";
|
|
84
84
|
return i && !(n.pathname === i || n.pathname.startsWith(i + "/")) ? null : /* @__PURE__ */ g(k, { children: /* @__PURE__ */ g(a, {
|
|
85
85
|
fallback: /* @__PURE__ */ g(O, {}),
|
|
86
86
|
children: /* @__PURE__ */ _(f, { children: [
|
|
@@ -134,7 +134,6 @@ function A() {
|
|
|
134
134
|
] })
|
|
135
135
|
}) });
|
|
136
136
|
}
|
|
137
|
-
//#endregion
|
|
138
137
|
export { A as IntegrationsUserRoutes };
|
|
139
138
|
|
|
140
139
|
//# 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 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/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,kBAAC,GAAD,EAAsB,CAAA;IAAI,CAAA;GACjE,kBAAC,GAAD;IAAO,MAAK;IAA8B,SAAS,kBAAC,GAAD,EAAsB,CAAA;IAAI,CAAA;GAC7E,kBAAC,GAAD;IAAO,MAAK;IAA4B,SAAS,kBAAC,GAAD,EAAoB,CAAA;IAAI,CAAA;GAGzE,kBAAC,GAAD;IAAO,MAAK;IAAuB,SAAS,kBAAC,GAAD,EAA4B,CAAA;IAAI,CAAA;GAG5E,kBAAC,GAAD;IAAO,MAAK;IAAQ,SAAS,kBAAC,GAAD,EAAgB,CAAA;IAAI,CAAA;GAGjD,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":["ProviderCatalog","lazy","m","ProviderDetail","ConnectionsList","AddConnectionWizard","ConnectionDetail","ConnectorSubmissionsPage","MailboxInbox","ConnectionLogs","BOTLIT_CHANNEL_PROVIDER_KEYS","ConnectionAddRoute","useIntegrations","useParams","useLocation","navigate","useNavigate","params","search","providerKey","AddConnectionDialog","joinPath","basePath","providerId","PageLoader","Loader2","LazyErrorBoundary","Component","props","error","errorInfo","prev","AlertTriangle","RefreshCw","IntegrationsUserRoutes","location","normalizedBasePath","Suspense","Routes","Route","IntegrationsUserLandingPage","Navigate"],"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 override 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 override 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,IAAMA,IAAkBC,QACtB,OAAO,6BAA0B,CAAC,MAAM,OAAO,EAAE,SAASC,EAAE,gBAAgB,EAAE,CAChF,GACMC,IAAiBF,QACrB,OAAO,4BAAyB,CAAC,MAAM,OAAO,EAAE,SAASC,EAAE,eAAe,EAAE,CAC9E,GACME,IAAkBH,QACtB,OAA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