@tanstack/devtools 0.8.0 → 0.8.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.
package/dist/dev.js
CHANGED
|
@@ -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/OLELRPKB.js'));
|
|
34
34
|
const Devtools = this.#Component;
|
|
35
35
|
this.#eventBus = new ClientEventBus(this.#eventBusConfig);
|
|
36
36
|
this.#eventBus.start();
|
|
@@ -3498,7 +3498,9 @@ var SourceInspector = () => {
|
|
|
3498
3498
|
window.getSelection()?.removeAllRanges();
|
|
3499
3499
|
e.preventDefault();
|
|
3500
3500
|
e.stopPropagation();
|
|
3501
|
-
|
|
3501
|
+
const baseUrl = new URL(import.meta.env?.BASE_URL ?? "/", location.origin);
|
|
3502
|
+
const url = new URL(`__tsd/open-source?source=${encodeURIComponent(highlightState.dataSource)}`, baseUrl);
|
|
3503
|
+
fetch(url).catch(() => {
|
|
3502
3504
|
});
|
|
3503
3505
|
});
|
|
3504
3506
|
const currentElementBoxStyles = createMemo(() => {
|
|
@@ -4035,7 +4035,9 @@ var SourceInspector = () => {
|
|
|
4035
4035
|
window.getSelection()?.removeAllRanges();
|
|
4036
4036
|
e.preventDefault();
|
|
4037
4037
|
e.stopPropagation();
|
|
4038
|
-
|
|
4038
|
+
const baseUrl = new URL(import.meta.env?.BASE_URL ?? "/", location.origin);
|
|
4039
|
+
const url = new URL(`__tsd/open-source?source=${encodeURIComponent(highlightState.dataSource)}`, baseUrl);
|
|
4040
|
+
fetch(url).catch(() => {
|
|
4039
4041
|
});
|
|
4040
4042
|
});
|
|
4041
4043
|
const currentElementBoxStyles = createMemo(() => {
|
package/dist/index.js
CHANGED
|
@@ -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/OLELRPKB.js'));
|
|
34
34
|
const Devtools = this.#Component;
|
|
35
35
|
this.#eventBus = new ClientEventBus(this.#eventBusConfig);
|
|
36
36
|
this.#eventBus.start();
|
package/package.json
CHANGED
|
@@ -78,11 +78,15 @@ export const SourceInspector = () => {
|
|
|
78
78
|
e.preventDefault()
|
|
79
79
|
e.stopPropagation()
|
|
80
80
|
|
|
81
|
-
|
|
82
|
-
|
|
81
|
+
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
82
|
+
const baseUrl = new URL(import.meta.env?.BASE_URL ?? '/', location.origin)
|
|
83
|
+
const url = new URL(
|
|
84
|
+
`__tsd/open-source?source=${encodeURIComponent(
|
|
83
85
|
highlightState.dataSource,
|
|
84
86
|
)}`,
|
|
85
|
-
|
|
87
|
+
baseUrl,
|
|
88
|
+
)
|
|
89
|
+
fetch(url).catch(() => {})
|
|
86
90
|
})
|
|
87
91
|
|
|
88
92
|
const currentElementBoxStyles = createMemo(() => {
|