@dudousxd/nestjs-telescope-ui 1.19.0 → 1.20.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,22 @@
1
1
  # @dudousxd/nestjs-telescope-ui
2
2
 
3
+ ## 1.20.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#67](https://github.com/DavideCarvalho/nestjs-telescope/pull/67) [`87c8732`](https://github.com/DavideCarvalho/nestjs-telescope/commit/87c8732006a46eeea50d1dd1536c8a9794a13ae5) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - Ship the console launcher on its own subpath: `@dudousxd/nestjs-telescope-ui/react/console`.
8
+
9
+ The launcher was only reachable from the `./react` barrel, which re-exports the whole dashboard
10
+ component set and therefore pulls in `recharts` and `react-router-dom`. Neither is declared by this
11
+ package, and a bundler resolves re-exported modules even when nothing references them — so a host
12
+ that wanted nothing but the launcher button got a hard build failure on a missing dependency
13
+ instead of tree-shaking it away.
14
+
15
+ `./react/console` re-exports the hook, the button and the headless client primitives, and nothing
16
+ else. Its entire dependency footprint is `react`, guarded by a test that walks the import graph.
17
+
18
+ `./react` is unchanged and still exports the launcher, so nothing breaks.
19
+
3
20
  ## 1.19.0
4
21
 
5
22
  ### Minor Changes
@@ -0,0 +1,4 @@
1
+ export * from './use-open-console.js';
2
+ export * from './open-console-button.js';
3
+ export { ConsoleSessionError, telescopeConsoleSessionUrl, telescopeConsoleUrl, mintTelescopeConsoleSession, openTelescopeConsole, type OpenConsoleOptions, } from '../client/console-session.js';
4
+ //# sourceMappingURL=console.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"console.d.ts","sourceRoot":"","sources":["../../src/react/console.ts"],"names":[],"mappings":"AAUA,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,OAAO,EACL,mBAAmB,EACnB,0BAA0B,EAC1B,mBAAmB,EACnB,2BAA2B,EAC3B,oBAAoB,EACpB,KAAK,kBAAkB,GACxB,MAAM,8BAA8B,CAAC"}
@@ -0,0 +1,14 @@
1
+ // The console launcher on its own subpath (`@dudousxd/nestjs-telescope-ui/react/console`).
2
+ //
3
+ // It is also exported from `./react`, but that barrel re-exports the whole dashboard component set,
4
+ // which pulls in `recharts` and `react-router-dom`. Those are not declared by this package, so a
5
+ // host that wants ONLY the launcher — the common case, a button on an admin page — cannot import
6
+ // from the barrel: a bundler resolves re-exported modules even when nothing uses them, and the
7
+ // build fails on the missing dependency rather than tree-shaking it away.
8
+ //
9
+ // This entry re-exports only the launcher and the headless primitives it wraps, so its entire
10
+ // dependency footprint is `react`.
11
+ export * from './use-open-console.js';
12
+ export * from './open-console-button.js';
13
+ export { ConsoleSessionError, telescopeConsoleSessionUrl, telescopeConsoleUrl, mintTelescopeConsoleSession, openTelescopeConsole, } from '../client/console-session.js';
14
+ //# sourceMappingURL=console.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"console.js","sourceRoot":"","sources":["../../src/react/console.ts"],"names":[],"mappings":"AAAA,2FAA2F;AAC3F,EAAE;AACF,oGAAoG;AACpG,iGAAiG;AACjG,iGAAiG;AACjG,+FAA+F;AAC/F,0EAA0E;AAC1E,EAAE;AACF,8FAA8F;AAC9F,mCAAmC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,OAAO,EACL,mBAAmB,EACnB,0BAA0B,EAC1B,mBAAmB,EACnB,2BAA2B,EAC3B,oBAAoB,GAErB,MAAM,8BAA8B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dudousxd/nestjs-telescope-ui",
3
- "version": "1.19.0",
3
+ "version": "1.20.0",
4
4
  "description": "Bundled dashboard + composable React components for @dudousxd/nestjs-telescope.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -27,6 +27,11 @@
27
27
  "import": "./dist/react/index.js",
28
28
  "default": "./dist/react/index.js"
29
29
  },
30
+ "./react/console": {
31
+ "types": "./dist/react/console.d.ts",
32
+ "import": "./dist/react/console.js",
33
+ "default": "./dist/react/console.js"
34
+ },
30
35
  "./client": {
31
36
  "types": "./dist/client/index.d.ts",
32
37
  "import": "./dist/client/index.js",