@dudousxd/nestjs-telescope-ui 1.5.0 → 1.6.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # @dudousxd/nestjs-telescope-ui
2
2
 
3
+ ## 1.6.0
4
+
3
5
  ## 1.5.0
4
6
 
5
7
  ### Minor Changes
@@ -0,0 +1,11 @@
1
+ export declare function TypeTabs({ active, onChange, watchers, }: {
2
+ active: string;
3
+ onChange: (type: string) => void;
4
+ /**
5
+ * Registered watcher type strings from `/api/meta.watchers`. When supplied,
6
+ * only the `all` tab plus tabs for registered watchers render; when omitted
7
+ * (meta not loaded / older server), every tab shows — no flash-of-hidden-nav.
8
+ */
9
+ watchers?: readonly string[];
10
+ }): JSX.Element;
11
+ //# sourceMappingURL=type-tabs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type-tabs.d.ts","sourceRoot":"","sources":["../../../src/react/components/type-tabs.tsx"],"names":[],"mappings":"AAEA,wBAAgB,QAAQ,CAAC,EACvB,MAAM,EACN,QAAQ,EACR,QAAQ,GACT,EAAE;IACD,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CAC9B,GAAG,GAAG,CAAC,OAAO,CAoBd"}
@@ -0,0 +1,9 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { visibleTypeTabIds } from './entry-types.js';
3
+ export function TypeTabs({ active, onChange, watchers, }) {
4
+ const tabs = visibleTypeTabIds(watchers);
5
+ return (_jsx("div", { className: "flex gap-1 border-b border-zinc-800", children: tabs.map((type) => (_jsx("button", { type: "button", onClick: () => onChange(type), className: `px-3 py-2 text-xs uppercase tracking-wide ${active === type
6
+ ? 'border-b-2 border-emerald-400 text-emerald-300'
7
+ : 'text-zinc-500 hover:text-zinc-300'}`, children: type }, type))) }));
8
+ }
9
+ //# sourceMappingURL=type-tabs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type-tabs.js","sourceRoot":"","sources":["../../../src/react/components/type-tabs.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAErD,MAAM,UAAU,QAAQ,CAAC,EACvB,MAAM,EACN,QAAQ,EACR,QAAQ,GAUT;IACC,MAAM,IAAI,GAAG,iBAAiB,CAAC,QAAQ,CAAC,CAAC;IACzC,OAAO,CACL,cAAK,SAAS,EAAC,qCAAqC,YACjD,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAClB,iBAEE,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,EAC7B,SAAS,EAAE,6CACT,MAAM,KAAK,IAAI;gBACb,CAAC,CAAC,gDAAgD;gBAClD,CAAC,CAAC,mCACN,EAAE,YAED,IAAI,IATA,IAAI,CAUF,CACV,CAAC,GACE,CACP,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dudousxd/nestjs-telescope-ui",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "description": "Bundled dashboard + composable React components for @dudousxd/nestjs-telescope.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -37,7 +37,7 @@
37
37
  "peerDependencies": {
38
38
  "@nestjs/common": ">=11.0.0",
39
39
  "@nestjs/core": ">=11.0.0",
40
- "@dudousxd/nestjs-telescope": "^1.5.0"
40
+ "@dudousxd/nestjs-telescope": "^1.6.0"
41
41
  },
42
42
  "peerDependenciesMeta": {
43
43
  "react": {
@@ -75,7 +75,7 @@
75
75
  "typescript": "^5.4.0",
76
76
  "vite": "^5.4.0",
77
77
  "vitest": "^3.0.0",
78
- "@dudousxd/nestjs-telescope": "1.5.0"
78
+ "@dudousxd/nestjs-telescope": "1.6.0"
79
79
  },
80
80
  "engines": {
81
81
  "node": ">=20"