@tanstack/devtools 0.10.0 → 0.10.2
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/chunk/{YPBMQIC3.js → FDVL27AL.js} +1 -1
- package/dist/dev.js +3 -3
- package/dist/devtools/{WLSKTQDC.js → 4DKZZTJY.js} +2 -2
- package/dist/devtools/{2YO4AD7X.js → FY4PLC37.js} +2 -2
- package/dist/index.js +3 -3
- package/dist/server.js +2 -2
- package/package.json +2 -2
- package/src/components/source-inspector.tsx +1 -1
- package/src/context/pip-context.tsx +3 -2
- package/src/core.tsx +3 -1
|
@@ -36,7 +36,7 @@ var PiPProvider = (props) => {
|
|
|
36
36
|
if (!pip) {
|
|
37
37
|
throw new Error("Failed to open popup. Please allow popups for this site to view the devtools in picture-in-picture mode.");
|
|
38
38
|
}
|
|
39
|
-
import.meta
|
|
39
|
+
import.meta?.hot?.on("vite:beforeUpdate", () => {
|
|
40
40
|
localStorage.setItem("pip_open", "false");
|
|
41
41
|
closePipWindow();
|
|
42
42
|
});
|
package/dist/dev.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { initialState, DevtoolsProvider, PiPProvider } from './chunk/
|
|
2
|
-
export { PLUGIN_CONTAINER_ID, PLUGIN_TITLE_CONTAINER_ID } from './chunk/
|
|
1
|
+
import { initialState, DevtoolsProvider, PiPProvider } from './chunk/FDVL27AL.js';
|
|
2
|
+
export { PLUGIN_CONTAINER_ID, PLUGIN_TITLE_CONTAINER_ID } from './chunk/FDVL27AL.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/
|
|
33
|
+
this.#Component = lazy(() => import('./devtools/FY4PLC37.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/
|
|
1
|
+
import { usePiPWindow, TANSTACK_DEVTOOLS, keyboardModifiers, getAllPermutations, DevtoolsContext, PLUGIN_TITLE_CONTAINER_ID, PLUGIN_CONTAINER_ID, MAX_ACTIVE_PLUGINS, uppercaseFirstLetter } from '../chunk/FDVL27AL.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';
|
|
@@ -3555,7 +3555,7 @@ var SourceInspector = () => {
|
|
|
3555
3555
|
window.getSelection()?.removeAllRanges();
|
|
3556
3556
|
e.preventDefault();
|
|
3557
3557
|
e.stopPropagation();
|
|
3558
|
-
const baseUrl = new URL(import.meta
|
|
3558
|
+
const baseUrl = new URL(import.meta?.env?.BASE_URL ?? "/", location.origin);
|
|
3559
3559
|
const url = new URL(`__tsd/open-source?source=${encodeURIComponent(highlightState.dataSource)}`, baseUrl);
|
|
3560
3560
|
fetch(url).catch(() => {
|
|
3561
3561
|
});
|
|
@@ -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/
|
|
1
|
+
import { usePiPWindow, TANSTACK_DEVTOOLS, keyboardModifiers, getAllPermutations, DevtoolsContext, PLUGIN_TITLE_CONTAINER_ID, PLUGIN_CONTAINER_ID, MAX_ACTIVE_PLUGINS, uppercaseFirstLetter } from '../chunk/FDVL27AL.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';
|
|
@@ -4102,7 +4102,7 @@ var SourceInspector = () => {
|
|
|
4102
4102
|
window.getSelection()?.removeAllRanges();
|
|
4103
4103
|
e.preventDefault();
|
|
4104
4104
|
e.stopPropagation();
|
|
4105
|
-
const baseUrl = new URL(import.meta
|
|
4105
|
+
const baseUrl = new URL(import.meta?.env?.BASE_URL ?? "/", location.origin);
|
|
4106
4106
|
const url = new URL(`__tsd/open-source?source=${encodeURIComponent(highlightState.dataSource)}`, baseUrl);
|
|
4107
4107
|
fetch(url).catch(() => {
|
|
4108
4108
|
});
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { initialState, DevtoolsProvider, PiPProvider } from './chunk/
|
|
2
|
-
export { PLUGIN_CONTAINER_ID, PLUGIN_TITLE_CONTAINER_ID } from './chunk/
|
|
1
|
+
import { initialState, DevtoolsProvider, PiPProvider } from './chunk/FDVL27AL.js';
|
|
2
|
+
export { PLUGIN_CONTAINER_ID, PLUGIN_TITLE_CONTAINER_ID } from './chunk/FDVL27AL.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/
|
|
33
|
+
this.#Component = lazy(() => import('./devtools/FY4PLC37.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/
|
|
2
|
-
export { PLUGIN_CONTAINER_ID, PLUGIN_TITLE_CONTAINER_ID } from './chunk/
|
|
1
|
+
import { initialState } from './chunk/FDVL27AL.js';
|
|
2
|
+
export { PLUGIN_CONTAINER_ID, PLUGIN_TITLE_CONTAINER_ID } from './chunk/FDVL27AL.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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/devtools",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.2",
|
|
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",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"goober": "^2.1.16",
|
|
57
57
|
"solid-js": "^1.9.9",
|
|
58
58
|
"@tanstack/devtools-client": "0.0.5",
|
|
59
|
-
"@tanstack/devtools-event-bus": "0.
|
|
59
|
+
"@tanstack/devtools-event-bus": "0.4.0",
|
|
60
60
|
"@tanstack/devtools-ui": "0.4.4"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
@@ -80,7 +80,7 @@ export const SourceInspector = () => {
|
|
|
80
80
|
e.stopPropagation()
|
|
81
81
|
|
|
82
82
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
83
|
-
const baseUrl = new URL(import.meta
|
|
83
|
+
const baseUrl = new URL(import.meta?.env?.BASE_URL ?? '/', location.origin)
|
|
84
84
|
const url = new URL(
|
|
85
85
|
`__tsd/open-source?source=${encodeURIComponent(
|
|
86
86
|
highlightState.dataSource,
|
|
@@ -54,8 +54,9 @@ export const PiPProvider = (props: PiPProviderProps) => {
|
|
|
54
54
|
'Failed to open popup. Please allow popups for this site to view the devtools in picture-in-picture mode.',
|
|
55
55
|
)
|
|
56
56
|
}
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
// can be run outside of vite so we ignore the rule
|
|
58
|
+
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
59
|
+
import.meta?.hot?.on('vite:beforeUpdate', () => {
|
|
59
60
|
localStorage.setItem('pip_open', 'false')
|
|
60
61
|
closePipWindow()
|
|
61
62
|
})
|
package/src/core.tsx
CHANGED
|
@@ -63,7 +63,9 @@ export class TanStackDevtoolsCore {
|
|
|
63
63
|
|
|
64
64
|
mount<T extends HTMLElement>(el: T) {
|
|
65
65
|
// tsup-preset-solid statically replaces this variable during build, which eliminates this code from server bundle
|
|
66
|
-
|
|
66
|
+
// can be run outside of vite so we ignore the rule
|
|
67
|
+
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
68
|
+
if (import.meta?.env?.SSR) return
|
|
67
69
|
|
|
68
70
|
if (this.#isMounted) {
|
|
69
71
|
throw new Error('Devtools is already mounted')
|