@misk/prettier
Advanced tools
Changelog
0.1.20-2
27 Sept 2019 11:24:00 GMT
Table
component now takes a range [start: number, end: number]
to signify the rows to display. This replaces the maxRows
props.simpleSelectorPickTransform
extends existing simpleSelectorPick
(which matches Lodash's Pick API) to allow for reshaping the object with picked keys.dispatchSimpleRedux
functions now take an options object that allows for named passing in of requestConfig
and mergeSaga
. mergeSaga
accepts a generator function Saga that will run after the dispatch function's action is executed. This means that a simpleHttpGet
will execute first and then the response will be included in the payload that the mergeSaga
has access to. mergeSaga
is then responsible to choose whether to emit any additional state update events or handle other asynchronous computation. Since it is a full saga and a generating function, the block of computation is asynchronous and follow up network requests or large computation can be done without risk of blocking render. See a full example of this in the new ExampleMergeSagaContainer
in palette-exemplar
.handler
. Many components allow for passing in an onChange
handler that is a function accepting user event driven input and executing side effects. For example, an <InputGroup/>
returns the latest text in the text box, and a simple onChange
handler would persist the latest text in a tagged spot in Redux. Components though do not have a universal form of input they provide to their onChange
handler. Instead of developers having to keep track of what function signature the component onChange
props is expecting, @misk/simpleredux
now has a universal handler
that provides the same function names as dispatchSimpleRedux
(ie. handler.simpleMergeData
, handler.simpleHttpGet
...) but can handle directly input from an component onChange
or onClick
props.handler
can handle input from any onChange
or onClick
props because of a new parseOnChangeArgs
engine that identifies the format of input from onChange
and returns it in a format that the dispatchSimpleRedux
functions can use. See examples of handler
in both starter-basic
and palette-exemplar
tabs.onFn[Click,Change,Toggle,Tags]Call
functions are deprecated in favor of handler
.Changelog
0.1.20-1
25 Sept 2019 20:40:00 GMT
new
command now accepts two positional arguments for titleCase
and slugCase
names for the new tab to be generated. The Misk-Web CLI no longer requires manual invocation of ./new-tab.sh
!./new-tab-starter-basic.sh
that allow starter-basic
to be used in docs site demo and as template for new tabsPalette-Exemplar
and Palette-LTS
tabs to docs site example demosChangelog
0.1.20-0
25 Sept 2019 20:40:00 GMT
<Table data={data} maxRows={5} />
component from palette-exemplar tab for tables that autogenerate from a list of objects.starter-basic
tab for use in miskweb new
creation of new tabs. Much simpler bare bones structure making for a less overwhelming start for new tab developers.palette-exemplar
will remain to showcase more advanced features and use casesChangelog
0.1.19
17 Sept 2019 19:19:00 GMT
Stable release including all the changes of 0.1.19-*
alpha releases.
0.1.18
release of @misk/simpleredux
MiskNavbarContainer
in @misk/core
Changelog
0.1.19-3
17 Sept 2019 18:25:00 GMT
MiskNavbarContainer
that can be extended to support front end dashboards for any Misk serviceChangelog
0.1.19-2
16 Sept 2019 18:34:00 GMT
0.1.19-1
simpleMergeData
that does the similar encapsulation instead to provide that functionality to call sites that aren't using on*FnCall
utilitiessimpleFormInput
now resolves to simpleMergeData
instead of simpleMerge
Changelog
0.1.19-1
16 Sept 2019 15:55:00 GMT
onChangeFnCall
, onChangeToggleFnCall
and onChangeTagFnCall
to call functions with data enclosed in an object with a data
key. This will fix outstanding bugs from the new simpleMerge` functionality. No migration should be required.
export const onChangeFnCall = (callFn: any, ...args: any) => (event: any) => {
callFn(...args, event.target.value);
};
export const onChangeFnCall = (callFn: any, ...args: any) => (event: any) => {
callFn(...args, { data: event.target.value });
};
Changelog
0.1.19-0
13 Sept 2019 20:16:00 GMT
HTTPMethodDispatch
from @misk/core
to @misk/simpleredux
to fix and prevent future API driftChangelog
0.1.18
13 Sept 2019 17:52:00 GMT
Stable release including all the changes of 0.1.18-*
alpha releases.