Skip to content

Releases: sevenwestmedia-labs/json-react-layouts

json-react-layouts@4.1.0

12 Apr 06:25
cc87d7d
Compare
Choose a tag to compare

Minor Changes

  • 184edea: Reintroduce render path for middlewares. Refine types.

json-react-layouts-data-loader@5.0.1

12 Apr 06:53
905e50b
Compare
Choose a tag to compare

Patch Changes

  • 1b94456: Bump dependency version for json-react-layouts

json-react-layouts@4.0.0

09 Apr 08:09
42ceac5
Compare
Choose a tag to compare

Major Changes

  • 94a9773:
    • RendererMiddleware does not depend on ComponentProps anymore and will contain a { layoutType: string } value instead to represent the component/composition type.

json-react-layouts-data-loader@5.0.0

09 Apr 08:09
42ceac5
Compare
Choose a tag to compare

New Features

  • New createRegisterableCompositionWithData method to create compositions with data-loading.

Major Changes

  • 94a9773:
    • middleware converted to getMiddleware(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

02 Aug 07:47
dcaf6ca
Compare
Choose a tag to compare

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

02 Aug 07:47
dcaf6ca
Compare
Choose a tag to compare

Patch Changes

  • 3a3c67a: Fixed packaging issues where can throw depending on the tslib version of target project
  • Updated dependencies [3a3c67a]
    • json-react-layouts@3.0.1

json-react-layouts@3.0.0

30 Jul 00:59
Compare
Choose a tag to compare

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

30 Jul 00:59
Compare
Choose a tag to compare

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

20 Nov 07:39
04b2ade
Compare
Choose a tag to compare
Pre-release

Patch Changes

  • de1994c: Fixed crash when using hooks inside useRuntimeParams

json-react-layouts-data-loader@4.0.0-beta.8

20 Nov 07:39
04b2ade
Compare
Choose a tag to compare

Patch Changes

  • de1994c: Fixed crash when using hooks inside useRuntimeParams
  • Updated dependencies [de1994c]
    • json-react-layouts@3.0.0-beta.8