@tanstack/solid-pacer-devtools 0.5.5 → 0.6.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/dist/SolidPacerDevtools.d.ts +4 -2
- package/dist/SolidPacerDevtools.js +3 -1
- package/dist/SolidPacerDevtools.js.map +1 -1
- package/dist/index.d.ts +4 -10
- package/dist/index.js.map +1 -1
- package/dist/plugin.d.ts +3 -12
- package/dist/plugin.js +3 -1
- package/dist/plugin.js.map +1 -1
- package/package.json +4 -4
- package/src/SolidPacerDevtools.tsx +13 -4
- package/src/index.ts +2 -2
- package/src/plugin.tsx +7 -2
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { DevtoolsPanelProps } from "@tanstack/devtools-utils/solid";
|
|
2
|
-
import
|
|
2
|
+
import { JSX } from "solid-js";
|
|
3
3
|
|
|
4
4
|
//#region src/SolidPacerDevtools.d.ts
|
|
5
|
-
declare const
|
|
5
|
+
declare const pacerDevtoolsPanels: readonly [(props: DevtoolsPanelProps) => JSX.Element, (props: DevtoolsPanelProps) => JSX.Element];
|
|
6
|
+
type PacerDevtoolsPanelComponent = (typeof pacerDevtoolsPanels)[0];
|
|
7
|
+
declare const PacerDevtoolsPanel: PacerDevtoolsPanelComponent;
|
|
6
8
|
interface PacerDevtoolsSolidInit extends DevtoolsPanelProps {}
|
|
7
9
|
//#endregion
|
|
8
10
|
export { PacerDevtoolsPanel, PacerDevtoolsSolidInit };
|
|
@@ -2,7 +2,9 @@ import { createSolidPanel } from "@tanstack/devtools-utils/solid";
|
|
|
2
2
|
import { PacerDevtoolsCore } from "@tanstack/pacer-devtools";
|
|
3
3
|
|
|
4
4
|
//#region src/SolidPacerDevtools.tsx
|
|
5
|
-
const
|
|
5
|
+
const pacerDevtoolsPanels = createSolidPanel(PacerDevtoolsCore);
|
|
6
|
+
const PacerDevtoolsPanel = pacerDevtoolsPanels[0];
|
|
7
|
+
const PacerDevtoolsPanelNoOp = pacerDevtoolsPanels[1];
|
|
6
8
|
|
|
7
9
|
//#endregion
|
|
8
10
|
export { PacerDevtoolsPanel, PacerDevtoolsPanelNoOp };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SolidPacerDevtools.js","names":["createSolidPanel","PacerDevtoolsCore","DevtoolsPanelProps","PacerDevtoolsPanel","PacerDevtoolsPanelNoOp","PacerDevtoolsSolidInit"],"sources":["../src/SolidPacerDevtools.tsx"],"sourcesContent":["import { createSolidPanel } from '@tanstack/devtools-utils/solid'\nimport { PacerDevtoolsCore } from '@tanstack/pacer-devtools'\nimport type { DevtoolsPanelProps } from '@tanstack/devtools-utils/solid'\n\nconst [
|
|
1
|
+
{"version":3,"file":"SolidPacerDevtools.js","names":["createSolidPanel","PacerDevtoolsCore","JSX","DevtoolsPanelProps","pacerDevtoolsPanels","props","Element","PacerDevtoolsPanelComponent","PacerDevtoolsPanel","PacerDevtoolsPanelNoOp","PacerDevtoolsSolidInit"],"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 = (typeof pacerDevtoolsPanels)[0]\n\nexport const PacerDevtoolsPanel: PacerDevtoolsPanelComponent =\n pacerDevtoolsPanels[0]\nexport const PacerDevtoolsPanelNoOp: PacerDevtoolsPanelComponent =\n pacerDevtoolsPanels[1]\n\nexport interface PacerDevtoolsSolidInit extends DevtoolsPanelProps {}\n"],"mappings":";;;;AAKA,MAAMI,sBAGFJ,iBAAiBC,kBAAkB;AAIvC,MAAaO,qBACXJ,oBAAoB;AACtB,MAAaK,yBACXL,oBAAoB"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,9 @@
|
|
|
1
|
-
import { PacerDevtoolsSolidInit } from "./SolidPacerDevtools.js";
|
|
2
|
-
import
|
|
3
|
-
import * as solid_js0 from "solid-js";
|
|
1
|
+
import { PacerDevtoolsPanel as PacerDevtoolsPanel$1, PacerDevtoolsSolidInit } from "./SolidPacerDevtools.js";
|
|
2
|
+
import { pacerDevtoolsPlugin as pacerDevtoolsPlugin$1 } from "./plugin.js";
|
|
4
3
|
|
|
5
4
|
//#region src/index.d.ts
|
|
6
|
-
declare const PacerDevtoolsPanel:
|
|
7
|
-
declare const pacerDevtoolsPlugin:
|
|
8
|
-
render: (_el: HTMLElement, props: TanStackDevtoolsPluginProps) => solid_js0.JSX.Element;
|
|
9
|
-
name: string;
|
|
10
|
-
id?: string;
|
|
11
|
-
defaultOpen?: boolean;
|
|
12
|
-
};
|
|
5
|
+
declare const PacerDevtoolsPanel: typeof PacerDevtoolsPanel$1;
|
|
6
|
+
declare const pacerDevtoolsPlugin: typeof pacerDevtoolsPlugin$1;
|
|
13
7
|
//#endregion
|
|
14
8
|
export { PacerDevtoolsPanel, type PacerDevtoolsSolidInit, pacerDevtoolsPlugin };
|
|
15
9
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["Devtools.PacerDevtoolsPanelNoOp","Devtools.PacerDevtoolsPanel","plugin.pacerDevtoolsNoOpPlugin","plugin.pacerDevtoolsPlugin"],"sources":["../src/index.ts"],"sourcesContent":["import * as Devtools from './SolidPacerDevtools'\nimport * as plugin from './plugin'\n\nexport const PacerDevtoolsPanel =\n process.env.NODE_ENV !== 'development'\n ? Devtools.PacerDevtoolsPanelNoOp\n : Devtools.PacerDevtoolsPanel\n\nexport const pacerDevtoolsPlugin =\n process.env.NODE_ENV !== 'development'\n ? plugin.pacerDevtoolsNoOpPlugin\n : plugin.pacerDevtoolsPlugin\n\nexport type { PacerDevtoolsSolidInit } from './SolidPacerDevtools'\n"],"mappings":";;;;AAGA,MAAa,qBACX,QAAQ,IAAI,aAAa,gBACrBA,yBACAC;AAEN,MAAa,sBACX,QAAQ,IAAI,aAAa,gBACrBC,0BACAC"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["Devtools.PacerDevtoolsPanelNoOp","Devtools.PacerDevtoolsPanel","plugin.pacerDevtoolsNoOpPlugin","plugin.pacerDevtoolsPlugin"],"sources":["../src/index.ts"],"sourcesContent":["import * as Devtools from './SolidPacerDevtools'\nimport * as plugin from './plugin'\n\nexport const PacerDevtoolsPanel: typeof Devtools.PacerDevtoolsPanel =\n process.env.NODE_ENV !== 'development'\n ? Devtools.PacerDevtoolsPanelNoOp\n : Devtools.PacerDevtoolsPanel\n\nexport const pacerDevtoolsPlugin: typeof plugin.pacerDevtoolsPlugin =\n process.env.NODE_ENV !== 'development'\n ? plugin.pacerDevtoolsNoOpPlugin\n : plugin.pacerDevtoolsPlugin\n\nexport type { PacerDevtoolsSolidInit } from './SolidPacerDevtools'\n"],"mappings":";;;;AAGA,MAAa,qBACX,QAAQ,IAAI,aAAa,gBACrBA,yBACAC;AAEN,MAAa,sBACX,QAAQ,IAAI,aAAa,gBACrBC,0BACAC"}
|
package/dist/plugin.d.ts
CHANGED
|
@@ -1,17 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { createSolidPlugin } from "@tanstack/devtools-utils/solid";
|
|
2
2
|
|
|
3
3
|
//#region src/plugin.d.ts
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
name: string;
|
|
7
|
-
id?: string;
|
|
8
|
-
defaultOpen?: boolean;
|
|
9
|
-
}, pacerDevtoolsNoOpPlugin: () => {
|
|
10
|
-
render: (_el: HTMLElement, _props: TanStackDevtoolsPluginProps) => solid_js0.JSX.Element;
|
|
11
|
-
name: string;
|
|
12
|
-
id?: string;
|
|
13
|
-
defaultOpen?: boolean;
|
|
14
|
-
};
|
|
4
|
+
type PacerDevtoolsPluginFactory = ReturnType<typeof createSolidPlugin>[0];
|
|
5
|
+
declare const pacerDevtoolsPlugin: PacerDevtoolsPluginFactory;
|
|
15
6
|
//#endregion
|
|
16
7
|
export { pacerDevtoolsPlugin };
|
|
17
8
|
//# sourceMappingURL=plugin.d.ts.map
|
package/dist/plugin.js
CHANGED
|
@@ -2,10 +2,12 @@ import { PacerDevtoolsPanel } from "./SolidPacerDevtools.js";
|
|
|
2
2
|
import { createSolidPlugin } from "@tanstack/devtools-utils/solid";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin.tsx
|
|
5
|
-
const
|
|
5
|
+
const pacerDevtoolsPlugins = createSolidPlugin({
|
|
6
6
|
name: "TanStack Pacer",
|
|
7
7
|
Component: PacerDevtoolsPanel
|
|
8
8
|
});
|
|
9
|
+
const pacerDevtoolsPlugin = pacerDevtoolsPlugins[0];
|
|
10
|
+
const pacerDevtoolsNoOpPlugin = pacerDevtoolsPlugins[1];
|
|
9
11
|
|
|
10
12
|
//#endregion
|
|
11
13
|
export { pacerDevtoolsNoOpPlugin, pacerDevtoolsPlugin };
|
package/dist/plugin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","names":["createSolidPlugin","PacerDevtoolsPanel","
|
|
1
|
+
{"version":3,"file":"plugin.js","names":["createSolidPlugin","PacerDevtoolsPanel","PacerDevtoolsPluginFactory","ReturnType","pacerDevtoolsPlugins","name","Component","pacerDevtoolsPlugin","pacerDevtoolsNoOpPlugin"],"sources":["../src/plugin.tsx"],"sourcesContent":["import { createSolidPlugin } from '@tanstack/devtools-utils/solid'\nimport { PacerDevtoolsPanel } from './SolidPacerDevtools'\n\ntype PacerDevtoolsPluginFactory = ReturnType<typeof createSolidPlugin>[0]\n\nconst pacerDevtoolsPlugins = createSolidPlugin({\n name: 'TanStack Pacer',\n Component: PacerDevtoolsPanel,\n})\n\nexport const pacerDevtoolsPlugin: PacerDevtoolsPluginFactory =\n pacerDevtoolsPlugins[0]\nexport const pacerDevtoolsNoOpPlugin: PacerDevtoolsPluginFactory =\n pacerDevtoolsPlugins[1]\n"],"mappings":";;;;AAKA,MAAMI,uBAAuBJ,kBAAkB;CAC7CK,MAAM;CACNC,WAAWL;CACZ,CAAC;AAEF,MAAaM,sBACXH,qBAAqB;AACvB,MAAaI,0BACXJ,qBAAqB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/solid-pacer-devtools",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "Solid adapter for devtools for Pacer.",
|
|
5
5
|
"author": "Tanner Linsley",
|
|
6
6
|
"license": "MIT",
|
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@tanstack/devtools-utils": "^0.4.0",
|
|
45
|
-
"@tanstack/pacer-devtools": "1.
|
|
45
|
+
"@tanstack/pacer-devtools": "1.2.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"csstype": "^3.
|
|
49
|
-
"vite-plugin-solid": "^2.11.
|
|
48
|
+
"csstype": "^3.2.3",
|
|
49
|
+
"vite-plugin-solid": "^2.11.11"
|
|
50
50
|
},
|
|
51
51
|
"scripts": {
|
|
52
52
|
"clean": "premove ./build ./dist",
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import { createSolidPanel } from '@tanstack/devtools-utils/solid'
|
|
2
2
|
import { PacerDevtoolsCore } from '@tanstack/pacer-devtools'
|
|
3
|
+
import type { JSX } from 'solid-js'
|
|
3
4
|
import type { DevtoolsPanelProps } from '@tanstack/devtools-utils/solid'
|
|
4
5
|
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
const pacerDevtoolsPanels: readonly [
|
|
7
|
+
(props: DevtoolsPanelProps) => JSX.Element,
|
|
8
|
+
(props: DevtoolsPanelProps) => JSX.Element,
|
|
9
|
+
] = createSolidPanel(PacerDevtoolsCore)
|
|
10
|
+
|
|
11
|
+
type PacerDevtoolsPanelComponent = (typeof pacerDevtoolsPanels)[0]
|
|
8
12
|
|
|
9
|
-
export
|
|
13
|
+
export const PacerDevtoolsPanel: PacerDevtoolsPanelComponent =
|
|
14
|
+
pacerDevtoolsPanels[0]
|
|
15
|
+
export const PacerDevtoolsPanelNoOp: PacerDevtoolsPanelComponent =
|
|
16
|
+
pacerDevtoolsPanels[1]
|
|
17
|
+
|
|
18
|
+
export interface PacerDevtoolsSolidInit extends DevtoolsPanelProps {}
|
package/src/index.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as Devtools from './SolidPacerDevtools'
|
|
2
2
|
import * as plugin from './plugin'
|
|
3
3
|
|
|
4
|
-
export const PacerDevtoolsPanel =
|
|
4
|
+
export const PacerDevtoolsPanel: typeof Devtools.PacerDevtoolsPanel =
|
|
5
5
|
process.env.NODE_ENV !== 'development'
|
|
6
6
|
? Devtools.PacerDevtoolsPanelNoOp
|
|
7
7
|
: Devtools.PacerDevtoolsPanel
|
|
8
8
|
|
|
9
|
-
export const pacerDevtoolsPlugin =
|
|
9
|
+
export const pacerDevtoolsPlugin: typeof plugin.pacerDevtoolsPlugin =
|
|
10
10
|
process.env.NODE_ENV !== 'development'
|
|
11
11
|
? plugin.pacerDevtoolsNoOpPlugin
|
|
12
12
|
: plugin.pacerDevtoolsPlugin
|
package/src/plugin.tsx
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import { createSolidPlugin } from '@tanstack/devtools-utils/solid'
|
|
2
2
|
import { PacerDevtoolsPanel } from './SolidPacerDevtools'
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
type PacerDevtoolsPluginFactory = ReturnType<typeof createSolidPlugin>[0]
|
|
5
|
+
|
|
6
|
+
const pacerDevtoolsPlugins = createSolidPlugin({
|
|
5
7
|
name: 'TanStack Pacer',
|
|
6
8
|
Component: PacerDevtoolsPanel,
|
|
7
9
|
})
|
|
8
10
|
|
|
9
|
-
export
|
|
11
|
+
export const pacerDevtoolsPlugin: PacerDevtoolsPluginFactory =
|
|
12
|
+
pacerDevtoolsPlugins[0]
|
|
13
|
+
export const pacerDevtoolsNoOpPlugin: PacerDevtoolsPluginFactory =
|
|
14
|
+
pacerDevtoolsPlugins[1]
|