diff --git a/moon.mod.json b/moon.mod.json index 3fd1d96..f16ee4c 100644 --- a/moon.mod.json +++ b/moon.mod.json @@ -1,8 +1,8 @@ { "name": "tiye/respo", - "version": "0.0.13", + "version": "0.0.14", "deps": { - "tiye/dom-ffi": "0.0.4", + "tiye/dom-ffi": "0.0.5", "tiye/cirru-parser": "0.0.7" }, "readme": "README.md", diff --git a/src/lib/dialog/moon.pkg.json b/src/lib/dialog/moon.pkg.json index 42366d3..31fa259 100644 --- a/src/lib/dialog/moon.pkg.json +++ b/src/lib/dialog/moon.pkg.json @@ -20,9 +20,7 @@ "alias": "respo", "value": [ "ui_button", - "ui_input", "ui_global", - "ui_row", "ui_column", "ui_center", "ui_fullscreen", diff --git a/src/lib/node/effect.mbt b/src/lib/node/effect.mbt index 5e2ea72..8e01b20 100644 --- a/src/lib/node/effect.mbt +++ b/src/lib/node/effect.mbt @@ -11,7 +11,7 @@ pub struct RespoEffectBox { } /// implement this on data which creates effect -pub trait RespoEffect: ToJson { +pub(open) trait RespoEffect: ToJson { build_effect(Self) -> RespoEffectBox make_handler(Self) -> (RespoEffectType, @dom_ffi.Node) -> Unit diff --git a/src/lib/node/node.mbt b/src/lib/node/node.mbt index 6718555..99eaa12 100644 --- a/src/lib/node/node.mbt +++ b/src/lib/node/node.mbt @@ -162,7 +162,7 @@ pub fn DispatchFn::to_string[T](self : DispatchFn[T]) -> String { "(DispatchFn \{self})" } -pub trait RespoAction { +pub(open) trait RespoAction { /// a function for building action to update states is required build_states_action(Array[String], ToJson?) -> Self // detect_intent(Self) -> ActonOp? // TODO diff --git a/src/main/main.mbt b/src/main/main.mbt index 204741f..0defe84 100644 --- a/src/main/main.mbt +++ b/src/main/main.mbt @@ -38,8 +38,8 @@ fn main { app.store.val.update(op) }, ) - let dev_mode = @dom_ffi.get_url_search_params( - window.get_location().get_search(), - ).get("mode") + let dev_mode = @dom_ffi.new_url_search_params(window.location().search()).get( + "mode", + ) @dom_ffi.log("dev mode: " + dev_mode.to_string()) }