Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Text diff

### 使用者影响

升级到 Calcit 和 `@calcit/procs` **0.46.0** 后,请重新安装依赖、编译并刷新。文本输入、Run 输出、原 Map 存档和页面 HUD 继续适用。 应用操作和 Reel 控制通过 `ResolvedOp` union 区分。Reel 面板直接接收独立控制回调,原存档结构保持兼容。
升级到 Calcit 和 `@calcit/procs` **0.51.0** 后,请重新安装依赖、编译并刷新。文本输入、Run 输出、原 Map 存档和页面 HUD 继续适用。 应用操作和 Reel 控制通过 `ResolvedOp` union 区分。Reel 面板直接接收独立控制回调,原存档结构保持兼容。

Reel 使用 `State<Op, Store>`。业务更新器接收具名操作。状态路径和顶层状态键统一使用 `CursorKey = Tag | String | Number`,已有 Map 或 Struct 存档仍在恢复时校验。 状态更新使用保持根 Map 类型的 Respo 接口,空路径与混合键行为不变。恢复成功后才注册离页保存。

Expand Down
5 changes: 3 additions & 2 deletions calcit.cirru
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
Fn reel.typed/Control (-> Unit) (:features :io :state)
-> respo.schema/Component
:features :io :state
:open :reflect
:ns $ %{} 'NsEntry (:doc |)
:code $ quote $ ns text-diff.comp.container
:require (respo-ui.core :as ui)
Expand Down Expand Up @@ -144,7 +145,7 @@
:schema $ quote $ Fn (-> Unit) (:features :js-ffi :state)
'reload! $ %{} 'CodeEntry (:doc |)
:code $ quote $ defn reload! ()
if (nil? build-errors)
if (js-nullish? build-errors)
do (remove-watch! *reel :changes) (clear-cache!)
add-watch! *reel :changes $ fn (reel prev)
hint-fn $ Fn (typed/State schema/Op schema/Store) (typed/State schema/Op schema/Store) (-> Unit)
Expand Down Expand Up @@ -214,7 +215,7 @@
if (struct? data) (&struct:to-map data) data
, text-diff.schema/Store
:examples $ []
:schema $ quote $ Fn Input (-> Store) (:generics Input)
:schema $ quote $ Fn Input (-> Store) (:generics Input) (:open :decode)
'store $ %{} 'CodeEntry (:doc |)
:code $ quote $ def store
Store :states ({}) :content |
Expand Down
12 changes: 6 additions & 6 deletions deps.cirru
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

{} (:calcit-version |0.46.0)
{} (:calcit-version |0.51.0)
:version |0.1.4
:dependencies $ {} (|Respo/reel.calcit |0.11.10)
|Respo/respo-markdown.calcit |0.9.10
|Respo/respo-ui.calcit |0.16.6
|Respo/respo.calcit |0.20.0
|calcit-lang/js-ffi |0.2.26
:dependencies $ {} (|Respo/reel.calcit |0.11.13)
|Respo/respo-markdown.calcit |0.9.12
|Respo/respo-ui.calcit |0.16.8
|Respo/respo.calcit |0.20.2
|calcit-lang/js-ffi |0.2.27
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"vite": "^8.3.1"
},
"dependencies": {
"@calcit/procs": "0.46.0",
"@calcit/procs": "0.51.0",
"cirru-color": "^0.2.4",
"copy-text-to-clipboard": "^3.2.2",
"dayjs": "^1.11.20",
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.