@propriety/court-calendar 1.0.148 → 1.0.149

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/README.md CHANGED
@@ -425,7 +425,7 @@ ESLint with TypeScript plugin. Biome is configured for formatting (4-space inden
425
425
  npm run test
426
426
  ```
427
427
 
428
- Vitest + `@testing-library/react` + jsdom. Test files live in `src/__tests__/` mirroring the source tree:
428
+ Vitest + `@testing-library/react` + happy-dom. Test files live in `src/__tests__/` mirroring the source tree:
429
429
 
430
430
  | Test file | Covers |
431
431
  |-----------|--------|
@@ -3,6 +3,6 @@ export default function CalendarList({ filteredDates, onSelectCalEvent, currentD
3
3
  filteredDates: CalEvent[];
4
4
  onSelectCalEvent: (calEvent: CalEvent) => void;
5
5
  currentDate: Date;
6
- onUpdateChair?: (courtDateId: number, position: "first" | "second", userId: number | null) => void;
6
+ onUpdateChair?: (courtDateId: number, position: 'first' | 'second', userId: number | null) => void;
7
7
  isPrinting?: boolean;
8
8
  }): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,11 @@
1
1
  import { Case, CourtDate } from '../types';
2
2
  export declare function isVillageDate(muniCode: string): boolean;
3
+ /**
4
+ * Parenthetical muni-code suffix for event labels, e.g. " (3100)". Collections may
5
+ * have no municipality; for a blank code this returns "" so a label reads as
6
+ * "No municipality" rather than "No municipality ()".
7
+ */
8
+ export declare function muniCodeSuffix(muniCode: string): string;
3
9
  /**
4
10
  * The index number that identifies a case for a court date in the given muni.
5
11
  * Village dates use VillageSCARIndexNumber; we fall back to the town SCARIndexNumber