|
46 | 46 | (:states cursor s) |
47 | 47 | reset! *states $ decode-map-as |
48 | 48 | update-states @*states |
49 | | - decode-map-as cursor $ List Dynamic |
| 49 | + decode-map-as cursor $ List app.schema/StateKey |
50 | 50 | , s |
51 | 51 | Map Tag Dynamic |
52 | 52 | (:effect/connect) (connect!) |
|
200 | 200 | let |
201 | 201 | cursor $ decode-map-as |
202 | 202 | .unwrap $ get states :cursor |
203 | | - List Dynamic |
| 203 | + List app.schema/StateKey |
204 | 204 | state $ decode-map-as |
205 | 205 | or (app.schema/field-or states :data nil) |
206 | 206 | if (.some? base-command) |
|
271 | 271 | let |
272 | 272 | cursor $ decode-map-as |
273 | 273 | .unwrap $ get states :cursor |
274 | | - List Dynamic |
| 274 | + List app.schema/StateKey |
275 | 275 | state $ decode-map-as |
276 | 276 | either (app.schema/field-or states :data nil) |
277 | 277 | {} $ :pop? false |
|
686 | 686 | let |
687 | 687 | cursor $ decode-map-as |
688 | 688 | .unwrap $ get states :cursor |
689 | | - List Dynamic |
| 689 | + List app.schema/StateKey |
690 | 690 | state $ let |
691 | 691 | raw-state $ or (app.schema/field-or states :data nil) |
692 | 692 | {} (:query |) (:pop? false) |
|
929 | 929 | let |
930 | 930 | cursor $ decode-map-as |
931 | 931 | .unwrap $ get states :cursor |
932 | | - List Dynamic |
| 932 | + List app.schema/StateKey |
933 | 933 | state $ decode-map-as |
934 | 934 | or (app.schema/field-or states :data nil) initial-state |
935 | 935 | Map Tag String |
|
1305 | 1305 | let |
1306 | 1306 | cursor $ decode-map-as |
1307 | 1307 | .unwrap $ get states :cursor |
1308 | | - List Dynamic |
| 1308 | + List app.schema/StateKey |
1309 | 1309 | state $ let |
1310 | 1310 | raw-state $ either (app.schema/field-or states :data nil) |
1311 | 1311 | {} (:filter |) (:filter? true) (:wrap? true) (:all-log? false) (:hide-thread-info? false) |
|
1707 | 1707 | let |
1708 | 1708 | cursor $ decode-map-as |
1709 | 1709 | .unwrap $ get states :cursor |
1710 | | - List Dynamic |
| 1710 | + List app.schema/StateKey |
1711 | 1711 | state $ let |
1712 | 1712 | original-state $ or (app.schema/field-or states :data nil) |
1713 | 1713 | {} (:focused-id nil) (:base-workflow nil) (:pop? false) |
|
1842 | 1842 | let |
1843 | 1843 | cursor $ decode-map-as |
1844 | 1844 | .unwrap $ get states :cursor |
1845 | | - List Dynamic |
| 1845 | + List app.schema/StateKey |
1846 | 1846 | state $ decode-map-as |
1847 | 1847 | either (app.schema/field-or states :data nil) |
1848 | 1848 | {} (:pop? false) (:edit? false) |
|
1971 | 1971 | let |
1972 | 1972 | cursor $ decode-map-as |
1973 | 1973 | .unwrap $ get states :cursor |
1974 | | - List Dynamic |
| 1974 | + List app.schema/StateKey |
1975 | 1975 | state $ decode-map-as |
1976 | 1976 | or (app.schema/field-or states :data nil) |
1977 | 1977 | if (.some? base-workflow) |
|
2334 | 2334 | 'Op $ %{} 'CodeEntry |
2335 | 2335 | :doc "|Operations dispatched by page components. Most are forwarded to the server." |
2336 | 2336 | :code $ quote $ defenum Op |
2337 | | - :states (List Dynamic) Dynamic |
| 2337 | + :states (List app.schema/StateKey) Dynamic |
2338 | 2338 | :effect/connect |
2339 | 2339 | :session/connect |
2340 | 2340 | :session/disconnect |
|
2366 | 2366 | :command Dynamic |
2367 | 2367 | :examples $ [] |
2368 | 2368 | :schema $ quote EnumDef |
| 2369 | + 'StateKey $ %{} 'CodeEntry (:doc |) |
| 2370 | + :code $ quote $ defunion StateKey Tag String Number |
| 2371 | + :examples $ [] |
| 2372 | + :schema $ quote UnionDef |
2369 | 2373 | 'command $ %{} 'CodeEntry (:doc |) |
2370 | 2374 | :code $ quote $ def command |
2371 | 2375 | {} (:id nil) (:title |) (:path |.) (:code |) |
|
0 commit comments