@burdenoff/fe-libs 2026.1113.5 → 2026.1113.7

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 (60) hide show
  1. package/dist/button/Button.d.ts +1 -1
  2. package/dist/chrome/DynamicFooter.js +14 -14
  3. package/dist/chrome/HeaderBar.js +4 -4
  4. package/dist/connections/ConnectionDialog.d.ts +13 -1
  5. package/dist/connections/ConnectionDialog.js +13 -11
  6. package/dist/connections/ConnectionDialogPanel.d.ts +5 -1
  7. package/dist/connections/ConnectionDialogPanel.js +230 -150
  8. package/dist/connections/ConnectionFormTab.d.ts +15 -0
  9. package/dist/connections/ConnectionFormTab.js +192 -189
  10. package/dist/connections/CredentialStorageSelector.d.ts +9 -0
  11. package/dist/connections/CredentialStorageSelector.js +145 -137
  12. package/dist/connections/OneScreenConnectionForm.d.ts +22 -0
  13. package/dist/connections/OneScreenConnectionForm.js +231 -0
  14. package/dist/connections/ProviderPickerPanel.d.ts +6 -0
  15. package/dist/connections/ProviderPickerPanel.js +98 -45
  16. package/dist/connections/api.d.ts +3 -0
  17. package/dist/connections/api.js +4 -2
  18. package/dist/connections/connectionFlow.d.ts +18 -0
  19. package/dist/connections/connectionFlow.js +3 -3
  20. package/dist/connections/index.d.ts +4 -3
  21. package/dist/connections/picker.d.ts +18 -0
  22. package/dist/connections/picker.js +35 -6
  23. package/dist/connections/scopes.d.ts +8 -0
  24. package/dist/connections/scopes.js +9 -1
  25. package/dist/connections/storage.d.ts +9 -1
  26. package/dist/connections/storage.js +13 -1
  27. package/dist/connections/types.d.ts +16 -0
  28. package/dist/connections/useConnectionSubmit.d.ts +38 -2
  29. package/dist/connections/useConnectionSubmit.js +115 -71
  30. package/dist/connections.js +11 -10
  31. package/dist/credentials/SchemaForm.d.ts +7 -1
  32. package/dist/credentials/SchemaForm.js +64 -64
  33. package/dist/credentials/index.d.ts +2 -2
  34. package/dist/credentials/schema.d.ts +11 -1
  35. package/dist/credentials/schema.js +13 -5
  36. package/dist/credentials/types.d.ts +9 -0
  37. package/dist/credentials.js +5 -5
  38. package/dist/shared/components/ContextConversationWidget.js +4 -4
  39. package/dist/shared/graphql/fetch.js +29 -29
  40. package/dist/shared/pages/LegalPage.js +13 -13
  41. package/dist/shared/providers/shell/ProfileI18nBridge.js +14 -14
  42. package/dist/shared/providers/shell/ProfileStorageManager.d.ts +9 -0
  43. package/dist/shared/providers/shell/ProfileStorageManager.js +83 -64
  44. package/dist/shared-hooks.js +6 -6
  45. package/dist/shared.js +44 -44
  46. package/dist/ui/access-gate.d.ts +22 -0
  47. package/dist/ui/access-gate.js +26 -0
  48. package/dist/ui/badge.d.ts +1 -1
  49. package/dist/ui/button.d.ts +1 -1
  50. package/dist/ui/index.d.ts +4 -0
  51. package/dist/ui/optional-fields.d.ts +13 -1
  52. package/dist/ui/optional-fields.js +76 -20
  53. package/dist/ui/page-tabs.d.ts +42 -0
  54. package/dist/ui/page-tabs.js +172 -0
  55. package/dist/ui/show-technical-details.d.ts +17 -0
  56. package/dist/ui/show-technical-details.js +73 -0
  57. package/dist/ui/use-remembered-open.d.ts +8 -0
  58. package/dist/ui/use-remembered-open.js +36 -0
  59. package/dist/ui.js +52 -48
  60. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
2
  import * as React from 'react';
