// Copyright 2022 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only

module.exports = {
  typescript: {
    reactDocgen: false,
  },
  stories: ['../ts/components/**/*.stories.tsx'],
  addons: [
    '@storybook/addon-a11y',
    '@storybook/addon-actions',
    '@storybook/addon-controls',
    '@storybook/addon-measure',
    '@storybook/addon-toolbars',
    '@storybook/addon-viewport',

    // This must be imported last.
    '@storybook/addon-interactions',

    // Deprecated! Please remove when all uses have been migrated to controls.
    '@storybook/addon-knobs',
  ],
  core: {
    builder: 'webpack5',
  },
  features: {
    storyStoreV7: true,
  },
};
