Releases: sevenwestmedia-labs/json-react-layouts
json-react-layouts@4.1.0
Minor Changes
- 184edea: Reintroduce render path for middlewares. Refine types.
json-react-layouts-data-loader@5.0.1
Patch Changes
- 1b94456: Bump dependency version for json-react-layouts
json-react-layouts@4.0.0
Major Changes
- 94a9773:
RendererMiddleware
does not depend onComponentProps
anymore and will contain a{ layoutType: string }
value instead to represent the component/composition type.
json-react-layouts-data-loader@5.0.0
New Features
- New
createRegisterableCompositionWithData
method to create compositions with data-loading.
Major Changes
- 94a9773:
middleware
converted togetMiddleware(type: 'composition' | 'component')
method to support composition middleware.
Patch Changes
- Updated dependencies [94a9773]
- json-react-layouts@4.0.0
json-react-layouts@3.0.1
Patch Changes
- 3a3c67a: Fixed packaging issues where can throw depending on the tslib version of target project
json-react-layouts-data-loader@4.0.1
json-react-layouts@3.0.0
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
json-react-layouts-data-loader@4.0.0
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]
- json-react-layouts@3.0.0
json-react-layouts@3.0.0-beta.8
Patch Changes
- de1994c: Fixed crash when using hooks inside useRuntimeParams