@vermeulen.solutions/eventual 0.18.5 → 0.18.7
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 +7 -7
- package/astro/EventList.astro +124 -5
- package/astro/blueprint.d.mts +2 -0
- package/astro/blueprint.mjs +1 -1
- package/astro/install.mjs +3 -3
- package/dist/index.mjs +1 -11
- package/dist/plugin.mjs +7 -7
- package/docs/collection-setup.md +58 -58
- package/docs/developer-guide.md +19 -4
- package/docs/history.md +16 -16
- package/docs/registry-installation.md +3 -3
- package/docs/release-notes-0.18.5.md +8 -8
- package/docs/release-notes-0.18.6.md +5 -0
- package/docs/release-notes-0.18.7.md +13 -0
- package/docs/user-guide.md +1 -1
- package/emdash-plugin.jsonc +4 -3
- package/package.json +4 -2
- package/scripts/export-native-schema.mjs +8 -4
- package/src/domain/calendar-links.ts +84 -82
- package/src/domain/invocation-budget.ts +12 -7
- package/src/domain/native-calendar.ts +12 -3
- package/src/schema/blueprint.ts +3 -1
package/README.md
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
<p align="center">
|
|
8
8
|
<a href="https://github.com/Vermeulen-Solutions/eventual-rsvp-core/actions/workflows/ci.yml"><img src="https://github.com/Vermeulen-Solutions/eventual-rsvp-core/actions/workflows/ci.yml/badge.svg" alt="CI Status" /></a>
|
|
9
9
|
<a href="https://www.npmjs.com/package/@vermeulen.solutions/eventual"><img src="https://img.shields.io/npm/v/%40vermeulen.solutions%2Feventual?color=176b57&label=npm%20helpers" alt="Latest npm version of the helpers" /></a>
|
|
10
|
-
<a href="https://plugins.emdashcms.com/plugins/@vermeulen.solutions/eventual"><img src="https://img.shields.io/badge/EmDash_Registry-0.18.
|
|
11
|
-
<a href="https://emdashcms.com"><img src="https://img.shields.io/badge/EmDash-1.2%20to%201.
|
|
10
|
+
<a href="https://plugins.emdashcms.com/plugins/@vermeulen.solutions/eventual"><img src="https://img.shields.io/badge/EmDash_Registry-0.18.7-0b4d3d" alt="EmDash Plugin Registry" /></a>
|
|
11
|
+
<a href="https://emdashcms.com"><img src="https://img.shields.io/badge/EmDash-1.2%20to%201.6-0b4d3d" alt="EmDash Compatibility" /></a>
|
|
12
12
|
<a href="./LICENSE"><img src="https://img.shields.io/badge/License-MIT-d89521" alt="License: MIT" /></a>
|
|
13
13
|
<img src="https://img.shields.io/badge/TypeScript-strict-3178c6" alt="TypeScript Strict" />
|
|
14
14
|
<img src="https://img.shields.io/badge/Sandbox-1%20host%20(language%20packs)-2ea44f" alt="One outbound host: language packs" />
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
Plan and publish events in [EmDash CMS](https://emdashcms.com). Write announcements, choose venues and organizers, set repeat schedules, and share events through your website and calendar subscriptions.
|
|
20
20
|
|
|
21
|
-
**Current release: 0.18.
|
|
21
|
+
**Current release: 0.18.7**, the same version on the EmDash Registry and on npm. Events are edited in EmDash's own collections, with rich text, images, drafts and translations. Your site builder connects the feeds to visitor pages; the screenshots below show the optional Astro showcase.
|
|
22
22
|
|
|
23
23
|
In 0.14.x, old events stored inside the plugin are shown only when an administrator explicitly enables **Show old events saved inside the plugin**. Native collections remain authoritative. See [what changed](./docs/release-notes-0.14.0.md).
|
|
24
24
|
|
|
@@ -42,7 +42,7 @@ In 0.14.x, old events stored inside the plugin are shown only when an administra
|
|
|
42
42
|
|
|
43
43
|
For the opt-in HTML cache integration, see [public feed caching](./docs/public-feed-caching.md). Eventual RSVP does not enable site caching.
|
|
44
44
|
|
|
45
|
-
Requires **EmDash >=1.2.0 <2.0.0**; tested on 1.2.0, 1.4.0 and 1.
|
|
45
|
+
Requires **EmDash >=1.2.0 <2.0.0**; tested on 1.2.0, 1.4.0, 1.5.0 and 1.6.0. **1.4.0 or newer is recommended** because it fixes nested Block Kit forms and Cloudflare plugin mutations; 1.2/1.3 remain supported with those host limitations. Newer EmDash releases that have not been tested yet are not refused: the source installer prints a warning, and if the editor adapters no longer match a newer admin build they step aside and EmDash's own editor is used. Upgrades from 0.12.x or earlier need the [native-content upgrade](./docs/upgrade-0.13.0.md). Source/developer tooling needs Node 24+.
|
|
46
46
|
|
|
47
47
|
---
|
|
48
48
|
|
|
@@ -108,7 +108,7 @@ npm install @vermeulen.solutions/eventual
|
|
|
108
108
|
|
|
109
109
|
Keep its version the same as the Registry backend. **Do not run `npm install eventual`:** the unscoped name is an unrelated package by another author.
|
|
110
110
|
|
|
111
|
-
Use the **installed plugin ID** in API URLs and MCP tool names. A config-managed site uses `eventual`; a Registry install gets a generated ID that starts with `r_`. The **Subscribe** links on the Eventual RSVP admin page show it. Pass it as `pluginId` to `fetchPublicFeed`, and as `EVENTUAL_PLUGIN_ID` to the showcase. Install the backend one way only, from the Registry or from the config: the [developer guide](./docs/developer-guide.md#installation-and-plugin-id) explains what goes wrong otherwise.
|
|
111
|
+
Use the **installed plugin ID** in API URLs and MCP tool names. A config-managed site uses `eventual`; a Registry install gets a generated ID that starts with `r_`. The **Subscribe** links on the Eventual RSVP admin page show it. Pass it as `pluginId` to `fetchPublicFeed`, and as `EVENTUAL_PLUGIN_ID` to the showcase. Install the backend one way only, from the Registry or from the config: the [developer guide](./docs/developer-guide.md#installation-and-plugin-id) explains what goes wrong otherwise, and [what to do before moving a site to the Registry](./docs/developer-guide.md#moving-a-site-from-the-config-to-the-registry).
|
|
112
112
|
|
|
113
113
|
The [developer guide](./docs/developer-guide.md) covers public JSON/ICS/image routes, SSR dispatch, tool names, settings, transfer formats, permissions and sandbox limits. It also explains installing the matching npm helpers. Eventual RSVP's MCP tools inspect native data; native edits and publication use EmDash's core tools.
|
|
114
114
|
|
|
@@ -124,7 +124,7 @@ npm run bundle
|
|
|
124
124
|
npm run budget
|
|
125
125
|
```
|
|
126
126
|
|
|
127
|
-
The backend shares EmDash's
|
|
127
|
+
The backend shares EmDash's sandbox call budget: the public feeds use up to 30 calls per request, everything else 10. Large feeds and migrations need host-specific verification; optional public URL lookups can be disabled when your site constructs its own links. [Details and checks](./docs/developer-guide.md#limits-and-checks).
|
|
128
128
|
|
|
129
129
|
---
|
|
130
130
|
|
|
@@ -134,7 +134,7 @@ The backend shares EmDash's fixed sandbox RPC budget. Large feeds and migrations
|
|
|
134
134
|
- [Install and connect](./docs/collection-setup.md) — administrators and schema setup.
|
|
135
135
|
- [Upgrade and migrate](./docs/upgrade-0.13.0.md) — existing sites and old plugin data.
|
|
136
136
|
- [Developer guide](./docs/developer-guide.md) — integration and API reference.
|
|
137
|
-
- [Changelog](./CHANGELOG.md) · [0.18.5 release notes](./docs/release-notes-0.18.5.md) · [0.15.0 cache integration](./docs/release-notes-0.15.0.md) · [0.14.0 native collections](./docs/release-notes-0.14.0.md).
|
|
137
|
+
- [Changelog](./CHANGELOG.md) · [0.18.7 release notes](./docs/release-notes-0.18.7.md) · [0.18.6 release notes](./docs/release-notes-0.18.6.md) · [0.18.5 release notes](./docs/release-notes-0.18.5.md) · [0.15.0 cache integration](./docs/release-notes-0.15.0.md) · [0.14.0 native collections](./docs/release-notes-0.14.0.md).
|
|
138
138
|
- [Astro showcase](./examples/astro-events/README.md) — optional visitor pages.
|
|
139
139
|
- [Release evidence and older records](./docs/history.md).
|
|
140
140
|
|
package/astro/EventList.astro
CHANGED
|
@@ -27,6 +27,8 @@ const uiLocale = locale ?? 'en';
|
|
|
27
27
|
await loadEditorCatalog(uiLocale);
|
|
28
28
|
const t = (text: string) => editorText(text, uiLocale);
|
|
29
29
|
|
|
30
|
+
// Calendar links: the group's name includes the event title, and each link's name is its visible
|
|
31
|
+
// text (no aria-label), so speech input and screen readers agree with what is on screen.
|
|
30
32
|
function eventUrl(event: PublicEvent): string {
|
|
31
33
|
return eventPageUrl(event, basePath);
|
|
32
34
|
}
|
|
@@ -40,14 +42,15 @@ function eventUrl(event: PublicEvent): string {
|
|
|
40
42
|
return (
|
|
41
43
|
<li class="eventual-item">
|
|
42
44
|
<a href={eventUrl(event)} class="eventual-title">{event.title}</a>
|
|
45
|
+
{(event.status === 'cancelled' || event.status === 'rescheduled') && <strong class={`eventual-status eventual-status-${event.status}`}>{t(event.status === 'cancelled' ? 'Cancelled' : 'Rescheduled')}</strong>}
|
|
43
46
|
<time datetime={event.start} class="eventual-time">{displayEventDate(event, locale ?? event.locale ?? 'en-GB')}</time>
|
|
44
47
|
{(event.venue?.name || event.location) && <span class="eventual-location">{event.venue?.name || event.location}</span>}
|
|
45
48
|
{links && (
|
|
46
|
-
<div class="eventual-calendar-links" role="group" aria-label={t('Add to calendar')}>
|
|
47
|
-
<a href={links.google} target="_blank" rel="noopener noreferrer"
|
|
48
|
-
<a href={links.outlook} target="_blank" rel="noopener noreferrer"
|
|
49
|
-
<a href={links.office365} target="_blank" rel="noopener noreferrer"
|
|
50
|
-
<a href={links.ics} download
|
|
49
|
+
<div class="eventual-calendar-links" role="group" aria-label={`${t('Add to calendar')}: ${event.title}`}>
|
|
50
|
+
<a href={links.google} target="_blank" rel="noopener noreferrer" class="eventual-cal-btn eventual-cal-google">Google</a>
|
|
51
|
+
<a href={links.outlook} target="_blank" rel="noopener noreferrer" class="eventual-cal-btn eventual-cal-outlook">Outlook</a>
|
|
52
|
+
<a href={links.office365} target="_blank" rel="noopener noreferrer" class="eventual-cal-btn eventual-cal-office">Office 365</a>
|
|
53
|
+
<a href={links.ics} download class="eventual-cal-btn eventual-cal-ics">{t('Download iCal file')}</a>
|
|
51
54
|
</div>
|
|
52
55
|
)}
|
|
53
56
|
</li>
|
|
@@ -55,3 +58,119 @@ function eventUrl(event: PublicEvent): string {
|
|
|
55
58
|
})}
|
|
56
59
|
</ul>
|
|
57
60
|
)}
|
|
61
|
+
|
|
62
|
+
<!-- Light default styles. Global, because every class carries the `eventual-` prefix and sites style
|
|
63
|
+
the list from their own CSS. -->
|
|
64
|
+
<style is:global>
|
|
65
|
+
/* In the `eventual` cascade layer: unlayered site CSS always wins, and sites that use layers can
|
|
66
|
+
place `eventual` below their own components layer. */
|
|
67
|
+
@layer eventual {
|
|
68
|
+
/* Neutrals derive from the text colour around the list, so they suit any light or dark
|
|
69
|
+
background. Accent and status colours follow the page's color-scheme (light-dark()), so set
|
|
70
|
+
`color-scheme: dark` (or `light dark`) where the list sits on a dark surface. Override any
|
|
71
|
+
of the --eventual-list-* properties on the list or an ancestor. */
|
|
72
|
+
.eventual-list {
|
|
73
|
+
--_accent: var(--eventual-list-accent, light-dark(#075985, #7dd3fc));
|
|
74
|
+
--_muted: var(--eventual-list-muted, color-mix(in oklch, currentColor 72%, transparent));
|
|
75
|
+
--_border: var(--eventual-list-border, color-mix(in oklch, currentColor 18%, transparent));
|
|
76
|
+
--_radius: var(--eventual-list-radius, 999px);
|
|
77
|
+
--_cancelled: var(--eventual-list-cancelled, light-dark(#991b1b, #fca5a5));
|
|
78
|
+
--_rescheduled: var(--eventual-list-rescheduled, light-dark(#92400e, #fcd34d));
|
|
79
|
+
list-style: none;
|
|
80
|
+
margin: 0;
|
|
81
|
+
padding: 0;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.eventual-item {
|
|
85
|
+
display: grid;
|
|
86
|
+
grid-template-columns: minmax(0, auto) 1fr;
|
|
87
|
+
align-items: baseline;
|
|
88
|
+
gap: 0.25rem 0.625rem;
|
|
89
|
+
padding-block: 0.875rem;
|
|
90
|
+
border-block-start: 1px solid var(--_border);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.eventual-item:first-child {
|
|
94
|
+
border-block-start: 0;
|
|
95
|
+
padding-block-start: 0;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.eventual-title {
|
|
99
|
+
grid-column: 1;
|
|
100
|
+
font-weight: 600;
|
|
101
|
+
font-size: 1.0625em;
|
|
102
|
+
line-height: 1.35;
|
|
103
|
+
color: var(--_accent);
|
|
104
|
+
text-decoration-line: underline;
|
|
105
|
+
text-decoration-thickness: from-font;
|
|
106
|
+
text-underline-offset: 0.18em;
|
|
107
|
+
overflow-wrap: anywhere;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.eventual-title:hover {
|
|
111
|
+
text-decoration-thickness: 2px;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.eventual-status {
|
|
115
|
+
grid-column: 2;
|
|
116
|
+
justify-self: start;
|
|
117
|
+
padding: 0.0625rem 0.5rem;
|
|
118
|
+
border: 1px solid currentColor;
|
|
119
|
+
border-radius: var(--_radius);
|
|
120
|
+
font-size: 0.8125em;
|
|
121
|
+
font-weight: 600;
|
|
122
|
+
line-height: 1.5;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.eventual-status-cancelled {
|
|
126
|
+
color: var(--_cancelled);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.eventual-status-rescheduled {
|
|
130
|
+
color: var(--_rescheduled);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.eventual-time,
|
|
134
|
+
.eventual-location,
|
|
135
|
+
.eventual-calendar-links {
|
|
136
|
+
grid-column: 1 / -1;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.eventual-time,
|
|
140
|
+
.eventual-location {
|
|
141
|
+
color: var(--_muted);
|
|
142
|
+
font-size: 0.9375em;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.eventual-calendar-links {
|
|
146
|
+
display: flex;
|
|
147
|
+
flex-wrap: wrap;
|
|
148
|
+
gap: 0.375rem;
|
|
149
|
+
margin-block-start: 0.375rem;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.eventual-cal-btn {
|
|
153
|
+
display: inline-flex;
|
|
154
|
+
align-items: center;
|
|
155
|
+
min-block-size: 1.75rem;
|
|
156
|
+
padding: 0.125rem 0.75rem;
|
|
157
|
+
border: 1px solid var(--_border);
|
|
158
|
+
border-radius: var(--_radius);
|
|
159
|
+
color: var(--_accent);
|
|
160
|
+
font-size: 0.875em;
|
|
161
|
+
line-height: 1.3;
|
|
162
|
+
text-decoration: none;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.eventual-cal-btn:hover {
|
|
166
|
+
border-color: var(--_accent);
|
|
167
|
+
background: color-mix(in oklch, var(--_accent) 10%, transparent);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.eventual-title:focus-visible,
|
|
171
|
+
.eventual-cal-btn:focus-visible {
|
|
172
|
+
outline: 2px solid var(--_accent);
|
|
173
|
+
outline-offset: 2px;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
</style>
|
package/astro/blueprint.d.mts
CHANGED
|
@@ -33,6 +33,8 @@ export interface SchemaBlueprintOptions {
|
|
|
33
33
|
bindRelations?: boolean;
|
|
34
34
|
/** Opt in only when importing private-storage records from older prototypes. */
|
|
35
35
|
legacyCompatibility?: boolean;
|
|
36
|
+
/** Time zone new events start in (IANA name). Default Europe/Zurich, for existing callers. */
|
|
37
|
+
defaultTimezone?: string;
|
|
36
38
|
}
|
|
37
39
|
export declare function createEventsCollectionBlueprint(options?: SchemaBlueprintOptions): CollectionBlueprint;
|
|
38
40
|
export declare function createVenuesCollectionBlueprint(options?: SchemaBlueprintOptions): CollectionBlueprint;
|
package/astro/blueprint.mjs
CHANGED
|
@@ -77,7 +77,7 @@ export function createEventsCollectionBlueprint(options = {}) {
|
|
|
77
77
|
field("start_date", "string"),
|
|
78
78
|
field("end_date", "string"),
|
|
79
79
|
field("all_day", "boolean", false, { defaultValue: false }),
|
|
80
|
-
field("timezone", "string", false, { defaultValue: "Europe/Zurich" }),
|
|
80
|
+
field("timezone", "string", false, { defaultValue: options.defaultTimezone ?? "Europe/Zurich" }),
|
|
81
81
|
field("location_type", "select", false, {
|
|
82
82
|
widget: "eventual-editor:location-type",
|
|
83
83
|
defaultValue: "physical",
|
package/astro/install.mjs
CHANGED
|
@@ -9,9 +9,9 @@ export { warnOnce };
|
|
|
9
9
|
|
|
10
10
|
const require = createRequire(import.meta.url);
|
|
11
11
|
export const testedVersions = Object.freeze({
|
|
12
|
-
emdash: Object.freeze(["1.2.0", "1.4.0", "1.5.0"]),
|
|
13
|
-
"@emdash-cms/admin": Object.freeze(["1.2.0", "1.4.0", "1.5.0"]),
|
|
14
|
-
"@emdash-cms/blocks": Object.freeze(["1.2.0", "1.4.0", "1.5.0"]),
|
|
12
|
+
emdash: Object.freeze(["1.2.0", "1.4.0", "1.5.0", "1.6.0"]),
|
|
13
|
+
"@emdash-cms/admin": Object.freeze(["1.2.0", "1.4.0", "1.5.0", "1.6.0"]),
|
|
14
|
+
"@emdash-cms/blocks": Object.freeze(["1.2.0", "1.4.0", "1.5.0", "1.6.0"]),
|
|
15
15
|
});
|
|
16
16
|
export const testedToolchain = Object.freeze({astro:"7.3.x-7.4.x (>=7.3.2 <7.5.0)",vite:"8.3.x",react:"19.x"});
|
|
17
17
|
export function installedVersion(name, resolver = require) {
|
package/dist/index.mjs
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
/** @type {import("emdash").PluginDescriptor} */
|
|
8
8
|
const descriptor = Object.freeze({
|
|
9
9
|
"id": "eventual",
|
|
10
|
-
"version": "0.18.
|
|
10
|
+
"version": "0.18.7",
|
|
11
11
|
"format": "standard",
|
|
12
12
|
"entrypoint": "@vermeulen.solutions/eventual/sandbox",
|
|
13
13
|
"capabilities": [
|
|
@@ -1549,16 +1549,6 @@ const descriptor = Object.freeze({
|
|
|
1549
1549
|
"label": "Eventual RSVP",
|
|
1550
1550
|
"icon": "calendar"
|
|
1551
1551
|
},
|
|
1552
|
-
{
|
|
1553
|
-
"path": "/venues",
|
|
1554
|
-
"label": "Venues",
|
|
1555
|
-
"icon": "map-pin"
|
|
1556
|
-
},
|
|
1557
|
-
{
|
|
1558
|
-
"path": "/organizers",
|
|
1559
|
-
"label": "Organizers",
|
|
1560
|
-
"icon": "users"
|
|
1561
|
-
},
|
|
1562
1552
|
{
|
|
1563
1553
|
"path": "/settings",
|
|
1564
1554
|
"label": "Event settings",
|