@burdenoff/microfe-integrations 2026.830.1 → 2026.830.3

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.
Files changed (81) hide show
  1. package/dist/integrations/IntegrationsAdminRoot.d.ts.map +1 -1
  2. package/dist/integrations/IntegrationsAdminRoot.js +35 -26
  3. package/dist/integrations/IntegrationsAdminRoot.js.map +1 -1
  4. package/dist/integrations/IntegrationsRoot.d.ts.map +1 -1
  5. package/dist/integrations/IntegrationsRoot.js +47 -38
  6. package/dist/integrations/IntegrationsRoot.js.map +1 -1
  7. package/dist/integrations/components/AddConnectionDialog.d.ts.map +1 -1
  8. package/dist/integrations/components/AddConnectionDialog.js +151 -152
  9. package/dist/integrations/components/AddConnectionDialog.js.map +1 -1
  10. package/dist/integrations/components/AuthMethodSelector.d.ts.map +1 -1
  11. package/dist/integrations/components/AuthMethodSelector.js +48 -40
  12. package/dist/integrations/components/AuthMethodSelector.js.map +1 -1
  13. package/dist/integrations/components/AuthMethodsEditor.d.ts.map +1 -1
  14. package/dist/integrations/components/AuthMethodsEditor.js +207 -190
  15. package/dist/integrations/components/AuthMethodsEditor.js.map +1 -1
  16. package/dist/integrations/components/ConnectionCard.d.ts.map +1 -1
  17. package/dist/integrations/components/ConnectionCard.js +102 -98
  18. package/dist/integrations/components/ConnectionCard.js.map +1 -1
  19. package/dist/integrations/components/ConnectionStatusBadge.d.ts.map +1 -1
  20. package/dist/integrations/components/ConnectionStatusBadge.js +9 -5
  21. package/dist/integrations/components/ConnectionStatusBadge.js.map +1 -1
  22. package/dist/integrations/components/CredentialStorageSelector.d.ts.map +1 -1
  23. package/dist/integrations/components/CredentialStorageSelector.js +124 -121
  24. package/dist/integrations/components/CredentialStorageSelector.js.map +1 -1
  25. package/dist/integrations/components/ProviderCard.d.ts.map +1 -1
  26. package/dist/integrations/components/ProviderCard.js +25 -65
  27. package/dist/integrations/components/ProviderCard.js.map +1 -1
  28. package/dist/integrations/components/SchemaForm.d.ts.map +1 -1
  29. package/dist/integrations/components/SchemaForm.js +116 -111
  30. package/dist/integrations/components/SchemaForm.js.map +1 -1
  31. package/dist/integrations/hooks/useFormatDate.d.ts +7 -0
  32. package/dist/integrations/hooks/useFormatDate.d.ts.map +1 -0
  33. package/dist/integrations/hooks/useFormatDate.js +17 -0
  34. package/dist/integrations/hooks/useFormatDate.js.map +1 -0
  35. package/dist/integrations/hooks/useFormatLastUsed.d.ts +9 -0
  36. package/dist/integrations/hooks/useFormatLastUsed.d.ts.map +1 -0
  37. package/dist/integrations/hooks/useFormatLastUsed.js +15 -0
  38. package/dist/integrations/hooks/useFormatLastUsed.js.map +1 -0
  39. package/dist/integrations/hooks/useLabel.d.ts +13 -0
  40. package/dist/integrations/hooks/useLabel.d.ts.map +1 -0
  41. package/dist/integrations/hooks/useLabel.js +20 -0
  42. package/dist/integrations/hooks/useLabel.js.map +1 -0
  43. package/dist/integrations/hooks/useTr.d.ts +17 -0
  44. package/dist/integrations/hooks/useTr.d.ts.map +1 -0
  45. package/dist/integrations/hooks/useTr.js +14 -0
  46. package/dist/integrations/hooks/useTr.js.map +1 -0
  47. package/dist/integrations/pages/AddConnectionWizard.d.ts.map +1 -1
  48. package/dist/integrations/pages/AddConnectionWizard.js +396 -387
  49. package/dist/integrations/pages/AddConnectionWizard.js.map +1 -1
  50. package/dist/integrations/pages/ConnectionDetail.d.ts.map +1 -1
  51. package/dist/integrations/pages/ConnectionDetail.js +128 -128
  52. package/dist/integrations/pages/ConnectionDetail.js.map +1 -1
  53. package/dist/integrations/pages/ConnectionLogs.d.ts.map +1 -1
  54. package/dist/integrations/pages/ConnectionLogs.js +210 -181
  55. package/dist/integrations/pages/ConnectionLogs.js.map +1 -1
  56. package/dist/integrations/pages/ConnectionsList.d.ts.map +1 -1
  57. package/dist/integrations/pages/ConnectionsList.js +136 -115
  58. package/dist/integrations/pages/ConnectionsList.js.map +1 -1
  59. package/dist/integrations/pages/IntegrationsOverview.d.ts.map +1 -1
  60. package/dist/integrations/pages/IntegrationsOverview.js +76 -77
  61. package/dist/integrations/pages/IntegrationsOverview.js.map +1 -1
  62. package/dist/integrations/pages/IntegrationsSettings.d.ts.map +1 -1
  63. package/dist/integrations/pages/IntegrationsSettings.js +59 -61
  64. package/dist/integrations/pages/IntegrationsSettings.js.map +1 -1
  65. package/dist/integrations/pages/IntegrationsUserLandingPage.d.ts.map +1 -1
  66. package/dist/integrations/pages/IntegrationsUserLandingPage.js +29 -28
  67. package/dist/integrations/pages/IntegrationsUserLandingPage.js.map +1 -1
  68. package/dist/integrations/pages/ProviderCatalog.d.ts.map +1 -1
  69. package/dist/integrations/pages/ProviderCatalog.js +99 -141
  70. package/dist/integrations/pages/ProviderCatalog.js.map +1 -1
  71. package/dist/integrations/pages/ProviderDetail.d.ts.map +1 -1
  72. package/dist/integrations/pages/ProviderDetail.js +208 -220
  73. package/dist/integrations/pages/ProviderDetail.js.map +1 -1
  74. package/dist/integrations/pages/ProviderEditorPage.d.ts.map +1 -1
  75. package/dist/integrations/pages/ProviderEditorPage.js +262 -261
  76. package/dist/integrations/pages/ProviderEditorPage.js.map +1 -1
  77. package/dist/integrations/translations/en.d.ts +745 -0
  78. package/dist/integrations/translations/en.d.ts.map +1 -0
  79. package/dist/integrations/utils/integrationsHelpers.js +2 -16
  80. package/dist/integrations/utils/integrationsHelpers.js.map +1 -1
  81. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"IntegrationsAdminRoot.d.ts","sourceRoot":"","sources":["../../src/integrations/IntegrationsAdminRoot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAKhC,OAAO,KAAK,EAAW,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAI9D;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,qBAAqB,EAAE,EAAE,CAAC,qBAAqB,CA6D3D,CAAC"}
