diff --git a/README.md b/README.md index b949817..675ddac 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ http://r.tiye.me/Memkits/diffview/ ### 使用者影响 -CLI 与 `@calcit/procs` 配对升级到正式 **0.47.1**,需要重新安装完整模块图、 +CLI 与 `@calcit/procs` 配对升级到正式 **0.49.0**,需要重新安装完整模块图、 生成 JS 并完整刷新,不能跨工具链热重载旧 Reel。依赖使用正式 Reel **0.11.11**、 UI **0.16.7**、Respo **0.20.1**、JS-FFI **0.2.26**,传递 Router **0.12.19**。 不使用 main/hash 或 alpha,不关闭 Caps strict 解决冲突。 @@ -18,7 +18,8 @@ UI **0.16.7**、Respo **0.20.1**、JS-FFI **0.2.26**,传递 Router **0.12.19** 七个 DOM 回调采用 RespoEvent,并派发同一个具名 `Op` 类型。两个文本输入直接读 Struct 字段, 缺失宿主 value(JS undefined)按原缺失值合同回退为空串;显式 null/false/0 等非法 -文本仍由原 String decoder 拒绝,不在失败时写入状态。旧 Map 事件夹具改用 Respo +文本仍由原 String decoder 拒绝,不在失败时写入状态。0.49 将该检查收敛到输入解码边界, +旧存档的 Map/Struct 转换同样标记为解码入口;不改变接受的数据。旧 Map 事件夹具改用 Respo 公开 event→EDN 适配,原六项测试及全部断言保留。 DiffChunk、StoreData 和 `Map Tag String` site 配置沿用。存档入口接受原 Map/Struct, @@ -31,7 +32,7 @@ DiffChunk、StoreData 和 `Map Tag String` site 配置沿用。存档入口接 ### 安装与原门禁 -使用 Calcit 0.47.1、Caps 0.1.2、Node.js 24、Yarn 4.18.0。 +使用 Calcit 0.49.0、Caps 0.1.2、Node.js 24、Yarn 4.18.0。 Caps 独立安装,见 [官方说明](https://github.com/calcit-lang/caps);Corepack/Yarn 不会安装它。 新解析 npm 包保留 60 分钟年龄门禁,无单包例外。lock 只更新 procs 配对;已有 undici Dependabot #48 单独保留。 diff --git a/calcit.cirru b/calcit.cirru index 878f12d..9d4fed6 100644 --- a/calcit.cirru +++ b/calcit.cirru @@ -58,11 +58,7 @@ hint-fn $ Fn respo.schema/RespoEvent Fn app.schema/Op $ -> Unit -> Unit - d! $ app.schema/Op :write-old $ let - value $ :value e - if - = :unit $ type-of value - , | $ decode-map-as value String + d! $ app.schema/Op :write-old $ input-text (:value e) :spell-check false :autofocus true comp-divider @@ -74,11 +70,7 @@ hint-fn $ Fn respo.schema/RespoEvent Fn app.schema/Op $ -> Unit -> Unit - d! $ app.schema/Op :write-new $ let - value $ :value e - if - = :unit $ type-of value - , | $ decode-map-as value String + d! $ app.schema/Op :write-new $ input-text (:value e) :spellcheck false if dev? Some $ comp-typed-reel (>> states :reel) reel ({}) on-control! @@ -163,6 +155,13 @@ d! $ app.schema/Op :clear-text :examples $ [] :schema $ quote $ Fn Bool Bool Bool (-> respo.schema/Component) + 'input-text $ %{} 'CodeEntry (:doc |) + :code $ quote $ defn input-text (value) + if + = :unit $ type-of value + , | $ decode-map-as value String + :examples $ [] + :schema $ quote $ Fn Input (-> String) (:generics Input) (:open :decode) 'sort-by-line $ %{} 'CodeEntry (:doc |) :code $ quote $ defn sort-by-line (text) join-string @@ -395,7 +394,7 @@ if (struct? raw) (&struct:to-map raw) raw , 'app.schema/StoreData :examples $ [] - :schema $ quote $ Fn Input (-> StoreData) (:generics Input) + :schema $ quote $ Fn Input (-> StoreData) (:generics Input) (:open :decode) 'store $ %{} 'CodeEntry (:doc |) :code $ quote $ def store StoreData :states ({}) :page :editor :sorted? false :show-result? false :by-word? false :old-text | :new-text | diff --git a/deps.cirru b/deps.cirru index eece814..be1bf50 100644 --- a/deps.cirru +++ b/deps.cirru @@ -1,5 +1,5 @@ -{} (:calcit-version |0.47.1) +{} (:calcit-version |0.49.0) :version |0.1.5 :dependencies $ {} (|Respo/reel.calcit |0.11.11) |Respo/respo-ui.calcit |0.16.7 diff --git a/package.json b/package.json index 48aac76..b532afe 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "vite": "8.3.3" }, "dependencies": { - "@calcit/procs": "0.47.1", + "@calcit/procs": "0.49.0", "diff": "^8.0.2" } } diff --git a/yarn.lock b/yarn.lock index 84f1268..f1e654d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -12,15 +12,15 @@ __metadata: languageName: node linkType: hard -"@calcit/procs@npm:0.47.1": - version: 0.47.1 - resolution: "@calcit/procs@npm:0.47.1" +"@calcit/procs@npm:0.49.0": + version: 0.49.0 + resolution: "@calcit/procs@npm:0.49.0" 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/15a3e5a69a3412dde325fd8512c71303a27c86ca580083c69ca11595f0d6c5324aed670d9ccf46d55dc82b833e23035ce3eaede0f5222129ecd6c81784deb431 + checksum: 10c0/0369ace42de9589514cfd59b076c4b16973568487ce5ddecd6f7cc60eaf0f887d50660e149e1869315631384958a267ec57d64c5b8f32d4e088fd1b2e9f9ac31 languageName: node linkType: hard @@ -201,7 +201,7 @@ __metadata: version: 0.0.0-use.local resolution: "calcit-workflow@workspace:." dependencies: - "@calcit/procs": "npm:0.47.1" + "@calcit/procs": "npm:0.49.0" bottom-tip: "npm:^0.1.5" diff: "npm:^8.0.2" vite: "npm:8.3.3"