@vermeulen.solutions/eventual 0.18.3 → 0.18.5
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 +145 -140
- package/astro/editor-compat.mjs +2 -2
- package/dist/index.mjs +1 -1
- package/dist/plugin.mjs +4 -4
- package/docs/collection-setup.md +18 -6
- package/docs/{native-modernization.md → developer-guide.md} +138 -101
- package/docs/history.md +1 -1
- package/docs/registry-installation.md +13 -13
- package/docs/release-notes-0.14.0.md +1 -1
- package/docs/release-notes-0.18.3.md +6 -6
- package/docs/release-notes-0.18.4.md +4 -0
- package/docs/release-notes-0.18.5.md +8 -0
- package/package.json +152 -146
- package/src/domain/calendar-links.ts +4 -2
- package/src/public-event.ts +1 -1
package/package.json
CHANGED
|
@@ -1,146 +1,152 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@vermeulen.solutions/eventual",
|
|
3
|
-
"version": "0.18.
|
|
4
|
-
"license": "MIT",
|
|
5
|
-
"homepage": "https://eventual.rsvp/",
|
|
6
|
-
"type": "module",
|
|
7
|
-
"engines": {
|
|
8
|
-
"node": ">=24"
|
|
9
|
-
},
|
|
10
|
-
"packageManager": "npm@11.19.0",
|
|
11
|
-
"main": "dist/index.mjs",
|
|
12
|
-
"exports": {
|
|
13
|
-
".": {
|
|
14
|
-
"import": "./dist/index.mjs",
|
|
15
|
-
"types": "./dist/index.d.mts"
|
|
16
|
-
},
|
|
17
|
-
"./sandbox": "./dist/plugin.mjs",
|
|
18
|
-
"./schema": {
|
|
19
|
-
"types": "./astro/blueprint.d.mts",
|
|
20
|
-
"import": "./astro/blueprint.mjs"
|
|
21
|
-
},
|
|
22
|
-
"./astro": "./astro/feed.ts",
|
|
23
|
-
"./astro/schema": "./astro/schema.ts",
|
|
24
|
-
"./astro/EventList.astro": "./astro/EventList.astro",
|
|
25
|
-
"./transfer": {
|
|
26
|
-
"types": "./transfer/index.d.mts",
|
|
27
|
-
"import": "./transfer/index.mjs"
|
|
28
|
-
},
|
|
29
|
-
"./admin": {
|
|
30
|
-
"types": "./astro/admin.d.mts",
|
|
31
|
-
"import": "./astro/admin.mjs"
|
|
32
|
-
},
|
|
33
|
-
"./admin/compat": "./astro/editor-compat.mjs",
|
|
34
|
-
"./admin/i18n": "./astro/editor-i18n.mjs",
|
|
35
|
-
"./install": {
|
|
36
|
-
"types": "./astro/install.d.mts",
|
|
37
|
-
"import": "./astro/install.mjs"
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
"files": [
|
|
41
|
-
"dist/*.mjs",
|
|
42
|
-
"dist/*.d.mts",
|
|
43
|
-
"emdash-plugin.jsonc",
|
|
44
|
-
"astro",
|
|
45
|
-
"transfer",
|
|
46
|
-
"src/domain",
|
|
47
|
-
"src/schema",
|
|
48
|
-
"src/storage.ts",
|
|
49
|
-
"src/public-event.ts",
|
|
50
|
-
"docs/
|
|
51
|
-
"docs/registry-installation.md",
|
|
52
|
-
"scripts/export-native-schema.mjs",
|
|
53
|
-
"scripts/upgrade-native-editor.mjs",
|
|
54
|
-
"scripts/check-editor-installation.mjs",
|
|
55
|
-
"docs/collection-setup.md",
|
|
56
|
-
"docs/upgrade-0.13.0.md",
|
|
57
|
-
"docs/user-guide.md",
|
|
58
|
-
"docs/history.md",
|
|
59
|
-
"docs/release-notes-0.14.0.md",
|
|
60
|
-
"docs/release-notes-0.14.1.md",
|
|
61
|
-
"docs/public-feed-caching.md",
|
|
62
|
-
"docs/release-notes-0.15.0.md",
|
|
63
|
-
"docs/release-notes-0.16.0.md",
|
|
64
|
-
"docs/release-notes-0.17.0.md",
|
|
65
|
-
"docs/release-notes-0.18.0.md",
|
|
66
|
-
"docs/release-notes-0.18.1.md",
|
|
67
|
-
"docs/release-notes-0.18.2.md",
|
|
68
|
-
"docs/release-notes-0.18.3.md"
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"test:
|
|
86
|
-
"test:
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
"emdash": ">=1.2.0 <2.0.0",
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
"
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
"@
|
|
104
|
-
"emdash": "1.4.0",
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
"
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
"
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
"
|
|
126
|
-
"optional": true
|
|
127
|
-
},
|
|
128
|
-
"@emdash-cms/
|
|
129
|
-
"optional": true
|
|
130
|
-
},
|
|
131
|
-
"
|
|
132
|
-
"optional": true
|
|
133
|
-
},
|
|
134
|
-
"kysely": {
|
|
135
|
-
"optional": true
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
"
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@vermeulen.solutions/eventual",
|
|
3
|
+
"version": "0.18.5",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"homepage": "https://eventual.rsvp/",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"engines": {
|
|
8
|
+
"node": ">=24"
|
|
9
|
+
},
|
|
10
|
+
"packageManager": "npm@11.19.0",
|
|
11
|
+
"main": "dist/index.mjs",
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"import": "./dist/index.mjs",
|
|
15
|
+
"types": "./dist/index.d.mts"
|
|
16
|
+
},
|
|
17
|
+
"./sandbox": "./dist/plugin.mjs",
|
|
18
|
+
"./schema": {
|
|
19
|
+
"types": "./astro/blueprint.d.mts",
|
|
20
|
+
"import": "./astro/blueprint.mjs"
|
|
21
|
+
},
|
|
22
|
+
"./astro": "./astro/feed.ts",
|
|
23
|
+
"./astro/schema": "./astro/schema.ts",
|
|
24
|
+
"./astro/EventList.astro": "./astro/EventList.astro",
|
|
25
|
+
"./transfer": {
|
|
26
|
+
"types": "./transfer/index.d.mts",
|
|
27
|
+
"import": "./transfer/index.mjs"
|
|
28
|
+
},
|
|
29
|
+
"./admin": {
|
|
30
|
+
"types": "./astro/admin.d.mts",
|
|
31
|
+
"import": "./astro/admin.mjs"
|
|
32
|
+
},
|
|
33
|
+
"./admin/compat": "./astro/editor-compat.mjs",
|
|
34
|
+
"./admin/i18n": "./astro/editor-i18n.mjs",
|
|
35
|
+
"./install": {
|
|
36
|
+
"types": "./astro/install.d.mts",
|
|
37
|
+
"import": "./astro/install.mjs"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"files": [
|
|
41
|
+
"dist/*.mjs",
|
|
42
|
+
"dist/*.d.mts",
|
|
43
|
+
"emdash-plugin.jsonc",
|
|
44
|
+
"astro",
|
|
45
|
+
"transfer",
|
|
46
|
+
"src/domain",
|
|
47
|
+
"src/schema",
|
|
48
|
+
"src/storage.ts",
|
|
49
|
+
"src/public-event.ts",
|
|
50
|
+
"docs/developer-guide.md",
|
|
51
|
+
"docs/registry-installation.md",
|
|
52
|
+
"scripts/export-native-schema.mjs",
|
|
53
|
+
"scripts/upgrade-native-editor.mjs",
|
|
54
|
+
"scripts/check-editor-installation.mjs",
|
|
55
|
+
"docs/collection-setup.md",
|
|
56
|
+
"docs/upgrade-0.13.0.md",
|
|
57
|
+
"docs/user-guide.md",
|
|
58
|
+
"docs/history.md",
|
|
59
|
+
"docs/release-notes-0.14.0.md",
|
|
60
|
+
"docs/release-notes-0.14.1.md",
|
|
61
|
+
"docs/public-feed-caching.md",
|
|
62
|
+
"docs/release-notes-0.15.0.md",
|
|
63
|
+
"docs/release-notes-0.16.0.md",
|
|
64
|
+
"docs/release-notes-0.17.0.md",
|
|
65
|
+
"docs/release-notes-0.18.0.md",
|
|
66
|
+
"docs/release-notes-0.18.1.md",
|
|
67
|
+
"docs/release-notes-0.18.2.md",
|
|
68
|
+
"docs/release-notes-0.18.3.md",
|
|
69
|
+
"docs/release-notes-0.18.4.md",
|
|
70
|
+
"docs/release-notes-0.18.5.md"
|
|
71
|
+
],
|
|
72
|
+
"scripts": {
|
|
73
|
+
"validate": "emdash-plugin validate",
|
|
74
|
+
"build": "npm run i18n:pack && emdash-plugin build && node scripts/build-host.mjs",
|
|
75
|
+
"prepack": "node scripts/build-host.mjs",
|
|
76
|
+
"dev": "emdash-plugin dev",
|
|
77
|
+
"typecheck": "tsc --noEmit",
|
|
78
|
+
"test": "emdash-plugin validate && vitest run",
|
|
79
|
+
"bundle": "emdash-plugin bundle",
|
|
80
|
+
"login": "emdash-plugin login",
|
|
81
|
+
"publish": "emdash-plugin publish",
|
|
82
|
+
"release:setup": "emdash-plugin release setup",
|
|
83
|
+
"budget": "node scripts/bundle-budget.mjs",
|
|
84
|
+
"registry:media": "node scripts/check-registry-media.mjs",
|
|
85
|
+
"test:tooling": "node --test scripts/*.test.mjs",
|
|
86
|
+
"test:package": "node scripts/verify-packed-astro.mjs",
|
|
87
|
+
"test:cache": "node scripts/verify-public-cache.mjs",
|
|
88
|
+
"test:editor": "node scripts/verify-editor-host.mjs",
|
|
89
|
+
"profile": "vitest run --config vitest.profile.config.ts",
|
|
90
|
+
"release:prepare": "node scripts/prepare-release.mjs",
|
|
91
|
+
"i18n:pack": "node node_modules/@vermeulen.solutions/eventual-locales/scripts/pack-manifest.mjs core src/ui/locales"
|
|
92
|
+
},
|
|
93
|
+
"peerDependencies": {
|
|
94
|
+
"@emdash-cms/admin": ">=1.2.0 <2.0.0",
|
|
95
|
+
"@emdash-cms/blocks": ">=1.2.0 <2.0.0",
|
|
96
|
+
"astro": ">=7.3.2 <8.0.0",
|
|
97
|
+
"emdash": ">=1.2.0 <2.0.0",
|
|
98
|
+
"kysely": "^0.29.0",
|
|
99
|
+
"react": "^19.0.0",
|
|
100
|
+
"vite": ">=8.3.0 <9.0.0"
|
|
101
|
+
},
|
|
102
|
+
"devDependencies": {
|
|
103
|
+
"@emdash-cms/admin": "1.4.0",
|
|
104
|
+
"@emdash-cms/blocks": "1.4.0",
|
|
105
|
+
"@emdash-cms/plugin-cli": "0.13.5",
|
|
106
|
+
"@emdash-cms/plugin-test": "0.2.11",
|
|
107
|
+
"@playwright/test": "1.64.1",
|
|
108
|
+
"emdash": "1.4.0",
|
|
109
|
+
"ical.js": "^2.2.1",
|
|
110
|
+
"jsonc-parser": "3.3.1",
|
|
111
|
+
"sharp": "0.35.5",
|
|
112
|
+
"typescript": "^5.9.0",
|
|
113
|
+
"vitest": "^4.1.0"
|
|
114
|
+
},
|
|
115
|
+
"dependencies": {
|
|
116
|
+
"@lingui/core": "5.9.5",
|
|
117
|
+
"zod": "4.5.4",
|
|
118
|
+
"@vermeulen.solutions/eventual-locales": "0.1.10"
|
|
119
|
+
},
|
|
120
|
+
"allowScripts": {
|
|
121
|
+
"esbuild": true,
|
|
122
|
+
"workerd": true
|
|
123
|
+
},
|
|
124
|
+
"peerDependenciesMeta": {
|
|
125
|
+
"@emdash-cms/admin": {
|
|
126
|
+
"optional": true
|
|
127
|
+
},
|
|
128
|
+
"@emdash-cms/blocks": {
|
|
129
|
+
"optional": true
|
|
130
|
+
},
|
|
131
|
+
"astro": {
|
|
132
|
+
"optional": true
|
|
133
|
+
},
|
|
134
|
+
"kysely": {
|
|
135
|
+
"optional": true
|
|
136
|
+
},
|
|
137
|
+
"react": {
|
|
138
|
+
"optional": true
|
|
139
|
+
},
|
|
140
|
+
"vite": {
|
|
141
|
+
"optional": true
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
"overrides": {
|
|
145
|
+
"sharp": "0.35.5",
|
|
146
|
+
"undici@7.29.0": "7.29.1"
|
|
147
|
+
},
|
|
148
|
+
"description": "Native event collections for EmDash: Portable Text, localization, recurrence, saved venues and multilingual iCalendar feeds.",
|
|
149
|
+
"bin": {
|
|
150
|
+
"eventual-schema": "scripts/export-native-schema.mjs"
|
|
151
|
+
}
|
|
152
|
+
}
|
|
@@ -23,8 +23,10 @@ export interface CalendarEventInput {
|
|
|
23
23
|
/**
|
|
24
24
|
* Builds standard 1-click web calendar links for Google Calendar, Outlook Web,
|
|
25
25
|
* Office 365, and Apple/desktop iCal (.ics) download.
|
|
26
|
+
* Pass the installed plugin ID: Registry installs are addressed as `r_…`, not `eventual`.
|
|
27
|
+
* The `.ics` link downloads this event (all upcoming dates of a repeating one) from the `calendar` route.
|
|
26
28
|
*/
|
|
27
|
-
export function buildCalendarLinks(event: CalendarEventInput, siteUrl = ""): CalendarLinks {
|
|
29
|
+
export function buildCalendarLinks(event: CalendarEventInput, siteUrl = "", pluginId = "eventual"): CalendarLinks {
|
|
28
30
|
const title = event.title || "Event";
|
|
29
31
|
const onlineUrl = safeHttpUrl(event.virtualUrl ?? "");
|
|
30
32
|
const details = [event.description || "", onlineUrl].filter(Boolean).join("\n\n");
|
|
@@ -68,7 +70,7 @@ export function buildCalendarLinks(event: CalendarEventInput, siteUrl = ""): Cal
|
|
|
68
70
|
const office365 = `https://outlook.office.com/calendar/0/deeplink/compose?${q}`;
|
|
69
71
|
|
|
70
72
|
const eventBaseId = event.id.split("#")[0]!;
|
|
71
|
-
const icsPath = `/_emdash/api/plugins/
|
|
73
|
+
const icsPath = `/_emdash/api/plugins/${enc(pluginId)}/calendar?eventId=${enc(eventBaseId)}`;
|
|
72
74
|
const ics = siteUrl ? new URL(icsPath, siteUrl).href : icsPath;
|
|
73
75
|
|
|
74
76
|
return {
|