@howells/stacksheet 1.1.1 → 1.1.2

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.ts CHANGED
@@ -250,9 +250,6 @@ interface StacksheetInstance<TMap extends object> {
250
250
  store: zustand.StoreApi<StacksheetSnapshot<TMap> & SheetActions<TMap>>;
251
251
  }
252
252
 
253
- /** Merge user-provided config with defaults. Resolves union types (side, spring) to concrete values. */
254
- declare function resolveConfig(config?: StacksheetConfig): ResolvedConfig;
255
-
256
253
  /**
257
254
  * Create an isolated sheet stack instance with typed store, hooks, and provider.
258
255
  *
@@ -306,6 +303,10 @@ interface SheetPanelContextValue {
306
303
  panelId: string;
307
304
  /** Current resolved side (left/right/bottom) */
308
305
  side: Side;
306
+ /** Whether a Sheet.Description is mounted inside this panel */
307
+ hasDescription: boolean;
308
+ /** Called by Sheet.Description on mount to register its presence */
309
+ registerDescription: () => () => void;
309
310
  }
310
311
  /**
311
312
  * Access the current sheet panel's context.
@@ -395,27 +396,4 @@ declare const Sheet: {
395
396
  readonly Back: typeof SheetBack;
396
397
  };
397
398
 
398
- interface StackTransform {
399
- scale: number;
400
- offset: number;
401
- opacity: number;
402
- borderRadius: number;
403
- }
404
- /**
405
- * Compute visual transforms for a panel at a given depth.
406
- * depth=0 is the top (foreground) panel.
407
- * Panels beyond renderThreshold are clamped to the edge position and faded out.
408
- */
409
- declare function getStackTransform(depth: number, stacking: StackingConfig): StackTransform;
410
- interface SlideValues {
411
- x?: string | number;
412
- y?: string | number;
413
- }
414
- /** Motion initial/exit values for sliding from the given side. */
415
- declare function getSlideFrom(side: Side): SlideValues;
416
- /**
417
- * Fixed-position styles for a panel, accounting for side, width, and depth.
418
- */
419
- declare function getPanelStyles(side: Side, config: ResolvedConfig, _depth: number, index: number): CSSProperties;
420
-
421
- export { type CloseReason, type ContentMap, type HeaderRenderProps, type ResolvedConfig, type ResponsiveSide, Sheet, type SheetActions, type SheetBackProps, type SheetBodyProps, type SheetCloseProps, type SheetContentComponent, type SheetDescriptionProps, type SheetFooterProps, type SheetHandleProps, type SheetHeaderProps, type SheetItem, type SheetPanelContextValue, type SheetTitleProps, type Side, type SideConfig, type SnapPoint, type SpringConfig, type SpringPreset, type StackingConfig, type StacksheetClassNames, type StacksheetConfig, type StacksheetInstance, type StacksheetProviderProps, type StacksheetSnapshot, createStacksheet, getPanelStyles, getSlideFrom, getStackTransform, resolveConfig, springs, useIsMobile, useResolvedSide, useSheetPanel };
399
+ export { type CloseReason, type ContentMap, type HeaderRenderProps, type ResponsiveSide, Sheet, type SheetActions, type SheetBackProps, type SheetBodyProps, type SheetCloseProps, type SheetContentComponent, type SheetDescriptionProps, type SheetFooterProps, type SheetHandleProps, type SheetHeaderProps, type SheetItem, type SheetPanelContextValue, type SheetTitleProps, type Side, type SideConfig, type SnapPoint, type SpringConfig, type SpringPreset, type StackingConfig, type StacksheetClassNames, type StacksheetConfig, type StacksheetInstance, type StacksheetProviderProps, type StacksheetSnapshot, createStacksheet, springs, useIsMobile, useResolvedSide, useSheetPanel };