- (!) flipview
- views now have simpler syntax
DemoView(settings)(prop1, prop2)(content) DemoView({settings, props: [prop1, prop2], content})
- reworked use.setup hook
- now use.setup must return
{result, setdown}
- use.setup actually returns the result
- thus allowing you to setup a reusable object
- now use.setup must return
- renames
BaseContext
->PrepperContext
Render
->PrepperRender
FlippyOptions
->PrepperOptions
flipview_context_prepper
->flipview_prepper
- views now have simpler syntax
- (!) base addon
attributes
deprecated in favor of newAttrs
- (!) rework requirement types and names
- (!) rename almost every flipview type
FlipviewOptions
becomesFlipOptions
- a bunch more renames along those same lines
- add
LightElement
(lightdom) - add standardized frontend
prepare
system
- (!) introducing
flipview
- deleted
flatview
- deleted
flapjack
- flipview is our new view system
- deleted
- flatview
- (!) flatview usage syntax changed:
- used to be like
DemoView("hello")
- is now like
DemoView()("hello")
- you can pass exportparts and part into the first parens
- like this
DemoView({part: "button", exportparts: "a"})("hello")
- used to be like
- (!) add
tag
option to flatview- default is now
div
(wasspan
)
- default is now
- add
name
option to flatview- it appears on the element as
data-view
- it appears on the element as
- (!) flatview usage syntax changed:
- op
- (!) rename stuff in Op
err
renamed toerror
Op.Any<any>
renamed toOp.For<any>
- (!) rename stuff in Op
- add flapjack as flatview-alternative
- (!) flatview signature changes
flat
now comes first, likeflatview(flat, {strict: true})
strict
is nowtrue
by default (was false)
- (!) gutted
QuickElement
- cues ripped out of QuickElement
- attributes addon ripped out QuickElement
- goal is to make quickelement agnostic about state management etc
- added
add_setup
method, which make it easy to create setups/setdowns - added overridable
init() {}
method, runs in constructor
- export
Elements
type - export
attributes
addon for base elements - add
apply_styles_to_shadow
- (!) rename
Flatstate
toFlat
- add
flatview
- add
requirement
tool
- (!) rework and rename all the base element helpers
- now they all use curry syntax, intended to be used with
Pipe
- old syntax:
theme_elements(theme, pass_context_to_elements(context, elements))
- new syntax:
apply_theme(theme)(provide_context(context)(elements))
- but you should really use pipes now:
Pipe.with(elements) .to(provide_context(context)) .to(apply_theme(theme))
- old syntax:
- renames
mix_flatstate_reactivity_into_elements
🡪flatstate_reactivity
pass_context_to_elements
🡪provide_context
register_elements
🡪register_to_dom
theme_elements
🡪apply_theme
update_elements_on_cue_changes
🡪cue_reactivity
update_elements_on_snap_changes
🡪snap_reactivity
- now they all use curry syntax, intended to be used with
- (!) remove
Op.make
Op.make.loading
is now justOp.loading
Op.make.err
is now justOp.err
Op.make.ready
is now justOp.ready
- add flatstate
- add op
- add pipe