diff --git a/README.md b/README.md index ab74311..d4101c9 100644 --- a/README.md +++ b/README.md @@ -8,19 +8,19 @@ _TODO_ ### 使用者影响 -升级到 Calcit **0.41.0** 后,请重新安装依赖、生成 JS 并刷新页面。原存档可以继续打开, +升级到 Calcit **0.41.1** 后,请重新安装依赖、生成 JS 并刷新页面。原存档可以继续打开, Run、文本输入、复制、错误 HUD 和开发模式的 Reel 面板沿用原有行为。 Reel 使用 `State`,按钮和文本框通过 Respo 的类型化事件派发具名 `Op`。应用派发使用 `Op | reel.typed/Control`,旧面板事件只在渲染入口解码。按钮路径使用 `CoordKey` union,局部状态使用 `Map Tag Bool`。 复制边界以 `CopyScalar` 表示 String、Number、Bool、Tag、Symbol,空值仍复制为空字符串, 复合数据仍会报错。新输出操作只接收 `String`,包括 Run 的格式化结果和输出文本框输入。`Store.data` 保留对任意旧存档数据的支持,恢复成功后才启用自动保存。 -配对正式 `@calcit/procs` **0.41.0**、Respo **0.19.5**、Reel **0.11.0**、UI **0.15.2**、 +配对正式 `@calcit/procs` **0.41.1**、Respo **0.19.5**、Reel **0.11.0**、UI **0.15.2**、 JS-FFI **0.2.13**,传递依赖 Router **0.12.2**。 ### 开发 -使用 Node 24、Yarn 4.18.0、Caps 0.1.1 和配对 Calcit 0.41.0: +使用 Node 24、Yarn 4.18.0、Caps 0.1.1 和配对 Calcit 0.41.1: ```sh caps --strict --ci diff --git a/calcit.cirru b/calcit.cirru index a3ace9c..b65f317 100644 --- a/calcit.cirru +++ b/calcit.cirru @@ -14,10 +14,10 @@ :code $ quote $ defcomp comp-live-button (states text on-click) let cursor $ decode-map-as - .unwrap-or (get states :cursor) ([]) + .unwrap-or (&map:get states :cursor) ([]) List respo.schema/CoordKey state $ decode-map-as - .unwrap-or (get states :data) + .unwrap-or (&map:get states :data) {} $ :darken? false Map Tag Bool button $ {} @@ -28,7 +28,7 @@ :inner-text text :on-click $ fn (event d!) hint-fn $ Fn respo.schema/RespoEvent - Fn app.schema/Op $ -> Unit + Fn Op $ -> Unit -> Unit on-click event d! d! $ Op :states cursor $ assoc state :darken? true @@ -77,13 +77,13 @@ div ({}) comp-live-button (>> states :run) |Run $ fn (e d!) hint-fn $ Fn respo.schema/RespoEvent - Fn app.schema/Op $ -> Unit + Fn Op $ -> Unit -> Unit d! $ Op :data $ format-to-lisp (parse-cirru-edn content) respo.comp.space/space-x 8 comp-live-button (>> states :copy) |Copy $ fn (e d!) hint-fn $ Fn respo.schema/RespoEvent - Fn app.schema/Op $ -> Unit + Fn Op $ -> Unit -> Unit copy! $ scalar-copy-text data , &unit @@ -94,7 +94,7 @@ {} $ :font-family ui/font-code :on-input $ fn (e d!) hint-fn $ Fn respo.schema/RespoEvent - Fn app.schema/Op $ -> Unit + Fn Op $ -> Unit -> Unit d! $ Op :content $ input-text e textarea $ {} (:value data) (:placeholder |data) @@ -102,7 +102,7 @@ {} $ :font-family ui/font-code :on-input $ fn (e d!) hint-fn $ Fn respo.schema/RespoEvent - Fn app.schema/Op $ -> Unit + Fn Op $ -> Unit -> Unit d! $ Op :data $ input-text e if dev? @@ -249,7 +249,7 @@ hint-fn $ Fn reel.typed/Control $ -> Unit dispatch! control fn (op) - hint-fn $ Fn app.schema/Op $ -> Unit + hint-fn $ Fn schema/Op $ -> Unit dispatch! op :examples $ [] :schema $ quote $ Fn (-> Unit) (:features :js-ffi) diff --git a/deps.cirru b/deps.cirru index 51d79f4..889c6e5 100644 --- a/deps.cirru +++ b/deps.cirru @@ -1,5 +1,5 @@ -{} (:calcit-version |0.41.0) +{} (:calcit-version |0.41.1) :version |0.1.2 :dependencies $ {} (|Respo/reel.calcit |0.11.0) |Respo/respo-ui.calcit |0.15.2 diff --git a/package.json b/package.json index cc4c668..b466b40 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "vite": "8.3.3" }, "dependencies": { - "@calcit/procs": "0.41.0", + "@calcit/procs": "0.41.1", "copy-text-to-clipboard": "^3.1.0", "feather-icons": "^4.29.0", "shortid": "^2.2.16" diff --git a/yarn.lock b/yarn.lock index c175e5c..2114e30 100644 --- a/yarn.lock +++ b/yarn.lock @@ -12,15 +12,15 @@ __metadata: languageName: node linkType: hard -"@calcit/procs@npm:0.41.0": - version: 0.41.0 - resolution: "@calcit/procs@npm:0.41.0" +"@calcit/procs@npm:0.41.1": + version: 0.41.1 + resolution: "@calcit/procs@npm:0.41.1" dependencies: "@calcit/finger-vec": "npm:0.1.1" "@calcit/ternary-tree": "npm:0.0.26" "@cirru/parser.ts": "npm:0.0.10" "@cirru/writer.ts": "npm:^0.1.9" - checksum: 10c0/5de94b39e435363d0f80611b63914c9abd6b0afac3c77adf9b9846ac439fce319ac0780697364cabf67b2997d39495a1e72086e1496ac560c51bb57462f37628 + checksum: 10c0/f14d3d61fdfc3fef4b7b215cc4c2be3923950b42ea19333d94e3fc689631545b2e6f56a8da31246971c7beaf1283d6f55a3af469a20bd9cb80be9352996d413f languageName: node linkType: hard @@ -236,7 +236,7 @@ __metadata: version: 0.0.0-use.local resolution: "data-former@workspace:." dependencies: - "@calcit/procs": "npm:0.41.0" + "@calcit/procs": "npm:0.41.1" bottom-tip: "npm:^0.1.5" copy-text-to-clipboard: "npm:^3.1.0" feather-icons: "npm:^4.29.0"