@tanstack/solid-pacer-devtools 0.6.3 → 0.8.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/README.md +21 -6
- package/dist/SolidPacerDevtools.d.ts +7 -6
- package/dist/SolidPacerDevtools.js +1 -2
- package/dist/_virtual/_rolldown/runtime.js +18 -0
- package/dist/index.d.ts +5 -7
- package/dist/index.js +1 -2
- package/dist/plugin.d.ts +6 -5
- package/dist/plugin.js +1 -2
- package/package.json +8 -8
- package/dist/SolidPacerDevtools.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/plugin.js.map +0 -1
- package/src/SolidPacerDevtools.tsx +0 -27
- package/src/index.ts +0 -14
- package/src/plugin.tsx +0 -14
- package/src/production.ts +0 -5
package/README.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
<div align="center">
|
|
2
|
-
<
|
|
2
|
+
<picture>
|
|
3
|
+
<source
|
|
4
|
+
media="(prefers-color-scheme: dark)"
|
|
5
|
+
srcset="https://tanstack.com/api/readme/pacer.png?theme=dark"
|
|
6
|
+
/>
|
|
7
|
+
<source
|
|
8
|
+
media="(prefers-color-scheme: light)"
|
|
9
|
+
srcset="https://tanstack.com/api/readme/pacer.png"
|
|
10
|
+
/>
|
|
11
|
+
<img
|
|
12
|
+
src="https://tanstack.com/api/readme/pacer.png"
|
|
13
|
+
alt="TanStack Pacer"
|
|
14
|
+
width="900"
|
|
15
|
+
/>
|
|
16
|
+
</picture>
|
|
3
17
|
</div>
|
|
4
18
|
|
|
5
19
|
<br />
|
|
@@ -29,8 +43,9 @@
|
|
|
29
43
|
</div>
|
|
30
44
|
|
|
31
45
|
<div align="center">
|
|
32
|
-
|
|
46
|
+
|
|
33
47
|
### [Become a Sponsor!](https://github.com/sponsors/tannerlinsley/)
|
|
48
|
+
|
|
34
49
|
</div>
|
|
35
50
|
|
|
36
51
|
# TanStack Pacer
|
|
@@ -88,10 +103,10 @@ A lightweight timing and scheduling library for debouncing, throttling, rate lim
|
|
|
88
103
|
> [!NOTE]
|
|
89
104
|
> You may know **TanStack Pacer** by our adapter names, too!
|
|
90
105
|
>
|
|
91
|
-
> - [**React Pacer**](https://tanstack.com/pacer/latest/docs/framework/react
|
|
92
|
-
> - [**Preact Pacer**](https://tanstack.com/pacer/latest/docs/framework/preact
|
|
93
|
-
> - [**Solid Pacer**](https://tanstack.com/pacer/latest/docs/framework/solid
|
|
94
|
-
> - [**Angular Pacer**](https://tanstack.com/pacer/latest/docs/framework/angular
|
|
106
|
+
> - [**React Pacer**](https://tanstack.com/pacer/latest/docs/framework/react)
|
|
107
|
+
> - [**Preact Pacer**](https://tanstack.com/pacer/latest/docs/framework/preact)
|
|
108
|
+
> - [**Solid Pacer**](https://tanstack.com/pacer/latest/docs/framework/solid)
|
|
109
|
+
> - [**Angular Pacer**](https://tanstack.com/pacer/latest/docs/framework/angular)
|
|
95
110
|
> - Svelte Pacer - needs a contributor!
|
|
96
111
|
> - Vue Pacer - needs a contributor!
|
|
97
112
|
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { DevtoolsPanelProps } from "@tanstack/devtools-utils/solid";
|
|
2
2
|
import { JSX } from "solid-js";
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
declare namespace SolidPacerDevtools_d_exports {
|
|
4
|
+
export { PacerDevtoolsPanel, PacerDevtoolsPanelNoOp, PacerDevtoolsSolidInit };
|
|
5
|
+
}
|
|
5
6
|
type PacerDevtoolsPanelComponent = (props?: PacerDevtoolsSolidInit) => JSX.Element;
|
|
6
|
-
declare const PacerDevtoolsPanel: PacerDevtoolsPanelComponent;
|
|
7
|
-
|
|
7
|
+
export declare const PacerDevtoolsPanel: PacerDevtoolsPanelComponent;
|
|
8
|
+
export declare const PacerDevtoolsPanelNoOp: PacerDevtoolsPanelComponent;
|
|
9
|
+
export interface PacerDevtoolsSolidInit extends Partial<DevtoolsPanelProps> {}
|
|
8
10
|
//#endregion
|
|
9
|
-
export {
|
|
10
|
-
//# sourceMappingURL=SolidPacerDevtools.d.ts.map
|
|
11
|
+
export { SolidPacerDevtools_d_exports };
|
|
@@ -13,5 +13,4 @@ const PacerDevtoolsPanel = (props) => pacerDevtoolsPanels[0](resolvePanelProps(p
|
|
|
13
13
|
const PacerDevtoolsPanelNoOp = (props) => pacerDevtoolsPanels[1](resolvePanelProps(props));
|
|
14
14
|
|
|
15
15
|
//#endregion
|
|
16
|
-
export { PacerDevtoolsPanel, PacerDevtoolsPanelNoOp };
|
|
17
|
-
//# sourceMappingURL=SolidPacerDevtools.js.map
|
|
16
|
+
export { PacerDevtoolsPanel, PacerDevtoolsPanelNoOp };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __exportAll = (all, no_symbols) => {
|
|
4
|
+
let target = {};
|
|
5
|
+
for (var name in all) {
|
|
6
|
+
__defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
if (!no_symbols) {
|
|
12
|
+
__defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
13
|
+
}
|
|
14
|
+
return target;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
18
|
+
export { __exportAll };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { PacerDevtoolsPanel as PacerDevtoolsPanel$1, PacerDevtoolsSolidInit } from "./SolidPacerDevtools.js";
|
|
2
|
-
import { pacerDevtoolsPlugin as pacerDevtoolsPlugin$1 } from "./plugin.js";
|
|
3
|
-
|
|
1
|
+
import { PacerDevtoolsPanel as PacerDevtoolsPanel$1, PacerDevtoolsSolidInit, SolidPacerDevtools_d_exports } from "./SolidPacerDevtools.js";
|
|
2
|
+
import { pacerDevtoolsPlugin as pacerDevtoolsPlugin$1, plugin_d_exports } from "./plugin.js";
|
|
4
3
|
//#region src/index.d.ts
|
|
5
|
-
declare const PacerDevtoolsPanel: typeof PacerDevtoolsPanel$1;
|
|
6
|
-
declare const pacerDevtoolsPlugin: typeof pacerDevtoolsPlugin$1;
|
|
4
|
+
export declare const PacerDevtoolsPanel: typeof PacerDevtoolsPanel$1;
|
|
5
|
+
export declare const pacerDevtoolsPlugin: typeof pacerDevtoolsPlugin$1;
|
|
7
6
|
//#endregion
|
|
8
|
-
export {
|
|
9
|
-
//# sourceMappingURL=index.d.ts.map
|
|
7
|
+
export type { PacerDevtoolsSolidInit };
|
package/dist/index.js
CHANGED
|
@@ -6,5 +6,4 @@ const PacerDevtoolsPanel = process.env.NODE_ENV !== "development" ? PacerDevtool
|
|
|
6
6
|
const pacerDevtoolsPlugin = process.env.NODE_ENV !== "development" ? pacerDevtoolsNoOpPlugin : pacerDevtoolsPlugin$1;
|
|
7
7
|
|
|
8
8
|
//#endregion
|
|
9
|
-
export { PacerDevtoolsPanel, pacerDevtoolsPlugin };
|
|
10
|
-
//# sourceMappingURL=index.js.map
|
|
9
|
+
export { PacerDevtoolsPanel, pacerDevtoolsPlugin };
|
package/dist/plugin.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { createSolidPlugin } from "@tanstack/devtools-utils/solid";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
declare namespace plugin_d_exports {
|
|
3
|
+
export { pacerDevtoolsNoOpPlugin, pacerDevtoolsPlugin };
|
|
4
|
+
}
|
|
4
5
|
type PacerDevtoolsPluginFactory = ReturnType<typeof createSolidPlugin>[0];
|
|
5
|
-
declare const pacerDevtoolsPlugin: PacerDevtoolsPluginFactory;
|
|
6
|
+
export declare const pacerDevtoolsPlugin: PacerDevtoolsPluginFactory;
|
|
7
|
+
export declare const pacerDevtoolsNoOpPlugin: PacerDevtoolsPluginFactory;
|
|
6
8
|
//#endregion
|
|
7
|
-
export {
|
|
8
|
-
//# sourceMappingURL=plugin.d.ts.map
|
|
9
|
+
export { plugin_d_exports };
|
package/dist/plugin.js
CHANGED
|
@@ -10,5 +10,4 @@ const pacerDevtoolsPlugin = pacerDevtoolsPlugins[0];
|
|
|
10
10
|
const pacerDevtoolsNoOpPlugin = pacerDevtoolsPlugins[1];
|
|
11
11
|
|
|
12
12
|
//#endregion
|
|
13
|
-
export { pacerDevtoolsNoOpPlugin, pacerDevtoolsPlugin };
|
|
14
|
-
//# sourceMappingURL=plugin.js.map
|
|
13
|
+
export { pacerDevtoolsNoOpPlugin, pacerDevtoolsPlugin };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/solid-pacer-devtools",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "Solid adapter for devtools for Pacer.",
|
|
5
5
|
"author": "Tanner Linsley",
|
|
6
6
|
"license": "MIT",
|
|
@@ -31,22 +31,21 @@
|
|
|
31
31
|
},
|
|
32
32
|
"sideEffects": false,
|
|
33
33
|
"engines": {
|
|
34
|
-
"node": ">=
|
|
34
|
+
"node": ">=20"
|
|
35
35
|
},
|
|
36
36
|
"files": [
|
|
37
|
-
"dist
|
|
38
|
-
"src"
|
|
37
|
+
"dist"
|
|
39
38
|
],
|
|
40
39
|
"peerDependencies": {
|
|
41
40
|
"solid-js": ">=1.9.7"
|
|
42
41
|
},
|
|
43
42
|
"dependencies": {
|
|
44
|
-
"@tanstack/devtools-utils": "^0.
|
|
45
|
-
"@tanstack/pacer-devtools": "1.
|
|
43
|
+
"@tanstack/devtools-utils": "^0.7.0",
|
|
44
|
+
"@tanstack/pacer-devtools": "1.5.0"
|
|
46
45
|
},
|
|
47
46
|
"devDependencies": {
|
|
48
47
|
"csstype": "^3.2.3",
|
|
49
|
-
"vite-plugin-solid": "^2.11.
|
|
48
|
+
"vite-plugin-solid": "^2.11.14"
|
|
50
49
|
},
|
|
51
50
|
"scripts": {
|
|
52
51
|
"clean": "premove ./build ./dist",
|
|
@@ -55,6 +54,7 @@
|
|
|
55
54
|
"test:lib": "vitest",
|
|
56
55
|
"test:lib:dev": "pnpm test:lib --watch",
|
|
57
56
|
"test:types": "tsc",
|
|
58
|
-
"build": "tsdown"
|
|
57
|
+
"build": "tsdown",
|
|
58
|
+
"test:build": "publint --strict && node ../../scripts/verify-package.ts"
|
|
59
59
|
}
|
|
60
60
|
}
|
|
@@ -1 +0,0 @@
|
|
|
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/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { createSolidPanel } from '@tanstack/devtools-utils/solid'
|
|
2
|
-
import { PacerDevtoolsCore } from '@tanstack/pacer-devtools'
|
|
3
|
-
import type { JSX } from 'solid-js'
|
|
4
|
-
import type { DevtoolsPanelProps } from '@tanstack/devtools-utils/solid'
|
|
5
|
-
|
|
6
|
-
const pacerDevtoolsPanels: readonly [
|
|
7
|
-
(props: DevtoolsPanelProps) => JSX.Element,
|
|
8
|
-
(props: DevtoolsPanelProps) => JSX.Element,
|
|
9
|
-
] = createSolidPanel(PacerDevtoolsCore)
|
|
10
|
-
|
|
11
|
-
type PacerDevtoolsPanelComponent = (
|
|
12
|
-
props?: PacerDevtoolsSolidInit,
|
|
13
|
-
) => JSX.Element
|
|
14
|
-
|
|
15
|
-
function resolvePanelProps(props?: PacerDevtoolsSolidInit): DevtoolsPanelProps {
|
|
16
|
-
return {
|
|
17
|
-
theme: props?.theme ?? 'dark',
|
|
18
|
-
devtoolsOpen: props?.devtoolsOpen ?? false,
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
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> {}
|
package/src/index.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as Devtools from './SolidPacerDevtools'
|
|
2
|
-
import * as plugin from './plugin'
|
|
3
|
-
|
|
4
|
-
export const PacerDevtoolsPanel: typeof Devtools.PacerDevtoolsPanel =
|
|
5
|
-
process.env.NODE_ENV !== 'development'
|
|
6
|
-
? Devtools.PacerDevtoolsPanelNoOp
|
|
7
|
-
: Devtools.PacerDevtoolsPanel
|
|
8
|
-
|
|
9
|
-
export const pacerDevtoolsPlugin: typeof plugin.pacerDevtoolsPlugin =
|
|
10
|
-
process.env.NODE_ENV !== 'development'
|
|
11
|
-
? plugin.pacerDevtoolsNoOpPlugin
|
|
12
|
-
: plugin.pacerDevtoolsPlugin
|
|
13
|
-
|
|
14
|
-
export type { PacerDevtoolsSolidInit } from './SolidPacerDevtools'
|
package/src/plugin.tsx
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { createSolidPlugin } from '@tanstack/devtools-utils/solid'
|
|
2
|
-
import { PacerDevtoolsPanel } from './SolidPacerDevtools'
|
|
3
|
-
|
|
4
|
-
type PacerDevtoolsPluginFactory = ReturnType<typeof createSolidPlugin>[0]
|
|
5
|
-
|
|
6
|
-
const pacerDevtoolsPlugins = createSolidPlugin({
|
|
7
|
-
name: 'TanStack Pacer',
|
|
8
|
-
Component: PacerDevtoolsPanel,
|
|
9
|
-
})
|
|
10
|
-
|
|
11
|
-
export const pacerDevtoolsPlugin: PacerDevtoolsPluginFactory =
|
|
12
|
-
pacerDevtoolsPlugins[0]
|
|
13
|
-
export const pacerDevtoolsNoOpPlugin: PacerDevtoolsPluginFactory =
|
|
14
|
-
pacerDevtoolsPlugins[1]
|