@tanstack/solid-pacer-devtools 0.6.1 → 0.6.3
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.
|
@@ -2,10 +2,9 @@ import { DevtoolsPanelProps } from "@tanstack/devtools-utils/solid";
|
|
|
2
2
|
import { JSX } from "solid-js";
|
|
3
3
|
|
|
4
4
|
//#region src/SolidPacerDevtools.d.ts
|
|
5
|
-
|
|
6
|
-
type PacerDevtoolsPanelComponent = (typeof pacerDevtoolsPanels)[0];
|
|
5
|
+
type PacerDevtoolsPanelComponent = (props?: PacerDevtoolsSolidInit) => JSX.Element;
|
|
7
6
|
declare const PacerDevtoolsPanel: PacerDevtoolsPanelComponent;
|
|
8
|
-
interface PacerDevtoolsSolidInit extends DevtoolsPanelProps {}
|
|
7
|
+
interface PacerDevtoolsSolidInit extends Partial<DevtoolsPanelProps> {}
|
|
9
8
|
//#endregion
|
|
10
9
|
export { PacerDevtoolsPanel, PacerDevtoolsSolidInit };
|
|
11
10
|
//# sourceMappingURL=SolidPacerDevtools.d.ts.map
|
|
@@ -3,8 +3,14 @@ import { PacerDevtoolsCore } from "@tanstack/pacer-devtools";
|
|
|
3
3
|
|
|
4
4
|
//#region src/SolidPacerDevtools.tsx
|
|
5
5
|
const pacerDevtoolsPanels = createSolidPanel(PacerDevtoolsCore);
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
function resolvePanelProps(props) {
|
|
7
|
+
return {
|
|
8
|
+
theme: props?.theme ?? "dark",
|
|
9
|
+
devtoolsOpen: props?.devtoolsOpen ?? false
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
const PacerDevtoolsPanel = (props) => pacerDevtoolsPanels[0](resolvePanelProps(props));
|
|
13
|
+
const PacerDevtoolsPanelNoOp = (props) => pacerDevtoolsPanels[1](resolvePanelProps(props));
|
|
8
14
|
|
|
9
15
|
//#endregion
|
|
10
16
|
export { PacerDevtoolsPanel, PacerDevtoolsPanelNoOp };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SolidPacerDevtools.js","names":["createSolidPanel","PacerDevtoolsCore","JSX","DevtoolsPanelProps","pacerDevtoolsPanels","props","Element","PacerDevtoolsPanelComponent","PacerDevtoolsPanel","PacerDevtoolsPanelNoOp","
|
|
1
|
+
{"version":3,"file":"SolidPacerDevtools.js","names":["createSolidPanel","PacerDevtoolsCore","JSX","DevtoolsPanelProps","pacerDevtoolsPanels","props","Element","PacerDevtoolsPanelComponent","PacerDevtoolsSolidInit","resolvePanelProps","theme","devtoolsOpen","PacerDevtoolsPanel","PacerDevtoolsPanelNoOp","Partial"],"sources":["../src/SolidPacerDevtools.tsx"],"sourcesContent":["import { createSolidPanel } from '@tanstack/devtools-utils/solid'\nimport { PacerDevtoolsCore } from '@tanstack/pacer-devtools'\nimport type { JSX } from 'solid-js'\nimport type { DevtoolsPanelProps } from '@tanstack/devtools-utils/solid'\n\nconst pacerDevtoolsPanels: readonly [\n (props: DevtoolsPanelProps) => JSX.Element,\n (props: DevtoolsPanelProps) => JSX.Element,\n] = createSolidPanel(PacerDevtoolsCore)\n\ntype PacerDevtoolsPanelComponent = (\n props?: PacerDevtoolsSolidInit,\n) => JSX.Element\n\nfunction resolvePanelProps(props?: PacerDevtoolsSolidInit): DevtoolsPanelProps {\n return {\n theme: props?.theme ?? 'dark',\n devtoolsOpen: props?.devtoolsOpen ?? false,\n }\n}\n\nexport const PacerDevtoolsPanel: PacerDevtoolsPanelComponent = (props) =>\n pacerDevtoolsPanels[0](resolvePanelProps(props))\nexport const PacerDevtoolsPanelNoOp: PacerDevtoolsPanelComponent = (props) =>\n pacerDevtoolsPanels[1](resolvePanelProps(props))\n\nexport interface PacerDevtoolsSolidInit extends Partial<DevtoolsPanelProps> {}\n"],"mappings":";;;;AAKA,MAAMI,sBAGFJ,iBAAiBC,kBAAkB;AAMvC,SAASQ,kBAAkBJ,OAAoD;CAC7E,OAAO;EACLK,OAAOL,OAAOK,SAAS;EACvBC,cAAcN,OAAOM,gBAAgB;EACtC;;AAGH,MAAaC,sBAAmDP,UAC9DD,oBAAoB,GAAGK,kBAAkBJ,MAAM,CAAC;AAClD,MAAaQ,0BAAuDR,UAClED,oBAAoB,GAAGK,kBAAkBJ,MAAM,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/solid-pacer-devtools",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.3",
|
|
4
4
|
"description": "Solid adapter for devtools for Pacer.",
|
|
5
5
|
"author": "Tanner Linsley",
|
|
6
6
|
"license": "MIT",
|
|
@@ -41,12 +41,12 @@
|
|
|
41
41
|
"solid-js": ">=1.9.7"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@tanstack/devtools-utils": "^0.
|
|
45
|
-
"@tanstack/pacer-devtools": "1.
|
|
44
|
+
"@tanstack/devtools-utils": "^0.5.0",
|
|
45
|
+
"@tanstack/pacer-devtools": "1.3.1"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"csstype": "^3.2.3",
|
|
49
|
-
"vite-plugin-solid": "^2.11.
|
|
49
|
+
"vite-plugin-solid": "^2.11.12"
|
|
50
50
|
},
|
|
51
51
|
"scripts": {
|
|
52
52
|
"clean": "premove ./build ./dist",
|
|
@@ -8,11 +8,20 @@ const pacerDevtoolsPanels: readonly [
|
|
|
8
8
|
(props: DevtoolsPanelProps) => JSX.Element,
|
|
9
9
|
] = createSolidPanel(PacerDevtoolsCore)
|
|
10
10
|
|
|
11
|
-
type PacerDevtoolsPanelComponent = (
|
|
11
|
+
type PacerDevtoolsPanelComponent = (
|
|
12
|
+
props?: PacerDevtoolsSolidInit,
|
|
13
|
+
) => JSX.Element
|
|
12
14
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
function resolvePanelProps(props?: PacerDevtoolsSolidInit): DevtoolsPanelProps {
|
|
16
|
+
return {
|
|
17
|
+
theme: props?.theme ?? 'dark',
|
|
18
|
+
devtoolsOpen: props?.devtoolsOpen ?? false,
|
|
19
|
+
}
|
|
20
|
+
}
|
|
17
21
|
|
|
18
|
-
export
|
|
22
|
+
export const PacerDevtoolsPanel: PacerDevtoolsPanelComponent = (props) =>
|
|
23
|
+
pacerDevtoolsPanels[0](resolvePanelProps(props))
|
|
24
|
+
export const PacerDevtoolsPanelNoOp: PacerDevtoolsPanelComponent = (props) =>
|
|
25
|
+
pacerDevtoolsPanels[1](resolvePanelProps(props))
|
|
26
|
+
|
|
27
|
+
export interface PacerDevtoolsSolidInit extends Partial<DevtoolsPanelProps> {}
|