@tanstack/devtools 0.9.1 → 0.10.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.
@@ -172,7 +172,7 @@ var initialState = {
172
172
  hideUntilHover: false,
173
173
  position: "bottom-right",
174
174
  panelLocation: "bottom",
175
- openHotkey: ["Shift", "A"],
175
+ openHotkey: ["Control", "~"],
176
176
  inspectHotkey: ["Shift", "CtrlOrMeta"],
177
177
  requireUrlFlag: false,
178
178
  urlFlag: "tanstack-devtools",
package/dist/dev.js CHANGED
@@ -1,5 +1,5 @@
1
- import { initialState, DevtoolsProvider, PiPProvider } from './chunk/YGJWPK3G.js';
2
- export { PLUGIN_CONTAINER_ID, PLUGIN_TITLE_CONTAINER_ID } from './chunk/YGJWPK3G.js';
1
+ import { initialState, DevtoolsProvider, PiPProvider } from './chunk/YPBMQIC3.js';
2
+ export { PLUGIN_CONTAINER_ID, PLUGIN_TITLE_CONTAINER_ID } from './chunk/YPBMQIC3.js';
3
3
  import { render, createComponent, Portal } from 'solid-js/web';
4
4
  import { lazy } from 'solid-js';
5
5
  import { ClientEventBus } from '@tanstack/devtools-event-bus/client';
@@ -30,7 +30,7 @@ var TanStackDevtoolsCore = class {
30
30
  const mountTo = el;
31
31
  const dispose = render(() => {
32
32
  const _self$ = this;
33
- this.#Component = lazy(() => import('./devtools/LWN3DL7E.js'));
33
+ this.#Component = lazy(() => import('./devtools/2YO4AD7X.js'));
34
34
  const Devtools = this.#Component;
35
35
  this.#eventBus = new ClientEventBus(this.#eventBusConfig);
36
36
  this.#eventBus.start();
@@ -1,4 +1,4 @@
1
- import { usePiPWindow, TANSTACK_DEVTOOLS, keyboardModifiers, getAllPermutations, DevtoolsContext, PLUGIN_TITLE_CONTAINER_ID, PLUGIN_CONTAINER_ID, MAX_ACTIVE_PLUGINS, uppercaseFirstLetter } from '../chunk/YGJWPK3G.js';
1
+ import { usePiPWindow, TANSTACK_DEVTOOLS, keyboardModifiers, getAllPermutations, DevtoolsContext, PLUGIN_TITLE_CONTAINER_ID, PLUGIN_CONTAINER_ID, MAX_ACTIVE_PLUGINS, uppercaseFirstLetter } from '../chunk/YPBMQIC3.js';
2
2
  import { delegateEvents, createComponent, Portal, template, use, setAttribute, insert, memo, effect, className, addEventListener, style, classList } from 'solid-js/web';
3
3
  import { createContext, createSignal, createEffect, onCleanup, Show, createMemo, For, useContext, onMount } from 'solid-js';
4
4
  import { createShortcut, useKeyDownList } from '@solid-primitives/keyboard';
@@ -1920,13 +1920,15 @@ var MainPanel = (props) => {
1920
1920
  }
1921
1921
  }));
1922
1922
  effect((_p$) => {
1923
- var _v$ = pip().pipWindow ? "100vh" : height() + "px", _v$2 = clsx3(styles().devtoolsPanelContainer(settings().panelLocation, Boolean(pip().pipWindow)), styles().devtoolsPanelContainerAnimation(props.isOpen(), height(), settings().panelLocation), styles().devtoolsPanelContainerVisibility(props.isOpen()), styles().devtoolsPanelContainerResizing(props.isResizing));
1923
+ var _v$ = pip().pipWindow ? "100vh" : height() + "px", _v$2 = pip().pipWindow ? "100vh" : height() + "px", _v$3 = clsx3(styles().devtoolsPanelContainer(settings().panelLocation, Boolean(pip().pipWindow)), styles().devtoolsPanelContainerAnimation(props.isOpen(), height(), settings().panelLocation), styles().devtoolsPanelContainerVisibility(props.isOpen()), styles().devtoolsPanelContainerResizing(props.isResizing));
1924
1924
  _v$ !== _p$.e && ((_p$.e = _v$) != null ? _el$.style.setProperty("height", _v$) : _el$.style.removeProperty("height"));
1925
- _v$2 !== _p$.t && className(_el$, _p$.t = _v$2);
1925
+ _v$2 !== _p$.t && ((_p$.t = _v$2) != null ? _el$.style.setProperty("--tsd-main-panel-height", _v$2) : _el$.style.removeProperty("--tsd-main-panel-height"));
1926
+ _v$3 !== _p$.a && className(_el$, _p$.a = _v$3);
1926
1927
  return _p$;
1927
1928
  }, {
1928
1929
  e: void 0,
1929
- t: void 0
1930
+ t: void 0,
1931
+ a: void 0
1930
1932
  });
1931
1933
  return _el$;
1932
1934
  })();
