mysticals 0.8.0 → 0.8.1
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/dist/cli.js +8 -5
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -5,7 +5,7 @@ import { createElement } from "react";
|
|
|
5
5
|
import { render } from "ink";
|
|
6
6
|
|
|
7
7
|
// package.json
|
|
8
|
-
var version = "0.8.
|
|
8
|
+
var version = "0.8.1";
|
|
9
9
|
|
|
10
10
|
// src/client.ts
|
|
11
11
|
import { spawn } from "child_process";
|
|
@@ -3780,8 +3780,9 @@ import { addDays as addDays8, differenceInCalendarDays as differenceInCalendarDa
|
|
|
3780
3780
|
// ../../packages/core/src/logic/details.ts
|
|
3781
3781
|
import { addDays as addDays7, isSameDay as isSameDay3, parseISO as parseISO7 } from "date-fns";
|
|
3782
3782
|
var same = (a, b) => !!a && !!b && a.trim().toLowerCase() === b.trim().toLowerCase();
|
|
3783
|
+
var extraEmail = (label, email) => same(email, label) ? void 0 : email;
|
|
3783
3784
|
function ownerLine(calendar, label, email) {
|
|
3784
|
-
return { calendar: same(calendar, label) || same(calendar, email) ? void 0 : calendar, label, email:
|
|
3785
|
+
return { calendar: same(calendar, label) || same(calendar, email) ? void 0 : calendar, label, email: extraEmail(label, email) };
|
|
3785
3786
|
}
|
|
3786
3787
|
function canEdit(e, account, calendar) {
|
|
3787
3788
|
if (!account || !calendar || calendar.readOnly) return false;
|
|
@@ -4795,9 +4796,11 @@ function EventEditor({ event, initialStart, onClose }) {
|
|
|
4795
4796
|
const calendar = calendars.find((c) => c.accountId === form.accountId && c.id === form.calendarId);
|
|
4796
4797
|
const value = (f) => {
|
|
4797
4798
|
switch (f) {
|
|
4798
|
-
case "account":
|
|
4799
|
-
|
|
4800
|
-
|
|
4799
|
+
case "account": {
|
|
4800
|
+
const name = account && [account.label, extraEmail(account.label, account.email)].filter(Boolean).join(" \xB7 ");
|
|
4801
|
+
if (event) return { text: name || form.accountId };
|
|
4802
|
+
return name ? { text: name } : { text: "\u2039 choose account \u203A", dim: true };
|
|
4803
|
+
}
|
|
4801
4804
|
case "calendar":
|
|
4802
4805
|
if (event) return { text: calendar?.name ?? form.calendarId };
|
|
4803
4806
|
if (!form.accountId) return { text: "choose an account first", dim: true };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mysticals",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"description": "Isolated multi-account calendar for the terminal on macOS, Linux and Windows",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"calendar",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"tsup": "^8.5.1",
|
|
48
48
|
"typescript": "^5.9.3",
|
|
49
49
|
"vitest": "^3.2.7",
|
|
50
|
-
"@mysticals/core": "0.8.
|
|
50
|
+
"@mysticals/core": "0.8.1"
|
|
51
51
|
},
|
|
52
52
|
"scripts": {
|
|
53
53
|
"dev": "tsup --watch",
|