@burdenoff/microfe-integrations 2026.626.2 → 2026.703.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.
@@ -58,7 +58,7 @@ var f = (f) => {
58
58
  }]);
59
59
  }, [m]), /* @__PURE__ */ u(d, {
60
60
  workspaceId: f.workspaceId ?? null,
61
- gateway: "workspace",
61
+ gateway: "global",
62
62
  defaultEnabled: !1,
63
63
  children: /* @__PURE__ */ u(i, {
64
64
  fallback: /* @__PURE__ */ u("div", {
@@ -1 +1 @@
1
- {"version":3,"file":"IntegrationsRoot.js","names":[],"sources":["../../src/integrations/IntegrationsRoot.tsx"],"sourcesContent":["import type { FC } from 'react';\nimport { useEffect } from 'react';\nimport { ErrorBoundary } from '@burdenoff/fe-libs/shared/components';\nimport { Plug, LayoutDashboard, Store, Link2, FileText } from 'lucide-react';\nimport { IntegrationsProvider } from './providers/IntegrationsProvider';\nimport { FeatureFlagProvider } from '@burdenoff/fe-libs/shared/feature-flags';\nimport type { NavItem, IntegrationsRootProps } from './types';\nimport { IntegrationsUserRoutes } from './IntegrationsUserRoutes';\nimport { joinPath } from './utils/paths';\n\n/**\n * Root component for the Integrations microfrontend.\n *\n * This is the main entry point that host applications import and render.\n * It sets up the necessary providers and renders the internal routing.\n * Automatically registers navigation items with the shell if registration functions are provided.\n *\n * @example\n * ```tsx\n * import { IntegrationsRoot, type IntegrationsRootProps } from '@burdenoff/micro-fe/integrations';\n *\n * function App() {\n * const props: IntegrationsRootProps = {\n * basePath: '/integrations',\n * navigate: (path) => router.push(path),\n * currentUser: { id: '1', email: 'user@example.com', firstName: 'John', lastName: 'Doe' },\n * workspaceId: 'ws-123',\n * apiGatewayUrl: 'https://api.example.com',\n * authToken: 'token',\n * onConnectionSelect: (conn) => console.log('Connection selected:', conn),\n * onProviderSelect: (provider) => console.log('Provider selected:', provider),\n * registerNavItems: (items) => { return () => {}; },\n * };\n *\n * return <IntegrationsRoot {...props} />;\n * }\n * ```\n */\nexport const IntegrationsRoot: FC<IntegrationsRootProps> = (props) => {\n const { registerNavItems, registerFooterItems, basePath = '/' } = props;\n\n // Register navigation items with the shell\n useEffect(() => {\n if (!registerNavItems) return;\n\n const integrationsNavItem: NavItem = {\n id: 'integrations',\n label: 'Integrations',\n path: basePath,\n icon: <Plug size={20} />,\n order: 10,\n group: 'integrations',\n children: [\n {\n id: 'integrations-overview',\n label: 'Overview',\n path: basePath,\n icon: <LayoutDashboard size={16} />,\n order: 10,\n },\n {\n id: 'integrations-providers',\n label: 'Providers',\n path: joinPath(basePath, 'providers'),\n icon: <Store size={16} />,\n order: 20,\n },\n {\n id: 'integrations-connections',\n label: 'Connections',\n path: joinPath(basePath, 'connections'),\n icon: <Link2 size={16} />,\n order: 30,\n },\n {\n id: 'integrations-logs',\n label: 'Activity Logs',\n path: joinPath(basePath, 'logs'),\n icon: <FileText size={16} />,\n order: 40,\n },\n ],\n };\n\n // Register and get cleanup function\n const cleanup = registerNavItems(integrationsNavItem);\n\n // Return cleanup function to unregister on unmount\n return cleanup;\n }, [registerNavItems, basePath]);\n\n // Register footer items\n useEffect(() => {\n if (!registerFooterItems) return;\n\n const footerItems = [\n {\n id: 'integrations-status',\n label: 'Integrations Ready',\n type: 'status' as const,\n order: 10,\n section: 'left' as const,\n },\n ];\n\n const cleanup = registerFooterItems(footerItems);\n return cleanup;\n }, [registerFooterItems]);\n\n return (\n <FeatureFlagProvider\n workspaceId={props.workspaceId ?? null}\n gateway=\"workspace\"\n defaultEnabled={false}\n >\n <ErrorBoundary\n fallback={\n <div className=\"p-6 text-center text-text-secondary\">\n Something went wrong loading this module. Please refresh the page.\n </div>\n }\n >\n <IntegrationsProvider {...props}>\n <IntegrationsUserRoutes />\n </IntegrationsProvider>\n </ErrorBoundary>\n </FeatureFlagProvider>\n );\n};\n"],"mappings":";;;;;;;;;AAsCA,IAAa,KAA+C,MAAU;CACpE,IAAM,EAAE,qBAAkB,wBAAqB,cAAW,QAAQ;AAsElE,QAnEA,QAAgB;AACT,QA6CL,QAHgB,EAxCqB;GACnC,IAAI;GACJ,OAAO;GACP,MAAM;GACN,MAAM,kBAAC,GAAD,EAAM,MAAM,IAAM,CAAA;GACxB,OAAO;GACP,OAAO;GACP,UAAU;IACR;KACE,IAAI;KACJ,OAAO;KACP,MAAM;KACN,MAAM,kBAAC,GAAD,EAAiB,MAAM,IAAM,CAAA;KACnC,OAAO;KACR;IACD;KACE,IAAI;KACJ,OAAO;KACP,MAAM,EAAS,GAAU,YAAY;KACrC,MAAM,kBAAC,GAAD,EAAO,MAAM,IAAM,CAAA;KACzB,OAAO;KACR;IACD;KACE,IAAI;KACJ,OAAO;KACP,MAAM,EAAS,GAAU,cAAc;KACvC,MAAM,kBAAC,GAAD,EAAO,MAAM,IAAM,CAAA;KACzB,OAAO;KACR;IACD;KACE,IAAI;KACJ,OAAO;KACP,MAAM,EAAS,GAAU,OAAO;KAChC,MAAM,kBAAC,GAAD,EAAU,MAAM,IAAM,CAAA;KAC5B,OAAO;KACR;IACF;GACF,CAGoD;IAIpD,CAAC,GAAkB,EAAS,CAAC,EAGhC,QAAgB;AACT,QAaL,QADgB,EAVI,CAClB;GACE,IAAI;GACJ,OAAO;GACP,MAAM;GACN,OAAO;GACP,SAAS;GACV,CACF,CAE+C;IAE/C,CAAC,EAAoB,CAAC,EAGvB,kBAAC,GAAD;EACE,aAAa,EAAM,eAAe;EAClC,SAAQ;EACR,gBAAgB;YAEhB,kBAAC,GAAD;GACE,UACE,kBAAC,OAAD;IAAK,WAAU;cAAsC;IAE/C,CAAA;aAGR,kBAAC,GAAD;IAAsB,GAAI;cACxB,kBAAC,GAAD,EAA0B,CAAA;IACL,CAAA;GACT,CAAA;EACI,CAAA"}
1
+ {"version":3,"file":"IntegrationsRoot.js","names":[],"sources":["../../src/integrations/IntegrationsRoot.tsx"],"sourcesContent":["import type { FC } from 'react';\nimport { useEffect } from 'react';\nimport { ErrorBoundary } from '@burdenoff/fe-libs/shared/components';\nimport { Plug, LayoutDashboard, Store, Link2, FileText } from 'lucide-react';\nimport { IntegrationsProvider } from './providers/IntegrationsProvider';\nimport { FeatureFlagProvider } from '@burdenoff/fe-libs/shared/feature-flags';\nimport type { NavItem, IntegrationsRootProps } from './types';\nimport { IntegrationsUserRoutes } from './IntegrationsUserRoutes';\nimport { joinPath } from './utils/paths';\n\n/**\n * Root component for the Integrations microfrontend.\n *\n * This is the main entry point that host applications import and render.\n * It sets up the necessary providers and renders the internal routing.\n * Automatically registers navigation items with the shell if registration functions are provided.\n *\n * @example\n * ```tsx\n * import { IntegrationsRoot, type IntegrationsRootProps } from '@burdenoff/micro-fe/integrations';\n *\n * function App() {\n * const props: IntegrationsRootProps = {\n * basePath: '/integrations',\n * navigate: (path) => router.push(path),\n * currentUser: { id: '1', email: 'user@example.com', firstName: 'John', lastName: 'Doe' },\n * workspaceId: 'ws-123',\n * apiGatewayUrl: 'https://api.example.com',\n * authToken: 'token',\n * onConnectionSelect: (conn) => console.log('Connection selected:', conn),\n * onProviderSelect: (provider) => console.log('Provider selected:', provider),\n * registerNavItems: (items) => { return () => {}; },\n * };\n *\n * return <IntegrationsRoot {...props} />;\n * }\n * ```\n */\nexport const IntegrationsRoot: FC<IntegrationsRootProps> = (props) => {\n const { registerNavItems, registerFooterItems, basePath = '/' } = props;\n\n // Register navigation items with the shell\n useEffect(() => {\n if (!registerNavItems) return;\n\n const integrationsNavItem: NavItem = {\n id: 'integrations',\n label: 'Integrations',\n path: basePath,\n icon: <Plug size={20} />,\n order: 10,\n group: 'integrations',\n children: [\n {\n id: 'integrations-overview',\n label: 'Overview',\n path: basePath,\n icon: <LayoutDashboard size={16} />,\n order: 10,\n },\n {\n id: 'integrations-providers',\n label: 'Providers',\n path: joinPath(basePath, 'providers'),\n icon: <Store size={16} />,\n order: 20,\n },\n {\n id: 'integrations-connections',\n label: 'Connections',\n path: joinPath(basePath, 'connections'),\n icon: <Link2 size={16} />,\n order: 30,\n },\n {\n id: 'integrations-logs',\n label: 'Activity Logs',\n path: joinPath(basePath, 'logs'),\n icon: <FileText size={16} />,\n order: 40,\n },\n ],\n };\n\n // Register and get cleanup function\n const cleanup = registerNavItems(integrationsNavItem);\n\n // Return cleanup function to unregister on unmount\n return cleanup;\n }, [registerNavItems, basePath]);\n\n // Register footer items\n useEffect(() => {\n if (!registerFooterItems) return;\n\n const footerItems = [\n {\n id: 'integrations-status',\n label: 'Integrations Ready',\n type: 'status' as const,\n order: 10,\n section: 'left' as const,\n },\n ];\n\n const cleanup = registerFooterItems(footerItems);\n return cleanup;\n }, [registerFooterItems]);\n\n return (\n <FeatureFlagProvider\n workspaceId={props.workspaceId ?? null}\n gateway=\"global\"\n defaultEnabled={false}\n >\n <ErrorBoundary\n fallback={\n <div className=\"p-6 text-center text-text-secondary\">\n Something went wrong loading this module. Please refresh the page.\n </div>\n }\n >\n <IntegrationsProvider {...props}>\n <IntegrationsUserRoutes />\n </IntegrationsProvider>\n </ErrorBoundary>\n </FeatureFlagProvider>\n );\n};\n"],"mappings":";;;;;;;;;AAsCA,IAAa,KAA+C,MAAU;CACpE,IAAM,EAAE,qBAAkB,wBAAqB,cAAW,QAAQ;AAsElE,QAnEA,QAAgB;AACT,QA6CL,QAHgB,EAxCqB;GACnC,IAAI;GACJ,OAAO;GACP,MAAM;GACN,MAAM,kBAAC,GAAD,EAAM,MAAM,IAAM,CAAA;GACxB,OAAO;GACP,OAAO;GACP,UAAU;IACR;KACE,IAAI;KACJ,OAAO;KACP,MAAM;KACN,MAAM,kBAAC,GAAD,EAAiB,MAAM,IAAM,CAAA;KACnC,OAAO;KACR;IACD;KACE,IAAI;KACJ,OAAO;KACP,MAAM,EAAS,GAAU,YAAY;KACrC,MAAM,kBAAC,GAAD,EAAO,MAAM,IAAM,CAAA;KACzB,OAAO;KACR;IACD;KACE,IAAI;KACJ,OAAO;KACP,MAAM,EAAS,GAAU,cAAc;KACvC,MAAM,kBAAC,GAAD,EAAO,MAAM,IAAM,CAAA;KACzB,OAAO;KACR;IACD;KACE,IAAI;KACJ,OAAO;KACP,MAAM,EAAS,GAAU,OAAO;KAChC,MAAM,kBAAC,GAAD,EAAU,MAAM,IAAM,CAAA;KAC5B,OAAO;KACR;IACF;GACF,CAGoD;IAIpD,CAAC,GAAkB,EAAS,CAAC,EAGhC,QAAgB;AACT,QAaL,QADgB,EAVI,CAClB;GACE,IAAI;GACJ,OAAO;GACP,MAAM;GACN,OAAO;GACP,SAAS;GACV,CACF,CAE+C;IAE/C,CAAC,EAAoB,CAAC,EAGvB,kBAAC,GAAD;EACE,aAAa,EAAM,eAAe;EAClC,SAAQ;EACR,gBAAgB;YAEhB,kBAAC,GAAD;GACE,UACE,kBAAC,OAAD;IAAK,WAAU;cAAsC;IAE/C,CAAA;aAGR,kBAAC,GAAD;IAAsB,GAAI;cACxB,kBAAC,GAAD,EAA0B,CAAA;IACL,CAAA;GACT,CAAA;EACI,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burdenoff/microfe-integrations",
3
- "version": "2026.626.2",
3
+ "version": "2026.703.1",
4
4
  "description": "Burdenoff Integrations Microfrontend - Plugin-based provider and connection management interface",
5
5
  "type": "module",
6
6
  "files": [