@fcannizzaro/streamdeck-react 0.1.11 → 0.1.12

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.
Files changed (43) hide show
  1. package/dist/action.js +0 -1
  2. package/dist/adapter/index.d.ts +2 -0
  3. package/dist/adapter/physical-device.d.ts +2 -0
  4. package/dist/adapter/physical-device.js +153 -0
  5. package/dist/adapter/types.d.ts +127 -0
  6. package/dist/devtools/bridge.d.ts +2 -2
  7. package/dist/devtools/bridge.js +7 -8
  8. package/dist/devtools/highlight.d.ts +1 -2
  9. package/dist/devtools/highlight.js +4 -3
  10. package/dist/devtools/types.d.ts +5 -5
  11. package/dist/hooks/animation.d.ts +1 -1
  12. package/dist/hooks/animation.js +2 -2
  13. package/dist/hooks/events.js +1 -1
  14. package/dist/hooks/sdk.js +11 -11
  15. package/dist/hooks/utility.js +3 -2
  16. package/dist/index.d.ts +3 -1
  17. package/dist/index.js +2 -1
  18. package/dist/plugin.js +69 -100
  19. package/dist/reconciler/vnode.d.ts +0 -2
  20. package/dist/reconciler/vnode.js +0 -1
  21. package/dist/render/cache.d.ts +5 -17
  22. package/dist/render/cache.js +7 -29
  23. package/dist/render/image-cache.d.ts +8 -7
  24. package/dist/render/image-cache.js +33 -17
  25. package/dist/render/metrics.d.ts +9 -10
  26. package/dist/render/metrics.js +36 -39
  27. package/dist/render/pipeline.d.ts +4 -14
  28. package/dist/render/pipeline.js +47 -111
  29. package/dist/render/png.d.ts +0 -9
  30. package/dist/render/png.js +5 -8
  31. package/dist/render/render-pool.d.ts +0 -2
  32. package/dist/render/render-pool.js +1 -12
  33. package/dist/roots/registry.d.ts +5 -9
  34. package/dist/roots/registry.js +10 -27
  35. package/dist/roots/root.d.ts +7 -34
  36. package/dist/roots/root.js +23 -90
  37. package/dist/roots/touchstrip-root.d.ts +6 -32
  38. package/dist/roots/touchstrip-root.js +61 -181
  39. package/dist/types.d.ts +23 -19
  40. package/package.json +6 -4
  41. package/dist/node_modules/.bun/xxhash-wasm@1.1.0/node_modules/xxhash-wasm/esm/xxhash-wasm.js +0 -3157
  42. package/dist/roots/flush-coordinator.d.ts +0 -18
  43. package/dist/roots/flush-coordinator.js +0 -38
@@ -1,18 +0,0 @@
1
- /** Any root that can participate in prioritized flushing. */
2
- export interface FlushableRoot {
3
- /** Current render priority. 0 = animating (highest), 3 = idle (lowest). */
4
- readonly priority: number;
5
- /** Execute the flush (render + push to hardware). */
6
- executeFlush(): Promise<void>;
7
- }
8
- export declare class FlushCoordinator {
9
- private pending;
10
- private scheduled;
11
- private draining;
12
- /**
13
- * Enqueue a root for flushing. Flushes are batched via microtask
14
- * and processed in priority order.
15
- */
16
- requestFlush(root: FlushableRoot): void;
17
- private drain;
18
- }
@@ -1,38 +0,0 @@
1
- //#region src/roots/flush-coordinator.ts
2
- var FlushCoordinator = class {
3
- pending = /* @__PURE__ */ new Set();
4
- scheduled = false;
5
- draining = false;
6
- /**
7
- * Enqueue a root for flushing. Flushes are batched via microtask
8
- * and processed in priority order.
9
- */
10
- requestFlush(root) {
11
- this.pending.add(root);
12
- if (!this.scheduled && !this.draining) {
13
- this.scheduled = true;
14
- queueMicrotask(() => this.drain());
15
- }
16
- }
17
- async drain() {
18
- this.scheduled = false;
19
- if (this.draining || this.pending.size === 0) return;
20
- this.draining = true;
21
- try {
22
- while (this.pending.size > 0) {
23
- const roots = [...this.pending];
24
- this.pending.clear();
25
- roots.sort((a, b) => a.priority - b.priority);
26
- for (const root of roots) await root.executeFlush();
27
- }
28
- } finally {
29
- this.draining = false;
30
- if (this.pending.size > 0 && !this.scheduled) {
31
- this.scheduled = true;
32
- queueMicrotask(() => this.drain());
33
- }
34
- }
35
- }
36
- };
37
- //#endregion
38
- export { FlushCoordinator };