@deveye/types 0.24.3 → 0.24.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deveye/types",
3
- "version": "0.24.3",
3
+ "version": "0.24.4",
4
4
  "description": "Shared contracts (types + zod schemas) for DevEye apps",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -715,6 +715,19 @@ declare module 'deveye-sdk-client' {
715
715
  format?: (value: number) => string;
716
716
  usedWord?: string;
717
717
  }>;
718
+ /**
719
+ * The top band of a view: its header, and the tab bar right under it. It
720
+ * stays at the top of the scrolling popup while the content moves under it,
721
+ * and draws a line once stuck. Its height is published as `--sticky-head`
722
+ * on its parent, which must be the view's root: a sticky band in the
723
+ * content sits under it with `top: var(--sticky-head, 0px)`.
724
+ */
725
+ export interface StickyHeaderProps {
726
+ /** The band's layout when it holds more than the header (a tab bar). */
727
+ className?: string;
728
+ children: ReactNode;
729
+ }
730
+ export const StickyHeader: ComponentType<StickyHeaderProps>;
718
731
 
719
732
  // ── Server push events ─────────────────────────────────────────────────
720
733
  /** Typed push subscription: filters `event`, safeParses, drops mismatches. */
@@ -1111,15 +1124,6 @@ declare module 'deveye-sdk-client' {
1111
1124
  * third-party library) depends on it to read them again when it changes.
1112
1125
  */
1113
1126
  export function useColorScheme(): 'dark' | 'light';
1114
- /**
1115
- * Two sticky bands, one under the other: measure the top one and hand the
1116
- * ancestor a `--sticky-head` variable the lower band offsets itself by.
1117
- */
1118
- export interface StickyOffset<T extends HTMLElement> {
1119
- ref: RefObject<T | null>;
1120
- style: CSSProperties;
1121
- }
1122
- export function useStickyOffset<T extends HTMLElement>(): StickyOffset<T>;
1123
1127
  /**
1124
1128
  * The client contract another module offers (`FeatureClient.providers`,
1125
1129
  * keys in `@deveye/types/sdk`): how a module composes another's screens