@tanstack/preact-pacer-devtools 0.0.1 → 0.5.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Tanner Linsley
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,45 +1,165 @@
1
- # @tanstack/preact-pacer-devtools
2
-
3
- ## ⚠️ IMPORTANT NOTICE ⚠️
4
-
5
- **This package is created solely for the purpose of setting up OIDC (OpenID Connect) trusted publishing with npm.**
6
-
7
- This is **NOT** a functional package and contains **NO** code or functionality beyond the OIDC setup configuration.
8
-
9
- ## Purpose
10
-
11
- This package exists to:
12
- 1. Configure OIDC trusted publishing for the package name `@tanstack/preact-pacer-devtools`
13
- 2. Enable secure, token-less publishing from CI/CD workflows
14
- 3. Establish provenance for packages published under this name
15
-
16
- ## What is OIDC Trusted Publishing?
17
-
18
- OIDC trusted publishing allows package maintainers to publish packages directly from their CI/CD workflows without needing to manage npm access tokens. Instead, it uses OpenID Connect to establish trust between the CI/CD provider (like GitHub Actions) and npm.
19
-
20
- ## Setup Instructions
21
-
22
- To properly configure OIDC trusted publishing for this package:
23
-
24
- 1. Go to [npmjs.com](https://www.npmjs.com/) and navigate to your package settings
25
- 2. Configure the trusted publisher (e.g., GitHub Actions)
26
- 3. Specify the repository and workflow that should be allowed to publish
27
- 4. Use the configured workflow to publish your actual package
28
-
29
- ## DO NOT USE THIS PACKAGE
30
-
31
- This package is a placeholder for OIDC configuration only. It:
32
- - Contains no executable code
33
- - Provides no functionality
34
- - Should not be installed as a dependency
35
- - Exists only for administrative purposes
36
-
37
- ## More Information
38
-
39
- For more details about npm's trusted publishing feature, see:
40
- - [npm Trusted Publishing Documentation](https://docs.npmjs.com/generating-provenance-statements)
41
- - [GitHub Actions OIDC Documentation](https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/about-security-hardening-with-openid-connect)
42
-
43
- ---
44
-
45
- **Maintained for OIDC setup purposes only**
1
+ <div align="center">
2
+ <img src="./media/header_pacer.png" >
3
+ </div>
4
+
5
+ <br />
6
+
7
+ <div align="center">
8
+ <a href="https://www.npmjs.com/package/@tanstack/pacer" target="\_parent">
9
+ <img alt="" src="https://img.shields.io/npm/dm/@tanstack/pacer.svg" alt="npm downloads" />
10
+ </a>
11
+ - <a href="https://github.com/TanStack/pacer" target="\_parent">
12
+ <img alt="" src="https://img.shields.io/github/stars/TanStack/pacer.svg?style=social&label=Star" alt="GitHub stars" />
13
+ </a>
14
+ <a href="https://bundlephobia.com/result?p=@tanstack/react-pacer@latest" target="\_parent">
15
+ <img alt="" src="https://badgen.net/bundlephobia/minzip/@tanstack/react-pacer@latest" alt="Bundle size" />
16
+ </a>
17
+ </div>
18
+
19
+ <div align="center">
20
+ <a href="#badge">
21
+ <img alt="semantic-release" src="https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg">
22
+ </a>
23
+ <a href="#badge">
24
+ <img src="https://img.shields.io/github/v/release/tanstack/pacer" alt="Release"/>
25
+ </a>
26
+ <a href="https://twitter.com/tan_stack">
27
+ <img src="https://img.shields.io/twitter/follow/tan_stack.svg?style=social" alt="Follow @TanStack"/>
28
+ </a>
29
+ </div>
30
+
31
+ <div align="center">
32
+
33
+ ### [Become a Sponsor!](https://github.com/sponsors/tannerlinsley/)
34
+ </div>
35
+
36
+ # TanStack Pacer
37
+
38
+ A lightweight timing and scheduling library for debouncing, throttling, rate limiting, queuing, and batching.
39
+
40
+ > [!NOTE]
41
+ > TanStack Pacer is currently mostly a client-side only library, but it is being designed to be able to potentially be used on the server-side as well.
42
+
43
+ - **Debouncing**
44
+ - Delay execution until after a period of inactivity for when you only care about the last execution in a sequence.
45
+ - Synchronous or Asynchronous Debounce utilities with promise support and error handling
46
+ - Control of leading, trailing, and enabled options
47
+ - **Throttling**
48
+ - Smoothly limit the rate at which a function can fire
49
+ - Synchronous or Asynchronous Throttle utilities with promise support and error handling
50
+ - Control of leading, trailing, and enabled options.
51
+ - **Rate Limiting**
52
+ - Limit the rate at which a function can fire over a period of time
53
+ - Synchronous or Asynchronous Rate Limiting utilities with promise support and error handling
54
+ - Fixed or Sliding Window variations of Rate Limiting
55
+ - **Queuing**
56
+ - Queue functions to be executed in a specific order
57
+ - Choose from FIFO, LIFO, and Priority queue implementations
58
+ - Control processing speed with configurable wait times or concurrency limits
59
+ - Manage queue execution with start/stop capabilities
60
+ - Expire items from the queue after a configurable duration
61
+ - **Batching**
62
+ - Chunk up multiple operations into larger batches to reduce total back-and-forth operations
63
+ - Batch by time period, batch size, whichever comes first, or a custom condition to trigger batch executions
64
+ - **Async or Sync Variations**
65
+ - Choose between synchronous and asynchronous versions of each utility
66
+ - Optional error, success, and settled handling for async variations
67
+ - Retry and Abort support for async variations
68
+ - **State Management**
69
+ - Uses TanStack Store under the hood for state management with fine-grained reactivity
70
+ - Easily integrate with your own state management library of choice
71
+ - Persist state to local or session storage for some utilities like rate limiting and queuing
72
+ - **Convenient Hooks**
73
+ - Reduce boilerplate code with pre-built hooks like `useDebouncedCallback`, `useThrottledValue`, and `useQueuedState`, and more.
74
+ - Multiple layers of abstraction to choose from depending on your use case.
75
+ - Works with each framework's default state management solutions, or with whatever custom state management library that you prefer.
76
+ - **Type Safety**
77
+ - Full type safety with TypeScript that makes sure that your functions will always be called with the correct arguments
78
+ - Generics for flexible and reusable utilities
79
+ - **Framework Adapters**
80
+ - React, Solid, and more
81
+ - **Tree Shaking**
82
+ - We, of course, get tree-shaking right for your applications by default, but we also provide extra deep imports for each utility, making it easier to embed these utilities into your libraries without increasing the bundle-phobia reports of your library.
83
+
84
+ ### <a href="https://tanstack.com/pacer">Read the docs →</b></a>
85
+
86
+ <br />
87
+
88
+ > [!NOTE]
89
+ > You may know **TanSack Pacer** by our adapter names, too!
90
+ >
91
+ > - [**React Pacer**](https://tanstack.com/pacer/latest/docs/framework/react/react-pacer)
92
+ > - [**Preact Pacer**](https://tanstack.com/pacer/latest/docs/framework/preact/preact-pacer)
93
+ > - [**Solid Pacer**](https://tanstack.com/pacer/latest/docs/framework/solid/solid-pacer)
94
+ > - Angular Pacer - needs a contributor!
95
+ > - Svelte Pacer - needs a contributor!
96
+ > - Vue Pacer - needs a contributor!
97
+
98
+ ## Get Involved
99
+
100
+ - We welcome issues and pull requests!
101
+ - Participate in [GitHub discussions](https://github.com/TanStack/pacer/discussions)
102
+ - Chat with the community on [Discord](https://discord.com/invite/WrRKjPJ)
103
+ - See [CONTRIBUTING.md](./CONTRIBUTING.md) for setup instructions
104
+
105
+ ## Partners
106
+
107
+ <table align="center">
108
+ <tr>
109
+ <td>
110
+ <a href="https://www.coderabbit.ai/?via=tanstack&dub_id=aCcEEdAOqqutX6OS" >
111
+ <picture>
112
+ <source media="(prefers-color-scheme: dark)" srcset="https://tanstack.com/assets/coderabbit-dark-CMcuvjEy.svg" height="40" />
113
+ <source media="(prefers-color-scheme: light)" srcset="https://tanstack.com/assets/coderabbit-light-DVMJ2jHi.svg" height="40" />
114
+ <img src="https://tanstack.com/assets/coderabbit-light-DVMJ2jHi.svg" height="40" alt="CodeRabbit" />
115
+ </picture>
116
+ </a>
117
+ </td>
118
+ <td>
119
+ <a href="https://www.cloudflare.com?utm_source=tanstack">
120
+ <picture>
121
+ <source media="(prefers-color-scheme: dark)" srcset="https://tanstack.com/assets/cloudflare-white-DQDB7UaL.svg" height="60" />
122
+ <source media="(prefers-color-scheme: light)" srcset="https://tanstack.com/assets/cloudflare-black-CPufaW0B.svg" height="60" />
123
+ <img src="https://tanstack.com/assets/cloudflare-black-CPufaW0B.svg" height="60" alt="Cloudflare" />
124
+ </picture>
125
+ </a>
126
+ </td>
127
+ <td>
128
+ <a href="https://www.unkey.com/?utm_source=tanstack">
129
+ <picture>
130
+ <source media="(prefers-color-scheme: dark)" srcset="./media/unkey_dark.svg" height="60" />
131
+ <source media="(prefers-color-scheme: light)" srcset="./media/unkey_logo.svg" height="60" />
132
+ <img src="./media/unkey_logo.svg" height="60" alt="Unkey"/>
133
+ </picture>
134
+ </a>
135
+ </td>
136
+ </tr>
137
+ </table>
138
+
139
+ <div align="center">
140
+ <img src="./media/partner_logo.svg" alt="Pacer & you?" height="65">
141
+ <p>
142
+ We're looking for TanStack Pacer Partners to join our mission! Partner with us to push the boundaries of TanStack Pacer and build amazing things together.
143
+ </p>
144
+ <a href="mailto:partners@tanstack.com?subject=TanStack Pacer Partnership"><b>LET'S CHAT</b></a>
145
+ </div>
146
+
147
+ </div>
148
+
149
+ ## Explore the TanStack Ecosystem
150
+
151
+ - <a href="https://github.com/tanstack/config"><b>TanStack Config</b></a> – Tooling for JS/TS packages
152
+ - <a href="https://github.com/tanstack/db"><b>TanStack DB</b></a> – Reactive sync client store
153
+ - <a href="https://github.com/tanstack/devtools"><b>TanStack DevTools</b></a> – Unified devtools panel
154
+ - <a href="https://github.com/tanstack/form"><b>TanStack Form</b></a> – Type‑safe form state
155
+ - <a href="https://github.com/tanstack/query"><b>TanStack Query</b></a> – Async state & caching
156
+ - <a href="https://github.com/tanstack/ranger"><b>TanStack Ranger</b></a> – Range & slider primitives
157
+ - <a href="https://github.com/tanstack/router"><b>TanStack Router</b></a> – Type‑safe routing, caching & URL state
158
+ - <a href="https://github.com/tanstack/router"><b>TanStack Start</b></a> – Full‑stack SSR & streaming
159
+ - <a href="https://github.com/tanstack/store"><b>TanStack Store</b></a> – Reactive data store
160
+ - <a href="https://github.com/tanstack/table"><b>TanStack Table</b></a> – Headless datagrids
161
+ - <a href="https://github.com/tanstack/virtual"><b>TanStack Virtual</b></a> – Virtualized rendering
162
+
163
+ … and more at <a href="https://tanstack.com"><b>TanStack.com »</b></a>
164
+
165
+ <!-- USE THE FORCE LUKE -->
@@ -0,0 +1,9 @@
1
+ import { DevtoolsPanelProps } from "@tanstack/devtools-utils/preact";
2
+ import * as preact1 from "preact";
3
+
4
+ //#region src/PreactPacerDevtools.d.ts
5
+ interface PacerDevtoolsPreactInit extends DevtoolsPanelProps {}
6
+ declare const PacerDevtoolsPanel: (props: DevtoolsPanelProps | undefined) => preact1.JSX.Element, PacerDevtoolsPanelNoOp: (_props: DevtoolsPanelProps | undefined) => preact1.JSX.Element;
7
+ //#endregion
8
+ export { PacerDevtoolsPanel, PacerDevtoolsPreactInit };
9
+ //# sourceMappingURL=PreactPacerDevtools.d.ts.map
@@ -0,0 +1,9 @@
1
+ import { createPreactPanel } from "@tanstack/devtools-utils/preact";
2
+ import { PacerDevtoolsCore } from "@tanstack/pacer-devtools";
3
+
4
+ //#region src/PreactPacerDevtools.tsx
5
+ const [PacerDevtoolsPanel, PacerDevtoolsPanelNoOp] = createPreactPanel(PacerDevtoolsCore);
6
+
7
+ //#endregion
8
+ export { PacerDevtoolsPanel, PacerDevtoolsPanelNoOp };
9
+ //# sourceMappingURL=PreactPacerDevtools.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PreactPacerDevtools.js","names":[],"sources":["../src/PreactPacerDevtools.tsx"],"sourcesContent":["import { createPreactPanel } from '@tanstack/devtools-utils/preact'\nimport { PacerDevtoolsCore } from '@tanstack/pacer-devtools'\nimport type { DevtoolsPanelProps } from '@tanstack/devtools-utils/preact'\n\nexport interface PacerDevtoolsPreactInit extends DevtoolsPanelProps {}\n\nconst [PacerDevtoolsPanel, PacerDevtoolsPanelNoOp] =\n createPreactPanel(PacerDevtoolsCore)\n\nexport { PacerDevtoolsPanel, PacerDevtoolsPanelNoOp }\n"],"mappings":";;;;AAMA,MAAM,CAAC,oBAAoB,0BACzB,kBAAkB,kBAAkB"}
@@ -0,0 +1,15 @@
1
+ import { PacerDevtoolsPreactInit } from "./PreactPacerDevtools.js";
2
+ import * as _tanstack_devtools_utils_preact0 from "@tanstack/devtools-utils/preact";
3
+ import * as preact0 from "preact";
4
+
5
+ //#region src/index.d.ts
6
+ declare const PacerDevtoolsPanel: (props: _tanstack_devtools_utils_preact0.DevtoolsPanelProps | undefined) => preact0.JSX.Element;
7
+ declare const pacerDevtoolsPlugin: () => {
8
+ render: (_el: HTMLElement, theme: "light" | "dark") => preact0.JSX.Element;
9
+ name: string;
10
+ id?: string;
11
+ defaultOpen?: boolean;
12
+ };
13
+ //#endregion
14
+ export { PacerDevtoolsPanel, type PacerDevtoolsPreactInit, pacerDevtoolsPlugin };
15
+ //# sourceMappingURL=index.d.ts.map
package/dist/index.js ADDED
@@ -0,0 +1,12 @@
1
+ 'use client';
2
+
3
+ import { PacerDevtoolsPanel as PacerDevtoolsPanel$1, PacerDevtoolsPanelNoOp } from "./PreactPacerDevtools.js";
4
+ import { pacerDevtoolsNoOpPlugin, pacerDevtoolsPlugin as pacerDevtoolsPlugin$1 } from "./plugin.js";
5
+
6
+ //#region src/index.ts
7
+ const PacerDevtoolsPanel = process.env.NODE_ENV !== "development" ? PacerDevtoolsPanelNoOp : PacerDevtoolsPanel$1;
8
+ const pacerDevtoolsPlugin = process.env.NODE_ENV !== "development" ? pacerDevtoolsNoOpPlugin : pacerDevtoolsPlugin$1;
9
+
10
+ //#endregion
11
+ export { PacerDevtoolsPanel, pacerDevtoolsPlugin };
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["Devtools.PacerDevtoolsPanelNoOp","Devtools.PacerDevtoolsPanel","plugin.pacerDevtoolsNoOpPlugin","plugin.pacerDevtoolsPlugin"],"sources":["../src/index.ts"],"sourcesContent":["'use client'\n\nimport * as Devtools from './PreactPacerDevtools'\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 { PacerDevtoolsPreactInit } from './PreactPacerDevtools'\n"],"mappings":";;;;;;AAKA,MAAa,qBACX,QAAQ,IAAI,aAAa,gBACrBA,yBACAC;AAEN,MAAa,sBACX,QAAQ,IAAI,aAAa,gBACrBC,0BACAC"}
@@ -0,0 +1,17 @@
1
+ import * as preact3 from "preact";
2
+
3
+ //#region src/plugin.d.ts
4
+ declare const pacerDevtoolsPlugin: () => {
5
+ render: (_el: HTMLElement, theme: "light" | "dark") => preact3.JSX.Element;
6
+ name: string;
7
+ id?: string;
8
+ defaultOpen?: boolean;
9
+ }, pacerDevtoolsNoOpPlugin: () => {
10
+ render: (_el: HTMLElement, _theme: "light" | "dark") => preact3.JSX.Element;
11
+ name: string;
12
+ id?: string;
13
+ defaultOpen?: boolean;
14
+ };
15
+ //#endregion
16
+ export { pacerDevtoolsPlugin };
17
+ //# sourceMappingURL=plugin.d.ts.map
package/dist/plugin.js ADDED
@@ -0,0 +1,12 @@
1
+ import { PacerDevtoolsPanel } from "./PreactPacerDevtools.js";
2
+ import { createPreactPlugin } from "@tanstack/devtools-utils/preact";
3
+
4
+ //#region src/plugin.tsx
5
+ const [pacerDevtoolsPlugin, pacerDevtoolsNoOpPlugin] = createPreactPlugin({
6
+ name: "TanStack Pacer",
7
+ Component: PacerDevtoolsPanel
8
+ });
9
+
10
+ //#endregion
11
+ export { pacerDevtoolsNoOpPlugin, pacerDevtoolsPlugin };
12
+ //# sourceMappingURL=plugin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.js","names":[],"sources":["../src/plugin.tsx"],"sourcesContent":["import { createPreactPlugin } from '@tanstack/devtools-utils/preact'\nimport { PacerDevtoolsPanel } from './PreactPacerDevtools'\n\nconst [pacerDevtoolsPlugin, pacerDevtoolsNoOpPlugin] = createPreactPlugin({\n name: 'TanStack Pacer',\n Component: PacerDevtoolsPanel,\n})\n\nexport { pacerDevtoolsPlugin, pacerDevtoolsNoOpPlugin }\n"],"mappings":";;;;AAGA,MAAM,CAAC,qBAAqB,2BAA2B,mBAAmB;CACxE,MAAM;CACN,WAAW;CACZ,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { PacerDevtoolsPanel, PacerDevtoolsPreactInit } from "./PreactPacerDevtools.js";
2
+ import { pacerDevtoolsPlugin } from "./plugin.js";
3
+ export { PacerDevtoolsPanel, type PacerDevtoolsPreactInit, pacerDevtoolsPlugin };
@@ -0,0 +1,6 @@
1
+ 'use client';
2
+
3
+ import { PacerDevtoolsPanel } from "./PreactPacerDevtools.js";
4
+ import { pacerDevtoolsPlugin } from "./plugin.js";
5
+
6
+ export { PacerDevtoolsPanel, pacerDevtoolsPlugin };
package/package.json CHANGED
@@ -1,10 +1,65 @@
1
1
  {
2
2
  "name": "@tanstack/preact-pacer-devtools",
3
- "version": "0.0.1",
4
- "description": "OIDC trusted publishing setup package for @tanstack/preact-pacer-devtools",
3
+ "version": "0.5.0",
4
+ "description": "Preact adapter for devtools for Pacer.",
5
+ "author": "Tanner Linsley",
6
+ "license": "MIT",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/TanStack/pacer.git",
10
+ "directory": "packages/pacer"
11
+ },
12
+ "homepage": "https://tanstack.com/pacer",
13
+ "funding": {
14
+ "type": "github",
15
+ "url": "https://github.com/sponsors/tannerlinsley"
16
+ },
5
17
  "keywords": [
6
- "oidc",
7
- "trusted-publishing",
8
- "setup"
9
- ]
10
- }
18
+ "preact",
19
+ "debounce",
20
+ "throttle",
21
+ "rate-limit",
22
+ "queuer",
23
+ "queue",
24
+ "pacer"
25
+ ],
26
+ "type": "module",
27
+ "types": "./dist/index.d.ts",
28
+ "module": "./dist/index.js",
29
+ "exports": {
30
+ ".": "./dist/index.js",
31
+ "./production": "./dist/production.js",
32
+ "./package.json": "./package.json"
33
+ },
34
+ "sideEffects": false,
35
+ "engines": {
36
+ "node": ">=18"
37
+ },
38
+ "files": [
39
+ "dist/",
40
+ "src"
41
+ ],
42
+ "peerDependencies": {
43
+ "preact": ">=10.0.0"
44
+ },
45
+ "dependencies": {
46
+ "@tanstack/devtools-utils": "^0.1.0",
47
+ "@tanstack/pacer-devtools": "1.1.0"
48
+ },
49
+ "devDependencies": {
50
+ "@preact/preset-vite": "^2.10.2",
51
+ "@testing-library/preact": "^3.2.4",
52
+ "preact": "^10.28.0"
53
+ },
54
+ "main": "./dist/index.js",
55
+ "scripts": {
56
+ "clean": "premove ./build ./dist",
57
+ "lint:fix": "eslint ./src --fix",
58
+ "test:eslint": "eslint ./src",
59
+ "test:lib": "vitest",
60
+ "test:lib:dev": "pnpm test:lib --watch",
61
+ "test:types": "tsc",
62
+ "test:build": "publint --strict",
63
+ "build": "tsdown"
64
+ }
65
+ }
@@ -0,0 +1,10 @@
1
+ import { createPreactPanel } from '@tanstack/devtools-utils/preact'
2
+ import { PacerDevtoolsCore } from '@tanstack/pacer-devtools'
3
+ import type { DevtoolsPanelProps } from '@tanstack/devtools-utils/preact'
4
+
5
+ export interface PacerDevtoolsPreactInit extends DevtoolsPanelProps {}
6
+
7
+ const [PacerDevtoolsPanel, PacerDevtoolsPanelNoOp] =
8
+ createPreactPanel(PacerDevtoolsCore)
9
+
10
+ export { PacerDevtoolsPanel, PacerDevtoolsPanelNoOp }
package/src/index.ts ADDED
@@ -0,0 +1,16 @@
1
+ 'use client'
2
+
3
+ import * as Devtools from './PreactPacerDevtools'
4
+ import * as plugin from './plugin'
5
+
6
+ export const PacerDevtoolsPanel =
7
+ process.env.NODE_ENV !== 'development'
8
+ ? Devtools.PacerDevtoolsPanelNoOp
9
+ : Devtools.PacerDevtoolsPanel
10
+
11
+ export const pacerDevtoolsPlugin =
12
+ process.env.NODE_ENV !== 'development'
13
+ ? plugin.pacerDevtoolsNoOpPlugin
14
+ : plugin.pacerDevtoolsPlugin
15
+
16
+ export type { PacerDevtoolsPreactInit } from './PreactPacerDevtools'
package/src/plugin.tsx ADDED
@@ -0,0 +1,9 @@
1
+ import { createPreactPlugin } from '@tanstack/devtools-utils/preact'
2
+ import { PacerDevtoolsPanel } from './PreactPacerDevtools'
3
+
4
+ const [pacerDevtoolsPlugin, pacerDevtoolsNoOpPlugin] = createPreactPlugin({
5
+ name: 'TanStack Pacer',
6
+ Component: PacerDevtoolsPanel,
7
+ })
8
+
9
+ export { pacerDevtoolsPlugin, pacerDevtoolsNoOpPlugin }
@@ -0,0 +1,7 @@
1
+ 'use client'
2
+
3
+ export { PacerDevtoolsPanel } from './PreactPacerDevtools'
4
+
5
+ export type { PacerDevtoolsPreactInit } from './PreactPacerDevtools'
6
+
7
+ export { pacerDevtoolsPlugin } from './plugin'