diff --git a/README.md b/README.md index 797c674..4aa804a 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Demo http://repo.respo-mvc.org/markup/ . ### Usages -本次候选 **0.0.6** 配对正式 Calcit / `@calcit/procs` **0.41.1**。 +本次候选 **0.0.6** 配对正式 Calcit / `@calcit/procs` **0.42.1**。 消费者需重新安装完整依赖图、生成 JS 并完整刷新页面。Content 输入、Run、Reel 调试工具、 存档 key 和格式保持;Demo 不新增 Markdown 解析功能。UI/Reel 跨 minor 升级可能有样式差异。 0.0.6 尚未发布,正式 tag 出现前不要将本分支当作已发布依赖。 diff --git a/calcit.cirru b/calcit.cirru index d755c8c..bc9bf43 100644 --- a/calcit.cirru +++ b/calcit.cirru @@ -28,7 +28,7 @@ {} $ :class-name $ str-spaced css/global css/row textarea $ {} :value $ match content - (:some value) value + (:some value) (decode-map-as value String) (:none) None :placeholder |Content :class-name $ str-spaced css/expand css/textarea @@ -58,6 +58,7 @@ :schema $ quote $ Fn (reel.typed/State schema/Op schema/Store) Fn reel.typed/Control $ -> Unit -> respo.schema/Component + :features :io :ns $ %{} 'NsEntry (:doc |) :code $ quote $ ns app.comp.container :require (respo-ui.css :as css) @@ -97,7 +98,7 @@ :timestamp $ date-now-snapshot , &unit :examples $ [] - :schema $ quote $ Fn schema/Op (-> Unit) (:features :js-ffi) + :schema $ quote $ Fn schema/Op (-> Unit) (:features :js-ffi :state) 'main! $ %{} 'CodeEntry (:doc |) :code $ quote $ defn main! () println "|Running mode:" $ if config/dev? |dev |release @@ -129,7 +130,7 @@ set-interval! persist-storage! 60000 println "|App started." :examples $ [] - :schema $ quote $ Fn (-> Unit) (:features :js-ffi) + :schema $ quote $ Fn (-> Unit) (:features :io :js-ffi :state) 'mount-target $ %{} 'CodeEntry (:doc |) :code $ quote $ def mount-target .unwrap $ query-selector |.app @@ -140,14 +141,14 @@ reset! *reel $ typed/apply-control updater @*reel control , &unit :examples $ [] - :schema $ quote $ Fn typed/Control (-> Unit) + :schema $ quote $ Fn typed/Control (-> Unit) (:features :state) 'persist-storage! $ %{} 'CodeEntry (:doc |) :code $ quote $ defn persist-storage! () println "|Saved at" $ :iso $ date-now-snapshot storage-set! (:storage-key config/site) format-cirru-edn $ :store @*reel :examples $ [] - :schema $ quote $ Fn (-> Unit) (:features :js-ffi) + :schema $ quote $ Fn (-> Unit) (:features :io :js-ffi :state) 'reload! $ %{} 'CodeEntry (:doc |) :code $ quote $ defn reload! () if (nil? build-errors) @@ -160,14 +161,14 @@ hud! |error build-errors , &unit :examples $ [] - :schema $ quote $ Fn (-> Unit) (:features :js-ffi) + :schema $ quote $ Fn (-> Unit) (:features :io :js-ffi :state) 'render-app! $ %{} 'CodeEntry (:doc |) :code $ quote $ defn render-app! () render-with! mount-target fn () $ comp-container @*reel on-control! , dispatch! :examples $ [] - :schema $ quote $ Fn (-> Unit) (:features :js-ffi) + :schema $ quote $ Fn (-> Unit) (:features :io :js-ffi :state) :ns $ %{} 'NsEntry (:doc |) :code $ quote $ ns app.main :require @@ -219,8 +220,9 @@ (:err _) None (:err message) None :examples $ [] - :schema $ quote $ Fn Dynamic + :schema $ quote $ Fn Input -> $ Option Store + :generics Input 'read-editor-data $ %{} 'CodeEntry :doc "|Normalizes the existing editor state while preserving its extension fields." :code $ quote $ defn read-editor-data (raw-option) diff --git a/deps.cirru b/deps.cirru index be0aa8a..d8749de 100644 --- a/deps.cirru +++ b/deps.cirru @@ -1,5 +1,5 @@ -{} (:calcit-version |0.41.1) +{} (:calcit-version |0.42.1) :version |0.0.6 :dependencies $ {} (|Respo/reel.calcit |0.11.0) |Respo/respo-ui.calcit |0.15.2 diff --git a/package.json b/package.json index 5ebc1b9..4e05f85 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "packageManager": "yarn@4.18.0", "dependencies": { - "@calcit/procs": "0.41.1" + "@calcit/procs": "0.42.1" }, "devDependencies": { "bottom-tip": "^0.1.5", diff --git a/yarn.lock b/yarn.lock index 1ad6fff..5a54383 100644 --- a/yarn.lock +++ b/yarn.lock @@ -12,15 +12,15 @@ __metadata: languageName: node linkType: hard -"@calcit/procs@npm:0.41.1": - version: 0.41.1 - resolution: "@calcit/procs@npm:0.41.1" +"@calcit/procs@npm:0.42.1": + version: 0.42.1 + resolution: "@calcit/procs@npm:0.42.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/f14d3d61fdfc3fef4b7b215cc4c2be3923950b42ea19333d94e3fc689631545b2e6f56a8da31246971c7beaf1283d6f55a3af469a20bd9cb80be9352996d413f + checksum: 10c0/58e306e7bc72b258e07c33dae4d543241cd0c7ed6830262628bf61c734453d7907ef453af0b25a770ba911e9ce6ede19f869d9a78decea4589cf4ae1f7c40629 languageName: node linkType: hard @@ -637,7 +637,7 @@ __metadata: version: 0.0.0-use.local resolution: "root-workspace-0b6124@workspace:." dependencies: - "@calcit/procs": "npm:0.41.1" + "@calcit/procs": "npm:0.42.1" bottom-tip: "npm:^0.1.5" vite: "npm:8.3.3" languageName: unknown