@burdenoff/microfe-integrations 2026.923.1 → 2026.923.2
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/index.js +4 -3
- package/dist/integrations/ConnectionsPanel.d.ts +18 -0
- package/dist/integrations/ConnectionsPanel.d.ts.map +1 -0
- package/dist/integrations/ConnectionsPanel.js +33 -0
- package/dist/integrations/ConnectionsPanel.js.map +1 -0
- package/dist/integrations/index.d.ts +2 -0
- package/dist/integrations/index.d.ts.map +1 -1
- package/dist/integrations/index.js +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2,7 +2,8 @@ import { useIntegrations as e } from "./integrations/providers/IntegrationsProvi
|
|
|
2
2
|
import { INTEGRATION_PERMISSIONS as t } from "./integrations/constants/permissions.js";
|
|
3
3
|
import { useIntegrationsStore as n } from "./integrations/store/integrationsStore.js";
|
|
4
4
|
import { IntegrationsRoot as r } from "./integrations/IntegrationsRoot.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { ConnectionsPanel as i } from "./integrations/ConnectionsPanel.js";
|
|
6
|
+
import { IntegrationsAdminRoot as a } from "./integrations/IntegrationsAdminRoot.js";
|
|
7
|
+
import { AddConnectionWizard as o } from "./integrations/pages/AddConnectionWizard.js";
|
|
7
8
|
import "./integrations/index.js";
|
|
8
|
-
export {
|
|
9
|
+
export { o as AddConnectionWizard, i as ConnectionsPanel, t as INTEGRATION_PERMISSIONS, a as IntegrationsAdminRoot, r as IntegrationsRoot, e as useIntegrations, n as useIntegrationsStore };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { IntegrationsRootProps } from './types';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* The same props `IntegrationsRoot` takes.
|
|
6
|
+
*
|
|
7
|
+
* ★ `registerNavItems` / `registerFooterItems` are deliberately NOT called
|
|
8
|
+
* here: they register items with the host's shell chrome, which is wrong for a
|
|
9
|
+
* surface that lives and dies with a dialog. They cannot be typed away —
|
|
10
|
+
* `IntegrationsRootProps` extends `MicrofrontendRootProps`, which is
|
|
11
|
+
* `Record<string, unknown>`, so an index signature makes `keyof` equal `string`
|
|
12
|
+
* and `Omit` collapses every field to `unknown` rather than removing two. An
|
|
13
|
+
* `Omit` here would look like a constraint while silently destroying the types
|
|
14
|
+
* of the props that matter, so this is an alias and the contract is the doc.
|
|
15
|
+
*/
|
|
16
|
+
export type ConnectionsPanelProps = IntegrationsRootProps;
|
|
17
|
+
export declare const ConnectionsPanel: FC<ConnectionsPanelProps>;
|
|
18
|
+
//# sourceMappingURL=ConnectionsPanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConnectionsPanel.d.ts","sourceRoot":"","sources":["../../src/integrations/ConnectionsPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAMhC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAErD;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,qBAAqB,GAAG,qBAAqB,CAAC;AAE1D,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CAuBtD,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { IntegrationsProvider as e } from "./providers/IntegrationsProvider.js";
|
|
2
|
+
import { useTr as t } from "./hooks/useTr.js";
|
|
3
|
+
import { ConnectionsList as n } from "./pages/ConnectionsList.js";
|
|
4
|
+
import { ErrorBoundary as r } from "@burdenoff/fe-libs/shared/components";
|
|
5
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
6
|
+
import { FeatureFlagProvider as o } from "@burdenoff/fe-libs/shared/feature-flags";
|
|
7
|
+
//#region src/integrations/ConnectionsPanel.tsx
|
|
8
|
+
var s = (s) => {
|
|
9
|
+
let c = t();
|
|
10
|
+
return /* @__PURE__ */ i(o, {
|
|
11
|
+
workspaceId: s.workspaceId ?? null,
|
|
12
|
+
gateway: "global",
|
|
13
|
+
defaultEnabled: !1,
|
|
14
|
+
children: /* @__PURE__ */ i(r, {
|
|
15
|
+
fallback: /* @__PURE__ */ a("div", {
|
|
16
|
+
className: "p-6 text-center text-text-secondary",
|
|
17
|
+
children: [
|
|
18
|
+
c("integrations.errorBoundary.title", "Something went wrong loading this module."),
|
|
19
|
+
" ",
|
|
20
|
+
c("integrations.errorBoundary.refresh", "Please refresh the page.")
|
|
21
|
+
]
|
|
22
|
+
}),
|
|
23
|
+
children: /* @__PURE__ */ i(e, {
|
|
24
|
+
...s,
|
|
25
|
+
children: /* @__PURE__ */ i(n, {})
|
|
26
|
+
})
|
|
27
|
+
})
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
//#endregion
|
|
31
|
+
export { s as ConnectionsPanel };
|
|
32
|
+
|
|
33
|
+
//# sourceMappingURL=ConnectionsPanel.js.map
|
|
@@ -0,0 +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 */\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":";;;;;;;AAiDA,IAAa,KAA+C,MAAU;CACpE,IAAM,IAAK,GAAO;AAElB,QACE,kBAAC,GAAD;EACE,aAAa,EAAM,eAAe;EAClC,SAAQ;EACR,gBAAgB;YAEhB,kBAAC,GAAD;GACE,UACE,kBAAC,OAAD;IAAK,WAAU;cAAf;KACG,EAAG,oCAAoC,4CAA4C;KAAE;KACrF,EAAG,sCAAsC,2BAA2B;KACjE;;aAGR,kBAAC,GAAD;IAAsB,GAAI;cACxB,kBAAC,GAAD,EAAmB,CAAA;IACE,CAAA;GACT,CAAA;EACI,CAAA"}
|
|
@@ -23,6 +23,8 @@
|
|
|
23
23
|
* ```
|
|
24
24
|
*/
|
|
25
25
|
export { IntegrationsRoot } from './IntegrationsRoot';
|
|
26
|
+
export { ConnectionsPanel } from './ConnectionsPanel';
|
|
27
|
+
export type { ConnectionsPanelProps } from './ConnectionsPanel';
|
|
26
28
|
export { IntegrationsAdminRoot } from './IntegrationsAdminRoot';
|
|
27
29
|
export type { IntegrationsRootProps, IntegrationProvider, IntegrationConnection } from './types';
|
|
28
30
|
export { useIntegrations } from './providers/IntegrationsProvider';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/integrations/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,YAAY,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AACjG,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAClE,YAAY,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/integrations/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,YAAY,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,YAAY,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AACjG,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAClE,YAAY,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -2,5 +2,6 @@ import "./providers/IntegrationsProvider.js";
|
|
|
2
2
|
import "./constants/permissions.js";
|
|
3
3
|
import "./store/integrationsStore.js";
|
|
4
4
|
import "./IntegrationsRoot.js";
|
|
5
|
+
import "./ConnectionsPanel.js";
|
|
5
6
|
import "./IntegrationsAdminRoot.js";
|
|
6
7
|
import "./pages/AddConnectionWizard.js";
|
package/package.json
CHANGED