@flytedan/flytebot-design-system 0.87.1 → 0.87.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.
package/dist/index.d.cts CHANGED
@@ -1489,7 +1489,7 @@ interface FilterFieldBase {
1489
1489
  icon?: string;
1490
1490
  /** DS-55: gives the field's chip a small help button beside it. `summary` is one line saying what
1491
1491
  * the help explains; it shows in a Tooltip on hover and focus and is the button's description.
1492
- * Pressing the button calls FilterBar's `onFieldHelp(key)`; FilterBar draws no help content. */
1492
+ * Pressing the button calls FilterBar's `onFieldHelp(key, button)`; FilterBar draws no help content. */
1493
1493
  help?: FilterFieldHelp;
1494
1494
  }
1495
1495
  interface FilterFieldHelp {
@@ -1628,8 +1628,10 @@ interface FilterBarProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, "on
1628
1628
  /** Every filter a consumer can add. Order here is the order in the "add filter" list. */
1629
1629
  fields: FilterField[];
1630
1630
  /** DS-55: fires with the field's key when the help button on a selected chip whose field has `help`
1631
- * is pressed. The app opens its own help for that filter; the press does nothing else. */
1632
- onFieldHelp?: (key: string) => void;
1631
+ * is pressed, with the pressed button element as the second argument so the app can anchor its help to it
1632
+ * and return focus to it (Safari and Firefox on macOS do not focus a clicked button, so the app cannot
1633
+ * read it from document.activeElement). The app opens its own help for that filter; the press does nothing else. */
1634
+ onFieldHelp?: (key: string, button: HTMLButtonElement) => void;
1633
1635
  /** The applied filters, and the single source of truth for them: FilterBar keeps no
1634
1636
  * copy. Straight off useServerTable — a value of undefined/""/false reads as "not set",
1635
1637
  * same convention that hook already uses for activeFilterCount. multiSelect/range/
@@ -5881,13 +5883,19 @@ declare function useCopyToClipboard(): [boolean, (text: string) => Promise<boole
5881
5883
  * top of each other; instead each renders into its own slot of this single stack, and the
5882
5884
  * stack lays the slots out one above the next.
5883
5885
  *
5884
- * The stack is fixed, so it takes no room in the page and would cover whatever scrolls
5885
- * beneath it. While a surface is showing it therefore publishes how far it reaches up from
5886
+ * The slots do not share a layer. The toasts are fixed at OVERLAY_CEILING: a message about what a
5887
+ * person just did is read over everything. The jobs slot sits just under the first overlay layer:
5888
+ * above the page, below every menu, popover, dialog and drawer, so a menu that opens over the bottom
5889
+ * of the page is never hidden by the tray, and the tray never covers one.
5890
+ *
5891
+ * The slots are fixed, so they take no room in the page and would cover whatever scrolls
5892
+ * beneath it. While the job tray is showing it therefore publishes how far it reaches up from
5886
5893
  * the viewport's bottom edge as `--fd-corner-stack-inset` on the document element, and the
5887
5894
  * app shell's content scroller adds that to its bottom padding: the last of the content can
5888
5895
  * always be scrolled clear of it.
5889
5896
  */
5890
- /** The custom property carrying the stack's reach up from the viewport bottom (0px when no surface shows). */
5897
+ /** The custom property carrying the job tray's reach up from the viewport bottom (0px when it is not showing). The toasts
5898
+ * stack above it, and the page scrolls clear of it; the toasts, which leave on their own, add no padding. */
5891
5899
  declare const CORNER_STACK_INSET_PROPERTY = "--fd-corner-stack-inset";
5892
5900
  /** Bottom to top: a surface earlier in this list sits closer to the corner. */
5893
5901
  declare const SLOTS: readonly ["jobs", "toasts"];
@@ -6046,7 +6054,8 @@ interface UseExportJobsOptions {
6046
6054
  }
6047
6055
  interface UseExportJobsResult {
6048
6056
  exports: ExportJob[];
6049
- /** Dismisses the export and re-reads the list. */
6057
+ /** Dismisses the export: it leaves the list at once, the server is told, and the list is re-read (which also puts the
6058
+ * export back if the server could not be told). */
6050
6059
  ackExport: (id: string) => void;
6051
6060
  /** Reads the list now instead of at the next poll: an export started elsewhere shows at once. */
6052
6061
  refresh: () => void;
package/dist/index.d.ts CHANGED
@@ -1489,7 +1489,7 @@ interface FilterFieldBase {
1489
1489
  icon?: string;
1490
1490
  /** DS-55: gives the field's chip a small help button beside it. `summary` is one line saying what
1491
1491
  * the help explains; it shows in a Tooltip on hover and focus and is the button's description.
1492
- * Pressing the button calls FilterBar's `onFieldHelp(key)`; FilterBar draws no help content. */
1492
+ * Pressing the button calls FilterBar's `onFieldHelp(key, button)`; FilterBar draws no help content. */
1493
1493
  help?: FilterFieldHelp;
1494
1494
  }
1495
1495
  interface FilterFieldHelp {
@@ -1628,8 +1628,10 @@ interface FilterBarProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, "on
1628
1628
  /** Every filter a consumer can add. Order here is the order in the "add filter" list. */
1629
1629
  fields: FilterField[];
1630
1630
  /** DS-55: fires with the field's key when the help button on a selected chip whose field has `help`
1631
- * is pressed. The app opens its own help for that filter; the press does nothing else. */
1632
- onFieldHelp?: (key: string) => void;
1631
+ * is pressed, with the pressed button element as the second argument so the app can anchor its help to it
1632
+ * and return focus to it (Safari and Firefox on macOS do not focus a clicked button, so the app cannot
1633
+ * read it from document.activeElement). The app opens its own help for that filter; the press does nothing else. */
1634
+ onFieldHelp?: (key: string, button: HTMLButtonElement) => void;
1633
1635
  /** The applied filters, and the single source of truth for them: FilterBar keeps no
1634
1636
  * copy. Straight off useServerTable — a value of undefined/""/false reads as "not set",
1635
1637
  * same convention that hook already uses for activeFilterCount. multiSelect/range/
@@ -5881,13 +5883,19 @@ declare function useCopyToClipboard(): [boolean, (text: string) => Promise<boole
5881
5883
  * top of each other; instead each renders into its own slot of this single stack, and the
5882
5884
  * stack lays the slots out one above the next.
5883
5885
  *
5884
- * The stack is fixed, so it takes no room in the page and would cover whatever scrolls
5885
- * beneath it. While a surface is showing it therefore publishes how far it reaches up from
5886
+ * The slots do not share a layer. The toasts are fixed at OVERLAY_CEILING: a message about what a
5887
+ * person just did is read over everything. The jobs slot sits just under the first overlay layer:
5888
+ * above the page, below every menu, popover, dialog and drawer, so a menu that opens over the bottom
5889
+ * of the page is never hidden by the tray, and the tray never covers one.
5890
+ *
5891
+ * The slots are fixed, so they take no room in the page and would cover whatever scrolls
5892
+ * beneath it. While the job tray is showing it therefore publishes how far it reaches up from
5886
5893
  * the viewport's bottom edge as `--fd-corner-stack-inset` on the document element, and the
5887
5894
  * app shell's content scroller adds that to its bottom padding: the last of the content can
5888
5895
  * always be scrolled clear of it.
5889
5896
  */
5890
- /** The custom property carrying the stack's reach up from the viewport bottom (0px when no surface shows). */
5897
+ /** The custom property carrying the job tray's reach up from the viewport bottom (0px when it is not showing). The toasts
5898
+ * stack above it, and the page scrolls clear of it; the toasts, which leave on their own, add no padding. */
5891
5899
  declare const CORNER_STACK_INSET_PROPERTY = "--fd-corner-stack-inset";
5892
5900
  /** Bottom to top: a surface earlier in this list sits closer to the corner. */
5893
5901
  declare const SLOTS: readonly ["jobs", "toasts"];
@@ -6046,7 +6054,8 @@ interface UseExportJobsOptions {
6046
6054
  }
6047
6055
  interface UseExportJobsResult {
6048
6056
  exports: ExportJob[];
6049
- /** Dismisses the export and re-reads the list. */
6057
+ /** Dismisses the export: it leaves the list at once, the server is told, and the list is re-read (which also puts the
6058
+ * export back if the server could not be told). */
6050
6059
  ackExport: (id: string) => void;
6051
6060
  /** Reads the list now instead of at the next poll: an export started elsewhere shows at once. */
6052
6061
  refresh: () => void;
package/dist/index.js CHANGED
@@ -1598,33 +1598,36 @@ import * as React19 from "react";
1598
1598
  import * as React18 from "react";
1599
1599
  import { createPortal as createPortal4 } from "react-dom";
1600
1600
  var CORNER_STACK_INSET_PROPERTY = "--fd-corner-stack-inset";
1601
+ var JOBS_LAYER = ROOT_STEP - 1;
1601
1602
  var SLOTS = ["jobs", "toasts"];
1602
1603
  var references = /* @__PURE__ */ new Map();
1603
1604
  var host = null;
1604
1605
  var hostObserver = null;
1605
1606
  var slotElements = /* @__PURE__ */ new Map();
1607
+ var SLOT_LAYERS = { jobs: JOBS_LAYER, toasts: OVERLAY_CEILING };
1606
1608
  function createHost() {
1607
1609
  const stack = document.createElement("div");
1608
1610
  stack.className = "fd-corner-stack";
1609
- stack.style.zIndex = String(OVERLAY_CEILING);
1610
1611
  for (const slot of SLOTS) {
1611
1612
  const element = document.createElement("div");
1612
1613
  element.className = "fd-corner-stack-slot";
1613
1614
  element.dataset.cornerStackSlot = slot;
1615
+ element.style.zIndex = String(SLOT_LAYERS[slot]);
1614
1616
  stack.appendChild(element);
1615
1617
  slotElements.set(slot, element);
1616
1618
  }
1617
1619
  document.body.appendChild(stack);
1618
- publishInset(stack);
1620
+ const jobs2 = slotElements.get("jobs");
1621
+ publishInset(jobs2);
1619
1622
  if (typeof ResizeObserver === "function") {
1620
- hostObserver = new ResizeObserver(() => publishInset(stack));
1621
- hostObserver.observe(stack);
1623
+ hostObserver = new ResizeObserver(() => publishInset(jobs2));
1624
+ hostObserver.observe(jobs2);
1622
1625
  }
1623
1626
  return stack;
1624
1627
  }
1625
- function publishInset(stack) {
1626
- const height = stack.offsetHeight;
1627
- const inset = height > 0 ? height + parseFloat(getComputedStyle(stack).bottom) : 0;
1628
+ function publishInset(jobs2) {
1629
+ const height = jobs2.offsetHeight;
1630
+ const inset = height > 0 ? height + parseFloat(getComputedStyle(jobs2).bottom) : 0;
1628
1631
  document.documentElement.style.setProperty(CORNER_STACK_INSET_PROPERTY, `${inset}px`);
1629
1632
  }
1630
1633
  function acquire(slot) {
@@ -3170,7 +3173,7 @@ function TrendChart({
3170
3173
 
3171
3174
  // src/components/data/DonutChart.tsx
3172
3175
  import * as React33 from "react";
3173
- import { jsx as jsx45, jsxs as jsxs35 } from "react/jsx-runtime";
3176
+ import { Fragment as Fragment9, jsx as jsx45, jsxs as jsxs35 } from "react/jsx-runtime";
3174
3177
  var QUIET_FILL = "var(--n-300)";
3175
3178
  function segmentColor(index, seg) {
3176
3179
  return seg.color || (seg.variant === "quiet" ? QUIET_FILL : chartColor(index));
@@ -3288,7 +3291,15 @@ function DonutChart({
3288
3291
  const pct = total ? Math.round(Number(s.value) / total * 100) : 0;
3289
3292
  return {
3290
3293
  key: s.id,
3291
- label: `${s.label} ${formatPercent(pct)} \xB7 ${valueFormat(s.value)}`,
3294
+ label: /* @__PURE__ */ jsxs35(Fragment9, { children: [
3295
+ s.label,
3296
+ " ",
3297
+ /* @__PURE__ */ jsxs35("span", { className: "fd-donut-legend-value", children: [
3298
+ formatPercent(pct),
3299
+ " \xB7 ",
3300
+ valueFormat(s.value)
3301
+ ] })
3302
+ ] }),
3292
3303
  color: segmentColor(i, s),
3293
3304
  // The row's accessible name (ChartLegend bubble={false}): it must contain the row's visible
3294
3305
  // text, label then percent, so a person who speaks what they see reaches the row.
@@ -3571,7 +3582,7 @@ function CsiHero({ band = "weak", crp, label, className = "" }) {
3571
3582
  }
3572
3583
 
3573
3584
  // src/components/data/DataTable.tsx
3574
- import { Fragment as Fragment9, jsx as jsx50, jsxs as jsxs40 } from "react/jsx-runtime";
3585
+ import { Fragment as Fragment10, jsx as jsx50, jsxs as jsxs40 } from "react/jsx-runtime";
3575
3586
  var STACK_MAX_WIDTH = 640;
3576
3587
  function RowActionButton({ action, size }) {
3577
3588
  return /* @__PURE__ */ jsx50(
@@ -3704,7 +3715,7 @@ function StackedRows({ columns, rows, rowKey, loading, stale, skeletonRows, sort
3704
3715
  const sortable = onSort ? columns.filter((c) => c.sortable) : [];
3705
3716
  const primary = columns.filter((c) => c.phone === "primary");
3706
3717
  const secondary = columns.filter((c) => c.phone === "secondary");
3707
- return /* @__PURE__ */ jsxs40(Fragment9, { children: [
3718
+ return /* @__PURE__ */ jsxs40(Fragment10, { children: [
3708
3719
  onSort && sortable.length ? /* @__PURE__ */ jsx50("div", { className: "fd-dt-sort", role: "group", "aria-label": "Sort by", children: sortable.map((c) => {
3709
3720
  const active = sort?.key === c.key;
3710
3721
  return /* @__PURE__ */ jsx50(
@@ -5226,7 +5237,7 @@ function FieldHelpButton({ field, onFieldHelp }) {
5226
5237
  label: "Help: " + field.label,
5227
5238
  title: void 0,
5228
5239
  className: "fd-filterbar-help",
5229
- onClick: () => onFieldHelp?.(field.key)
5240
+ onClick: (e) => onFieldHelp?.(field.key, e.currentTarget)
5230
5241
  }
5231
5242
  ) });
5232
5243
  }
@@ -5495,7 +5506,7 @@ function StatGrid({ columns, className = "", children, ...rest }) {
5495
5506
  }
5496
5507
 
5497
5508
  // src/components/data/StatTile.tsx
5498
- import { Fragment as Fragment10, jsx as jsx59, jsxs as jsxs47 } from "react/jsx-runtime";
5509
+ import { Fragment as Fragment11, jsx as jsx59, jsxs as jsxs47 } from "react/jsx-runtime";
5499
5510
  function isZeroDelta(delta) {
5500
5511
  if (!delta) return false;
5501
5512
  const match = delta.match(/[\d.]+/);
@@ -5508,7 +5519,7 @@ function StatTile(props) {
5508
5519
  const isGood = invert ? isDecrease : !isDecrease;
5509
5520
  const deltaToneClass = isZero ? "fd-stat-delta-neutral" : isGood ? "fd-stat-delta-up" : "fd-stat-delta-down";
5510
5521
  const infoButton = info && !loading ? /* @__PURE__ */ jsx59(InfoButton, { label, info }) : null;
5511
- const content = /* @__PURE__ */ jsxs47(Fragment10, { children: [
5522
+ const content = /* @__PURE__ */ jsxs47(Fragment11, { children: [
5512
5523
  loading ? /* @__PURE__ */ jsx59("span", { className: "fd-skel fd-skel-text", style: { display: "block", height: compact3 ? 20 : 28, width: "62%" } }) : /* @__PURE__ */ jsxs47("span", { className: "fd-stat-top", children: [
5513
5524
  /* @__PURE__ */ jsx59("span", { className: "fd-stat-figure", children: value }),
5514
5525
  delta ? /* @__PURE__ */ jsxs47("span", { className: "fd-stat-delta " + deltaToneClass, children: [
@@ -5543,7 +5554,7 @@ function StatTile(props) {
5543
5554
 
5544
5555
  // src/components/data/CodeBlock.tsx
5545
5556
  import * as React42 from "react";
5546
- import { Fragment as Fragment11, jsx as jsx60, jsxs as jsxs48 } from "react/jsx-runtime";
5557
+ import { Fragment as Fragment12, jsx as jsx60, jsxs as jsxs48 } from "react/jsx-runtime";
5547
5558
  var JS_KW = /^(?:const|let|var|function|return|if|else|for|while|do|new|class|extends|import|from|export|default|await|async|try|catch|finally|throw|typeof|instanceof|of|in|switch|case|break|continue|delete|void|yield|static|get|set|this|super|interface|type|enum|implements|public|private|protected|readonly|abstract|as|satisfies|declare|namespace)$/;
5548
5559
  var RULES = {
5549
5560
  js: [
@@ -5699,7 +5710,7 @@ function tokenize(src, lang) {
5699
5710
  }
5700
5711
  function Highlighted({ code, lang }) {
5701
5712
  const toks = React42.useMemo(() => tokenize(code, lang), [code, lang]);
5702
- return /* @__PURE__ */ jsx60(Fragment11, { children: toks.map((tk, i) => tk.c ? /* @__PURE__ */ jsx60("span", { className: "tok-" + tk.c, children: tk.t }, i) : tk.t) });
5713
+ return /* @__PURE__ */ jsx60(Fragment12, { children: toks.map((tk, i) => tk.c ? /* @__PURE__ */ jsx60("span", { className: "tok-" + tk.c, children: tk.t }, i) : tk.t) });
5703
5714
  }
5704
5715
  function CodeBlock({
5705
5716
  code = "",
@@ -6058,7 +6069,7 @@ function Meter({ segments = [], unallocated = 0, height = 8, label, legend = fal
6058
6069
  }
6059
6070
 
6060
6071
  // src/components/data/Pagination.tsx
6061
- import { Fragment as Fragment13, jsx as jsx63, jsxs as jsxs51 } from "react/jsx-runtime";
6072
+ import { Fragment as Fragment14, jsx as jsx63, jsxs as jsxs51 } from "react/jsx-runtime";
6062
6073
  var unitPluralRules = new Intl.PluralRules("en-US");
6063
6074
  function pluralizeUnit(n, singular, irregularPlural) {
6064
6075
  return unitPluralRules.select(n) === "one" ? singular : irregularPlural ?? `${singular}s`;
@@ -6090,10 +6101,10 @@ function Pagination({
6090
6101
  else if (nums[nums.length - 1] !== "\u2026") nums.push("\u2026");
6091
6102
  }
6092
6103
  return /* @__PURE__ */ jsxs51("div", { className: ["fd-pag", className].filter(Boolean).join(" "), ...rest, children: [
6093
- /* @__PURE__ */ jsx63("span", { className: "fd-pag-count", children: loading ? /* @__PURE__ */ jsx63("span", { className: "fd-skel fd-skel-text", style: { display: "inline-block", height: 12, width: 108 } }) : total === 0 ? /* @__PURE__ */ jsxs51(Fragment13, { children: [
6104
+ /* @__PURE__ */ jsx63("span", { className: "fd-pag-count", children: loading ? /* @__PURE__ */ jsx63("span", { className: "fd-skel fd-skel-text", style: { display: "inline-block", height: 12, width: 108 } }) : total === 0 ? /* @__PURE__ */ jsxs51(Fragment14, { children: [
6094
6105
  "No ",
6095
6106
  unitLabel
6096
- ] }) : /* @__PURE__ */ jsxs51(Fragment13, { children: [
6107
+ ] }) : /* @__PURE__ */ jsxs51(Fragment14, { children: [
6097
6108
  /* @__PURE__ */ jsxs51("strong", { children: [
6098
6109
  from.toLocaleString(),
6099
6110
  "\u2013",
@@ -6288,7 +6299,7 @@ function InlinePanelSurface({ panel, align = "right", ...popover }) {
6288
6299
  }
6289
6300
 
6290
6301
  // src/components/data/SortMenu.tsx
6291
- import { Fragment as Fragment15, jsx as jsx66, jsxs as jsxs54 } from "react/jsx-runtime";
6302
+ import { Fragment as Fragment16, jsx as jsx66, jsxs as jsxs54 } from "react/jsx-runtime";
6292
6303
  var directionWord = (field, dir) => dir === "asc" ? field.numeric ? "lowest first" : "A to Z" : field.numeric ? "highest first" : "Z to A";
6293
6304
  function moved(sort, from, to) {
6294
6305
  const next = [...sort];
@@ -6361,7 +6372,7 @@ function SortMenu({
6361
6372
  ] }, f.key);
6362
6373
  });
6363
6374
  const unused = fields.filter((f) => !active.some((entry) => entry.key === f.key));
6364
- const multipleBody = /* @__PURE__ */ jsxs54(Fragment15, { children: [
6375
+ const multipleBody = /* @__PURE__ */ jsxs54(Fragment16, { children: [
6365
6376
  /* @__PURE__ */ jsx66("span", { className: "fd-overline fd-muted", style: { padding: "4px 8px 6px" }, children: "Sorted by" }),
6366
6377
  active.length === 0 ? /* @__PURE__ */ jsx66("span", { className: "fd-body-sm fd-muted", style: { padding: "4px 8px" }, children: "Unsorted" }) : /* @__PURE__ */ jsx66("ol", { className: "fd-stack", style: { gap: 2, margin: 0, padding: 0, listStyle: "none" }, "aria-label": "Sort order", children: active.map((entry, index) => {
6367
6378
  const f = fieldOf(entry.key);
@@ -6410,7 +6421,7 @@ function SortMenu({
6410
6421
  )
6411
6422
  ] }, entry.key);
6412
6423
  }) }),
6413
- unused.length > 0 ? /* @__PURE__ */ jsxs54(Fragment15, { children: [
6424
+ unused.length > 0 ? /* @__PURE__ */ jsxs54(Fragment16, { children: [
6414
6425
  /* @__PURE__ */ jsx66("span", { className: "fd-overline fd-muted", style: { padding: "10px 8px 6px" }, children: "Add a sort" }),
6415
6426
  unused.map((f) => /* @__PURE__ */ jsxs54("span", { className: "fd-row", style: rowStyle(false), children: [
6416
6427
  /* @__PURE__ */ jsx66("span", { className: "fd-body-sm", style: labelStyle(false), children: f.label }),
@@ -6434,7 +6445,7 @@ function SortMenu({
6434
6445
  ]
6435
6446
  }
6436
6447
  ),
6437
- /* @__PURE__ */ jsx66(InlinePanelSurface, { panel, align, offset: 6, width: multiple ? 340 : 280, label: "Sort by", children: /* @__PURE__ */ jsx66("span", { className: "fd-stack", style: { gap: 2, padding: 8 }, children: multiple ? multipleBody : /* @__PURE__ */ jsxs54(Fragment15, { children: [
6448
+ /* @__PURE__ */ jsx66(InlinePanelSurface, { panel, align, offset: 6, width: multiple ? 340 : 280, label: "Sort by", children: /* @__PURE__ */ jsx66("span", { className: "fd-stack", style: { gap: 2, padding: 8 }, children: multiple ? multipleBody : /* @__PURE__ */ jsxs54(Fragment16, { children: [
6438
6449
  /* @__PURE__ */ jsx66("span", { className: "fd-overline fd-muted", style: { padding: "4px 8px 6px" }, children: "Sort by" }),
6439
6450
  singleBody
6440
6451
  ] }) }) })
@@ -9023,7 +9034,7 @@ function useSessionContext() {
9023
9034
  }
9024
9035
 
9025
9036
  // src/components/platform/AccountMenu.tsx
9026
- import { Fragment as Fragment21, jsx as jsx89, jsxs as jsxs75 } from "react/jsx-runtime";
9037
+ import { Fragment as Fragment22, jsx as jsx89, jsxs as jsxs75 } from "react/jsx-runtime";
9027
9038
  var DEFAULT_LINKS = [];
9028
9039
  var DEFAULT_GROUPS = [];
9029
9040
  function Item({ item, onPick }) {
@@ -9085,7 +9096,7 @@ function AccountMenu({
9085
9096
  }
9086
9097
  };
9087
9098
  const showSwitcher = allowUserSwitch && !!demo;
9088
- return /* @__PURE__ */ jsxs75(Fragment21, { children: [
9099
+ return /* @__PURE__ */ jsxs75(Fragment22, { children: [
9089
9100
  /* @__PURE__ */ jsxs75(
9090
9101
  "button",
9091
9102
  {
@@ -9858,7 +9869,7 @@ function ProfilePage({
9858
9869
 
9859
9870
  // src/components/platform/SessionScreen.tsx
9860
9871
  import * as React71 from "react";
9861
- import { Fragment as Fragment24, jsx as jsx95, jsxs as jsxs80 } from "react/jsx-runtime";
9872
+ import { Fragment as Fragment25, jsx as jsx95, jsxs as jsxs80 } from "react/jsx-runtime";
9862
9873
  var COPY = {
9863
9874
  "signing-in": { busy: "Signing you in\u2026" },
9864
9875
  "session-expired": { busy: "Your session expired \u2014 signing you back in\u2026" },
@@ -9886,7 +9897,7 @@ function SessionScreen({ kind, error, onRetry, productName }) {
9886
9897
  /* @__PURE__ */ jsx95("div", { className: "fd-session-screen-stripe" }),
9887
9898
  /* @__PURE__ */ jsx95(Card, { children: /* @__PURE__ */ jsxs80("div", { className: "fd-session-screen-body", children: [
9888
9899
  /* @__PURE__ */ jsx95("h1", { ref: titleRef, tabIndex: -1, className: "fd-h3 fd-session-screen-title", children: productName }),
9889
- /* @__PURE__ */ jsx95("div", { role: "status", "aria-live": "polite", className: "fd-session-screen-status", children: busyMessage !== null ? /* @__PURE__ */ jsxs80(Fragment24, { children: [
9900
+ /* @__PURE__ */ jsx95("div", { role: "status", "aria-live": "polite", className: "fd-session-screen-status", children: busyMessage !== null ? /* @__PURE__ */ jsxs80(Fragment25, { children: [
9890
9901
  /* @__PURE__ */ jsx95("span", { className: "fd-spinner fd-spinner-lg fd-session-screen-spinner", "aria-hidden": "true" }),
9891
9902
  /* @__PURE__ */ jsx95("p", { className: "fd-body fd-session-screen-message", children: announced })
9892
9903
  ] }) : null }),
@@ -11913,7 +11924,7 @@ function RoadmapTimeline({ onOpenFlag, title = "Roadmap", lede }) {
11913
11924
  // src/components/platform/ComingSoon.tsx
11914
11925
  import * as React75 from "react";
11915
11926
  import { createPortal as createPortal6 } from "react-dom";
11916
- import { Fragment as Fragment26, jsx as jsx97, jsxs as jsxs82 } from "react/jsx-runtime";
11927
+ import { Fragment as Fragment27, jsx as jsx97, jsxs as jsxs82 } from "react/jsx-runtime";
11917
11928
  var BYPASS_STORE = "fd.soon.bypass.v1";
11918
11929
  function readBypassed() {
11919
11930
  try {
@@ -11943,7 +11954,7 @@ function useBypass(key) {
11943
11954
  return [on, set];
11944
11955
  }
11945
11956
  function SoonCard({ label, detail, backend, eta, effort, onRoadmap, allowed, onBypass }) {
11946
- return /* @__PURE__ */ jsxs82(Fragment26, { children: [
11957
+ return /* @__PURE__ */ jsxs82(Fragment27, { children: [
11947
11958
  /* @__PURE__ */ jsxs82("span", { className: "fd-soon-badge", children: [
11948
11959
  /* @__PURE__ */ jsx97("i", { className: "ph ph-traffic-cone", "aria-hidden": "true" }),
11949
11960
  label
@@ -12333,7 +12344,7 @@ function PermissionHint({ perm, children }) {
12333
12344
  }
12334
12345
 
12335
12346
  // src/components/platform/ModeSwitch.tsx
12336
- import { Fragment as Fragment27, jsx as jsx99, jsxs as jsxs84 } from "react/jsx-runtime";
12347
+ import { Fragment as Fragment28, jsx as jsx99, jsxs as jsxs84 } from "react/jsx-runtime";
12337
12348
  function ModeSwitch({ canToggle = false, requestCount = 0, onClearLog, renderLog, onOpenSpec, summary }) {
12338
12349
  const mode2 = useRuntimeMode();
12339
12350
  const panel = useInlinePanel();
@@ -12388,7 +12399,7 @@ function ModeSwitch({ canToggle = false, requestCount = 0, onClearLog, renderLog
12388
12399
  s.total,
12389
12400
  " features complete"
12390
12401
  ] }),
12391
- onOpenSpec ? /* @__PURE__ */ jsxs84(Fragment27, { children: [
12402
+ onOpenSpec ? /* @__PURE__ */ jsxs84(Fragment28, { children: [
12392
12403
  /* @__PURE__ */ jsx99("span", { style: { flex: 1 } }),
12393
12404
  /* @__PURE__ */ jsxs84("button", { type: "button", className: "fd-soon-link", onClick: () => {
12394
12405
  setOpen(false);
@@ -12580,7 +12591,7 @@ function SaturationDistribution({ campuses = [], floorBand, floorScore, onSelect
12580
12591
 
12581
12592
  // src/components/planner/MixGap.tsx
12582
12593
  import * as React76 from "react";
12583
- import { Fragment as Fragment28, jsx as jsx102, jsxs as jsxs87 } from "react/jsx-runtime";
12594
+ import { Fragment as Fragment29, jsx as jsx102, jsxs as jsxs87 } from "react/jsx-runtime";
12584
12595
  var MIX_GAP_LAYOUT = {
12585
12596
  trackHeight: 30,
12586
12597
  barHeight: 20,
@@ -12624,7 +12635,7 @@ function MixGap({ rows = [], loading = false, className = "" }) {
12624
12635
  onMouseLeave: () => setHover(null),
12625
12636
  children: [
12626
12637
  /* @__PURE__ */ jsx102("span", { style: { width: 128, flex: "none" }, children: /* @__PURE__ */ jsx102(ChannelTag, { channel: r.channel, size: "sm" }) }),
12627
- /* @__PURE__ */ jsx102("span", { style: { position: "relative", flex: 1, height: trackHeight, minWidth: 120 }, children: loading ? /* @__PURE__ */ jsx102("span", { className: "fd-skel", style: { position: "absolute", left: 0, right: 0, top: barTop, height: barHeight, borderRadius: 3 } }) : /* @__PURE__ */ jsxs87(Fragment28, { children: [
12638
+ /* @__PURE__ */ jsx102("span", { style: { position: "relative", flex: 1, height: trackHeight, minWidth: 120 }, children: loading ? /* @__PURE__ */ jsx102("span", { className: "fd-skel", style: { position: "absolute", left: 0, right: 0, top: barTop, height: barHeight, borderRadius: 3 } }) : /* @__PURE__ */ jsxs87(Fragment29, { children: [
12628
12639
  /* @__PURE__ */ jsx102("span", { "data-mixgap-bar": "", style: { position: "absolute", left: 0, top: barTop, height: barHeight, width: mixGapOffset(r.realized, max), background: TONE[tone], borderRadius: "2px 3px 3px 2px", transition: "width var(--dur-slow) var(--ease), background var(--dur-base) var(--ease)" } }),
12629
12640
  /* @__PURE__ */ jsx102("span", { "data-mixgap-target": "", style: { position: "absolute", left: `calc(${mixGapOffset(r.target, max)} - ${targetWidth / 2}px)`, top: 0, width: targetWidth, height: trackHeight, background: MIX_GAP_TARGET_STRIPE, borderRadius: 1 } }),
12630
12641
  /* @__PURE__ */ jsxs87("span", { "data-mixgap-label": "", className: "fd-num", style: { position: "absolute", left: labelLeft, top: "50%", transform: "translateY(-50%)", fontSize: 12, color: "var(--text-muted)", whiteSpace: "nowrap" }, children: [
@@ -12738,7 +12749,7 @@ function ChannelContribution({
12738
12749
 
12739
12750
  // src/components/planner/BudgetReallocator.tsx
12740
12751
  import * as React77 from "react";
12741
- import { Fragment as Fragment29, jsx as jsx104, jsxs as jsxs89 } from "react/jsx-runtime";
12752
+ import { Fragment as Fragment30, jsx as jsx104, jsxs as jsxs89 } from "react/jsx-runtime";
12742
12753
  var bandFor = (crp) => crp >= 200 ? "dominant" : crp >= 100 ? "strong" : crp >= 50 ? "adequate" : "weak";
12743
12754
  function BudgetReallocator({
12744
12755
  campus,
@@ -12802,7 +12813,7 @@ function BudgetReallocator({
12802
12813
  /* @__PURE__ */ jsxs89("div", { className: "fd-row", style: { gap: 12, flexWrap: "wrap" }, children: [
12803
12814
  /* @__PURE__ */ jsx104("span", { className: "fd-h4", style: { flex: 1, minWidth: 140 }, children: campus }),
12804
12815
  /* @__PURE__ */ jsx104(CsiBadge, { band: nowBand, crp, size: "medium" }),
12805
- dirty ? /* @__PURE__ */ jsxs89(Fragment29, { children: [
12816
+ dirty ? /* @__PURE__ */ jsxs89(Fragment30, { children: [
12806
12817
  /* @__PURE__ */ jsx104("i", { className: "ph ph-arrow-right fd-muted", "aria-hidden": "true" }),
12807
12818
  /* @__PURE__ */ jsx104(CsiBadge, { band: nextBand, crp: nextCrp, size: "medium", preview: true })
12808
12819
  ] }) : null
@@ -13559,7 +13570,7 @@ import * as React82 from "react";
13559
13570
 
13560
13571
  // src/components/chat/ChatTurn.tsx
13561
13572
  import * as React81 from "react";
13562
- import { Fragment as Fragment31, jsx as jsx108, jsxs as jsxs93 } from "react/jsx-runtime";
13573
+ import { Fragment as Fragment32, jsx as jsx108, jsxs as jsxs93 } from "react/jsx-runtime";
13563
13574
  function JsonView({ value }) {
13564
13575
  let text;
13565
13576
  try {
@@ -13595,7 +13606,7 @@ function DecisionFooter({ packet, decision, state }) {
13595
13606
  );
13596
13607
  };
13597
13608
  const error = failure !== null ? failure : state.error;
13598
- return /* @__PURE__ */ jsxs93(Fragment31, { children: [
13609
+ return /* @__PURE__ */ jsxs93(Fragment32, { children: [
13599
13610
  error ? /* @__PURE__ */ jsx108("div", { className: "fdc-packet-decision-msg", children: /* @__PURE__ */ jsx108(Banner, { tone: "danger", title: error }) }) : null,
13600
13611
  /* @__PURE__ */ jsxs93("footer", { className: "fdc-packet-foot fdc-packet-decision", children: [
13601
13612
  /* @__PURE__ */ jsx108(Button, { variant: "secondary", size: "sm", loading: pending === "dismiss", disabled: pending === "confirm", onClick: () => press("dismiss"), children: decision.dismissLabel || "Dismiss" }),
@@ -15012,7 +15023,7 @@ function FileViewer({ file, resolveUrl, sidePanel, sidePanelLabel = "Details", o
15012
15023
 
15013
15024
  // src/components/files/FileBrowser.tsx
15014
15025
  import * as React90 from "react";
15015
- import { Fragment as Fragment34, jsx as jsx116, jsxs as jsxs101 } from "react/jsx-runtime";
15026
+ import { Fragment as Fragment35, jsx as jsx116, jsxs as jsxs101 } from "react/jsx-runtime";
15016
15027
  function childrenOf(folders, parentId) {
15017
15028
  return folders.filter((f) => f.parentId === parentId).sort((a, b) => a.name.localeCompare(b.name));
15018
15029
  }
@@ -15311,7 +15322,7 @@ function FileBrowser({
15311
15322
  ] }),
15312
15323
  /* @__PURE__ */ jsxs101("span", { className: "fd-fb-actions", children: [
15313
15324
  canCreateFolder ? /* @__PURE__ */ jsx116(Button, { variant: "secondary", size: "sm", icon: "folder-simple-plus", onClick: openCreate, children: "New folder" }) : null,
15314
- canUpload ? /* @__PURE__ */ jsxs101(Fragment34, { children: [
15325
+ canUpload ? /* @__PURE__ */ jsxs101(Fragment35, { children: [
15315
15326
  /* @__PURE__ */ jsx116(Button, { variant: "secondary", size: "sm", icon: "upload-simple", onClick: () => uploadInputRef.current && uploadInputRef.current.click(), children: "Upload" }),
15316
15327
  /* @__PURE__ */ jsx116(
15317
15328
  "input",
@@ -15378,7 +15389,7 @@ function FileBrowser({
15378
15389
  draggableId: canMove ? { kind: "folder", id: f.id } : void 0,
15379
15390
  isDropTarget: canMove,
15380
15391
  onDropPayload: (p) => moveIntoFolder(p, f.id),
15381
- actions: /* @__PURE__ */ jsxs101(Fragment34, { children: [
15392
+ actions: /* @__PURE__ */ jsxs101(Fragment35, { children: [
15382
15393
  canRenameFolder ? /* @__PURE__ */ jsx116(IconButton, { icon: "pencil-simple", label: "Rename " + f.name, size: "sm", variant: "ghost", onClick: () => openRename(f) }) : null,
15383
15394
  canMove ? /* @__PURE__ */ jsx116(
15384
15395
  FolderPickerMenu,
@@ -15401,7 +15412,7 @@ function FileBrowser({
15401
15412
  meta: file.size ? formatBytes(file.size) : void 0,
15402
15413
  onOpen: onOpenFile ? () => onOpenFile(file) : void 0,
15403
15414
  draggableId: canMove ? { kind: "file", id: file.id } : void 0,
15404
- actions: /* @__PURE__ */ jsxs101(Fragment34, { children: [
15415
+ actions: /* @__PURE__ */ jsxs101(Fragment35, { children: [
15405
15416
  canMove ? /* @__PURE__ */ jsx116(
15406
15417
  FolderPickerMenu,
15407
15418
  {
@@ -15419,7 +15430,7 @@ function FileBrowser({
15419
15430
  }
15420
15431
  ) })
15421
15432
  ] }),
15422
- /* @__PURE__ */ jsx116(Modal, { open: createOpen, title: "New folder", onClose: () => setCreateOpen(false), footer: /* @__PURE__ */ jsxs101(Fragment34, { children: [
15433
+ /* @__PURE__ */ jsx116(Modal, { open: createOpen, title: "New folder", onClose: () => setCreateOpen(false), footer: /* @__PURE__ */ jsxs101(Fragment35, { children: [
15423
15434
  /* @__PURE__ */ jsx116(Button, { variant: "secondary", onClick: () => setCreateOpen(false), children: "Cancel" }),
15424
15435
  /* @__PURE__ */ jsx116(Button, { onClick: submitCreate, disabled: !createName.trim(), children: "Create" })
15425
15436
  ] }), children: /* @__PURE__ */ jsx116(
@@ -15436,7 +15447,7 @@ function FileBrowser({
15436
15447
  autoFocus: true
15437
15448
  }
15438
15449
  ) }),
15439
- /* @__PURE__ */ jsx116(Modal, { open: renameTarget != null, title: "Rename folder", onClose: () => setRenameTarget(null), footer: /* @__PURE__ */ jsxs101(Fragment34, { children: [
15450
+ /* @__PURE__ */ jsx116(Modal, { open: renameTarget != null, title: "Rename folder", onClose: () => setRenameTarget(null), footer: /* @__PURE__ */ jsxs101(Fragment35, { children: [
15440
15451
  /* @__PURE__ */ jsx116(Button, { variant: "secondary", onClick: () => setRenameTarget(null), children: "Cancel" }),
15441
15452
  /* @__PURE__ */ jsx116(Button, { onClick: submitRename, disabled: !renameValue.trim(), children: "Save" })
15442
15453
  ] }), children: /* @__PURE__ */ jsx116(
@@ -15460,7 +15471,7 @@ function FileBrowser({
15460
15471
  title: deleteTarget ? "Delete \u201C" + deleteTarget.name + "\u201D?" : "Delete folder?",
15461
15472
  description: "This can't be undone. The folder must be empty.",
15462
15473
  onClose: () => setDeleteTarget(null),
15463
- footer: /* @__PURE__ */ jsxs101(Fragment34, { children: [
15474
+ footer: /* @__PURE__ */ jsxs101(Fragment35, { children: [
15464
15475
  /* @__PURE__ */ jsx116(Button, { variant: "secondary", onClick: () => setDeleteTarget(null), children: "Cancel" }),
15465
15476
  /* @__PURE__ */ jsx116(Button, { variant: "danger", onClick: confirmDelete, children: "Delete" })
15466
15477
  ] })
@@ -16280,7 +16291,10 @@ function useExportJobs({ list, acknowledge }) {
16280
16291
  }, [anyLive, reload]);
16281
16292
  const refresh2 = React95.useCallback(() => void reload(), [reload]);
16282
16293
  const ackExport = React95.useCallback(
16283
- (id) => void acknowledgeRef.current(id).then(reload),
16294
+ (id) => {
16295
+ setRows((current2) => current2.filter((row) => row.id !== id));
16296
+ void acknowledgeRef.current(id).then(reload, reload);
16297
+ },
16284
16298
  [acknowledgeRef, reload]
16285
16299
  );
16286
16300
  return { exports: rows, ackExport, refresh: refresh2 };