Releases: sevenwestmedia-labs/json-react-layouts
[email protected]
Minor Changes
- 184edea: Reintroduce render path for middlewares. Refine types.
[email protected]
Patch Changes
- 1b94456: Bump dependency version for json-react-layouts
[email protected]
Major Changes
- 94a9773:
RendererMiddleware
does not depend onComponentProps
anymore and will contain a{ layoutType: string }
value instead to represent the component/composition type.
[email protected]
[email protected]
Patch Changes
- 3a3c67a: Fixed packaging issues where can throw depending on the tslib version of target project
[email protected]
[email protected]
Major Changes
- 53cc7ae: Restructured public API slightly to reduce bundle size and type complexity
Minor Changes
-
c3d964b: Switched typescript-log to use debug package, see readme for how to enable debug logging
-
9a6621d: Upgraded dependencies
-
9f335c8: Add ability for a composition to provide additional props to all components rendered inside it
This opens up the possibility of compositions to pass width ratio information down to children, enabling sorta container queries
Patch Changes
-
5bda5b9: Each component and composition must be wrapped in a layout.component() or layout.composition()
This is because TypeScript does not yet support variadic types, meaning we can't accurately enforce the types on a ...rest style function.
Before:
{ type: 'test-composition', contentAreas: { main: [ { type: 'test-with-data', props: { dataDefinitionArgs: { dataArg: 'Foo' } }, }, ], }, props: {}, }
After:
layout.composition({ type: 'test-composition', contentAreas: { main: [ layout.component({ type: 'test-with-data', props: { dataDefinitionArgs: { dataArg: 'Foo' } }, }), ], }, props: {}, })
-
2d4f44c: Fixed crash when using hooks inside useRuntimeParams
-
fac39be: Simplified types further
-
97beb57: Fixed issue where middleware is violating the rules of hooks
-
cee52d7: Restore default generic param for DataDefinition type
-
b16bdac: Allow checked composition to be used as a nested composition
[email protected]
Major Changes
- 53cc7ae: Restructured public API slightly to reduce bundle size and type complexity
Minor Changes
-
c3d964b: Switched typescript-log to use debug package, see readme for how to enable debug logging
-
9a6621d: Upgraded dependencies
-
9f335c8: Add ability for a composition to provide additional props to all components rendered inside it
This opens up the possibility of compositions to pass width ratio information down to children, enabling sorta container queries
Patch Changes
-
5bda5b9: Each component and composition must be wrapped in a layout.component() or layout.composition()
This is because TypeScript does not yet support variadic types, meaning we can't accurately enforce the types on a ...rest style function.
Before:
{ type: 'test-composition', contentAreas: { main: [ { type: 'test-with-data', props: { dataDefinitionArgs: { dataArg: 'Foo' } }, }, ], }, props: {}, }
After:
layout.composition({ type: 'test-composition', contentAreas: { main: [ layout.component({ type: 'test-with-data', props: { dataDefinitionArgs: { dataArg: 'Foo' } }, }), ], }, props: {}, })
-
2d4f44c: Fixed crash when using hooks inside useRuntimeParams
-
fac39be: Simplified types further
-
97beb57: Fixed issue where middleware is violating the rules of hooks
-
cee52d7: Restore default generic param for DataDefinition type
-
b16bdac: Allow checked composition to be used as a nested composition
-
Updated dependencies [c3d964b]
-
Updated dependencies [5bda5b9]
-
Updated dependencies [2d4f44c]
-
Updated dependencies [9a6621d]
-
Updated dependencies [53cc7ae]
-
Updated dependencies [9f335c8]
-
Updated dependencies [fac39be]
-
Updated dependencies [97beb57]
-
Updated dependencies [cee52d7]
-
Updated dependencies [b16bdac]
[email protected]
Patch Changes
- de1994c: Fixed crash when using hooks inside useRuntimeParams