@forsion/calendar 0.0.0-stage → 0.1.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/CHANGELOG.md ADDED
@@ -0,0 +1,22 @@
1
+ # Changelog
2
+
3
+ ## 0.1.0 — 2026-10-21
4
+
5
+ - 新增独立待办 Space,Calendar 右栏及 Mini 共用同一个紧凑待办视图,原生左栏可按今天、计划、全部及来源切换。
6
+ - 待办可连续快速添加,日期可选;无可写清单时直接创建普通多维表。失败保留输入,中文输入法回车不误提交。
7
+ - 完成待办提供即时视觉反馈、短暂停留与撤销。原生移动端支持可关闭的系统轻触反馈,撤销和同步不触发震动。
8
+ - 补齐现有事件菜单、复制粘贴、条件撤销与重做及移动端事件抽屉。记录正文和关联由宿主公共记录操作保留。
9
+ - 日历显示菜单统一字号与间距,时间刻度合并为一行,以「紧凑/标准/舒展」替代像素数值。
10
+ - 最低宿主版本为 2.13.6,避免旧宿主把新的插件更新为不完整的日历。
11
+
12
+ - 从 Genesis 内置日历一比一搬出:日历、右栏待办、小月历与日历设置、迷你待办;数据与设置走 ctx.databases / ctx.noteTasks / ctx.calendar,
13
+ 事件浮卡的字段走 ctx.ui.mountRecord,撤销提示走带按钮的 ctx.notify。
14
+
15
+ ### English
16
+
17
+ - A dedicated Tasks Space shares the compact task view with Calendar’s right panel and Mini. The native sidebar filters by Today, Planned, All and source.
18
+ - Capture tasks continuously with optional dates. When no writable list exists, create an ordinary database with the first task. Failed writes retain the input; IME confirmation does not submit.
19
+ - Completion provides immediate visual feedback, a short in-place pause and Undo. Native mobile hosts request one optional system tick; undo and synchronization stay silent.
20
+ - Event menus, copy/paste, conditional undo/redo and the mobile event drawer use the host’s public record APIs, preserving record bodies and references.
21
+ - Display options use a compact menu with one semantic time-scale row and one week-start row.
22
+ - Requires Forsion 2.13.6. Calendar keeps its stable native Space identity and saved layouts while its renderer becomes a core npm plugin.
package/README.md CHANGED
@@ -1,3 +1,20 @@
1
- # Temporary Holding Version
1
+ # Forsion Calendar and tasks
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ `@forsion/calendar` is Forsion’s core Calendar and Tasks plugin. Source repository access is private; the npm package contains the bundled renderer, Space recipes and notices. Requires Forsion **2.13.6 or later** with the public calendar record APIs.
4
+
5
+ - Calendar keeps its existing native Space identity, saved layout, calendar settings and right-side task list. A dedicated Tasks Space uses the same task view and the native workspace sidebar. Mini uses the same renderer.
6
+ - Capture a task with Enter and keep typing. Dates are optional; text such as “tomorrow 3pm” supplies a date. Without a writable list, the first add explicitly creates an ordinary database under the plugin’s working folder. There is no separate task database format or parallel task store.
7
+ - Completion gives immediate visual feedback, a short in-place pause and an eight-second Undo action. Native mobile hosts request one system tick for an accepted completion; undo and data refreshes stay silent. Touch feedback can be turned off in the task menu. System preferences still apply. Desktop and browser hosts do not pretend to vibrate.
8
+ - Event menus, record copy/paste, conditional undo/redo and complete note/record copies use the host’s public `calendar.events` API. Field editing uses the real `ui.mountRecord` editor. Calendar/Todo data comes from `databases`, `noteTasks` and `calendar`; no host runtime imports are used.
9
+ - The host pins the npm version in `desktop/package.json`, seeds it through `builtinBundles.json`, classifies it through `CORE_BUNDLE_IDS` and checks npm updates through the existing core updater. Android bundles the same npm renderer; a newer compatible installed version takes precedence. It is not a marketplace entry.
10
+
11
+ ## Development
12
+
13
+ ```bash
14
+ npm ci
15
+ npm run typecheck
16
+ npm test # 先 build,再跑单测(含按宿主装法跑 main.js 的入口测试)
17
+ npm run install:dev # 装进 ~/.forsion-dev/plugins/forsion-calendar
18
+ ```
19
+
20
+ `npm pack --pack-destination artifacts` prepares the release archive. Publishing to npm requires explicit approval of the package version. Preparing an archive or pushing a feature branch does not publish it.
@@ -0,0 +1,155 @@
1
+ # Third-party notices
2
+
3
+ main.js bundles the following packages, each used under the MIT license.
4
+
5
+ ## react 19.2.7 (MIT)
6
+
7
+ ```
8
+ MIT License
9
+
10
+ Copyright (c) Meta Platforms, Inc. and affiliates.
11
+
12
+ Permission is hereby granted, free of charge, to any person obtaining a copy
13
+ of this software and associated documentation files (the "Software"), to deal
14
+ in the Software without restriction, including without limitation the rights
15
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
16
+ copies of the Software, and to permit persons to whom the Software is
17
+ furnished to do so, subject to the following conditions:
18
+
19
+ The above copyright notice and this permission notice shall be included in all
20
+ copies or substantial portions of the Software.
21
+
22
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
27
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
28
+ SOFTWARE.
29
+ ```
30
+
31
+ ## react-dom 19.2.7 (MIT)
32
+
33
+ ```
34
+ MIT License
35
+
36
+ Copyright (c) Meta Platforms, Inc. and affiliates.
37
+
38
+ Permission is hereby granted, free of charge, to any person obtaining a copy
39
+ of this software and associated documentation files (the "Software"), to deal
40
+ in the Software without restriction, including without limitation the rights
41
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
42
+ copies of the Software, and to permit persons to whom the Software is
43
+ furnished to do so, subject to the following conditions:
44
+
45
+ The above copyright notice and this permission notice shall be included in all
46
+ copies or substantial portions of the Software.
47
+
48
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
49
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
50
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
51
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
52
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
53
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
54
+ SOFTWARE.
55
+ ```
56
+
57
+ ## scheduler 0.27.0 (MIT)
58
+
59
+ ```
60
+ MIT License
61
+
62
+ Copyright (c) Meta Platforms, Inc. and affiliates.
63
+
64
+ Permission is hereby granted, free of charge, to any person obtaining a copy
65
+ of this software and associated documentation files (the "Software"), to deal
66
+ in the Software without restriction, including without limitation the rights
67
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
68
+ copies of the Software, and to permit persons to whom the Software is
69
+ furnished to do so, subject to the following conditions:
70
+
71
+ The above copyright notice and this permission notice shall be included in all
72
+ copies or substantial portions of the Software.
73
+
74
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
75
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
76
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
77
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
78
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
79
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
80
+ SOFTWARE.
81
+ ```
82
+
83
+ ## lucide-react 1.21.0 (ISC)
84
+
85
+ ```
86
+ ISC License
87
+
88
+ Copyright (c) 2026 Lucide Icons and Contributors
89
+
90
+ Permission to use, copy, modify, and/or distribute this software for any
91
+ purpose with or without fee is hereby granted, provided that the above
92
+ copyright notice and this permission notice appear in all copies.
93
+
94
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
95
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
96
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
97
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
98
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
99
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
100
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
101
+
102
+ ---
103
+
104
+ The following Lucide icons are derived from the Feather project:
105
+
106
+ airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out
107
+
108
+ The MIT License (MIT) (for the icons listed above)
109
+
110
+ Copyright (c) 2013-present Cole Bemis
111
+
112
+ Permission is hereby granted, free of charge, to any person obtaining a copy
113
+ of this software and associated documentation files (the "Software"), to deal
114
+ in the Software without restriction, including without limitation the rights
115
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
116
+ copies of the Software, and to permit persons to whom the Software is
117
+ furnished to do so, subject to the following conditions:
118
+
119
+ The above copyright notice and this permission notice shall be included in all
120
+ copies or substantial portions of the Software.
121
+
122
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
123
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
124
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
125
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
126
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
127
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
128
+ SOFTWARE.
129
+ ```
130
+
131
+ ## zustand 5.0.14 (MIT)
132
+
133
+ ```
134
+ MIT License
135
+
136
+ Copyright (c) 2019 Paul Henschel
137
+
138
+ Permission is hereby granted, free of charge, to any person obtaining a copy
139
+ of this software and associated documentation files (the "Software"), to deal
140
+ in the Software without restriction, including without limitation the rights
141
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
142
+ copies of the Software, and to permit persons to whom the Software is
143
+ furnished to do so, subject to the following conditions:
144
+
145
+ The above copyright notice and this permission notice shall be included in all
146
+ copies or substantial portions of the Software.
147
+
148
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
149
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
150
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
151
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
152
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
153
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
154
+ SOFTWARE.
155
+ ```