1
+ {"version":3,"file":"IntegrationsAdminRoot.d.ts","sourceRoot":"","sources":["../../src/integrations/IntegrationsAdminRoot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAMhC,OAAO,KAAK,EAAW,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAI9D;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,qBAAqB,EAAE,EAAE,CAAC,qBAAqB,CA+D3D,CAAC"}
@@ -1,50 +1,59 @@
1
1
  import { IntegrationsProvider as e } from "./providers/IntegrationsProvider.js";
2
- import { joinPath as t } from "./utils/paths.js";
3
- import { IntegrationsAdminRoutes as n } from "./IntegrationsAdminRoutes.js";
4
- import { useEffect as r } from "react";
5
- import { ErrorBoundary as i } from "@burdenoff/fe-libs/shared/components";
6
- import { Settings as a, Store as o } from "lucide-react";
7
- import { jsx as s } from "react/jsx-runtime";
2
+ import { useTr as t } from "./hooks/useTr.js";
3
+ import { joinPath as n } from "./utils/paths.js";
4
+ import { IntegrationsAdminRoutes as r } from "./IntegrationsAdminRoutes.js";
5
+ import { useEffect as i } from "react";
6
+ import { ErrorBoundary as a } from "@burdenoff/fe-libs/shared/components";
7
+ import { Settings as o, Store as s } from "lucide-react";
8
+ import { jsx as c, jsxs as l } from "react/jsx-runtime";
8
9
  //#region src/integrations/IntegrationsAdminRoot.tsx
9
- var c = (c) => {
10
- let { registerNavItems: l, registerFooterItems: u, basePath: d = "/" } = c;
11
- return r(() => {
12
- if (l) return l([{
10
+ var u = (u) => {
11
+ let { registerNavItems: d, registerFooterItems: f, basePath: p = "/" } = u, m = t();
12
+ return i(() => {
13
+ if (d) return d([{
13
14
  id: "integrations-admin-providers",
14
- label: "Providers",
15
- path: t(d, "providers"),
16
- icon: /* @__PURE__ */ s(o, { size: 20 }),
15
+ label: m("integrations.nav.providers", "Providers"),
16
+ path: n(p, "providers"),
17
+ icon: /* @__PURE__ */ c(s, { size: 20 }),
17
18
  order: 5,
18
19
  group: "integrations"
19
20
  }, {
20
21
  id: "integrations-admin-settings",
21
- label: "Settings",
22
- path: t(d, "settings"),
23
- icon: /* @__PURE__ */ s(a, { size: 20 }),
22
+ label: m("integrations.nav.settings", "Settings"),
23
+ path: n(p, "settings"),
24
+ icon: /* @__PURE__ */ c(o, { size: 20 }),
24
25
  order: 10,
25
26
  group: "integrations"
26
27
  }]);
27
- }, [l, d]), r(() => {
28
- if (u) return u([{
28
+ }, [
29
+ d,
30
+ p,
31
+ m
32
+ ]), i(() => {
33
+ if (f) return f([{
29
34
  id: "integrations-admin-status",
30
- label: "Integrations Admin Ready",
35
+ label: m("integrations.nav.adminStatusReady", "Integrations Admin Ready"),
31
36
  type: "status",
32
37
  order: 10,
33
38
  section: "left"
34
39
  }]);
35
- }, [u]), /* @__PURE__ */ s(i, {
36
- fallback: /* @__PURE__ */ s("div", {
40
+ }, [f, m]), /* @__PURE__ */ c(a, {
41
+ fallback: /* @__PURE__ */ l("div", {
37
42
  className: "p-6 text-center text-text-secondary",
38
- children: "Something went wrong loading this module. Please refresh the page."
43
+ children: [
44
+ m("integrations.errorBoundary.title", "Something went wrong loading this module."),
45
+ " ",
46
+ m("integrations.errorBoundary.refresh", "Please refresh the page.")
47
+ ]
39
48
  }),
40
- children: /* @__PURE__ */ s(e, {
41
- ...c,
49
+ children: /* @__PURE__ */ c(e, {
50
+ ...u,
42
51
  adminMode: !0,
43
- children: /* @__PURE__ */ s(n, {})
52
+ children: /* @__PURE__ */ c(r, {})
44
53
  })
45
54
  });
46
55
  };
47
56
  //#endregion
48
- export { c as IntegrationsAdminRoot };
57
+ export { u as IntegrationsAdminRoot };
49
58
 
50
59
  //# 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 type { NavItem, IntegrationsRootProps } from './types';\nimport { IntegrationsAdminRoutes } from './IntegrationsAdminRoutes';\nimport { joinPath } from './utils/paths';\n\n/**\n * Admin root component for the Integrations microfrontend.\n *\n * This is the admin entry point that admin-app imports and renders.\n * It sets up providers and renders admin-only routing (settings,\n * future admin features).\n *\n * @example\n * ```tsx\n * import { IntegrationsAdminRoot } from '@burdenoff/micro-fe/integrations';\n *\n * <IntegrationsAdminRoot basePath=\"/integrations\" {...adminProps} />\n * ```\n */\nexport const IntegrationsAdminRoot: FC<IntegrationsRootProps> = (props) => {\n const { registerNavItems, registerFooterItems, basePath = '/' } = props;\n\n // Register admin navigation items\n useEffect(() => {\n if (!registerNavItems) return;\n\n const navItems: NavItem[] = [\n {\n id: 'integrations-admin-providers',\n label: 'Providers',\n path: joinPath(basePath, 'providers'),\n icon: <Store size={20} />,\n order: 5,\n group: 'integrations',\n },\n {\n id: 'integrations-admin-settings',\n label: 'Settings',\n path: joinPath(basePath, 'settings'),\n icon: <Settings size={20} />,\n order: 10,\n group: 'integrations',\n },\n ];\n\n const cleanup = registerNavItems(navItems);\n return cleanup;\n }, [registerNavItems, basePath]);\n\n // Register footer items\n useEffect(() => {\n if (!registerFooterItems) return;\n\n const footerItems = [\n {\n id: 'integrations-admin-status',\n label: 'Integrations Admin Ready',\n type: 'status' as const,\n order: 10,\n section: 'left' as const,\n },\n ];\n\n const cleanup = registerFooterItems(footerItems);\n return cleanup;\n }, [registerFooterItems]);\n\n return (\n <ErrorBoundary\n fallback={\n <div className=\"p-6 text-center text-text-secondary\">\n Something went wrong loading this module. Please refresh the page.\n </div>\n }\n >\n <IntegrationsProvider {...props} adminMode>\n <IntegrationsAdminRoutes />\n </IntegrationsProvider>\n </ErrorBoundary>\n );\n};\n"],"mappings":";;;;;;;;AAuBA,IAAa,KAAoD,MAAU;CACzE,IAAM,EAAE,qBAAkB,wBAAqB,cAAW,QAAQ;AA+ClE,QA5CA,QAAgB;AACT,QAsBL,QADgB,EAnBY,CAC1B;GACE,IAAI;GACJ,OAAO;GACP,MAAM,EAAS,GAAU,YAAY;GACrC,MAAM,kBAAC,GAAD,EAAO,MAAM,IAAM,CAAA;GACzB,OAAO;GACP,OAAO;GACR,EACD;GACE,IAAI;GACJ,OAAO;GACP,MAAM,EAAS,GAAU,WAAW;GACpC,MAAM,kBAAC,GAAD,EAAU,MAAM,IAAM,CAAA;GAC5B,OAAO;GACP,OAAO;GACR,CACF,CAEyC;IAEzC,CAAC,GAAkB,EAAS,CAAC,EAGhC,QAAgB;AACT,QAaL,QADgB,EAVI,CAClB;GACE,IAAI;GACJ,OAAO;GACP,MAAM;GACN,OAAO;GACP,SAAS;GACV,CACF,CAE+C;IAE/C,CAAC,EAAoB,CAAC,EAGvB,kBAAC,GAAD;EACE,UACE,kBAAC,OAAD;GAAK,WAAU;aAAsC;GAE/C,CAAA;YAGR,kBAAC,GAAD;GAAsB,GAAI;GAAO,WAAA;aAC/B,kBAAC,GAAD,EAA2B,CAAA;GACN,CAAA;EACT,CAAA"}
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,IAAa,KAAoD,MAAU;CACzE,IAAM,EAAE,qBAAkB,wBAAqB,cAAW,QAAQ,GAC5D,IAAK,GAAO;AA+ClB,QA5CA,QAAgB;AACT,QAsBL,QADgB,EAnBY,CAC1B;GACE,IAAI;GACJ,OAAO,EAAG,8BAA8B,YAAY;GACpD,MAAM,EAAS,GAAU,YAAY;GACrC,MAAM,kBAAC,GAAD,EAAO,MAAM,IAAM,CAAA;GACzB,OAAO;GACP,OAAO;GACR,EACD;GACE,IAAI;GACJ,OAAO,EAAG,6BAA6B,WAAW;GAClD,MAAM,EAAS,GAAU,WAAW;GACpC,MAAM,kBAAC,GAAD,EAAU,MAAM,IAAM,CAAA;GAC5B,OAAO;GACP,OAAO;GACR,CACF,CAEyC;IAEzC;EAAC;EAAkB;EAAU;EAAG,CAAC,EAGpC,QAAgB;AACT,QAaL,QADgB,EAVI,CAClB;GACE,IAAI;GACJ,OAAO,EAAG,qCAAqC,2BAA2B;GAC1E,MAAM;GACN,OAAO;GACP,SAAS;GACV,CACF,CAE+C;IAE/C,CAAC,GAAqB,EAAG,CAAC,EAG3B,kBAAC,GAAD;EACE,UACE,kBAAC,OAAD;GAAK,WAAU;aAAf;IACG,EAAG,oCAAoC,4CAA4C;IAAE;IACrF,EAAG,sCAAsC,2BAA2B;IACjE;;YAGR,kBAAC,GAAD;GAAsB,GAAI;GAAO,WAAA;aAC/B,kBAAC,GAAD,EAA2B,CAAA;GACN,CAAA;EACT,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"IntegrationsRoot.d.ts","sourceRoot":"","sources":["../../src/integrations/IntegrationsRoot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAMhC,OAAO,KAAK,EAAW,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAI9D;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CA0FtD,CAAC"}
1
+ {"version":3,"file":"IntegrationsRoot.d.ts","sourceRoot":"","sources":["../../src/integrations/IntegrationsRoot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAOhC,OAAO,KAAK,EAAW,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAI9D;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CA4FtD,CAAC"}
@@ -1,78 +1,87 @@
1
1
  import { IntegrationsProvider as e } from "./providers/IntegrationsProvider.js";
2
- import { IntegrationsUserRoutes as t } from "./IntegrationsUserRoutes.js";
3
- import { joinPath as n } from "./utils/paths.js";
4
- import { useEffect as r } from "react";
5
- import { ErrorBoundary as i } from "@burdenoff/fe-libs/shared/components";
6
- import { FileText as a, LayoutDashboard as o, Link2 as s, Plug as c, Store as l } from "lucide-react";
7
- import { jsx as u } from "react/jsx-runtime";
8
- import { FeatureFlagProvider as d } from "@burdenoff/fe-libs/shared/feature-flags";
2
+ import { useTr as t } from "./hooks/useTr.js";
3
+ import { IntegrationsUserRoutes as n } from "./IntegrationsUserRoutes.js";
4
+ import { joinPath as r } from "./utils/paths.js";
5
+ import { useEffect as i } from "react";
6
+ import { ErrorBoundary as a } from "@burdenoff/fe-libs/shared/components";
7
+ import { FileText as o, LayoutDashboard as s, Link2 as c, Plug as l, Store as u } from "lucide-react";
8
+ import { jsx as d, jsxs as f } from "react/jsx-runtime";
9
+ import { FeatureFlagProvider as p } from "@burdenoff/fe-libs/shared/feature-flags";
9
10
  //#region src/integrations/IntegrationsRoot.tsx
10
- var f = (f) => {
11
- let { registerNavItems: p, registerFooterItems: m, basePath: h = "/" } = f;
12
- return r(() => {
13
- if (p) return p({
11
+ var m = (m) => {
12
+ let { registerNavItems: h, registerFooterItems: g, basePath: _ = "/" } = m, v = t();
13
+ return i(() => {
14
+ if (h) return h({
14
15
  id: "integrations",
15
- label: "Integrations",
16
- path: h,
17
- icon: /* @__PURE__ */ u(c, { size: 20 }),
16
+ label: v("integrations.nav.integrations", "Integrations"),
17
+ path: _,
18
+ icon: /* @__PURE__ */ d(l, { size: 20 }),
18
19
  order: 10,
19
20
  group: "integrations",
20
21
  children: [
21
22
  {
22
23
  id: "integrations-overview",
23
- label: "Overview",
24
- path: h,
25
- icon: /* @__PURE__ */ u(o, { size: 16 }),
24
+ label: v("integrations.nav.overview", "Overview"),
25
+ path: _,
26
+ icon: /* @__PURE__ */ d(s, { size: 16 }),
26
27
  order: 10
27
28
  },
28
29
  {
29
30
  id: "integrations-providers",
30
- label: "Providers",
31
- path: n(h, "providers"),
32
- icon: /* @__PURE__ */ u(l, { size: 16 }),
31
+ label: v("integrations.nav.providers", "Providers"),
32
+ path: r(_, "providers"),
33
+ icon: /* @__PURE__ */ d(u, { size: 16 }),
33
34
  order: 20
34
35
  },
35
36
  {
36
37
  id: "integrations-connections",
37
- label: "Connections",
38
- path: n(h, "connections"),
39
- icon: /* @__PURE__ */ u(s, { size: 16 }),
38
+ label: v("integrations.nav.connections", "Connections"),
39
+ path: r(_, "connections"),
40
+ icon: /* @__PURE__ */ d(c, { size: 16 }),
40
41
  order: 30
41
42
  },
42
43
  {
43
44
  id: "integrations-logs",
44
- label: "Activity Logs",
45
- path: n(h, "logs"),
46
- icon: /* @__PURE__ */ u(a, { size: 16 }),
45
+ label: v("integrations.nav.activityLogs", "Activity Logs"),
46
+ path: r(_, "logs"),
47
+ icon: /* @__PURE__ */ d(o, { size: 16 }),
47
48
  order: 40
48
49
  }
49
50
  ]
50
51
  });
51
- }, [p, h]), r(() => {
52
- if (m) return m([{
52
+ }, [
53
+ h,
54
+ _,
55
+ v
56
+ ]), i(() => {
57
+ if (g) return g([{
53
58
  id: "integrations-status",
54
- label: "Integrations Ready",
59
+ label: v("integrations.nav.statusReady", "Integrations Ready"),
55
60
  type: "status",
56
61
  order: 10,
57
62
  section: "left"
58
63
  }]);
59
- }, [m]), /* @__PURE__ */ u(d, {
60
- workspaceId: f.workspaceId ?? null,
64
+ }, [g, v]), /* @__PURE__ */ d(p, {
65
+ workspaceId: m.workspaceId ?? null,
61
66
  gateway: "global",
62
67
  defaultEnabled: !1,
63
- children: /* @__PURE__ */ u(i, {
64
- fallback: /* @__PURE__ */ u("div", {
68
+ children: /* @__PURE__ */ d(a, {
69
+ fallback: /* @__PURE__ */ f("div", {
65
70
  className: "p-6 text-center text-text-secondary",
66
- children: "Something went wrong loading this module. Please refresh the page."
71
+ children: [
72
+ v("integrations.errorBoundary.title", "Something went wrong loading this module."),
73
+ " ",
74
+ v("integrations.errorBoundary.refresh", "Please refresh the page.")
75
+ ]
67
76
  }),
68
- children: /* @__PURE__ */ u(e, {
69
- ...f,
70
- children: /* @__PURE__ */ u(t, {})
77
+ children: /* @__PURE__ */ d(e, {
78
+ ...m,
79
+ children: /* @__PURE__ */ d(n, {})
71
80
  })
72
81
  })
73
82
  });
74
83
  };
75
84
  //#endregion
76
- export { f as IntegrationsRoot };
85
+ export { m as IntegrationsRoot };
77
86
 
78
87
  //# sourceMappingURL=IntegrationsRoot.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"IntegrationsRoot.js","names":[],"sources":["../../src/integrations/IntegrationsRoot.tsx"],"sourcesContent":["import type { FC } from 'react';\nimport { useEffect } from 'react';\nimport { ErrorBoundary } from '@burdenoff/fe-libs/shared/components';\nimport { Plug, LayoutDashboard, Store, Link2, FileText } from 'lucide-react';\nimport { IntegrationsProvider } from './providers/IntegrationsProvider';\nimport { FeatureFlagProvider } from '@burdenoff/fe-libs/shared/feature-flags';\nimport 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"}
1
+ {"version":3,"file":"IntegrationsRoot.js","names":[],"sources":["../../src/integrations/IntegrationsRoot.tsx"],"sourcesContent":["import type { FC } from 'react';\nimport { useEffect } from 'react';\nimport { ErrorBoundary } from '@burdenoff/fe-libs/shared/components';\nimport { Plug, LayoutDashboard, Store, Link2, FileText } from 'lucide-react';\nimport { IntegrationsProvider } from './providers/IntegrationsProvider';\nimport { FeatureFlagProvider } from '@burdenoff/fe-libs/shared/feature-flags';\nimport { useTr } from './hooks/useTr';\nimport type { NavItem, IntegrationsRootProps } from './types';\nimport { IntegrationsUserRoutes } from './IntegrationsUserRoutes';\nimport { joinPath } from './utils/paths';\n\n/**\n * Root component for the Integrations microfrontend.\n *\n * This is the main entry point that host applications import and render.\n * It sets up the necessary providers and renders the internal routing.\n * Automatically registers navigation items with the shell if registration functions are provided.\n *\n * @example\n * ```tsx\n * import { IntegrationsRoot, type IntegrationsRootProps } from '@burdenoff/micro-fe/integrations';\n *\n * function App() {\n * const props: IntegrationsRootProps = {\n * basePath: '/integrations',\n * navigate: (path) => router.push(path),\n * currentUser: { id: '1', email: 'user@example.com', firstName: 'John', lastName: 'Doe' },\n * workspaceId: 'ws-123',\n * apiGatewayUrl: 'https://api.example.com',\n * authToken: 'token',\n * onConnectionSelect: (conn) => console.log('Connection selected:', conn),\n * onProviderSelect: (provider) => console.log('Provider selected:', provider),\n * registerNavItems: (items) => { return () => {}; },\n * };\n *\n * return <IntegrationsRoot {...props} />;\n * }\n * ```\n */\nexport const IntegrationsRoot: FC<IntegrationsRootProps> = (props) => {\n const { registerNavItems, registerFooterItems, basePath = '/' } = props;\n const tr = useTr();\n\n // Register navigation items with the shell\n useEffect(() => {\n if (!registerNavItems) return;\n\n const integrationsNavItem: NavItem = {\n id: 'integrations',\n label: tr('integrations.nav.integrations', 'Integrations'),\n path: basePath,\n icon: <Plug size={20} />,\n order: 10,\n group: 'integrations',\n children: [\n {\n id: 'integrations-overview',\n label: tr('integrations.nav.overview', 'Overview'),\n path: basePath,\n icon: <LayoutDashboard size={16} />,\n order: 10,\n },\n {\n id: 'integrations-providers',\n label: tr('integrations.nav.providers', 'Providers'),\n path: joinPath(basePath, 'providers'),\n icon: <Store size={16} />,\n order: 20,\n },\n {\n id: 'integrations-connections',\n label: tr('integrations.nav.connections', 'Connections'),\n path: joinPath(basePath, 'connections'),\n icon: <Link2 size={16} />,\n order: 30,\n },\n {\n id: 'integrations-logs',\n label: tr('integrations.nav.activityLogs', 'Activity Logs'),\n path: joinPath(basePath, 'logs'),\n icon: <FileText size={16} />,\n order: 40,\n },\n ],\n };\n\n // Register and get cleanup function\n const cleanup = registerNavItems(integrationsNavItem);\n\n // Return cleanup function to unregister on unmount\n return cleanup;\n }, [registerNavItems, basePath, tr]);\n\n // Register footer items\n useEffect(() => {\n if (!registerFooterItems) return;\n\n const footerItems = [\n {\n id: 'integrations-status',\n label: tr('integrations.nav.statusReady', 'Integrations Ready'),\n type: 'status' as const,\n order: 10,\n section: 'left' as const,\n },\n ];\n\n const cleanup = registerFooterItems(footerItems);\n return cleanup;\n }, [registerFooterItems, tr]);\n\n return (\n <FeatureFlagProvider\n workspaceId={props.workspaceId ?? null}\n gateway=\"global\"\n defaultEnabled={false}\n >\n <ErrorBoundary\n fallback={\n <div className=\"p-6 text-center text-text-secondary\">\n {tr('integrations.errorBoundary.title', 'Something went wrong loading this module.')}{' '}\n {tr('integrations.errorBoundary.refresh', 'Please refresh the page.')}\n </div>\n }\n >\n <IntegrationsProvider {...props}>\n <IntegrationsUserRoutes />\n </IntegrationsProvider>\n </ErrorBoundary>\n </FeatureFlagProvider>\n );\n};\n"],"mappings":";;;;;;;;;;AAuCA,IAAa,KAA+C,MAAU;CACpE,IAAM,EAAE,qBAAkB,wBAAqB,cAAW,QAAQ,GAC5D,IAAK,GAAO;AAsElB,QAnEA,QAAgB;AACT,QA6CL,QAHgB,EAxCqB;GACnC,IAAI;GACJ,OAAO,EAAG,iCAAiC,eAAe;GAC1D,MAAM;GACN,MAAM,kBAAC,GAAD,EAAM,MAAM,IAAM,CAAA;GACxB,OAAO;GACP,OAAO;GACP,UAAU;IACR;KACE,IAAI;KACJ,OAAO,EAAG,6BAA6B,WAAW;KAClD,MAAM;KACN,MAAM,kBAAC,GAAD,EAAiB,MAAM,IAAM,CAAA;KACnC,OAAO;KACR;IACD;KACE,IAAI;KACJ,OAAO,EAAG,8BAA8B,YAAY;KACpD,MAAM,EAAS,GAAU,YAAY;KACrC,MAAM,kBAAC,GAAD,EAAO,MAAM,IAAM,CAAA;KACzB,OAAO;KACR;IACD;KACE,IAAI;KACJ,OAAO,EAAG,gCAAgC,cAAc;KACxD,MAAM,EAAS,GAAU,cAAc;KACvC,MAAM,kBAAC,GAAD,EAAO,MAAM,IAAM,CAAA;KACzB,OAAO;KACR;IACD;KACE,IAAI;KACJ,OAAO,EAAG,iCAAiC,gBAAgB;KAC3D,MAAM,EAAS,GAAU,OAAO;KAChC,MAAM,kBAAC,GAAD,EAAU,MAAM,IAAM,CAAA;KAC5B,OAAO;KACR;IACF;GACF,CAGoD;IAIpD;EAAC;EAAkB;EAAU;EAAG,CAAC,EAGpC,QAAgB;AACT,QAaL,QADgB,EAVI,CAClB;GACE,IAAI;GACJ,OAAO,EAAG,gCAAgC,qBAAqB;GAC/D,MAAM;GACN,OAAO;GACP,SAAS;GACV,CACF,CAE+C;IAE/C,CAAC,GAAqB,EAAG,CAAC,EAG3B,kBAAC,GAAD;EACE,aAAa,EAAM,eAAe;EAClC,SAAQ;EACR,gBAAgB;YAEhB,kBAAC,GAAD;GACE,UACE,kBAAC,OAAD;IAAK,WAAU;cAAf;KACG,EAAG,oCAAoC,4CAA4C;KAAE;KACrF,EAAG,sCAAsC,2BAA2B;KACjE;;aAGR,kBAAC,GAAD;IAAsB,GAAI;cACxB,kBAAC,GAAD,EAA0B,CAAA;IACL,CAAA;GACT,CAAA;EACI,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"AddConnectionDialog.d.ts","sourceRoot":"","sources":["../../../src/integrations/components/AddConnectionDialog.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAqDH,MAAM,WAAW,wBAAwB;IACvC,iCAAiC;IACjC,IAAI,EAAE,OAAO,CAAC;IACd,mCAAmC;IACnC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,4DAA4D;IAC5D,qBAAqB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC,yDAAyD;IACzD,mBAAmB,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;CACtD;AAmBD,wBAAgB,mBAAmB,CAAC,EAClC,IAAI,EACJ,OAAO,EACP,qBAAqB,EACrB,mBAAmB,GACpB,EAAE,wBAAwB,sCAw3B1B"}
1
+ {"version":3,"file":"AddConnectionDialog.d.ts","sourceRoot":"","sources":["../../../src/integrations/components/AddConnectionDialog.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAmDH,MAAM,WAAW,wBAAwB;IACvC,iCAAiC;IACjC,IAAI,EAAE,OAAO,CAAC;IACd,mCAAmC;IACnC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,4DAA4D;IAC5D,qBAAqB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC,yDAAyD;IACzD,mBAAmB,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;CACtD;AAmBD,wBAAgB,mBAAmB,CAAC,EAClC,IAAI,EACJ,OAAO,EACP,qBAAqB,EACrB,mBAAmB,GACpB,EAAE,wBAAwB,sCA4+B1B"}