@microsoft/omnichannel-chat-components 1.1.17-main.2b0b03f → 1.1.17-main.2e8be66

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.
Files changed (1) hide show
  1. package/package.json +19 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/omnichannel-chat-components",
3
- "version": "1.1.17-main.2b0b03f",
3
+ "version": "1.1.17-main.2e8be66",
4
4
  "description": "Microsoft Omnichannel Chat Components",
5
5
  "main": "lib/cjs/index.js",
6
6
  "types": "lib/types/index.d.ts",
@@ -57,10 +57,14 @@
57
57
  "eslint-plugin-storybook": "^0.5.3",
58
58
  "jest": "^27.3.1",
59
59
  "jest-dom": "^4.0.0",
60
+ "jest-axe": "^10.0.0",
60
61
  "jest-image-snapshot": "^4.5.1",
61
62
  "jest-transform-stub": "^2.0.0",
62
63
  "json": "^11.0.0",
63
64
  "playwright": "^1.16.3",
65
+ "@axe-core/playwright": "^4.10.2",
66
+ "@axe-core/react": "^4.10.2",
67
+ "accessibility-insights-scan": "^3.0.0",
64
68
  "postcss": "^8.3.9",
65
69
  "react": "^18.3.1",
66
70
  "react-dom": "^18.3.1",
@@ -79,7 +83,21 @@
79
83
  "build-storybook": "cross-env NODE_OPTIONS=--openssl-legacy-provider build-storybook",
80
84
  "build": "yarn eslint . && yarn build:esm && yarn build:cjs && tsc",
81
85
  "test:unit": "jest -c jest.config.unit.cjs --env=jsdom --runInBand --force-exit",
86
+ "test:a11y": "jest -c jest.config.a11y.cjs --runInBand --force-exit",
82
87
  "test:visual": "jest -c jest.config.visual.cjs",
88
+ "pretest:visual": "yarn playwright install",
89
+ "test:visual:mobile:ios": "cross-env STORYBOOK_BROWSERS=chromium STORYBOOK_SCREENSHOT_PROFILE=mobile-iphone yarn test:visual",
90
+ "test:visual:mobile:android": "cross-env STORYBOOK_BROWSERS=chromium STORYBOOK_SCREENSHOT_PROFILE=mobile-android yarn test:visual",
91
+ "test:visual:reflow": "cross-env STORYBOOK_BROWSERS=chromium STORYBOOK_SCREENSHOT_PROFILE=reflow-320 yarn test:visual",
92
+ "test:visual:zoom": "cross-env STORYBOOK_BROWSERS=chromium STORYBOOK_SCREENSHOT_PROFILE=zoom-200 yarn test:visual",
93
+ "test:visual:forced-colors": "cross-env STORYBOOK_BROWSERS=chromium STORYBOOK_SCREENSHOT_PROFILE=forced-colors yarn test:visual",
94
+ "test:visual:contrast-more": "cross-env STORYBOOK_BROWSERS=chromium STORYBOOK_SCREENSHOT_PROFILE=contrast-more yarn test:visual",
95
+ "scan:a11y:axe": "node ../tools/accessibility/axeScan.cjs",
96
+ "scan:a11y:axe:gated": "node ../tools/accessibility/axeScan.cjs --gate-rules image-alt,button-name",
97
+ "scan:a11y:axe:build": "yarn build-storybook && yarn scan:a11y:axe",
98
+ "scan:a11y:insights": "node ../tools/accessibility/insightsScan.cjs",
99
+ "scan:a11y:insights:build": "yarn build-storybook && yarn scan:a11y:insights",
100
+ "scan:a11y": "yarn build-storybook && yarn scan:a11y:axe && yarn scan:a11y:insights",
83
101
  "test:all": "yarn test:unit && yarn test:visual",
84
102
  "build:cjs": "babel ./src --config-file ./babel.config.json --out-dir lib/cjs --extensions .ts,.js,.tsx --ignore ./**/*.test.ts,./**/*.stories.ts,./**/*.stories.tsx,./**/*.test.tsx",
85
103
  "build:esm": "babel ./src --config-file ./babel.esm.config.json --out-dir lib/esm --extensions .ts,.js,.tsx --ignore ./**/*.test.ts,./**/*.stories.ts,./**/*.stories.tsx,./**/*.test.tsx",