- Fix
toggle-btn
option default
- Add
toggle-btn
option to replace the open button component
- Remove
font: revert
rule and setfont-weight
for certain elements so that Tailwind reset doesn't break it. This allows users to use their styles (like MUI) within their own panels.
- New:
- If
:state-atom
value isn't given, no default panel is added if:panels
is defined. If neither is provided, help text is displayed. - New
:panels
option- Panels are now defined as a vector, so they keep their order.
- Panels are appended to default panels.
- State-tree component and functions is now accessible through the core namespace:
reagent-dev-tools.core/state-tree
reagent-dev-tools.core/register-collection-info-handler!
reagent-dev-tools.core/collection-info-handler
- If
- Breaking:
- Removed
register-state-atom
- Use
:panels
with additionalstate-tree
components instead.
- Use
- Removed
:panels-fn
option- Use new
:panels
list, which is just a vector instead of map returning map.
- Use new
- Requires Reagent 1.0.0+
- Removed
- Add
max-width: 100vw
to prevent vertical panel being wider than screen width - Navigation bar panel list now wraps to multiple lines if it doesn't fit on one line
- Reset
font: inherit
rule from tailwind - Reset
line-height
- Ensure text
color
,font-style
andfont-weight
are reset inside the panel
- Add way to control collection description text for custom types, like Linked:
(state-tree/register-collection-info-handler
lm/LinkedMap
#(state-tree/collection-info-handler "LinkedMap" "{LinkedMap, " (count %) " keys}"))
- Added toggle collection to state atoms
- Add
:state-atom-name
option to customize name for state atom added usingstart!
- Ensure
nil
, vectors and other things as map keys in the state tree are rendered.
- Add option to toggle panel placement between bottom and right
- Add
:margin-element
option to automatically set margin-bottom/right on some element, so that panel doesn't go over the application content - Store open paths on state tree to local storage
- Use
reagent.dom/render
instead ofreagent.core/render
to prepare for next Reagent releases
- Made the panel resizeable
- Save the state (open, height, active panel) on
localStorage
- Added
start!
function for easier configuration - Added some colors to the state tree
- Add collection type name to state tree
- Type can be clicked to open/close collection items
- Fixes
- Initial release