@@ -1,4 +1,4 @@
1
- import { usePiPWindow, TANSTACK_DEVTOOLS, keyboardModifiers, getAllPermutations, DevtoolsContext, PLUGIN_TITLE_CONTAINER_ID, PLUGIN_CONTAINER_ID, MAX_ACTIVE_PLUGINS, uppercaseFirstLetter } from '../chunk/YGJWPK3G.js';
1
+ import { usePiPWindow, TANSTACK_DEVTOOLS, keyboardModifiers, getAllPermutations, DevtoolsContext, PLUGIN_TITLE_CONTAINER_ID, PLUGIN_CONTAINER_ID, MAX_ACTIVE_PLUGINS, uppercaseFirstLetter } from '../chunk/YPBMQIC3.js';
2
2
  import { createComponent, Portal, ssr, ssrAttribute, escape, ssrStyle } from 'solid-js/web';
3
3
  import { createContext, createSignal, createEffect, onCleanup, Show, createMemo, For, useContext, onMount } from 'solid-js';
4
4
  import { createShortcut, useKeyDownList } from '@solid-primitives/keyboard';
@@ -1899,7 +1899,7 @@ var MainPanel = (props) => {
1899
1899
  settings
1900
1900
  } = useDevtoolsSettings();
1901
1901
  const pip = usePiPWindow();