3
3
  declare const buttonVariants: (props?: ({
4
- variant?: "link" | "default" | "destructive" | "secondary" | "outline" | "ghost" | null | undefined;
4
+ variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
5
5
  size?: "icon" | "default" | "sm" | "lg" | null | undefined;
6
6
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
7
  export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
@@ -1,5 +1,5 @@
1
- import { useGatewayClient as e } from "../shared/graphql/GatewayContext.js";
2
- import { DEFAULT_FOOTER_COLUMNS as t, DEFAULT_SOCIAL_LINKS as n, Footer as r } from "./Footer.js";
1
+ import { DEFAULT_FOOTER_COLUMNS as e, DEFAULT_SOCIAL_LINKS as t, Footer as n } from "./Footer.js";
2
+ import { useGatewayClient as r } from "../shared/graphql/GatewayContext.js";
3
3
  import { BrandMark as i } from "./BrandMark.js";
4
4
  import { useActiveContext as a } from "../shared/providers/shell/ActiveContextProvider.js";
5
5
  import "../shared-graphql.js";
@@ -7,17 +7,17 @@ import { useI18n as o } from "../shared/providers/shell/I18nProvider.js";
7
7
  import { useEffect as s, useMemo as c, useState as l } from "react";
8
8
  import { Github as u, Globe as d, Linkedin as f, MessageCircle as p, Twitter as m, Youtube as h } from "lucide-react";
9
9
  import { jsx as g } from "react/jsx-runtime";
10
- import { gql as _ } from "@apollo/client/core";
11
- import { Link as v } from "react-router";
10
+ import { Link as _ } from "react-router";
11
+ import { gql as v } from "@apollo/client/core";
12
12
  // src/chrome/DynamicFooter.tsx
13
- var y = _`
13
+ var y = v`
14
14
  query GetFooterPublicProduct($slug: String!) {
15
15
  publicProduct(slug: $slug) {
16
16
  id
17
17
  socialLinks
18
18
  }
19
19
  }
20
- `, b = _`
20
+ `, b = v`
21
21
  query GetFooterPublicContentPages($productId: String!, $limit: Int) {
22
22
  publicContentPages(productId: $productId, limit: $limit) {
23
23
  items {
@@ -60,8 +60,8 @@ var y = _`
60
60
  function w(e) {
61
61
  return e.trim().replace(/[^A-Za-z0-9 ]/g, "").split(/\s+/).map((e, t) => t === 0 ? e.toLowerCase() : e.charAt(0).toUpperCase() + e.slice(1).toLowerCase()).join("");
62
62
  }
63
- function T({ productSlug: u, productName: f, tagline: p, version: m = "v1.0.0", copyright: h, columns: _, socialLinks: T, legalPageOrder: E = C, deferRemoteData: D = !1, hideOnInstalledApp: O = !0 }) {
64
- let { workspaceId: k, projectId: A } = a(), j = e("global"), { t: M } = o(), [N, P] = l(null), [F, I] = l(null);
63
+ function T({ productSlug: u, productName: f, tagline: p, version: m = "v1.0.0", copyright: h, columns: v, socialLinks: T, legalPageOrder: E = C, deferRemoteData: D = !1, hideOnInstalledApp: O = !0 }) {
64
+ let { workspaceId: k, projectId: A } = a(), j = r("global"), { t: M } = o(), [N, P] = l(null), [F, I] = l(null);
65
65
  s(() => {
66
66
  if (!j || D) return;
67
67
  let e = !1;
@@ -115,10 +115,10 @@ function T({ productSlug: u, productName: f, tagline: p, version: m = "v1.0.0",
115
115
  u
116
116
  ]);
117
117
  let L = c(() => {
118
- let e = _ ?? t, n = N ? e.map((e) => e.title === "Legal" ? {
118
+ let t = v ?? e, n = N ? t.map((e) => e.title === "Legal" ? {
119
119
  ...e,
120
120
  links: N
121
- } : e) : e, r = (e, t) => {
121
+ } : e) : t, r = (e, t) => {
122
122
  let n = M(e);
123
123
  return n === e ? t : n;
124
124
  };
@@ -132,15 +132,15 @@ function T({ productSlug: u, productName: f, tagline: p, version: m = "v1.0.0",
132
132
  }));
133
133
  }, [
134
134
  N,
135
- _,
135
+ v,
136
136
  M
137
137
  ]);
138
- return /* @__PURE__ */ g(r, {
138
+ return /* @__PURE__ */ g(n, {
139
139
  logo: /* @__PURE__ */ g(i, { size: "sidenav" }),
140
140
  productName: f,
141
141
  tagline: p,
142
142
  columns: L,
143
- socialLinks: T ?? F ?? n,
143
+ socialLinks: T ?? F ?? t,
144
144
  version: m,
145
145
  copyright: h,
146
146
  hideOnInstalledApp: O,
@@ -154,7 +154,7 @@ function T({ productSlug: u, productName: f, tagline: p, version: m = "v1.0.0",
154
154
  rel: "noopener noreferrer",
155
155
  className: r,
156
156
  children: n
157
- }) : /* @__PURE__ */ g(v, {
157
+ }) : /* @__PURE__ */ g(_, {
158
158
  to: e,
159
159
  className: r,
160
160
  children: n
@@ -1,5 +1,5 @@
1
- import { isInstalledApp as e } from "../shared/native/platform.js";
2
- import { HeaderThemeSwitcher as t } from "./HeaderThemeSwitcher.js";
1
+ import { HeaderThemeSwitcher as e } from "./HeaderThemeSwitcher.js";
2
+ import { isInstalledApp as t } from "../shared/native/platform.js";
3
3
  import "../shared-native.js";
4
4
  import { useShellLabel as n } from "../shared/providers/shell/useShellLabel.js";
5
5
  import { jsx as r, jsxs as i } from "react/jsx-runtime";
@@ -48,7 +48,7 @@ var a = ({ logo: a, appName: o, onLogoClick: s, onMenuToggle: c, onSearchClick:
48
48
  className: "flex items-center gap-1 md:gap-control-gap",
49
49
  children: [
50
50
  b,
51
- x && !e() && /* @__PURE__ */ r("div", {
51
+ x && !t() && /* @__PURE__ */ r("div", {
52
52
  className: E ? "hidden md:block empty:hidden" : "empty:hidden",
53
53
  children: x
54
54
  }),
@@ -118,7 +118,7 @@ var a = ({ logo: a, appName: o, onLogoClick: s, onMenuToggle: c, onSearchClick:
118
118
  })
119
119
  }), f > 0 && /* @__PURE__ */ r("span", { className: "absolute top-1 end-1 size-2 bg-status-error-bg rounded-full border border-bg-elevated" })]
120
120
  }) : null),
121
- g && /* @__PURE__ */ r(t, { mobileOptimized: E }),
121
+ g && /* @__PURE__ */ r(e, { mobileOptimized: E }),
122
122
  w
123
123
  ]
124
124
  })]
@@ -3,7 +3,7 @@ import { ApolloClient } from '@apollo/client';
3
3
  import { Translator } from '../credentials/translate';
4
4
  import { ConnectionsApi } from './api';
5
5
  import { ConnectionDialogPresentation } from './frame';
6
- import { ConnectionDialogEvent, ConnectionVisibility, CreatedConnection } from './types';
6
+ import { ConnectionDialogEvent, ConnectionReconnectTarget, ConnectionVisibility, CreatedConnection } from './types';
7
7
  export interface ConnectionDialogProps {
8
8
  open: boolean;
9
9
  onClose: () => void;
@@ -56,6 +56,18 @@ export interface ConnectionDialogProps {
56
56
  presentation?: ConnectionDialogPresentation;
57
57
  /** Heading while the provider picker shows. Defaults to "Add new credential". */
58
58
  pickerTitle?: string;
59
+ /**
60
+ * Navigation v2's one-screen form (BOFF-11875), opted into by FluidGrids:
61
+ * popular apps first in the picker, the required fields and one button at
62
+ * level 1, everything else under one "More options", no tab rail. Off (the
63
+ * default), the dialog is exactly the classic tabbed form.
64
+ */
65
+ navigationV2?: boolean;
66
+ /**
67
+ * Sign in again on this existing connection (Reconnect) instead of creating
68
+ * one. The record keeps its id, name and storage.
69
+ */
70
+ reconnect?: ConnectionReconnectTarget | null;
59
71
  /** Test seam: supply the service directly instead of via `client`. */
60
72
  api?: ConnectionsApi;
61
73
  }
@@ -29,12 +29,12 @@ var v = ({ onClose: e, translate: t }) => /* @__PURE__ */ g(m, { children: [
29
29
  className: "rounded-md border border-border-subtle px-4 py-2 text-sm font-medium transition-colors hover:bg-accent",
30
30
  children: t("integrations.common.close", "Close")
31
31
  })
32
- ] }), y = ({ open: i, onClose: p, client: m, callbackUrl: y, translate: b = e, providerId: x, providerKey: S, providerSource: C = "installed", requireVault: w = !0, canCreate: T = !0, canCreateVault: E = !1, defaultName: D, extraConfig: O, showSharingTab: k = !1, defaultVisibility: A, refetchQueriesOnCreate: j, onConnectionCreated: M, onError: N, onEvent: P, renderSuccessAction: F, presentation: I = "dialog", pickerTitle: L, api: R }) => {
33
- let z = j?.join("|") ?? "", B = d(() => R ?? n(m, { refetchQueriesOnCreate: z ? z.split("|") : void 0 }), [
34
- R,
32
+ ] }), y = ({ open: i, onClose: p, client: m, callbackUrl: y, translate: b = e, providerId: x, providerKey: S, providerSource: C = "installed", requireVault: w = !0, canCreate: T = !0, canCreateVault: E = !1, defaultName: D, extraConfig: O, showSharingTab: k = !1, defaultVisibility: A, refetchQueriesOnCreate: j, onConnectionCreated: M, onError: N, onEvent: P, renderSuccessAction: F, presentation: I = "dialog", pickerTitle: L, navigationV2: R = !1, reconnect: z = null, api: B }) => {
33
+ let V = j?.join("|") ?? "", H = d(() => B ?? n(m, { refetchQueriesOnCreate: V ? V.split("|") : void 0 }), [
34
+ B,
35
35
  m,
36
- z
37
- ]), V = f(null), H = f(null), U = f(null);
36
+ V
37
+ ]), U = f(null), W = f(null), G = f(null);
38
38
  return /* @__PURE__ */ h(_.Root, {
39
39
  open: i,
40
40
  onOpenChange: (e) => !e && p(),
@@ -43,7 +43,7 @@ var v = ({ onClose: e, translate: t }) => /* @__PURE__ */ g(m, { children: [
43
43
  style: { zIndex: c },
44
44
  className: "fixed inset-0 bg-bg-overlay animate-in fade-in-0 duration-200"
45
45
  }), /* @__PURE__ */ h(_.Content, {
46
- ref: H,
46
+ ref: W,
47
47
  "aria-modal": "true",
48
48
  "aria-labelledby": T ? u : o,
49
49
  "data-testid": "add-connection-dialog",
@@ -51,15 +51,15 @@ var v = ({ onClose: e, translate: t }) => /* @__PURE__ */ g(m, { children: [
51
51
  style: { zIndex: s },
52
52
  className: t(l, a[I][T ? "form" : "notice"]),
53
53
  onOpenAutoFocus: (e) => {
54
- V.current = document.activeElement instanceof HTMLElement ? document.activeElement : null, e.preventDefault(), (U.current ?? H.current)?.focus({ preventScroll: !0 });
54
+ U.current = document.activeElement instanceof HTMLElement ? document.activeElement : null, e.preventDefault(), (G.current ?? W.current)?.focus({ preventScroll: !0 });
55
55
  },
56
56
  onCloseAutoFocus: (e) => {
57
57
  e.preventDefault();
58
- let t = V.current;
58
+ let t = U.current;
59
59
  t && t.isConnected && t !== document.body && t.focus({ preventScroll: !0 });
60
60
  },
61
61
  children: T ? /* @__PURE__ */ h(r, {
62
- api: B,
62
+ api: H,
63
63
  onClose: p,
64
64
  callbackUrl: y,
65
65
  translate: b,
@@ -73,11 +73,13 @@ var v = ({ onClose: e, translate: t }) => /* @__PURE__ */ g(m, { children: [
73
73
  showSharingTab: k,
74
74
  defaultVisibility: A,
75
75
  pickerTitle: L,
76
- searchInputRef: U,
76
+ searchInputRef: G,
77
77
  onConnectionCreated: M,
78
78
  onError: N,
79
79
  onEvent: P,
80
- renderSuccessAction: F
80
+ renderSuccessAction: F,
81
+ navigationV2: R,
82
+ reconnect: z
81
83
  }) : /* @__PURE__ */ h(v, {
82
84
  onClose: p,
83
85
  translate: b
@@ -1,7 +1,7 @@
1
1
  import { FC, ReactNode, RefObject } from 'react';
2
2
  import { Translator } from '../credentials/translate';
3
3
  import { ConnectionsApi } from './api';
4
- import { ConnectionDialogEvent, CreatedConnection, ConnectionVisibility } from './types';
4
+ import { ConnectionDialogEvent, CreatedConnection, ConnectionReconnectTarget, ConnectionVisibility } from './types';
5
5
  export interface ConnectionDialogPanelProps {
6
6
  api: ConnectionsApi;
7
7
  onClose: () => void;
@@ -23,5 +23,9 @@ export interface ConnectionDialogPanelProps {
23
23
  onError?: (error: Error) => void;
24
24
  onEvent?: (event: ConnectionDialogEvent) => void;
25
25
  renderSuccessAction?: (connection: CreatedConnection) => ReactNode;
26
+ /** Navigation v2's one-screen form (BOFF-11875). Off: the classic tabbed form. */
27
+ navigationV2?: boolean;
28
+ /** Sign in again on this existing connection instead of creating one. */
29
+ reconnect?: ConnectionReconnectTarget | null;
26
30
  }
27
31
  export declare const ConnectionDialogPanel: FC<ConnectionDialogPanelProps>;