Skip to content

v4.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 28 Dec 00:04

4.0.0 (2020-12-28)

⚠ BREAKING CHANGES

  • config: use object parameter instead of array (#10) (e5a8405)

    The addon now receives an object instead of an array as parameter, with a property to define the default padding. This allows proper merging of global, component and story parameters.

    Old API

    export const parameters = {
      paddings: [
        { name: 'Small', value: '16px' },
        { name: 'Medium', value: '32px', default: true },
        { name: 'Large', value: '64px' },
      ],
    };

    New API

    export const parameters = {
      paddings: {
        values: [
          { name: 'Small', value: '16px' },
          { name: 'Medium', value: '32px' },
          { name: 'Large', value: '64px' },
        ],
        default: 'Medium',
      },
    };