1902
- return ssr(_tmpl$4, ssrAttribute("id", escape(TANSTACK_DEVTOOLS, true), false), "height:" + (pip().pipWindow ? "100vh" : escape(height(), true) + "px"), ssrAttribute("class", escape(clsx3(styles().devtoolsPanelContainer(settings().panelLocation, Boolean(pip().pipWindow)), styles().devtoolsPanelContainerAnimation(props.isOpen(), height(), settings().panelLocation), styles().devtoolsPanelContainerVisibility(props.isOpen()), styles().devtoolsPanelContainerResizing(props.isResizing)), true), false), escape(createComponent(DrawClientProvider, {
1902
+ return ssr(_tmpl$4, ssrAttribute("id", escape(TANSTACK_DEVTOOLS, true), false), "height:" + (pip().pipWindow ? "100vh" : escape(height(), true) + "px") + (";--tsd-main-panel-height:" + (pip().pipWindow ? "100vh" : escape(height(), true) + "px")), ssrAttribute("class", escape(clsx3(styles().devtoolsPanelContainer(settings().panelLocation, Boolean(pip().pipWindow)), styles().devtoolsPanelContainerAnimation(props.isOpen(), height(), settings().panelLocation), styles().devtoolsPanelContainerVisibility(props.isOpen()), styles().devtoolsPanelContainerResizing(props.isResizing)), true), false), escape(createComponent(DrawClientProvider, {
1903
1903
  animationMs: 400,
1904
1904
  get children() {
1905
1905
  return props.children;
package/dist/index.d.ts CHANGED
@@ -54,7 +54,7 @@ type DevtoolsStore = {
54
54
  panelLocation: 'top' | 'bottom';
55
55
  /**
56
56
  * The hotkey to open the dev tools
57
- * @default ["Shift", "A"]
57
+ * @default ["Control", "~"]
58
58
  */
59
59
  openHotkey: Array<KeyboardKey>;
60
60
  /**
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { initialState, DevtoolsProvider, PiPProvider } from './chunk/YGJWPK3G.js';
2
- export { PLUGIN_CONTAINER_ID, PLUGIN_TITLE_CONTAINER_ID } from './chunk/YGJWPK3G.js';
1
+ import { initialState, DevtoolsProvider, PiPProvider } from './chunk/YPBMQIC3.js';
2
+ export { PLUGIN_CONTAINER_ID, PLUGIN_TITLE_CONTAINER_ID } from './chunk/YPBMQIC3.js';
3
3
  import { render, createComponent, Portal } from 'solid-js/web';
4
4
  import { lazy } from 'solid-js';
5
5
  import { ClientEventBus } from '@tanstack/devtools-event-bus/client';
@@ -30,7 +30,7 @@ var TanStackDevtoolsCore = class {
30
30
  const mountTo = el;
31
31
  const dispose = render(() => {
32
32
  const _self$ = this;
33
- this.#Component = lazy(() => import('./devtools/LWN3DL7E.js'));
33
+ this.#Component = lazy(() => import('./devtools/2YO4AD7X.js'));
34
34
  const Devtools = this.#Component;
35
35
  this.#eventBus = new ClientEventBus(this.#eventBusConfig);
36
36
  this.#eventBus.start();
package/dist/server.js CHANGED
@@ -1,5 +1,5 @@
1
- import { initialState } from './chunk/YGJWPK3G.js';
2
- export { PLUGIN_CONTAINER_ID, PLUGIN_TITLE_CONTAINER_ID } from './chunk/YGJWPK3G.js';
1
+ import { initialState } from './chunk/YPBMQIC3.js';
2
+ export { PLUGIN_CONTAINER_ID, PLUGIN_TITLE_CONTAINER_ID } from './chunk/YPBMQIC3.js';
3
3
  import 'solid-js/web';
4
4
  import 'solid-js';
5
5
  import '@tanstack/devtools-event-bus/client';
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@tanstack/devtools",
3
- "version": "0.9.1",
3
+ "version": "0.10.0",
4
4
  "description": "TanStack Devtools is a set of tools for building advanced devtools for your application.",
5
5
  "author": "Tanner Linsley",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
9
- "url": "https://github.com/TanStack/devtools.git",
9
+ "url": "git+https://github.com/TanStack/devtools.git",
10
10
  "directory": "packages/devtools"
11
11
  },
12
12
  "homepage": "https://tanstack.com/devtools",
@@ -21,6 +21,7 @@ export const MainPanel = (props: {
21
21
  id={TANSTACK_DEVTOOLS}
22
22
  style={{
23
23
  height: pip().pipWindow ? '100vh' : height() + 'px',
24
+ '--tsd-main-panel-height': pip().pipWindow ? '100vh' : height() + 'px',
24
25
  }}
25
26
  class={clsx(
26
27
  styles().devtoolsPanelContainer(
@@ -49,7 +49,7 @@ export type DevtoolsStore = {
49
49
  panelLocation: 'top' | 'bottom'
50
50
  /**
51
51
  * The hotkey to open the dev tools
52
- * @default ["Shift", "A"]
52
+ * @default ["Control", "~"]
53
53
  */
54
54
  openHotkey: Array<KeyboardKey>
55
55
  /**
@@ -99,7 +99,7 @@ export const initialState: DevtoolsStore = {
99
99
  hideUntilHover: false,
100
100
  position: 'bottom-right',
101
101
  panelLocation: 'bottom',
102
- openHotkey: ['Shift', 'A'],
102
+ openHotkey: ['Control', '~'],
103
103
  inspectHotkey: ['Shift', 'CtrlOrMeta'],
104
104
  requireUrlFlag: false,
105
105
  urlFlag: 'tanstack-devtools',