@burdenoff/microfe-integrations 2026.930.1 → 2026.930.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.
Files changed (70) hide show
  1. package/dist/generated/wspace-operations.d.ts +0 -137
  2. package/dist/generated/wspace-operations.d.ts.map +1 -1
  3. package/dist/generated/wspace-operations.js +73 -142
  4. package/dist/generated/wspace-operations.js.map +1 -1
  5. package/dist/integrations/ConnectSourceDialog.js +10 -10
  6. package/dist/integrations/components/AddConnectionDialog.d.ts +15 -3
  7. package/dist/integrations/components/AddConnectionDialog.d.ts.map +1 -1
  8. package/dist/integrations/components/AddConnectionDialog.js +53 -631
  9. package/dist/integrations/components/AddConnectionDialog.js.map +1 -1
  10. package/dist/integrations/components/AuthMethodsEditor.d.ts.map +1 -1
  11. package/dist/integrations/components/AuthMethodsEditor.js +69 -68
  12. package/dist/integrations/components/AuthMethodsEditor.js.map +1 -1
  13. package/dist/integrations/components/ConnectionCard.js +28 -28
  14. package/dist/integrations/components/ConnectionCard.js.map +1 -1
  15. package/dist/integrations/components/ProviderCard.js +29 -29
  16. package/dist/integrations/components/ProviderCard.js.map +1 -1
  17. package/dist/integrations/hooks/useConnections.js +91 -102
  18. package/dist/integrations/hooks/useConnections.js.map +1 -1
  19. package/dist/integrations/hooks/useLogs.js +4 -4
  20. package/dist/integrations/hooks/useProviders.js +36 -36
  21. package/dist/integrations/pages/AddConnectionWizard.d.ts.map +1 -1
  22. package/dist/integrations/pages/AddConnectionWizard.js +281 -277
  23. package/dist/integrations/pages/AddConnectionWizard.js.map +1 -1
  24. package/dist/integrations/pages/ConnectionDetail.js +24 -24
  25. package/dist/integrations/pages/ConnectionDetail.js.map +1 -1
  26. package/dist/integrations/pages/ConnectionsList.js +7 -7
  27. package/dist/integrations/pages/ConnectionsList.js.map +1 -1
  28. package/dist/integrations/pages/IntegrationsOverview.js +34 -34
  29. package/dist/integrations/pages/ProviderCatalog.js +4 -4
  30. package/dist/integrations/pages/ProviderDetail.js +110 -110
  31. package/dist/integrations/pages/ProviderDetail.js.map +1 -1
  32. package/dist/integrations/translations/en.d.ts +18 -0
  33. package/dist/integrations/translations/en.d.ts.map +1 -1
  34. package/dist/integrations/utils/appearance.d.ts +0 -3
  35. package/dist/integrations/utils/appearance.d.ts.map +1 -1
  36. package/dist/integrations/utils/appearance.js +1 -20
  37. package/dist/integrations/utils/appearance.js.map +1 -1
  38. package/dist/integrations/utils/integrationsHelpers.js +1 -4
  39. package/dist/integrations/utils/integrationsHelpers.js.map +1 -1
  40. package/package.json +2 -2
  41. package/dist/integrations/assets/brands/bigconsole.js +0 -6
  42. package/dist/integrations/assets/brands/bigconsole.js.map +0 -1
  43. package/dist/integrations/assets/brands/burdenoff.js +0 -6
  44. package/dist/integrations/assets/brands/burdenoff.js.map +0 -1
  45. package/dist/integrations/components/AuthMethodSelector.d.ts +0 -30
  46. package/dist/integrations/components/AuthMethodSelector.d.ts.map +0 -1
  47. package/dist/integrations/components/AuthMethodSelector.js +0 -66
  48. package/dist/integrations/components/AuthMethodSelector.js.map +0 -1
  49. package/dist/integrations/components/CredentialStorageSelector.d.ts +0 -16
  50. package/dist/integrations/components/CredentialStorageSelector.d.ts.map +0 -1
  51. package/dist/integrations/components/CredentialStorageSelector.js +0 -262
  52. package/dist/integrations/components/CredentialStorageSelector.js.map +0 -1
  53. package/dist/integrations/components/ProviderIcon.d.ts +0 -25
  54. package/dist/integrations/components/ProviderIcon.d.ts.map +0 -1
  55. package/dist/integrations/components/ProviderIcon.js +0 -166
  56. package/dist/integrations/components/ProviderIcon.js.map +0 -1
  57. package/dist/integrations/components/SchemaForm.d.ts +0 -60
  58. package/dist/integrations/components/SchemaForm.d.ts.map +0 -1
  59. package/dist/integrations/components/SchemaForm.js +0 -235
  60. package/dist/integrations/components/SchemaForm.js.map +0 -1
  61. package/dist/integrations/hooks/useCredentialVaults.d.ts +0 -40
  62. package/dist/integrations/hooks/useCredentialVaults.d.ts.map +0 -1
  63. package/dist/integrations/hooks/useCredentialVaults.js +0 -98
  64. package/dist/integrations/hooks/useCredentialVaults.js.map +0 -1
  65. package/dist/integrations/utils/oauthPopup.d.ts +0 -16
  66. package/dist/integrations/utils/oauthPopup.d.ts.map +0 -1
  67. package/dist/integrations/utils/oauthPopup.js +0 -62
  68. package/dist/integrations/utils/oauthPopup.js.map +0 -1
  69. package/dist/node_modules/@iconify/react/dist/iconify.js +0 -1005
  70. package/dist/node_modules/@iconify/react/dist/iconify.js.map +0 -1
