@burdenoff/fe-libs 2026.527.2 → 2026.527.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 (78) hide show
  1. package/dist/button/Button.js +18 -16
  2. package/dist/chrome/AccountSwitcher.js +10 -7
  3. package/dist/chrome/AutoBreadcrumbs.js +2 -0
  4. package/dist/chrome/Breadcrumbs.js +2 -0
  5. package/dist/chrome/CommandPalette.js +5 -3
  6. package/dist/chrome/ContextSwitcher.js +12 -11
  7. package/dist/chrome/DynamicFooter.js +7 -7
  8. package/dist/chrome/Footer.js +5 -5
  9. package/dist/chrome/GeographySwitcher.js +3 -3
  10. package/dist/chrome/GlobalSearch.js +18 -9
  11. package/dist/chrome/HeaderBar.js +6 -1
  12. package/dist/chrome/LanguagePickerSheet.js +1 -1
  13. package/dist/chrome/LanguageSwitcher.js +2 -2
  14. package/dist/chrome/NotificationCenter.js +19 -10
  15. package/dist/chrome/PanelTabs.js +7 -4
  16. package/dist/chrome/PluginContextMenuTarget.js +1 -1
  17. package/dist/chrome/ProductPickerSheet.js +4 -4
  18. package/dist/chrome/ProductSideNav.js +1 -1
  19. package/dist/chrome/ProductSwitcher.js +3 -3
  20. package/dist/chrome/ProfileSwitcher.js +13 -8
  21. package/dist/chrome/ShortcutHelpDialog.js +2 -1
  22. package/dist/chrome/SideNavigation.js +7 -3
  23. package/dist/chrome/Sidebar.js +1 -0
  24. package/dist/form/Checkbox.js +17 -15
  25. package/dist/form/FormDescription.js +9 -10
  26. package/dist/form/FormField.js +11 -12
  27. package/dist/form/FormLabel.js +13 -13
  28. package/dist/form/FormMessage.js +10 -11
  29. package/dist/form/Input.js +11 -10
  30. package/dist/form/Radio.js +25 -21
  31. package/dist/form/Select.js +81 -66
  32. package/dist/form/Textarea.js +10 -9
  33. package/dist/shared/components/AccessDenied.js +8 -4
  34. package/dist/shared/components/AppErrorBoundary.js +2 -0
  35. package/dist/shared/components/ContextConversationWidget.js +15 -15
  36. package/dist/shared/components/ErrorFallback.js +3 -0
  37. package/dist/shared/components/PWAInstallBanner.js +8 -4
  38. package/dist/shared/components/RequireAuth.js +4 -4
  39. package/dist/shared/components/SSORedirectGuard.js +1 -1
  40. package/dist/shared/feature-flags/FeatureFlagProvider.js +21 -21
  41. package/dist/shared/geography/GeographyProvider.js +20 -20
  42. package/dist/shared/graphql/GatewayContext.js +1 -1
  43. package/dist/shared/motion/MotionList.js +1 -1
  44. package/dist/shared/pages/AiPage.js +3 -3
  45. package/dist/shared/pages/SearchPage.js +38 -33
  46. package/dist/shared/plugins/PluginRuntimeProvider.js +1 -1
  47. package/dist/shared/providers/shell/ActiveContextProvider.js +12 -12
  48. package/dist/shared/providers/shell/AppShellContext.js +1 -1
  49. package/dist/shared/providers/shell/AuthProvider.js +17 -17
  50. package/dist/shared/providers/shell/AuthTokenProvider.js +6 -6
  51. package/dist/shared/providers/shell/ContextManagerProvider.js +1 -1
  52. package/dist/shared/providers/shell/FeatureFlagsProvider.js +5 -5
  53. package/dist/shared/providers/shell/GlobalUiProvider.js +17 -17
  54. package/dist/shared/providers/shell/I18nProvider.js +15 -15
  55. package/dist/shared/providers/shell/PageConversationContextProvider.js +14 -14
  56. package/dist/shared/providers/shell/PermissionProvider.js +16 -16
  57. package/dist/shared/providers/shell/ShellUiProvider.js +13 -13
  58. package/dist/shared/providers/shell/ThemeProvider.js +9 -9
  59. package/dist/shared/tours/TourPlayer.js +1 -0
  60. package/dist/shared/tours/TourPlayerProvider.js +1 -1
  61. package/dist/shared/tours/TourTooltip.js +3 -0
  62. package/dist/shared/tours/TourTrigger.js +12 -9
  63. package/dist/shared/tours/ToursContext.js +11 -11
  64. package/dist/shared-events.js +3 -3
  65. package/dist/shared-hooks.js +1 -1
  66. package/dist/storage/SaveToFilesButton.js +3 -3
  67. package/dist/storage/SaveToFilesDialog.js +1 -1
  68. package/dist/tag/TagBadge.js +1 -1
  69. package/dist/tag/TagsWidget.js +6 -6
  70. package/dist/ui/card.js +44 -39
  71. package/dist/ui/dropdown-menu.js +82 -66
  72. package/dist/ui/input.js +10 -10
  73. package/dist/ui/label.js +13 -11
  74. package/dist/ui/select.js +80 -66
  75. package/dist/ui/table.js +61 -54
  76. package/dist/ui/textarea.js +9 -9
  77. package/dist/ui/tooltip.js +13 -11
  78. package/package.json +1 -1
@@ -1,11 +1,11 @@
1
1
  import { graphqlFetch as e } from "../graphql/fetch.js";
2
- import { createContext as t, useCallback as n, useContext as r, useEffect as i, useMemo as a, useRef as o, useState as s } from "react";
2
+ import { createContext as t, use as n, useCallback as r, useEffect as i, useMemo as a, useRef as o, useState as s } from "react";
3
3
  import { jsx as c } from "react/jsx-runtime";
