@burdenoff/microfe-vibecontrols 2026.1115.3 → 2026.1117.1

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.
@@ -10,10 +10,17 @@ export declare const DEFAULT_COMPONENT_SORT: ComponentTableSort;
10
10
  /** True when the column is ordered by the server across the whole catalogue. */
11
11
  export declare function isServerSortable(column: ComponentColumn): column is Exclude<ComponentColumn, 'tier'>;
12
12
  /**
13
- * The `filter.sort` value for ListComponents. Undefined for Tier: the server
14
- * then keeps its default order and the table sorts the fully loaded rows.
13
+ * The `filter.sort` value for ListComponents. Tier has no server ordering, so
14
+ * it asks for the default order (name, A to Z): once every row is loaded the
15
+ * table re-sorts by tier, and while rows remain the table shows that default.
15
16
  */
16
- export declare function toServerSort(sort: ComponentTableSort): ComponentSortInput | undefined;
17
+ export declare function toServerSort(sort: ComponentTableSort): ComponentSortInput;
18
+ /**
19
+ * The sort the table shows. A tier sort is only meaningful over the whole
20
+ * catalogue, so while more rows remain the table shows the default order,
21
+ * which is also the order the server returns for a tier request.
22
+ */
23
+ export declare function displayedSort(sort: ComponentTableSort, hasMore: boolean): ComponentTableSort;
17
24
  /**
18
25
  * Clicking a header: the same column flips direction; a new column starts in
19
26
  * the direction that reads best (names A to Z; scores, tiers and versions best first).
@@ -14,12 +14,16 @@ function a(e) {
14
14
  return e !== "tier";
15
15
  }
16
16
  function o(t) {
17
- if (a(t.column)) return {
18
- field: i[t.column],
19
- direction: t.direction === "asc" ? e.Asc : e.Desc
17
+ let n = a(t.column) ? t.column : "name", o = n === t.column ? t.direction : r.direction;
18
+ return {
19
+ field: i[n],
20
+ direction: o === "asc" ? e.Asc : e.Desc
20
21
  };
21
22
  }
22
23
  function s(e, t) {
24
+ return e.column === "tier" && t ? r : e;
25
+ }
26
+ function c(e, t) {
23
27
  return e.column === t ? {
24
28
  column: t,
25
29
  direction: e.direction === "asc" ? "desc" : "asc"
@@ -28,19 +32,19 @@ function s(e, t) {
28
32
  direction: t === "name" || t === "owner" ? "asc" : "desc"
29
33
  };
30
34
  }
31
- var c = {
35
+ var l = {
32
36
  [n.Bronze]: 0,
33
37
  [n.Silver]: 1,
34
38
  [n.Gold]: 2
35
39
  };
36
- function l(e, t) {
40
+ function u(e, t) {
37
41
  let n = t === "asc" ? 1 : -1;
38
42
  return [...e].sort((e, t) => {
39
43
  if (e.securityTier === null && t.securityTier === null) return e.name.localeCompare(t.name);
40
44
  if (e.securityTier === null) return 1;
41
45
  if (t.securityTier === null) return -1;
42
- let r = (c[e.securityTier] - c[t.securityTier]) * n;
46
+ let r = (l[e.securityTier] - l[t.securityTier]) * n;
43
47
  return r === 0 ? e.name.localeCompare(t.name) : r;
44
48
  });
45
49
  }
46
- export { r as DEFAULT_COMPONENT_SORT, a as isServerSortable, s as nextSort, l as sortRowsByTier, o as toServerSort };
50
+ export { r as DEFAULT_COMPONENT_SORT, s as displayedSort, a as isServerSortable, c as nextSort, u as sortRowsByTier, o as toServerSort };
@@ -1,6 +1,6 @@
1
1
  export { ComponentsTable } from './ComponentsTable';
2
2
  export type { ComponentsTableProps, ComponentTableRowData } from './ComponentsTable';
3
- export { DEFAULT_COMPONENT_SORT, isServerSortable, nextSort, sortRowsByTier, toServerSort, } from './componentSort';
3
+ export { DEFAULT_COMPONENT_SORT, displayedSort, isServerSortable, nextSort, sortRowsByTier, toServerSort, } from './componentSort';
4
4
  export type { ComponentColumn, ComponentTableSort, SortDirection } from './componentSort';
5
5
  export { ComponentTierBadge } from './ComponentTierBadge';
6
6
  export type { ComponentTierBadgeProps } from './ComponentTierBadge';
@@ -1,5 +1,5 @@
1
1
  import { ComponentsTable as e } from "./ComponentsTable.js";
2
- import { DEFAULT_COMPONENT_SORT as t, toServerSort as n } from "./componentSort.js";
2
+ import { DEFAULT_COMPONENT_SORT as t, displayedSort as n, toServerSort as r } from "./componentSort.js";
3
3
  import "./ComponentTierBadge.js";
4
4
  import "./ComponentHealthCell.js";
5
- export { e as ComponentsTable, t as DEFAULT_COMPONENT_SORT, n as toServerSort };
5
+ export { e as ComponentsTable, t as DEFAULT_COMPONENT_SORT, n as displayedSort, r as toServerSort };
@@ -1 +1,4 @@
1
- export {};
1
+ /** Internal type. DO NOT USE DIRECTLY. */
2
+ export type Incremental<T> = T | {
3
+ [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never;
4
+ };
@@ -1,24 +1,5 @@
1
1
  export type Maybe<T> = T | null;
2
2
  export type InputMaybe<T> = Maybe<T>;
3
- export type Exact<T extends {
4
- [key: string]: unknown;
5
- }> = {
6
- [K in keyof T]: T[K];
7
- };
8
- export type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
9
- [SubKey in K]?: Maybe<T[SubKey]>;
10
- };
11
- export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
12
- [SubKey in K]: Maybe<T[SubKey]>;
13
- };
14
- export type MakeEmpty<T extends {
15
- [key: string]: unknown;
16
- }, K extends keyof T> = {
17
- [_ in K]?: never;
18
- };
19
- export type Incremental<T> = T | {
20
- [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never;
21
- };
22
3
  /** All built-in and custom scalars, mapped to their actual values */
23
4
  export type Scalars = {
24
5
  ID: {
@@ -68,8 +49,8 @@ export type Scalars = {
68
49
  output: File;
69
50
  };
70
51
  _SubscriptionsPlaceholder: {
71
- input: any;
72
- output: any;
52
+ input: unknown;
53
+ output: unknown;
73
54
  };
74
55
  };
75
56
  /** API Key for programmatic access */