@@ -1,15 +1,15 @@
1
1
  import { IntegrationsProvider as e } from "./providers/IntegrationsProvider.js";
2
2
  import { useTr as t } from "./hooks/useTr.js";
3
- import { ConnectionModalFrame as n } from "./components/ConnectionModalFrame.js";
4
- import { AddConnectionDialog as r } from "./components/AddConnectionDialog.js";
3
+ import { AddConnectionDialog as n } from "./components/AddConnectionDialog.js";
4
+ import { ConnectionModalFrame as r } from "./components/ConnectionModalFrame.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
  //#region src/integrations/ConnectSourceDialog.tsx
9
9
  var c = "connect-source-error-title";
10
10
  function l({ onClose: e }) {
11
- let r = t();
12
- return /* @__PURE__ */ s(n, {
11
+ let n = t();
12
+ return /* @__PURE__ */ s(r, {
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: r("integrations.errorBoundary.title", "Something went wrong loading this module.")
22
+ children: n("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: r("integrations.errorBoundary.refresh", "Please refresh the page.")
26
+ children: n("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: r("integrations.common.close", "Close")
32
+ children: n("integrations.common.close", "Close")
33
33
  })
34
34
  ]
35
35
  });
36
36
  }
37
- var u = ({ open: n, onOpenChange: s, onConnectionCreated: c, ...u }) => {
37
+ var u = ({ open: r, onOpenChange: s, onConnectionCreated: c, ...u }) => {
38
38
  let d = t(), f = i(() => s(!1), [s]);
39
- return n ? /* @__PURE__ */ o(a, {
39
+ return r ? /* @__PURE__ */ o(a, {
40
40
  fallback: /* @__PURE__ */ o(l, { onClose: f }),
41
41
  children: /* @__PURE__ */ o(e, {
42
42
  ...u,
43
- children: /* @__PURE__ */ o(r, {
43
+ children: /* @__PURE__ */ o(n, {
44
44
  open: !0,
45
45
  onClose: f,
46
46
  presentation: "sheet",
@@ -1,4 +1,5 @@
1
- import { ConnectionModalPresentation } from './ConnectionModalFrame';
1
+ import { ReactNode } from 'react';
2
+ import { ConnectionDialogPresentation, CreatedConnection } from '@burdenoff/fe-libs/connections';
2
3
 
3
4
  export interface AddConnectionDialogProps {
4
5
  /** Whether the dialog is open */
@@ -7,15 +8,26 @@ export interface AddConnectionDialogProps {
7
8
  onClose: () => void;
8
9
  /** Pre-selected provider ID (skips provider picker step) */
9
10
  preselectedProviderId?: string | null;
11
+ /** Pre-selected provider key, for links that know a provider by key. */
12
+ preselectedProviderKey?: string | null;
10
13
  /** Callback when a connection is successfully created */
11
14
  onConnectionCreated?: (connectionId: string) => void;
12
15
  /**
13
16
  * `dialog` (default): a centred dialog from `sm`. `sheet`: a bottom sheet
14
17
  * below `md`, centred from `md` — what `ConnectSourceDialog` uses.
15
18
  */
16
- presentation?: ConnectionModalPresentation;
19
+ presentation?: ConnectionDialogPresentation;
17
20
  /** Heading while the provider picker shows. Defaults to "Add new credential". */
18
21
  pickerTitle?: string;
22
+ /**
23
+ * Settings stored on the new connection, e.g. the Botlit channel to return
24
+ * to once OAuth completes.
25
+ */
26
+ extraConfig?: Record<string, unknown>;
27
+ /** Replaces the success panel's button, e.g. "Link to bot channel". */
28
+ renderSuccessAction?: (connection: CreatedConnection) => ReactNode;
19
29
  }
20
- export declare function AddConnectionDialog({ open, onClose, preselectedProviderId, onConnectionCreated, presentation, pickerTitle, }: AddConnectionDialogProps): import("react").JSX.Element | null;
30
+ /** The OAuth callback the gateway serves; providers compare it exactly. */
31
+ export declare function oauthCallbackUrl(apiGatewayUrl: string | null | undefined): string;
32
+ export declare function AddConnectionDialog({ open, onClose, preselectedProviderId, preselectedProviderKey, onConnectionCreated, presentation, pickerTitle, extraConfig, renderSuccessAction, }: AddConnectionDialogProps): import("react").JSX.Element;
21
33
  //# sourceMappingURL=AddConnectionDialog.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AddConnectionDialog.d.ts","sourceRoot":"","sources":["../../../src/integrations/components/AddConnectionDialog.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AA+CH,OAAO,EAAwB,KAAK,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AAchG,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;IACrD;;;OAGG;IACH,YAAY,CAAC,EAAE,2BAA2B,CAAC;IAC3C,iFAAiF;IACjF,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAUD,wBAAgB,mBAAmB,CAAC,EAClC,IAAI,EACJ,OAAO,EACP,qBAAqB,EACrB,mBAAmB,EACnB,YAAuB,EACvB,WAAW,GACZ,EAAE,wBAAwB,sCA8jC1B"}
1
+ {"version":3,"file":"AddConnectionDialog.d.ts","sourceRoot":"","sources":["../../../src/integrations/components/AddConnectionDialog.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,EAAe,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEpD,OAAO,EAGL,KAAK,4BAA4B,EACjC,KAAK,iBAAiB,EACvB,MAAM,gCAAgC,CAAC;AAQxC,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,wEAAwE;IACxE,sBAAsB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvC,yDAAyD;IACzD,mBAAmB,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IACrD;;;OAGG;IACH,YAAY,CAAC,EAAE,4BAA4B,CAAC;IAC5C,iFAAiF;IACjF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACtC,uEAAuE;IACvE,mBAAmB,CAAC,EAAE,CAAC,UAAU,EAAE,iBAAiB,KAAK,SAAS,CAAC;CACpE;AAED,2EAA2E;AAC3E,wBAAgB,gBAAgB,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,CAIjF;AAED,wBAAgB,mBAAmB,CAAC,EAClC,IAAI,EACJ,OAAO,EACP,qBAAqB,EACrB,sBAAsB,EACtB,mBAAmB,EACnB,YAAuB,EACvB,WAAW,EACX,WAAW,EACX,mBAAmB,GACpB,EAAE,wBAAwB,+BAoE1B"}