@kindly/react-chat 2.42.0 → 2.42.1

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kindly/react-chat",
3
- "version": "2.42.0",
3
+ "version": "2.42.1",
4
4
  "description": "Kindly Chat react component",
5
5
  "repository": "https://github.com/kindly-ai/kindly-chat/tree/main/packages/react-chat",
6
6
  "main": "dist/index.js",
@@ -18,8 +18,8 @@
18
18
  "test": "jest src",
19
19
  "test:storybook": "test-storybook",
20
20
  "update:browserslist": "npx browserslist@latest --update-db",
21
- "storybook": "start-storybook -p 6006",
22
- "build-storybook": "build-storybook"
21
+ "storybook": "storybook dev -p 6006",
22
+ "build-storybook": "storybook build"
23
23
  },
24
24
  "scriptsComments": {
25
25
  "test-a11y": "Runs the storybook test-runner. Currently running only axe-core for a11y tests."
@@ -69,17 +69,17 @@
69
69
  "@babel/plugin-transform-runtime": "^7.21.0",
70
70
  "@babel/preset-env": "^7.20.2",
71
71
  "@babel/preset-react": "^7.18.6",
72
- "@storybook/addon-a11y": "^6.5.16",
73
- "@storybook/addon-actions": "^6.5.16",
74
- "@storybook/addon-essentials": "^6.5.16",
75
- "@storybook/addon-interactions": "^6.5.16",
76
- "@storybook/addon-links": "^6.5.16",
77
- "@storybook/builder-webpack5": "^6.5.16",
78
- "@storybook/jest": "^0.0.10",
79
- "@storybook/manager-webpack5": "^6.5.16",
80
- "@storybook/react": "^6.5.16",
81
- "@storybook/test-runner": "^0.9.4",
82
- "@storybook/testing-library": "^0.0.13",
72
+ "@storybook/addon-a11y": "^7.0.4",
73
+ "@storybook/addon-actions": "^7.0.4",
74
+ "@storybook/addon-essentials": "^7.0.4",
75
+ "@storybook/addon-interactions": "^7.0.4",
76
+ "@storybook/addon-links": "^7.0.4",
77
+ "@storybook/addon-mdx-gfm": "^7.0.4",
78
+ "@storybook/jest": "^0.1.0",
79
+ "@storybook/react": "^7.0.4",
80
+ "@storybook/react-webpack5": "^7.0.4",
81
+ "@storybook/test-runner": "^0.10.0",
82
+ "@storybook/testing-library": "^0.1.0",
83
83
  "@testing-library/jest-dom": "^5.16.5",
84
84
  "@testing-library/react": "^11.2.7",
85
85
  "@types/react": "^16.14.35",
@@ -112,7 +112,8 @@
112
112
  "react-svg-loader": "^3.0.3",
113
113
  "react-test-renderer": "16.14.0",
114
114
  "resolve-url-loader": "^5.0.0",
115
- "storybook-addon-mock": "^3.2.0",
115
+ "storybook": "^7.0.4",
116
+ "storybook-addon-mock": "^4.0.0",
116
117
  "url-loader": "^4.1.1",
117
118
  "wait-on": "^6.0.1",
118
119
  "webpack": "^5.76.1",
@@ -129,5 +130,5 @@
129
130
  "pusher-js": "8.0.1"
130
131
  }
131
132
  },
132
- "gitHead": "4b8f2bf59a0cce3540ea8262de8b7393e367239c"
133
+ "gitHead": "b2f0e79ce5be18782b4c66075d1b9830205d4de9"
133
134
  }
@@ -154,7 +154,9 @@ FormActive.parameters = {
154
154
  validators: [
155
155
  {
156
156
  max_length: 30,
157
- text: 'Maximum number of length is 30',
157
+ texts: {
158
+ text: 'Maximum number of length is 30',
159
+ },
158
160
  },
159
161
  ],
160
162
  },
@@ -171,7 +173,9 @@ FormActive.parameters = {
171
173
  validators: [
172
174
  {
173
175
  min_length: 5,
174
- text: 'This field should be at least 5 characters long',
176
+ texts: {
177
+ text: 'This field should be at least 5 characters long',
178
+ },
175
179
  },
176
180
  {
177
181
  max_length: 15,
@@ -1,35 +0,0 @@
1
- /* eslint-disable @typescript-eslint/no-var-requires */
2
- const { getStoryContext } = require('@storybook/test-runner');
3
- const { injectAxe, checkA11y } = require('axe-playwright');
4
-
5
- /*
6
- * See https://storybook.js.org/docs/react/writing-tests/test-runner#test-hook-api-experimental
7
- * to learn more about the test-runner hooks API.
8
- */
9
- module.exports = {
10
- async preRender(page) {
11
- await injectAxe(page);
12
- },
13
- async postRender(page, context) {
14
- const storyContext = await getStoryContext(page, context);
15
- // Do not test a11y for stories that disable a11y
16
- if (storyContext.parameters?.a11y?.disable) {
17
- return;
18
- }
19
-
20
- await page.waitForLoadState('domcontentloaded');
21
-
22
- await checkA11y(page, '#root', {
23
- detailedReport: true,
24
- detailedReportOptions: {
25
- html: true,
26
- },
27
- axeOptions: {
28
- rules: storyContext.parameters?.a11y?.config.rules.reduce(
29
- (previousValue, currentValue) => ({ ...previousValue, [currentValue.id]: currentValue }),
30
- {},
31
- ),
32
- },
33
- });
34
- },
35
- };