@hdcodedev/snowfall 1.0.5 → 1.0.7

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/index.d.mts CHANGED
@@ -21,6 +21,7 @@ interface PhysicsConfig {
21
21
  MIN: number;
22
22
  MAX: number;
23
23
  };
24
+ MAX_SURFACES: number;
24
25
  }
25
26
  declare const DEFAULT_PHYSICS: PhysicsConfig;
26
27
  interface PerformanceMetrics {
@@ -47,11 +48,14 @@ interface SnowfallContextType {
47
48
  metrics: PerformanceMetrics | null;
48
49
  setMetrics: (metrics: PerformanceMetrics) => void;
49
50
  }
50
- declare function SnowfallProvider({ children }: {
51
+ declare function SnowfallProvider({ children, initialDebug }: {
51
52
  children: ReactNode;
53
+ initialDebug?: boolean;
52
54
  }): react_jsx_runtime.JSX.Element;
53
55
  declare function useSnowfall(): SnowfallContextType;
54
56
 
55
- declare function DebugPanel(): react_jsx_runtime.JSX.Element | null;
57
+ declare function DebugPanel({ defaultOpen }: {
58
+ defaultOpen?: boolean;
59
+ }): react_jsx_runtime.JSX.Element | null;
56
60
 
57
61
  export { DEFAULT_PHYSICS, DebugPanel, type PerformanceMetrics, type PhysicsConfig, Snowfall, SnowfallProvider, useSnowfall };
package/dist/index.d.ts CHANGED
@@ -21,6 +21,7 @@ interface PhysicsConfig {
21
21
  MIN: number;
22
22
  MAX: number;
23
23
  };
24
+ MAX_SURFACES: number;
24
25
  }
25
26
  declare const DEFAULT_PHYSICS: PhysicsConfig;
26
27
  interface PerformanceMetrics {
@@ -47,11 +48,14 @@ interface SnowfallContextType {
47
48
  metrics: PerformanceMetrics | null;
48
49
  setMetrics: (metrics: PerformanceMetrics) => void;
49
50
  }
50
- declare function SnowfallProvider({ children }: {
51
+ declare function SnowfallProvider({ children, initialDebug }: {
51
52
  children: ReactNode;
53
+ initialDebug?: boolean;
52
54
  }): react_jsx_runtime.JSX.Element;
53
55
  declare function useSnowfall(): SnowfallContextType;
54
56
 
55
- declare function DebugPanel(): react_jsx_runtime.JSX.Element | null;
57
+ declare function DebugPanel({ defaultOpen }: {
58
+ defaultOpen?: boolean;
59
+ }): react_jsx_runtime.JSX.Element | null;
56
60
 
57
61
  export { DEFAULT_PHYSICS, DebugPanel, type PerformanceMetrics, type PhysicsConfig, Snowfall, SnowfallProvider, useSnowfall };