Hapio Calendar

API reference

Every public entry of the four packages, generated from the declarations npm users get.

These pages are generated from the packages' published type declarations at every docs build, so they say what the code says, JSDoc included. A member or declaration marked "experimental" may still change before the 1.0 API freeze; at the freeze the marks go and the public API from then on only grows.

EntryWhat it holdsRuns in
@hapio/calendar-coredates, zones, views, events, rules, the store, getVisibleRangeanywhere, Server Components included
@hapio/calendar-core/interactionthe interaction engines (selection(), editing(), externalDrops())client modules
@hapio/calendar-core/domthe pointer engine and the drag manager the engines usethe browser
@hapio/calendar-core/layoutthe layout algorithms (time axis, packing, background projection)anywhere
@hapio/calendar-core/seriesseriesSupport, for recurrence engines of your ownclient modules
@hapio/calendar-core/locales/svthe Swedish strings (/locales/en: the English ones)anywhere
@hapio/calendar-core/testingclocks, DST vectors and data generators for teststests
@hapio/calendar-reactthe hooks and the block's prop types; re-exports the whole coreclient components
@hapio/calendar-react/interactionthe interaction hooks; re-exports @hapio/calendar-core/interactionclient components
@hapio/calendar-react/testingrunConformance, checkContract, renderCalendartests in a browser
@hapio/calendar-recurrencerrule(), expandRecurrences, planSeriesEdit, describeRuleanywhere
@hapio/calendar-compat, /reactthe migration component's options and types; useCompatPropsclient components (/react)