@kindly/react-chat 2.40.5 → 2.41.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,4 @@
1
1
  /* eslint-disable @typescript-eslint/no-var-requires */
2
-
3
2
  const path = require('path');
4
3
 
5
4
  const webpack = require('webpack');
@@ -7,9 +6,7 @@ const webpack = require('webpack');
7
6
  const envConfig = require('../../../config');
8
7
 
9
8
  const envVars = envConfig.local;
10
-
11
9
  const SETTINGS_HOST = 'https://example.com/mockme';
12
-
13
10
  module.exports = {
14
11
  stories: [
15
12
  '../src/**/*.stories.mdx',
@@ -21,13 +18,14 @@ module.exports = {
21
18
  '@storybook/addon-links',
22
19
  '@storybook/addon-essentials',
23
20
  '@storybook/addon-interactions',
24
- 'storybook-addon-mock/register',
21
+ 'storybook-addon-mock',
25
22
  '@storybook/addon-a11y',
26
23
  ],
27
24
  features: {
28
25
  interactionsDebugger: true, // 👈 Enable playback controls
29
26
  },
30
27
  framework: '@storybook/react',
28
+
31
29
  /* Modify the default storybook webpack config to our needs */
32
30
  webpackFinal: (config) => {
33
31
  // Support SVG imports. Ref: https://github.com/storybookjs/storybook/issues/6188#issuecomment-940081810
@@ -56,13 +54,7 @@ module.exports = {
56
54
  },
57
55
  ],
58
56
  },
59
- resolve: {
60
- ...config.resolve,
61
- alias: {
62
- ...config.resolve.alias,
63
- app: path.resolve(__dirname, '../src'),
64
- },
65
- },
57
+ resolve: { ...config.resolve, alias: { ...config.resolve.alias, app: path.resolve(__dirname, '../src') } },
66
58
  plugins: [
67
59
  ...config.plugins,
68
60
  new webpack.EnvironmentPlugin({
@@ -76,4 +68,7 @@ module.exports = {
76
68
  ],
77
69
  };
78
70
  },
71
+ core: {
72
+ builder: 'webpack5',
73
+ },
79
74
  };