@moltenship/calendar 2.0.0-beta.1 → 2.0.0
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 +11 -10
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +2 -2
- package/docs/accessibility.md +5 -4
- package/docs/agents/changes.md +3 -3
- package/docs/agents/coding-agents.md +19 -20
- package/docs/agents/connect.md +20 -11
- package/docs/agents/deleting.md +2 -2
- package/docs/agents/reference.md +5 -6
- package/docs/agents/server.md +4 -4
- package/docs/agents/webmcp.md +2 -2
- package/docs/agents.md +10 -8
- package/docs/annotations.md +10 -8
- package/docs/api/changes.md +37 -21
- package/docs/api/{react.md → components.md} +65 -56
- package/docs/api/dnd-kit.md +1 -3
- package/docs/api/events.md +14 -13
- package/docs/api/primitives.md +61 -11
- package/docs/api/store.md +3 -3
- package/docs/api.md +23 -23
- package/docs/availability.md +25 -22
- package/docs/comparison.md +23 -24
- package/docs/concepts/anatomy.md +3 -3
- package/docs/concepts/events.md +2 -3
- package/docs/concepts/how-it-works.md +33 -16
- package/docs/concepts/state.md +1 -1
- package/docs/concepts/time.md +5 -7
- package/docs/customization.md +271 -0
- package/docs/frameworks.md +116 -0
- package/docs/guides/dnd-kit.md +2 -2
- package/docs/guides/google-calendar-sync.md +3 -3
- package/docs/guides/google-calendar.md +4 -4
- package/docs/guides/motion.md +2 -2
- package/docs/guides/nextjs-app-router.md +1 -1
- package/docs/guides/nextjs.md +1 -1
- package/docs/guides/performance.md +6 -6
- package/docs/guides/tanstack-query.md +2 -2
- package/docs/{guides/ics.md → ics/feed.md} +7 -9
- package/docs/ics/import.md +183 -0
- package/docs/{api/ics.md → ics/reference.md} +11 -53
- package/docs/ics.md +142 -0
- package/docs/index.md +81 -50
- package/docs/installation.md +48 -33
- package/docs/interactions.md +36 -3
- package/docs/llms.txt +81 -68
- package/docs/migrating-to-2.md +200 -25
- package/docs/quick-start.md +27 -23
- package/docs/{guides/recurring-events.md → recurrence/calendar.md} +23 -8
- package/docs/{concepts/recurrence.md → recurrence/model.md} +13 -12
- package/docs/{api/recurrence.md → recurrence/reference.md} +22 -61
- package/docs/recurrence.md +122 -0
- package/docs/stylex.md +74 -49
- package/docs/temporal/daylight-saving-time.md +172 -0
- package/docs/temporal/month-grid.md +119 -0
- package/docs/{api/temporal.md → temporal/reference.md} +7 -12
- package/docs/temporal.md +105 -0
- package/docs/testing.md +20 -1
- package/docs/theme-builder.md +9 -8
- package/docs/theming.md +108 -2
- package/docs/undo-redo.md +24 -16
- package/docs/views/agenda.md +14 -13
- package/docs/views/custom-views.md +13 -10
- package/docs/views/month.md +10 -9
- package/docs/views/resource-columns.md +21 -17
- package/docs/views/resource-timeline.md +16 -15
- package/docs/views/scrolling.md +7 -6
- package/docs/views/week-and-day.md +15 -14
- package/docs/views/year.md +11 -11
- package/docs/views.md +1 -1
- package/package.json +7 -6
- package/skills/moltenship-time/SKILL.md +7 -5
- package/skills/moltenship-time/references/compose.md +13 -6
- package/skills/moltenship-time/references/mistakes.md +4 -2
- package/skills/moltenship-time/references/solid.md +36 -25
- package/docs/api/solid.md +0 -460
package/docs/installation.md
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
# Installation
|
|
2
2
|
|
|
3
|
-
Requirements, packages, the ui-sdk peer dependencies, and Temporal setup.
|
|
3
|
+
Requirements, the packages to install, the ui-sdk peer dependencies, and Temporal setup.
|
|
4
4
|
|
|
5
|
-
Source: https://time.molten.sh/docs/installation
|
|
5
|
+
Source: https://time.molten.sh/docs/react/installation
|
|
6
6
|
|
|
7
7
|
## Requirements
|
|
8
8
|
|
|
9
9
|
- **React 19.** React and React DOM are peer dependencies.
|
|
10
10
|
- **ui-sdk.** `@ui-sdk/core` and `@ui-sdk/react` are peer dependencies since 2.0. The calendar's
|
|
11
11
|
parts are [ui-sdk](https://ui-sdk.dev) components, which is how an [agent](./agents.md) reaches
|
|
12
|
-
them. ui-sdk is in beta
|
|
12
|
+
them. ui-sdk is in beta, and the calendar takes `0.1.0-beta.16` and the betas after it.
|
|
13
|
+
|
|
13
14
|
- **A JavaScript runtime with `Temporal`.** Node.js 26 and later include it. Browser support is
|
|
14
15
|
still rolling out, so check the
|
|
15
16
|
[MDN compatibility table](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal#browser_compatibility)
|
|
@@ -19,11 +20,6 @@ Source: https://time.molten.sh/docs/installation
|
|
|
19
20
|
|
|
20
21
|
## Install
|
|
21
22
|
|
|
22
|
-
> **2.0 is a pre-release**
|
|
23
|
-
>
|
|
24
|
-
> These docs describe Time 2.0. Its API can still change before 2.0.0, and so can ui-sdk's while it
|
|
25
|
-
> is in beta. Coming from 1.x? See [Migrating to 2.0](./migrating-to-2.md).
|
|
26
|
-
|
|
27
23
|
**pnpm**
|
|
28
24
|
|
|
29
25
|
```bash
|
|
@@ -48,19 +44,17 @@ yarn add @moltenship/calendar @ui-sdk/core @ui-sdk/react react react-dom
|
|
|
48
44
|
bun add @moltenship/calendar @ui-sdk/core @ui-sdk/react react react-dom
|
|
49
45
|
```
|
|
50
46
|
|
|
51
|
-
`@moltenship/calendar` is the only calendar package most apps import. It includes the React
|
|
47
|
+
`@moltenship/calendar` is the only calendar package most React apps import. It includes the React
|
|
52
48
|
components, the event engine, the Temporal helpers, and the pointer interactions. Recurring events
|
|
53
|
-
add `@moltenship/calendar-recurrence
|
|
54
|
-
dnd-kit items into the calendar
|
|
55
|
-
[How it works](./concepts/how-it-works.md) for what's inside.
|
|
49
|
+
add [`@moltenship/calendar-recurrence`](./recurrence.md), reading ICS feeds
|
|
50
|
+
[`@moltenship/ics`](./ics.md), and dragging your own dnd-kit items into the calendar
|
|
51
|
+
`@moltenship/calendar-dnd-kit`. See [How it works](./concepts/how-it-works.md) for what's inside.
|
|
56
52
|
|
|
57
53
|
You import ui-sdk yourself in one case: to create the [agent bridge](./agents/connect.md), from
|
|
58
54
|
`@ui-sdk/react/agent`. Keep one copy of `@ui-sdk/core` in your app. The calendar and the bridge
|
|
59
55
|
find each other through it, and with two copies an agent sees no calendar. Your package manager
|
|
60
56
|
keeps one as long as every `@ui-sdk/*` package is on the same version.
|
|
61
57
|
|
|
62
|
-
For SolidJS 2, install `@moltenship/calendar-solid` instead; see [Solid](./api/solid.md).
|
|
63
|
-
|
|
64
58
|
## Temporal
|
|
65
59
|
|
|
66
60
|
Time uses the global `Temporal` object and never bundles a polyfill. In a runtime without
|
|
@@ -91,23 +85,28 @@ Make sure your `tsconfig.json` includes the `ESNext` library so `Temporal` is ty
|
|
|
91
85
|
|
|
92
86
|
## UI source (optional)
|
|
93
87
|
|
|
94
|
-
The packages render plain, unstyled elements. The styled views, toolbar and theme are source
|
|
95
|
-
that you add to your app and then own, the way shadcn/ui works. They install with the shadcn
|
|
96
|
-
from this site's registry. There's no other installer.
|
|
88
|
+
The packages render plain, unstyled elements. The styled views, toolbar and theme are React source
|
|
89
|
+
files that you add to your app and then own, the way shadcn/ui works. They install with the shadcn
|
|
90
|
+
CLI from this site's registry. There's no other installer. An app that brings its own UI skips
|
|
91
|
+
this section, as [Build your own UI](./customization.md#level-4-build-your-own-ui) describes.
|
|
97
92
|
|
|
98
93
|
**Step 1**
|
|
99
94
|
|
|
100
95
|
Set up [shadcn/ui](https://ui.shadcn.com/docs/installation) with Tailwind CSS 4 if your app
|
|
101
|
-
doesn't use it yet.
|
|
102
|
-
|
|
96
|
+
doesn't use it yet. `shadcn add` needs its `components.json`, and the calendar's files use its
|
|
97
|
+
tokens, such as `--background` and `--primary`:
|
|
103
98
|
|
|
104
99
|
```bash
|
|
105
100
|
npx shadcn@latest init
|
|
106
101
|
```
|
|
107
102
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
103
|
+
Any style works: the calendar brings its own controls and uses none of your app's components. An
|
|
104
|
+
app with a `components.json` but without shadcn's tokens gets shadcn's neutral ones from
|
|
105
|
+
`base-tokens`:
|
|
106
|
+
|
|
107
|
+
```bash
|
|
108
|
+
npx shadcn@latest add https://time.molten.sh/r/base-tokens.json
|
|
109
|
+
```
|
|
111
110
|
|
|
112
111
|
**Step 2**
|
|
113
112
|
|
|
@@ -118,12 +117,13 @@ npx shadcn@latest add https://time.molten.sh/r/calendar-full.json
|
|
|
118
117
|
```
|
|
119
118
|
|
|
120
119
|
Or add only the views you use. Each one brings what it builds on: the theme, the shared
|
|
121
|
-
`calendar` parts, the
|
|
120
|
+
`calendar` parts, the calendar's controls, and npm packages such as `@moltenship/calendar`.
|
|
122
121
|
|
|
123
122
|
| Item | What it adds |
|
|
124
123
|
| -------------------------- | ---------------------------------------------------------------------------- |
|
|
125
|
-
| `calendar-full` | Every item below
|
|
124
|
+
| `calendar-full` | Every item below but `base-tokens` |
|
|
126
125
|
| `calendar-theme` | The calendar's tokens and event colors, added to your global CSS |
|
|
126
|
+
| `calendar-ui` | The calendar's controls and popups, built on ui-sdk |
|
|
127
127
|
| `calendar` | `CalendarToolbar`, `ViewSwitcher`, `EventChip`, `MiniMonth` and shared parts |
|
|
128
128
|
| `time-grid-view` | The [week and day](./views/week-and-day.md) views |
|
|
129
129
|
| `month-view` | The [month](./views/month.md) view |
|
|
@@ -134,8 +134,9 @@ Or add only the views you use. Each one brings what it builds on: the theme, the
|
|
|
134
134
|
| `scrolling-list-view` | The scrolling agenda |
|
|
135
135
|
| `resource-columns-view` | The [resource columns](./views/resource-columns.md) view |
|
|
136
136
|
| `resource-timeline-view` | The [resource timeline](./views/resource-timeline.md) views |
|
|
137
|
-
| `recurrence-scope-dialog` | The [recurrence scope dialog](./
|
|
137
|
+
| `recurrence-scope-dialog` | The [recurrence scope dialog](./recurrence/calendar.md) |
|
|
138
138
|
| `calendar-history-toast` | The [undo toast](./undo-redo.md#undo-toast) |
|
|
139
|
+
| `base-tokens` | shadcn/ui's neutral tokens, for an app without them |
|
|
139
140
|
|
|
140
141
|
Each item's address is `https://time.molten.sh/r/<item>.json`:
|
|
141
142
|
|
|
@@ -146,8 +147,8 @@ npx shadcn@latest add https://time.molten.sh/r/month-view.json
|
|
|
146
147
|
The files land in `calendar/` under the `components` alias in your `components.json`, such as
|
|
147
148
|
`components/calendar/month-view/month-view.tsx`, and their imports follow your aliases. Each item
|
|
148
149
|
asks for the `@moltenship/calendar` versions it was built for, and `shadcn add` installs a
|
|
149
|
-
matching one.
|
|
150
|
-
them as above.
|
|
150
|
+
matching one. `calendar-ui` lists `@ui-sdk/core` and `@ui-sdk/react`, so `shadcn add` adds them if
|
|
151
|
+
your app doesn't have them yet. Keep them on the version the calendar uses, as above.
|
|
151
152
|
|
|
152
153
|
To add items by name, add the registry to `components.json` once:
|
|
153
154
|
|
|
@@ -163,11 +164,25 @@ Then `npx shadcn@latest add @moltenship/month-view` works too.
|
|
|
163
164
|
|
|
164
165
|
**Step 3**
|
|
165
166
|
|
|
166
|
-
The
|
|
167
|
-
|
|
168
|
-
|
|
167
|
+
The calendar's controls come from `calendar-ui`, not from your app's `components/ui`: its
|
|
168
|
+
buttons, badges, tooltips, selects, popovers, dialogs and toasts. They're a default: to use your
|
|
169
|
+
own, see
|
|
170
|
+
[Use your own controls](./theming.md#use-your-own-controls). ui-sdk
|
|
171
|
+
adds a little CSS of its own to the page, in a layer named `ui-sdk`. Name that layer before
|
|
172
|
+
Tailwind in your global CSS, so your styles and Tailwind's win over it:
|
|
173
|
+
|
|
174
|
+
```css title="globals.css"
|
|
175
|
+
@layer ui-sdk;
|
|
176
|
+
@import "tailwindcss";
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
The calendar's popups, such as the view select's list, its tooltips, popovers and dialogs, open
|
|
180
|
+
in the browser's top layer, through the Popover API: Chrome and Edge 114, Safari 17 and Firefox 125 or later. In an older browser they
|
|
181
|
+
render at the end of the page instead, and a server-rendered page doesn't hydrate them cleanly.
|
|
182
|
+
The toolbar's tooltips open after 400 ms; change `tooltipDefaults` in
|
|
183
|
+
`components/calendar/ui/tooltip.styles.ts`, or pass `delay` to a `Tooltip`.
|
|
169
184
|
|
|
170
|
-
For an app on StyleX
|
|
185
|
+
For an app on StyleX rather than Tailwind, every item has a `stylex-` version; see
|
|
171
186
|
[StyleX](./stylex.md).
|
|
172
187
|
|
|
173
188
|
The theme's tokens and rules go into your global CSS inside `@layer base`, so your own rules win
|
|
@@ -188,7 +203,7 @@ vp install
|
|
|
188
203
|
vp run dev
|
|
189
204
|
```
|
|
190
205
|
|
|
191
|
-
`vp run dev` starts this site locally. The examples on these pages are real files
|
|
192
|
-
`apps/showcase/content/examples
|
|
206
|
+
`vp run dev` starts this site locally. The examples on these pages are real files, type-checked
|
|
207
|
+
against the current packages. They are in `apps/showcase/content/examples`.
|
|
193
208
|
|
|
194
209
|
Next, build a calendar in the [Quick start](./quick-start.md).
|
package/docs/interactions.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Save moved, resized, created, and deleted events, show them while they save, and decide which changes to allow.
|
|
4
4
|
|
|
5
|
-
Source: https://time.molten.sh/docs/interactions
|
|
5
|
+
Source: https://time.molten.sh/docs/react/interactions
|
|
6
6
|
|
|
7
7
|
Time never edits your events itself. When someone moves, resizes, creates, or deletes an event, the
|
|
8
8
|
calendar **proposes a change**. Your `onEventChange` handler saves it and updates your events. While
|
|
@@ -330,11 +330,44 @@ apply. A few details:
|
|
|
330
330
|
long-press only picks events up.
|
|
331
331
|
- The view scrolls when you drag near any edge of its scroll container.
|
|
332
332
|
- Read-only events (your adapter's `isReadOnly`) can't be dragged and have no resize handles.
|
|
333
|
-
- While dragging, the original event dims (it has `data-dragging`) and a preview
|
|
334
|
-
|
|
333
|
+
- While dragging, the original event dims (it has `data-dragging`) and a preview shows where it
|
|
334
|
+
would land. Dragging never re-renders the view.
|
|
335
335
|
|
|
336
336
|
Clicking an empty slot doesn't create an event; creating needs a drag.
|
|
337
337
|
|
|
338
|
+
### Snapped and free drags
|
|
339
|
+
|
|
340
|
+
By default the preview snaps: it draws the event where a drop would land, so it steps from slot to
|
|
341
|
+
slot. Set a view's `dragPreview` option to `"free"` and the preview follows the pointer instead:
|
|
342
|
+
|
|
343
|
+
- **Move:** a copy of the event moves with the pointer, pixel for pixel, over a marker of where a
|
|
344
|
+
drop would land. On release the copy slides onto the event in its new place.
|
|
345
|
+
- **Resize:** on a time axis, the dragged edge stays under the pointer while the marker steps from
|
|
346
|
+
slot to slot. A resized event still keeps at least one slot.
|
|
347
|
+
- **Create:** on a time axis, the new range grows with the pointer, from the slot you pressed in.
|
|
348
|
+
|
|
349
|
+
In a month grid or a day timeline, a resize or create still steps whole days, as it does when
|
|
350
|
+
snapped.
|
|
351
|
+
|
|
352
|
+
```tsx
|
|
353
|
+
<Calendar.Root viewOptions={{ week: { dragPreview: "free" } }} />
|
|
354
|
+
```
|
|
355
|
+
|
|
356
|
+
> Live example: see it at https://time.molten.sh/docs/react/interactions
|
|
357
|
+
|
|
358
|
+
The drop is the same in both modes. Your handler, the policies, the draft hooks, the announcements
|
|
359
|
+
and your own drop zones all hear the snapped placement, never the pointer's exact position.
|
|
360
|
+
|
|
361
|
+
The copy settles in 150ms with an ease-out curve. Under `prefers-reduced-motion: reduce` it doesn't
|
|
362
|
+
slide: the event just appears in its new place. Escape, a drop outside the view, and a drop that a
|
|
363
|
+
policy or your handler refuses right away all send the copy back to where the event started.
|
|
364
|
+
|
|
365
|
+
If your handler returns nothing and updates your events only later, after a save, the copy slides
|
|
366
|
+
to where the drop landed and disappears before the event shows up there. Return the save's promise
|
|
367
|
+
instead, so the event shows in its new place while it's [pending](#pending-changes).
|
|
368
|
+
|
|
369
|
+
The [pointer layer](./api/changes.md#pointer-layer) documents the marker's styling hooks.
|
|
370
|
+
|
|
338
371
|
### From the rest of the page
|
|
339
372
|
|
|
340
373
|
Items of your own, such as unscheduled tasks, can be dragged into the calendar, and events dragged
|
package/docs/llms.txt
CHANGED
|
@@ -1,86 +1,99 @@
|
|
|
1
1
|
# Moltenship Time
|
|
2
2
|
|
|
3
|
-
> A
|
|
3
|
+
> A calendar on the Temporal API whose engine imports no UI framework. React renders it, with week, day, month, year, agenda and resource views you copy and own, and drag and keyboard editing. SolidJS 2 renders it too, with the same views in Tailwind CSS. It is built on ui-sdk, so an AI agent can read a calendar and act on it once the app creates a bridge.
|
|
4
4
|
|
|
5
|
-
These are the docs for @moltenship/calendar 2.0.0
|
|
5
|
+
These are the docs for @moltenship/calendar 2.0.0, as Markdown. Each link below is a file beside this one. They're generated from the same source as https://time.molten.sh/docs/react, where the live examples run.
|
|
6
6
|
|
|
7
7
|
Read this index first, then only the pages your task needs. To let an AI agent operate a calendar, start at [Agents](./agents.md). The exact API is in the package's `.d.mts` types.
|
|
8
8
|
|
|
9
|
-
##
|
|
10
|
-
|
|
11
|
-
- [Introduction](./index.md): A
|
|
12
|
-
- [Installation](./installation.md): Requirements, packages, the ui-sdk peer dependencies, and Temporal setup.
|
|
13
|
-
- [Quick start](./quick-start.md): Build a week, day, month
|
|
9
|
+
## Get started
|
|
10
|
+
|
|
11
|
+
- [Introduction](./index.md): A calendar engine on the Temporal API, rendered in React and in SolidJS 2, with actions an AI agent can call.
|
|
12
|
+
- [Installation](./installation.md): Requirements, the packages to install, the ui-sdk peer dependencies, and Temporal setup.
|
|
13
|
+
- [Quick start](./quick-start.md): Build a week, day, month and agenda calendar in React with the built-in views.
|
|
14
|
+
- [React and Solid](./frameworks.md): What the React and SolidJS 2 integrations share, what each one has, and what Solid doesn't have.
|
|
15
|
+
|
|
16
|
+
## Build a calendar
|
|
17
|
+
|
|
18
|
+
- [Concepts: How it works](./concepts/how-it-works.md): The packages, which of them React and Solid share, and how your events become a rendered view.
|
|
19
|
+
- [Concepts: Anatomy](./concepts/anatomy.md): The parts a calendar is built from, and their names in code.
|
|
20
|
+
- [Concepts: Events and adapters](./concepts/events.md): How Time reads your event records, and what happens when one is invalid.
|
|
21
|
+
- [Concepts: Time and time zones](./concepts/time.md): Timed, all-day, and floating events, exclusive end times, and daylight saving time.
|
|
22
|
+
- [Concepts: State](./concepts/state.md): Let the calendar own its state, or control it from your app, one value at a time.
|
|
23
|
+
- [Views: Overview](./views.md): How views work, how to switch between them, and which ones exist today.
|
|
24
|
+
- [Views: Week and day](./views/week-and-day.md): Time-grid views with an all-day row, a current-time line, and DST-aware hours.
|
|
25
|
+
- [Views: Month](./views/month.md): A month grid with multi-day bars and a "+N more" popover.
|
|
26
|
+
- [Views: Year](./views/year.md): Twelve months at a glance, with a dot for each event color on a day and a popover of its events.
|
|
27
|
+
- [Views: Scrolling views](./views/scrolling.md): Week, day and month views that scroll without end, swiping a page at a time.
|
|
28
|
+
- [Views: Agenda](./views/agenda.md): A chronological list of upcoming events, grouped by day, and a version that scrolls through months or years.
|
|
29
|
+
- [Views: Resource columns](./views/resource-columns.md): A day or a few days of rooms or people side by side, grouped by team, with hundreds of columns.
|
|
30
|
+
- [Views: Resource timeline](./views/resource-timeline.md): Rooms or people as rows and time as columns, for a day, a week or a month, with hundreds of rows.
|
|
31
|
+
- [Views: Custom views](./views/custom-views.md): Define a view with a pure strategy and a Renderer component.
|
|
14
32
|
- [Interactions](./interactions.md): Save moved, resized, created, and deleted events, show them while they save, and decide which changes to allow.
|
|
15
33
|
- [Undo and redo](./undo-redo.md): Record the changes people make, and take them back through the same pipeline that saved them.
|
|
16
|
-
- [Annotations](./annotations.md): Time-based information beside events, such as listening history, sleep, workouts and focus sessions.
|
|
17
34
|
- [Availability](./availability.md): Working hours, closed days and holidays, people and rooms in their own time zones, shading you can restyle, a busy or free status, and policies that keep bookings inside working hours and rooms from being double-booked.
|
|
35
|
+
- [Annotations](./annotations.md): Time-based information beside events, such as listening history, sleep, workouts and focus sessions.
|
|
18
36
|
- [Accessibility](./accessibility.md): The keyboard map, screen reader announcements, the ARIA patterns each view uses, reduced motion, and right-to-left layout.
|
|
19
|
-
- [Theming](./theming.md): Calendar color tokens, dark mode, and the event color palette.
|
|
20
|
-
- [StyleX](./stylex.md): The calendar's views styled with StyleX and Astryx, for apps without Tailwind.
|
|
21
37
|
- [Testing](./testing.md): Test the calendar you built with a fixed clock, typed builders, a render harness, and keyboard and pointer drivers.
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
- [
|
|
26
|
-
- [
|
|
27
|
-
- [
|
|
28
|
-
- [
|
|
29
|
-
- [
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
- [
|
|
35
|
-
- [
|
|
36
|
-
- [
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
- [
|
|
41
|
-
- [
|
|
42
|
-
- [
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
- [
|
|
48
|
-
- [
|
|
49
|
-
- [
|
|
50
|
-
- [
|
|
51
|
-
|
|
52
|
-
|
|
38
|
+
- [Guides: Next.js and server rendering](./guides/nextjs.md): Fetch events in a Server Component and render the same calendar on the server and in the browser.
|
|
39
|
+
- [Guides: Next.js App Router example](./guides/nextjs-app-router.md): A calendar whose view and date live in the URL, loaded by a Server Component and saved through Server Actions.
|
|
40
|
+
- [Guides: Google Calendar events](./guides/google-calendar.md): Read recurring events from the Google Calendar API, with their RRULE, EXDATE and RDATE lines, and show and edit them.
|
|
41
|
+
- [Guides: Sync with Google Calendar](./guides/google-calendar-sync.md): Load a Google calendar from the dates on screen, keep it current with sync tokens, and write changes back with etags.
|
|
42
|
+
- [Guides: Load events with TanStack Query](./guides/tanstack-query.md): Fetch the dates the calendar shows with useQuery, and save its changes with useMutation and optimistic updates.
|
|
43
|
+
- [Guides: Drag tasks in with dnd-kit](./guides/dnd-kit.md): Drag a backlog of your own into the calendar, and meetings back out, with dnd-kit and @moltenship/calendar-dnd-kit.
|
|
44
|
+
- [Guides: Animate with Motion](./guides/motion.md): Grow a clicked meeting into its card and let a card follow each drag, with Motion and the calendar's own hooks.
|
|
45
|
+
- [Guides: Performance](./guides/performance.md): Where Time does its work, and how to keep that work small.
|
|
46
|
+
|
|
47
|
+
## Recurring events
|
|
48
|
+
|
|
49
|
+
- [Overview](./recurrence.md): What @moltenship/calendar-recurrence is, how to install it, and a first expansion of a rule into dates.
|
|
50
|
+
- [Series and occurrences](./recurrence/model.md): Series, exceptions and overrides, how each series keeps its own time, occurrence IDs, and what "this", "following" and "all" change.
|
|
51
|
+
- [Show and edit recurring events](./recurrence/calendar.md): Expand series for the dates on screen, and ask which events a change applies to.
|
|
52
|
+
- [API reference](./recurrence/reference.md): Everything @moltenship/calendar-recurrence exports. Series and adapters, expansion, occurrence IDs, rules, the ICS bridge and edits.
|
|
53
|
+
|
|
54
|
+
## iCalendar (ICS)
|
|
55
|
+
|
|
56
|
+
- [Overview](./ics.md): What @moltenship/ics is, how to install it, and a first parse of iCalendar text into Temporal values.
|
|
57
|
+
- [Read an .ics file](./ics/import.md): Parse an iCalendar file a person picks or uploads, report its problems with their lines, and turn its dates into instants.
|
|
58
|
+
- [Show an ICS feed](./ics/feed.md): Parse a Google, Outlook or iCloud feed on the server and show its events in the calendar.
|
|
59
|
+
- [API reference](./ics/reference.md): Everything @moltenship/ics exports. Calendars and events, dates and time zones, issues and strict mode, extensions, and the lower layers.
|
|
60
|
+
|
|
61
|
+
## Temporal helpers
|
|
62
|
+
|
|
63
|
+
- [Overview](./temporal.md): What @moltenship/calendar-temporal is, how to install it, and a first example of its date ranges.
|
|
64
|
+
- [Build a month grid](./temporal/month-grid.md): Lay out the weeks of a month with monthGrid, weekRange and iteratePlainDates, for a date picker or a view of your own.
|
|
65
|
+
- [Handle daylight saving time](./temporal/daylight-saving-time.md): Days of 23 and 25 hours, wall-clock times the clocks skip or repeat, and the rows of a day view, with @moltenship/calendar-temporal.
|
|
66
|
+
- [API reference](./temporal/reference.md): Everything @moltenship/calendar-temporal exports. Ranges, date and time grids, rounding, day boundaries, daylight saving time, keys and clocks.
|
|
67
|
+
|
|
68
|
+
## Styling
|
|
69
|
+
|
|
70
|
+
- [Customization](./customization.md): How much of the calendar's UI is yours to change, from its tokens to every element on screen, built on the unstyled parts and hooks.
|
|
71
|
+
- [Theming](./theming.md): Calendar color tokens, dark mode, the event color palette, and controls of your own.
|
|
72
|
+
- [StyleX](./stylex.md): The calendar's views styled with StyleX, for apps without Tailwind.
|
|
73
|
+
|
|
74
|
+
## AI
|
|
75
|
+
|
|
76
|
+
- [Agents in your app](./agents.md): What an AI agent sees of your calendar, what it can do to it, and where your app stays in charge.
|
|
77
|
+
- [Agents in your app: Connect an agent](./agents/connect.md): Create the agent bridge, name your calendar, and decide which actions an agent may run.
|
|
78
|
+
- [Agents in your app: Who made a change](./agents/changes.md): Tell an agent's change from a person's, refuse it with a policy, and undo it without touching what the person did.
|
|
79
|
+
- [Agents in your app: Deleting](./agents/deleting.md): Let an agent delete an event only after the person on the page says yes.
|
|
80
|
+
- [Agents in your app: WebMCP](./agents/webmcp.md): Hand the calendar's tools to the agent built into a browser, with rules of their own for an agent you didn't write.
|
|
81
|
+
- [Agents in your app: A model on your server](./agents/server.md): Give a model the bridge's tool definitions from your server, and run its tool calls on the calendar in the browser.
|
|
82
|
+
- [Agents in your app: Agent reference](./agents/reference.md): Every action an agent can call on a calendar, with its arguments, results and errors, and every field of the calendar's snapshot entry.
|
|
53
83
|
- [Build with a coding agent](./agents/coding-agents.md): Give Claude Code, Cursor or another coding agent these docs as Markdown, and a skill that teaches it the library.
|
|
54
84
|
|
|
55
|
-
##
|
|
56
|
-
|
|
57
|
-
- [
|
|
58
|
-
- [
|
|
59
|
-
- [
|
|
60
|
-
- [
|
|
61
|
-
- [
|
|
62
|
-
- [
|
|
63
|
-
- [
|
|
64
|
-
- [Drag tasks in with dnd-kit](./guides/dnd-kit.md): Drag a backlog of your own into the calendar, and meetings back out, with dnd-kit and @moltenship/calendar-dnd-kit.
|
|
65
|
-
- [Animate with Motion](./guides/motion.md): Grow a clicked meeting into its card and let a card follow each drag, with Motion and the calendar's own hooks.
|
|
66
|
-
- [Performance](./guides/performance.md): Where Time does its work, and how to keep that work small.
|
|
67
|
-
|
|
68
|
-
## API reference
|
|
69
|
-
|
|
70
|
-
- [Overview](./api.md): What each package exports, and where to import it from.
|
|
71
|
-
- [React components and hooks](./api/react.md): createCalendar, Root and its props, the components, hooks, meta, and diagnostics.
|
|
72
|
-
- [Events and snapshots](./api/events.md): Adapters, event ranges, validation, snapshots, and queries.
|
|
73
|
-
- [Event changes](./api/changes.md): Proposals, changes, results, policies, placement helpers, and the pointer layer.
|
|
74
|
-
- [State store](./api/store.md): Create calendar state outside Root, and change it from anywhere in your app.
|
|
75
|
-
- [Temporal helpers](./api/temporal.md): Ranges, date and time grids, rounding, day boundaries, and DST from @moltenship/calendar-temporal.
|
|
76
|
-
- [iCalendar (ICS)](./api/ics.md): Parse ICS feeds and files into typed Temporal values with @moltenship/ics.
|
|
77
|
-
- [Recurrence](./api/recurrence.md): Expand recurring series for the dates on screen, and edit one occurrence, the following ones or all of them, with @moltenship/calendar-recurrence.
|
|
78
|
-
- [dnd-kit adapter](./api/dnd-kit.md): Drag your own dnd-kit items into the calendar, and calendar events out to your droppables, with @moltenship/calendar-dnd-kit.
|
|
79
|
-
- [Primitives](./api/primitives.md): The framework-free layer under the React and Solid integrations, the calendar as a ui-sdk primitive, and the types of its agent actions.
|
|
80
|
-
- [Solid](./api/solid.md): The SolidJS 2 integration, a preview. What it has, how it differs from React, and what isn't in it yet.
|
|
85
|
+
## Reference
|
|
86
|
+
|
|
87
|
+
- [API reference: Overview](./api.md): What each package exports, and where to import it from.
|
|
88
|
+
- [API reference: Components and hooks](./api/components.md): createCalendar, Root and its props, the components, hooks, actions, meta, and diagnostics.
|
|
89
|
+
- [API reference: Events and snapshots](./api/events.md): Adapters, event ranges, validation, snapshots, and queries.
|
|
90
|
+
- [API reference: Event changes](./api/changes.md): Proposals, changes, results, policies, placement helpers, and the pointer layer.
|
|
91
|
+
- [API reference: State store](./api/store.md): Create calendar state outside Root, and change it from anywhere in your app.
|
|
92
|
+
- [API reference: Primitives](./api/primitives.md): The framework-free layer under the React and Solid integrations, the calendar as a ui-sdk primitive, and the types of its agent actions.
|
|
93
|
+
- [API reference: dnd-kit adapter](./api/dnd-kit.md): Drag your own dnd-kit items into the calendar, and calendar events out to your droppables, with @moltenship/calendar-dnd-kit.
|
|
81
94
|
|
|
82
95
|
## Optional
|
|
83
96
|
|
|
84
|
-
- [Comparison](./comparison.md): How Time compares with FullCalendar and react-big-calendar, as of October 2026.
|
|
85
97
|
- [Migrating to 2.0](./migrating-to-2.md): What changes between Time 1.x and 2.0, and what to do about each change.
|
|
86
98
|
- [Theme builder](./theme-builder.md): Change the calendar's tokens in light and dark, see them live, and copy the CSS or a StyleX theme.
|
|
99
|
+
- [Comparison](./comparison.md): How Time compares with FullCalendar and react-big-calendar, as of October 2026.
|