4
4
  //#region src/shared/feature-flags/FeatureFlagProvider.tsx
5
5
  var l = "\n query EvaluateFeatureFlags($input: EvaluateFeatureFlagsInput!) {\n evaluateFeatureFlags(input: $input) {\n evaluations {\n key\n value\n variant\n reason\n flagType\n errorCode\n }\n }\n }\n", u = t(null);
6
- function d({ children: t, workspaceId: r, gateway: d = "global", flagKeys: f, refreshInterval: p = 300 * 1e3, staleTime: m = 300 * 1e3, debug: h = !1, defaultEnabled: g = !0 }) {
7
- let [_, v] = s(/* @__PURE__ */ new Map()), [y, b] = s(!1), [x, S] = s(null), C = o(0), w = o(null), T = n(async (t = !1) => {
8
- if (!r) {
6
+ function d({ children: t, workspaceId: n, gateway: d = "global", flagKeys: f, refreshInterval: p = 300 * 1e3, staleTime: m = 300 * 1e3, debug: h = !1, defaultEnabled: g = !0 }) {
7
+ let [_, v] = s(/* @__PURE__ */ new Map()), [y, b] = s(!1), [x, S] = s(null), C = o(0), w = o(null), T = r(async (t = !1) => {
8
+ if (!n) {
9
9
  h && console.log("[FeatureFlagProvider] No workspaceId, skipping fetch"), v(/* @__PURE__ */ new Map()), S(null);
10
10
  return;
11
11
  }
@@ -14,21 +14,21 @@ function d({ children: t, workspaceId: r, gateway: d = "global", flagKeys: f, re
14
14
  return;
15
15
  }
16
16
  w.current && w.current.abort();
17
- let n = new AbortController();
18
- w.current = n, b(!0);
17
+ let r = new AbortController();
18
+ w.current = r, b(!0);
19
19
  try {
20
- h && console.log("[FeatureFlagProvider] Fetching flags for workspace:", r);
20
+ h && console.log("[FeatureFlagProvider] Fetching flags for workspace:", n);
21
21
  let t = await e({
22
22
  gateway: d,
23
23
  query: l,
24
24
  variables: { input: {
25
- workspaceId: r,
25
+ workspaceId: n,
26
26
  ...f && f.length > 0 ? { keys: f } : {}
27
27
  } },
28
28
  operationName: "EvaluateFeatureFlags",
29
- signal: n.signal
29
+ signal: r.signal
30
30
  });
31
- if (n.signal.aborted) return;
31
+ if (r.signal.aborted) return;
32
32
  if (t.errors?.length) {
33
33
  let e = t.errors[0].message;
34
34
  throw h && console.error("[FeatureFlagProvider] GraphQL errors:", t.errors), Error(e);
@@ -41,10 +41,10 @@ function d({ children: t, workspaceId: r, gateway: d = "global", flagKeys: f, re
41
41
  let t = e instanceof Error ? e : Error(String(e));
42
42
  S(t), h && console.error("[FeatureFlagProvider] Fetch error:", t);
43
43
  } finally {
44
- n.signal.aborted || b(!1);
44
+ r.signal.aborted || b(!1);
45
45
  }
46
46
  }, [
47
- r,
47
+ n,
48
48
  d,
49
49
  f,
50
50
  m,
@@ -53,27 +53,27 @@ function d({ children: t, workspaceId: r, gateway: d = "global", flagKeys: f, re
53
53
  i(() => (C.current = 0, T(!0), () => {
54
54
  w.current && w.current.abort();
55
55
  }), [T]), i(() => {
56
- if (!p || p <= 0 || !r) return;
56
+ if (!p || p <= 0 || !n) return;
57
57
  let e = setInterval(() => {
58
58
  T(!0);
59
59
  }, p);
60
60
  return () => clearInterval(e);
61
61
  }, [
62
62
  p,
63
- r,
63
+ n,
64
64
  T
65
65
  ]);
66
- let E = n((e) => {
66
+ let E = r((e) => {
67
67
  let t = _.get(e);
68
68
  return t ? (t.flagType, !!t.value) : g;
69
- }, [_, g]), D = n((e, t) => {
69
+ }, [_, g]), D = r((e, t) => {
70
70
  let n = _.get(e);
71
71
  return n ? n.value : t;
72
- }, [_]), O = n((e) => _.get(e), [_]), k = n(() => {
72
+ }, [_]), O = r((e) => _.get(e), [_]), k = r(() => {
73
73
  let e = {};
74
74
  for (let [t, n] of _) e[t] = n.value;
75
75
  return e;
76
- }, [_]), A = n(async () => {
76
+ }, [_]), A = r(async () => {
77
77
  h && console.log("[FeatureFlagProvider] Manual refresh requested"), await T(!0);
78
78
  }, [T, h]), j = a(() => ({
79
79
  evaluations: _,
@@ -84,7 +84,7 @@ function d({ children: t, workspaceId: r, gateway: d = "global", flagKeys: f, re
84
84
  getEvaluation: O,
85
85
  getAllFlags: k,
86
86
  refreshFlags: A,
87
- workspaceId: r
87
+ workspaceId: n
88
88
  }), [
89
89
  _,
90
90
  y,
@@ -94,7 +94,7 @@ function d({ children: t, workspaceId: r, gateway: d = "global", flagKeys: f, re
94
94
  O,
95
95
  k,
96
96
  A,
97
- r
97
+ n
98
98
  ]);
99
99
  return /* @__PURE__ */ c(u.Provider, {
100
100
  value: j,
@@ -102,7 +102,7 @@ function d({ children: t, workspaceId: r, gateway: d = "global", flagKeys: f, re
102
102
  });
103
103
  }
104
104
  function f() {
105
- let e = r(u);
105
+ let e = n(u);
106
106
  if (!e) throw Error("useFeatureFlags must be used within a FeatureFlagProvider");
107
107
  return e;
108
108
  }
@@ -1,10 +1,10 @@
1
1
  import { TIMEZONE_TO_COUNTRY as e, getCountryByCode as t } from "./countries.js";
2
- import { createContext as n, useCallback as r, useContext as i, useEffect as a, useMemo as o, useState as s } from "react";
2
+ import { createContext as n, use as r, useCallback as i, useEffect as a, useMemo as o, useState as s } from "react";
3
3
  import { jsx as c } from "react/jsx-runtime";
4
4
  //#region src/shared/geography/GeographyProvider.tsx
5
5
  var l = n(null);
6
6
  function u() {
7
- let e = i(l);
7
+ let e = r(l);
8
8
  if (!e) throw Error("useGeography must be used within a GeographyProvider");
9
9
  return e;
10
10
  }
@@ -57,8 +57,8 @@ async function h() {
57
57
  } catch {}
58
58
  return null;
59
59
  }
60
- function g({ children: e, profileId: n, defaultCountry: i = "US", enableAutoDetect: u = !0, onGeographyChange: d }) {
61
- let [f, g] = s(null), [_, v] = s(null), [y, b] = s("USD"), [x, S] = s("UTC"), [C, w] = s(!0), [T, E] = s(!1), D = r((e, n) => {
60
+ function g({ children: e, profileId: n, defaultCountry: r = "US", enableAutoDetect: u = !0, onGeographyChange: d }) {
61
+ let [f, g] = s(null), [_, v] = s(null), [y, b] = s("USD"), [x, S] = s("UTC"), [C, w] = s(!0), [T, E] = s(!1), D = i((e, n) => {
62
62
  let r = t(e);
63
63
  if (!r) return null;
64
64
  let i = n?.currency ?? r.currency, a = n?.timezone ?? r.timezone;
@@ -70,14 +70,14 @@ function g({ children: e, profileId: n, defaultCountry: i = "US", enableAutoDete
70
70
  }, []);
71
71
  a(() => {
72
72
  let e = !1;
73
- async function r() {
73
+ async function i() {
74
74
  w(!0);
75
- let r = p(n);
76
- if (r && t(r.country)) {
75
+ let i = p(n);
76
+ if (i && t(i.country)) {
77
77
  if (e) return;
78
- D(r.country, {
79
- currency: r.currency,
80
- timezone: r.timezone
78
+ D(i.country, {
79
+ currency: i.currency,
80
+ timezone: i.timezone
81
81
  }), E(!1), w(!1);
82
82
  return;
83
83
  }
@@ -91,19 +91,19 @@ function g({ children: e, profileId: n, defaultCountry: i = "US", enableAutoDete
91
91
  }
92
92
  } catch {}
93
93
  if (e) return;
94
- let a = D(i);
94
+ let a = D(r);
95
95
  E(!1), a && m(n, a), w(!1);
96
96
  }
97
- return r(), () => {
97
+ return i(), () => {
98
98
  e = !0;
99
99
  };
100
100
  }, [
101
101
  n,
102
102
  u,
103
- i,
103
+ r,
104
104
  D
105
105
  ]);
106
- let O = r((e) => {
106
+ let O = i((e) => {
107
107
  let r = t(e);
108
108
  if (!r) return;
109
109
  g(r), v(r.code), b(r.currency), S(r.timezone), E(!1);
@@ -113,10 +113,10 @@ function g({ children: e, profileId: n, defaultCountry: i = "US", enableAutoDete
113
113
  timezone: r.timezone
114
114
  };
115
115
  m(n, i), d?.(i);
116
- }, [n, d]), k = r((e) => {
116
+ }, [n, d]), k = i((e) => {
117
117
  b(e);
118
118
  let t = {
119
- country: _ ?? i,
119
+ country: _ ?? r,
120
120
  currency: e,
121
121
  timezone: x
122
122
  };
@@ -125,12 +125,12 @@ function g({ children: e, profileId: n, defaultCountry: i = "US", enableAutoDete
125
125
  n,
126
126
  _,
127
127
  x,
128
- i,
128
+ r,
129
129
  d
130
- ]), A = r((e) => {
130
+ ]), A = i((e) => {
131
131
  S(e);
132
132
  let t = {
133
- country: _ ?? i,
133
+ country: _ ?? r,
134
134
  currency: y,
135
135
  timezone: e
136
136
  };
@@ -139,7 +139,7 @@ function g({ children: e, profileId: n, defaultCountry: i = "US", enableAutoDete
139
139
  n,
140
140
  _,
141
141
  y,
142
- i,
142
+ r,
143
143
  d
144
144
  ]), j = o(() => ({
145
145
  country: f,
@@ -1,4 +1,4 @@
1
- import { createContext as e, useContext as t } from "react";
1
+ import { createContext as e, use as t } from "react";
2
2
  import { jsx as n } from "react/jsx-runtime";
3
3
  //#region src/shared/graphql/GatewayContext.tsx
4
4
  var r = e(null);
@@ -1,6 +1,6 @@
1
1
  import { useHasAnimated as e } from "../hooks/useHasAnimated.js";
2
2
  import { DURATION as t, staggerContainer as n } from "./variants.js";
3
- import { createContext as r, useContext as i } from "react";
3
+ import { createContext as r, use as i } from "react";
4
4
  import { jsx as a } from "react/jsx-runtime";
5
5
  import { motion as o, useReducedMotion as s } from "framer-motion";
6
6
  //#region src/shared/motion/MotionList.tsx
@@ -29,7 +29,7 @@ function s({ productName: t, productId: n }) {
29
29
  className: "flex justify-center",
30
30
  children: /* @__PURE__ */ i("div", {
31
31
  className: "rounded-2xl bg-action-primary-bg/10 p-4",
32
- children: /* @__PURE__ */ i(e, { className: "h-12 w-12 text-action-primary-bg" })
32
+ children: /* @__PURE__ */ i(e, { className: "size-12 text-action-primary-bg" })
33
33
  })
34
34
  }),
35
35
  /* @__PURE__ */ a("div", {
@@ -51,7 +51,7 @@ function s({ productName: t, productId: n }) {
51
51
  children: o.map((e) => /* @__PURE__ */ a("div", {
52
52
  className: "rounded-xl border border-border bg-card p-5 text-left space-y-2",
53
53
  children: [
54
- /* @__PURE__ */ i(e.icon, { className: "h-5 w-5 text-action-primary-bg" }),
54
+ /* @__PURE__ */ i(e.icon, { className: "size-5 text-action-primary-bg" }),
55
55
  /* @__PURE__ */ i("h3", {
56
56
  className: "text-sm font-semibold text-foreground",
57
57
  children: e.title
@@ -67,7 +67,7 @@ function s({ productName: t, productId: n }) {
67
67
  className: "flex justify-center pt-2",
68
68
  children: /* @__PURE__ */ a("span", {
69
69
  className: "inline-flex items-center gap-1.5 rounded-full bg-amber-500/10 px-3 py-1 text-xs font-medium text-amber-600 dark:text-amber-400",
70
- children: [/* @__PURE__ */ i("span", { className: "h-1.5 w-1.5 rounded-full bg-amber-500 animate-pulse" }), "Coming Soon"]
70
+ children: [/* @__PURE__ */ i("span", { className: "size-1.5 rounded-full bg-amber-500 animate-pulse" }), "Coming Soon"]
71
71
  })
72
72
  })
73
73
  ]
@@ -372,7 +372,7 @@ function be({ entityTypeOptions: s = he, entityTypeIcons: te = fe, productOption
372
372
  children: /* @__PURE__ */ b("div", {
373
373
  className: "relative",
374
374
  children: [
375
- /* @__PURE__ */ y(p, { className: "absolute left-4 top-1/2 -translate-y-1/2 h-5 w-5 text-text-tertiary" }),
375
+ /* @__PURE__ */ y(p, { className: "absolute left-4 top-1/2 -translate-y-1/2 size-5 text-text-tertiary" }),
376
376
  /* @__PURE__ */ y("input", {
377
377
  type: "text",
378
378
  value: xt,
@@ -387,7 +387,7 @@ function be({ entityTypeOptions: s = he, entityTypeIcons: te = fe, productOption
387
387
  St(""), Re("");
388
388
  },
389
389
  className: "absolute right-4 top-1/2 -translate-y-1/2 p-1 rounded hover:bg-bg-muted transition-colors",
390
- children: /* @__PURE__ */ y(v, { className: "h-4 w-4 text-text-tertiary" })
390
+ children: /* @__PURE__ */ y(v, { className: "size-4 text-text-tertiary" })
391
391
  })
392
392
  ]
393
393
  })
@@ -402,6 +402,7 @@ function be({ entityTypeOptions: s = he, entityTypeIcons: te = fe, productOption
402
402
  "FULLTEXT",
403
403
  "EXACT"
404
404
  ].map((e) => /* @__PURE__ */ y("button", {
405
+ type: "button",
405
406
  onClick: () => {
406
407
  ze(e), G(1);
407
408
  },
@@ -412,7 +413,7 @@ function be({ entityTypeOptions: s = he, entityTypeIcons: te = fe, productOption
412
413
  }),
413
414
  /* @__PURE__ */ b("div", {
414
415
  className: "flex items-center gap-2",
415
- children: [/* @__PURE__ */ y(ee, { className: "h-4 w-4 text-text-tertiary" }), /* @__PURE__ */ y("select", {
416
+ children: [/* @__PURE__ */ y(ee, { className: "size-4 text-text-tertiary" }), /* @__PURE__ */ y("select", {
416
417
  value: O,
417
418
  onChange: (e) => {
418
419
  Be(e.target.value), G(1);
@@ -428,16 +429,17 @@ function be({ entityTypeOptions: s = he, entityTypeIcons: te = fe, productOption
428
429
  onClick: () => bt(!J),
429
430
  className: `flex items-center gap-2 px-3 py-2 text-sm rounded-md border transition-colors ${J || Q > 0 ? "border-primary-default bg-primary-default/10 text-primary-default" : "border-border-default bg-bg-surface text-text-secondary hover:bg-bg-muted"}`,
430
431
  children: [
431
- /* @__PURE__ */ y(le, { className: "h-4 w-4" }),
432
+ /* @__PURE__ */ y(le, { className: "size-4" }),
432
433
  "Filters",
433
434
  Q > 0 && /* @__PURE__ */ y("span", {
434
435
  className: "ml-1 px-1.5 py-0.5 text-xs font-medium bg-primary-default text-primary-foreground rounded-full",
435
436
  children: Q
436
437
  }),
437
- y(J ? ae : ne, { className: "h-4 w-4" })
438
+ y(J ? ae : ne, { className: "size-4" })
438
439
  ]
439
440
  }),
440
441
  Q > 0 && /* @__PURE__ */ y("button", {
442
+ type: "button",
441
443
  onClick: Mt,
442
444
  className: "text-sm text-text-secondary hover:text-text-primary underline",
443
445
  children: "Clear all filters"
@@ -460,7 +462,7 @@ function be({ entityTypeOptions: s = he, entityTypeIcons: te = fe, productOption
460
462
  type: "checkbox",
461
463
  checked: k.includes(e.value),
462
464
  onChange: () => Dt(e.value),
463
- className: "h-4 w-4 rounded border-border-default text-primary-default focus:ring-primary-default"
465
+ className: "size-4 rounded border-border-default text-primary-default focus:ring-primary-default"
464
466
  }), /* @__PURE__ */ y("span", {
465
467
  className: "text-sm text-text-secondary",
466
468
  children: e.label
@@ -478,7 +480,7 @@ function be({ entityTypeOptions: s = he, entityTypeIcons: te = fe, productOption
478
480
  type: "checkbox",
479
481
  checked: A.includes(e.value),
480
482
  onChange: () => Ot(e.value),
481
- className: "h-4 w-4 rounded border-border-default text-primary-default focus:ring-primary-default"
483
+ className: "size-4 rounded border-border-default text-primary-default focus:ring-primary-default"
482
484
  }), /* @__PURE__ */ y("span", {
483
485
  className: "text-sm text-text-secondary",
484
486
  children: e.label
@@ -500,7 +502,7 @@ function be({ entityTypeOptions: s = he, entityTypeIcons: te = fe, productOption
500
502
  type: "checkbox",
501
503
  checked: j.includes(e.value),
502
504
  onChange: () => It(e.value),
503
- className: "h-4 w-4 rounded border-border-default text-primary-default focus:ring-primary-default"
505
+ className: "size-4 rounded border-border-default text-primary-default focus:ring-primary-default"
504
506
  }), /* @__PURE__ */ y("span", {
505
507
  className: "text-sm text-text-secondary",
506
508
  children: e.label
@@ -688,7 +690,7 @@ function be({ entityTypeOptions: s = he, entityTypeIcons: te = fe, productOption
688
690
  onChange: (e) => {
689
691
  ot(e.target.checked), G(1);
690
692
  },
691
- className: "h-4 w-4 rounded border-border-default text-primary-default focus:ring-primary-default"
693
+ className: "size-4 rounded border-border-default text-primary-default focus:ring-primary-default"
692
694
  }), "Match all"]
693
695
  }), /* @__PURE__ */ b("label", {
694
696
  className: "flex items-center gap-2 text-sm text-text-secondary cursor-pointer",
@@ -698,7 +700,7 @@ function be({ entityTypeOptions: s = he, entityTypeIcons: te = fe, productOption
698
700
  onChange: (e) => {
699
701
  ct(e.target.checked), G(1);
700
702
  },
701
- className: "h-4 w-4 rounded border-border-default text-primary-default focus:ring-primary-default"
703
+ className: "size-4 rounded border-border-default text-primary-default focus:ring-primary-default"
702
704
  }), "Include descendants"]
703
705
  })]
704
706
  }),
@@ -729,7 +731,7 @@ function be({ entityTypeOptions: s = he, entityTypeIcons: te = fe, productOption
729
731
  type: "button",
730
732
  onClick: kt,
731
733
  className: "inline-flex items-center gap-1 text-xs text-primary-default hover:text-primary-default/80",
732
- children: [/* @__PURE__ */ y(ce, { className: "h-3.5 w-3.5" }), "Add condition"]
734
+ children: [/* @__PURE__ */ y(ce, { className: "size-3.5" }), "Add condition"]
733
735
  })]
734
736
  }), /* @__PURE__ */ y("div", {
735
737
  className: "space-y-3",
@@ -782,9 +784,9 @@ function be({ entityTypeOptions: s = he, entityTypeIcons: te = fe, productOption
782
784
  /* @__PURE__ */ y("button", {
783
785
  type: "button",
784
786
  onClick: () => jt(t),
785
- className: "inline-flex items-center justify-center h-9 w-9 rounded-md border border-border-default text-text-secondary hover:bg-bg-muted",
787
+ className: "inline-flex items-center justify-center size-9 rounded-md border border-border-default text-text-secondary hover:bg-bg-muted",
786
788
  "aria-label": `Remove metadata condition ${t + 1}`,
787
- children: /* @__PURE__ */ y(v, { className: "h-4 w-4" })
789
+ children: /* @__PURE__ */ y(v, { className: "size-4" })
788
790
  })
789
791
  ]
790
792
  }, `metadata-condition-${t}`))
@@ -818,7 +820,7 @@ function be({ entityTypeOptions: s = he, entityTypeIcons: te = fe, productOption
818
820
  type: "button",
819
821
  onClick: () => Dt(e),
820
822
  className: "hover:bg-primary-default/20 rounded-full p-0.5",
821
- children: /* @__PURE__ */ y(v, { className: "h-3 w-3" })
823
+ children: /* @__PURE__ */ y(v, { className: "size-3" })
822
824
  })]
823
825
  }, `include-${e}`)),
824
826
  A.map((e) => /* @__PURE__ */ b("span", {
@@ -830,7 +832,7 @@ function be({ entityTypeOptions: s = he, entityTypeIcons: te = fe, productOption
830
832
  type: "button",
831
833
  onClick: () => Ot(e),
832
834
  className: "hover:bg-bg-canvas rounded-full p-0.5",
833
- children: /* @__PURE__ */ y(v, { className: "h-3 w-3" })
835
+ children: /* @__PURE__ */ y(v, { className: "size-3" })
834
836
  })
835
837
  ]
836
838
  }, `exclude-chip-${e}`)),
@@ -843,7 +845,7 @@ function be({ entityTypeOptions: s = he, entityTypeIcons: te = fe, productOption
843
845
  type: "button",
844
846
  onClick: () => It(e),
845
847
  className: "hover:bg-primary-default/20 rounded-full p-0.5",
846
- children: /* @__PURE__ */ y(v, { className: "h-3 w-3" })
848
+ children: /* @__PURE__ */ y(v, { className: "size-3" })
847
849
  })
848
850
  ]
849
851
  }, e)),
@@ -856,7 +858,7 @@ function be({ entityTypeOptions: s = he, entityTypeIcons: te = fe, productOption
856
858
  type: "button",
857
859
  onClick: () => N(""),
858
860
  className: "hover:bg-primary-default/20 rounded-full p-0.5",
859
- children: /* @__PURE__ */ y(v, { className: "h-3 w-3" })
861
+ children: /* @__PURE__ */ y(v, { className: "size-3" })
860
862
  })
861
863
  ]
862
864
  }),
@@ -869,7 +871,7 @@ function be({ entityTypeOptions: s = he, entityTypeIcons: te = fe, productOption
869
871
  type: "button",
870
872
  onClick: () => F(""),
871
873
  className: "hover:bg-primary-default/20 rounded-full p-0.5",
872
- children: /* @__PURE__ */ y(v, { className: "h-3 w-3" })
874
+ children: /* @__PURE__ */ y(v, { className: "size-3" })
873
875
  })
874
876
  ]
875
877
  }),
@@ -882,7 +884,7 @@ function be({ entityTypeOptions: s = he, entityTypeIcons: te = fe, productOption
882
884
  type: "button",
883
885
  onClick: () => We(""),
884
886
  className: "hover:bg-primary-default/20 rounded-full p-0.5",
885
- children: /* @__PURE__ */ y(v, { className: "h-3 w-3" })
887
+ children: /* @__PURE__ */ y(v, { className: "size-3" })
886
888
  })
887
889
  ]
888
890
  }),
@@ -899,7 +901,7 @@ function be({ entityTypeOptions: s = he, entityTypeIcons: te = fe, productOption
899
901
  Ge(""), Ke("");
900
902
  },
901
903
  className: "hover:bg-primary-default/20 rounded-full p-0.5",
902
- children: /* @__PURE__ */ y(v, { className: "h-3 w-3" })
904
+ children: /* @__PURE__ */ y(v, { className: "size-3" })
903
905
  })
904
906
  ]
905
907
  }),
@@ -916,7 +918,7 @@ function be({ entityTypeOptions: s = he, entityTypeIcons: te = fe, productOption
916
918
  qe(""), Je("");
917
919
  },
918
920
  className: "hover:bg-primary-default/20 rounded-full p-0.5",
919
- children: /* @__PURE__ */ y(v, { className: "h-3 w-3" })
921
+ children: /* @__PURE__ */ y(v, { className: "size-3" })
920
922
  })
921
923
  ]
922
924
  }),
@@ -928,7 +930,7 @@ function be({ entityTypeOptions: s = he, entityTypeIcons: te = fe, productOption
928
930
  Qe(""), et(""), nt(""), it(""), ot(!1), ct(!0), lt("");
929
931
  },
930
932
  className: "hover:bg-primary-default/20 rounded-full p-0.5",
931
- children: /* @__PURE__ */ y(v, { className: "h-3 w-3" })
933
+ children: /* @__PURE__ */ y(v, { className: "size-3" })
932
934
  })]
933
935
  }),
934
936
  X.length > 0 && /* @__PURE__ */ b("span", {
@@ -941,7 +943,7 @@ function be({ entityTypeOptions: s = he, entityTypeIcons: te = fe, productOption
941
943
  type: "button",
942
944
  onClick: () => U([]),
943
945
  className: "hover:bg-primary-default/20 rounded-full p-0.5",
944
- children: /* @__PURE__ */ y(v, { className: "h-3 w-3" })
946
+ children: /* @__PURE__ */ y(v, { className: "size-3" })
945
947
  })
946
948
  ]
947
949
  }),
@@ -955,7 +957,7 @@ function be({ entityTypeOptions: s = he, entityTypeIcons: te = fe, productOption
955
957
  type: "button",
956
958
  onClick: () => Xe(""),
957
959
  className: "hover:bg-bg-canvas rounded-full p-0.5",
958
- children: /* @__PURE__ */ y(v, { className: "h-3 w-3" })
960
+ children: /* @__PURE__ */ y(v, { className: "size-3" })
959
961
  })
960
962
  ]
961
963
  }),
@@ -976,7 +978,7 @@ function be({ entityTypeOptions: s = he, entityTypeIcons: te = fe, productOption
976
978
  className: "text-sm text-text-secondary",
977
979
  children: w ? /* @__PURE__ */ b("span", {
978
980
  className: "flex items-center gap-2",
979
- children: [/* @__PURE__ */ y(se, { className: "h-4 w-4 animate-spin" }), "Searching..."]
981
+ children: [/* @__PURE__ */ y(se, { className: "size-4 animate-spin" }), "Searching..."]
980
982
  }) : yt ? /* @__PURE__ */ y("span", {
981
983
  className: "text-danger-default",
982
984
  children: yt
@@ -1008,7 +1010,7 @@ function be({ entityTypeOptions: s = he, entityTypeIcons: te = fe, productOption
1008
1010
  className: "p-4 bg-bg-surface rounded-lg border border-border-default animate-pulse",
1009
1011
  children: /* @__PURE__ */ b("div", {
1010
1012
  className: "flex items-start gap-3",
1011
- children: [/* @__PURE__ */ y("div", { className: "w-10 h-10 rounded-md bg-bg-muted" }), /* @__PURE__ */ b("div", {
1013
+ children: [/* @__PURE__ */ y("div", { className: "size-10 rounded-md bg-bg-muted" }), /* @__PURE__ */ b("div", {
1012
1014
  className: "flex-1",
1013
1015
  children: [/* @__PURE__ */ y("div", { className: "h-5 w-1/3 bg-bg-muted rounded mb-2" }), /* @__PURE__ */ y("div", { className: "h-4 w-2/3 bg-bg-muted rounded" })]
1014
1016
  })]
@@ -1017,7 +1019,7 @@ function be({ entityTypeOptions: s = he, entityTypeIcons: te = fe, productOption
1017
1019
  !w && !yt && K.length === 0 && E && /* @__PURE__ */ b("div", {
1018
1020
  className: "py-12 text-center",
1019
1021
  children: [
1020
- /* @__PURE__ */ y(p, { className: "h-12 w-12 mx-auto text-text-tertiary mb-4" }),
1022
+ /* @__PURE__ */ y(p, { className: "size-12 mx-auto text-text-tertiary mb-4" }),
1021
1023
  /* @__PURE__ */ y("h3", {
1022
1024
  className: "text-lg font-medium text-text-primary mb-2",
1023
1025
  children: "No results found"
@@ -1047,7 +1049,7 @@ function be({ entityTypeOptions: s = he, entityTypeIcons: te = fe, productOption
1047
1049
  !w && !E && /* @__PURE__ */ b("div", {
1048
1050
  className: "py-12 text-center",
1049
1051
  children: [
1050
- /* @__PURE__ */ y(p, { className: "h-12 w-12 mx-auto text-text-tertiary mb-4" }),
1052
+ /* @__PURE__ */ y(p, { className: "size-12 mx-auto text-text-tertiary mb-4" }),
1051
1053
  /* @__PURE__ */ y("h3", {
1052
1054
  className: "text-lg font-medium text-text-primary mb-2",
1053
1055
  children: "Start searching"
@@ -1059,13 +1061,14 @@ function be({ entityTypeOptions: s = he, entityTypeIcons: te = fe, productOption
1059
1061
  ]
1060
1062
  }),
1061
1063
  K.map((e) => /* @__PURE__ */ y("button", {
1064
+ type: "button",
1062
1065
  onClick: () => Nt(e),
1063
1066
  className: "w-full p-4 bg-bg-surface rounded-lg border border-border-default hover:border-primary-default hover:shadow-sm transition-all text-left group",
1064
1067
  children: /* @__PURE__ */ b("div", {
1065
1068
  className: "flex items-start gap-3",
1066
1069
  children: [/* @__PURE__ */ y("div", {
1067
- className: "flex-shrink-0 w-10 h-10 rounded-md bg-bg-muted flex items-center justify-center group-hover:bg-primary-default/10 transition-colors",
1068
- children: /* @__PURE__ */ y(Pt(e.entityType || e.category), { className: "h-5 w-5 text-text-tertiary group-hover:text-primary-default" })
1070
+ className: "flex-shrink-0 size-10 rounded-md bg-bg-muted flex items-center justify-center group-hover:bg-primary-default/10 transition-colors",
1071
+ children: /* @__PURE__ */ y(Pt(e.entityType || e.category), { className: "size-5 text-text-tertiary group-hover:text-primary-default" })
1069
1072
  }), /* @__PURE__ */ b("div", {
1070
1073
  className: "flex-1 min-w-0",
1071
1074
  children: [
@@ -1097,7 +1100,7 @@ function be({ entityTypeOptions: s = he, entityTypeIcons: te = fe, productOption
1097
1100
  children: ["Score: ", e.score.toFixed(2)]
1098
1101
  }), e.metadata?.createdAt && /* @__PURE__ */ b("span", {
1099
1102
  className: "flex items-center gap-1",
1100
- children: [/* @__PURE__ */ y(oe, { className: "h-3 w-3" }), new Date(String(e.metadata.createdAt)).toLocaleDateString()]
1103
+ children: [/* @__PURE__ */ y(oe, { className: "size-3" }), new Date(String(e.metadata.createdAt)).toLocaleDateString()]
1101
1104
  })]
1102
1105
  })
1103
1106
  ]
@@ -1110,10 +1113,11 @@ function be({ entityTypeOptions: s = he, entityTypeIcons: te = fe, productOption
1110
1113
  className: "flex items-center justify-center gap-2 mt-8",
1111
1114
  children: [
1112
1115
  /* @__PURE__ */ b("button", {
1116
+ type: "button",
1113
1117
  onClick: () => G((e) => Math.max(1, e - 1)),
1114
1118
  disabled: W === 1,
1115
1119
  className: "flex items-center gap-1 px-3 py-2 text-sm rounded-md border border-border-default bg-bg-surface text-text-secondary hover:bg-bg-muted disabled:opacity-50 disabled:cursor-not-allowed",
1116
- children: [/* @__PURE__ */ y(re, { className: "h-4 w-4" }), "Previous"]
1120
+ children: [/* @__PURE__ */ y(re, { className: "size-4" }), "Previous"]
1117
1121
  }),
1118
1122
  /* @__PURE__ */ y("div", {
1119
1123
  className: "flex items-center gap-1",
@@ -1127,10 +1131,11 @@ function be({ entityTypeOptions: s = he, entityTypeIcons: te = fe, productOption
1127
1131
  })
1128
1132
  }),
1129
1133
  /* @__PURE__ */ b("button", {
1134
+ type: "button",
1130
1135
  onClick: () => G((e) => Math.min($, e + 1)),
1131
1136
  disabled: W === $ || !pt,
1132
1137
  className: "flex items-center gap-1 px-3 py-2 text-sm rounded-md border border-border-default bg-bg-surface text-text-secondary hover:bg-bg-muted disabled:opacity-50 disabled:cursor-not-allowed",
1133
- children: ["Next", /* @__PURE__ */ y(ie, { className: "h-4 w-4" })]
1138
+ children: ["Next", /* @__PURE__ */ y(ie, { className: "size-4" })]
1134
1139
  })
1135
1140
  ]
1136
1141
  })
@@ -9,7 +9,7 @@ import { useSettingsRegistryStore as s } from "./registries/useSettingsRegistry.
9
9
  import { useWidgetRegistryStore as c } from "./registries/useWidgetRegistry.js";
10
10
  import { useToolbarRegistryStore as l } from "./registries/useToolbarRegistry.js";
11
11
  import { useContextMenuRegistryStore as u } from "./registries/useContextMenuRegistry.js";
12
- import { createContext as d, useContext as f, useEffect as p, useLayoutEffect as m, useMemo as h, useRef as g } from "react";
12
+ import { createContext as d, use as f, useEffect as p, useLayoutEffect as m, useMemo as h, useRef as g } from "react";
13
13
  import { jsx as _ } from "react/jsx-runtime";
14
14
  //#region src/shared/plugins/PluginRuntimeProvider.tsx
15
15
  var v = d(null);
@@ -1,6 +1,6 @@
1
1
  import { getProfileContext as e, resolveActiveProfileId as t, setProfileContext as n } from "./ProfileStorageManager.js";
2
2
  import { ACTIVE_CONTEXT_STORAGE_KEY as r, DEFAULT_ACTIVE_CONTEXT_URL_PARAMS as i, clearActiveContextStorage as a, getUrlParam as o, readActiveContextStorageValue as s, writeActiveContextFallback as c, writeActiveContextStorageValue as l } from "./ActiveContextStorage.js";
3
- import { createContext as u, useCallback as d, useContext as f, useEffect as p, useMemo as m, useState as h } from "react";
3
+ import { createContext as u, use as d, useCallback as f, useEffect as p, useMemo as m, useState as h } from "react";
4
4
  import { jsx as g } from "react/jsx-runtime";
5
5
  //#region src/shared/providers/shell/ActiveContextProvider.tsx
6
6
  var _ = u(null);
@@ -11,14 +11,14 @@ function v(e) {
11
11
  n ? t.searchParams.set(e, n) : t.searchParams.delete(e);
12
12
  }), window.history.replaceState({}, "", t.toString());
13
13
  }
14
- function y({ children: u, defaultOrganizationId: f = null, defaultWorkspaceId: y = null, defaultProjectId: b = null, defaultTenantId: x = null, storageKey: S = r, syncToUrl: C = !1, urlParams: w = i }) {
14
+ function y({ children: u, defaultOrganizationId: d = null, defaultWorkspaceId: y = null, defaultProjectId: b = null, defaultTenantId: x = null, storageKey: S = r, syncToUrl: C = !1, urlParams: w = i }) {
15
15
  let [T, E] = h(() => {
16
- if (typeof window > "u") return f;
16
+ if (typeof window > "u") return d;
17
17
  if (C) {
18
18
  let e = o(w.organization);
19
19
  if (e) return e;
20
20
  }
21
- return s("organization", S) || f;
21
+ return s("organization", S) || d;
22
22
  }), [D, O] = h(() => {
23
23
  if (typeof window > "u") return y;
24
24
  if (C) {
@@ -105,14 +105,14 @@ function y({ children: u, defaultOrganizationId: f = null, defaultWorkspaceId: y
105
105
  k,
106
106
  j
107
107
  ]);
108
- let N = d((r) => {
108
+ let N = f((r) => {
109
109
  E(r);
110
110
  let i = t();
111
111
  i && n(i, {
112
112
  ...e(i),
113
113
  organizationId: r
114
114
  }), typeof window < "u" && window.dispatchEvent(new CustomEvent("burdenoff:organization-changed", { detail: { organizationId: r } }));
115
- }, []), P = d((r, i) => {
115
+ }, []), P = f((r, i) => {
116
116
  let a = {
117
117
  organization: "organizationId",
118
118
  workspace: "workspaceId",
@@ -125,20 +125,20 @@ function y({ children: u, defaultOrganizationId: f = null, defaultWorkspaceId: y
125
125
  ...e(o),
126
126
  [a[r]]: i
127
127
  }) : typeof window < "u" && c(r, i, S);
128
- }, [S]), F = d((e) => {
128
+ }, [S]), F = f((e) => {
129
129
  O(e), P("workspace", e), typeof window < "u" && window.dispatchEvent(new CustomEvent("burdenoff:workspace-changed", { detail: { workspaceId: e } }));
130
- }, [P]), I = d((e) => {
130
+ }, [P]), I = f((e) => {
131
131
  A(e), P("project", e), typeof window < "u" && window.dispatchEvent(new CustomEvent("burdenoff:project-changed", { detail: { projectId: e } }));
132
- }, [P]), L = d((e) => {
132
+ }, [P]), L = f((e) => {
133
133
  M(e), P("tenant", e);
134
- }, [P]), R = d((e) => {
134
+ }, [P]), R = f((e) => {
135
135
  e.organizationId !== void 0 && N(e.organizationId), e.workspaceId !== void 0 && F(e.workspaceId), e.projectId !== void 0 && I(e.projectId), e.tenantId !== void 0 && L(e.tenantId);
136
136
  }, [
137
137
  N,
138
138
  F,
139
139
  I,
140
140
  L
141
- ]), z = d(() => {
141
+ ]), z = f(() => {
142
142
  E(null), O(null), A(null), M(null), a(S);
143
143
  let e = t();
144
144
  e && n(e, {});
@@ -173,7 +173,7 @@ function y({ children: u, defaultOrganizationId: f = null, defaultWorkspaceId: y
173
173
  });
174
174
  }
175
175
  function b() {
176
- let e = f(_);
176
+ let e = d(_);
177
177
  if (!e) throw Error("useActiveContext must be used within an ActiveContextProvider");
178
178
  return e;
179
179
  }