@microsoft/omnichannel-chat-components 1.1.19 → 1.2.0-main.5ebd4eb
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/README.md +140 -1
- package/lib/cjs/common/Constants.js +8 -11
- package/lib/cjs/components/callingcontainer/subcomponents/CurrentCall/CurrentCall.js +10 -3
- package/lib/cjs/components/callingcontainer/subcomponents/Timer/Timer.js +10 -1
- package/lib/cjs/components/chatbutton/ChatButton.blankAnnouncements.a11y.spec.js +158 -0
- package/lib/cjs/components/chatbutton/ChatButton.browseMode.a11y.spec.js +227 -0
- package/lib/cjs/components/chatbutton/ChatButton.browseMode.unfixed.a11y.spec.js +112 -0
- package/lib/cjs/components/chatbutton/ChatButton.js +52 -16
- package/lib/cjs/components/common/subcomponents/CloseButton.js +1 -3
- package/lib/cjs/components/confirmationpane/ConfirmationPane.js +10 -8
- package/lib/cjs/components/confirmationpane/common/defaultProps/defaultConfirmationPaneControlProps.js +1 -0
- package/lib/cjs/components/footer/subcomponents/AudioNotificationButton.js +11 -4
- package/lib/cjs/components/footer/subcomponents/DownloadTranscriptButton.js +1 -3
- package/lib/cjs/components/footer/subcomponents/EmailTranscriptButton.js +1 -3
- package/lib/cjs/components/header/Header.js +16 -4
- package/lib/cjs/components/header/common/defaultStyles/defaultHeaderStyleProps.js +23 -0
- package/lib/cjs/components/header/subcomponents/MinimizeButton.js +1 -3
- package/lib/cjs/components/inputvalidationpane/InputValidationPane.js +34 -14
- package/lib/cjs/components/inputvalidationpane/common/default/defaultProps/defaultInputValidationPaneControlProps.js +1 -0
- package/lib/cjs/components/notificationpane/subcomponents/CloseChatButton.js +1 -3
- package/lib/cjs/components/notificationpane/subcomponents/DismissButton.js +1 -3
- package/lib/cjs/components/prechatsurveypane/PreChatSurveyPane.js +94 -17
- package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneMultichoiceInputStyles.js +1 -0
- package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneMultilineTextInputStyles.js +1 -0
- package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneTextInputStyles.js +1 -0
- package/lib/cjs/package.json +1 -0
- package/lib/cjs/services/EventQueue.js +4 -7
- package/lib/esm/common/Constants.js +1 -1
- package/lib/esm/components/callingcontainer/subcomponents/CurrentCall/CurrentCall.js +10 -3
- package/lib/esm/components/callingcontainer/subcomponents/Timer/Timer.js +10 -1
- package/lib/esm/components/chatbutton/ChatButton.blankAnnouncements.a11y.spec.js +155 -0
- package/lib/esm/components/chatbutton/ChatButton.browseMode.a11y.spec.js +224 -0
- package/lib/esm/components/chatbutton/ChatButton.browseMode.unfixed.a11y.spec.js +108 -0
- package/lib/esm/components/chatbutton/ChatButton.js +53 -16
- package/lib/esm/components/common/subcomponents/CloseButton.js +1 -3
- package/lib/esm/components/confirmationpane/ConfirmationPane.js +10 -8
- package/lib/esm/components/confirmationpane/common/defaultProps/defaultConfirmationPaneControlProps.js +1 -0
- package/lib/esm/components/footer/subcomponents/AudioNotificationButton.js +11 -4
- package/lib/esm/components/footer/subcomponents/DownloadTranscriptButton.js +1 -3
- package/lib/esm/components/footer/subcomponents/EmailTranscriptButton.js +1 -3
- package/lib/esm/components/header/Header.js +16 -4
- package/lib/esm/components/header/common/defaultStyles/defaultHeaderStyleProps.js +23 -0
- package/lib/esm/components/header/subcomponents/MinimizeButton.js +1 -3
- package/lib/esm/components/inputvalidationpane/InputValidationPane.js +34 -14
- package/lib/esm/components/inputvalidationpane/common/default/defaultProps/defaultInputValidationPaneControlProps.js +1 -0
- package/lib/esm/components/notificationpane/subcomponents/CloseChatButton.js +1 -3
- package/lib/esm/components/notificationpane/subcomponents/DismissButton.js +1 -3
- package/lib/esm/components/prechatsurveypane/PreChatSurveyPane.js +94 -16
- package/lib/esm/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneMultichoiceInputStyles.js +1 -0
- package/lib/esm/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneMultilineTextInputStyles.js +1 -0
- package/lib/esm/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneTextInputStyles.js +1 -0
- package/lib/types/common/Constants.d.ts +2 -0
- package/lib/types/components/chatbutton/ChatButton.blankAnnouncements.a11y.spec.d.ts +1 -0
- package/lib/types/components/chatbutton/ChatButton.browseMode.a11y.spec.d.ts +1 -0
- package/lib/types/components/chatbutton/ChatButton.browseMode.unfixed.a11y.spec.d.ts +1 -0
- package/lib/types/components/confirmationpane/interfaces/IConfirmationPaneControlProps.d.ts +1 -0
- package/lib/types/components/header/interfaces/IHeaderStyleProps.d.ts +12 -0
- package/lib/types/components/inputvalidationpane/interfaces/IInputValidationPaneControlProps.d.ts +1 -0
- package/package.json +41 -32
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/omnichannel-chat-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0-main.5ebd4eb",
|
|
4
4
|
"description": "Microsoft Omnichannel Chat Components",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"types": "lib/types/index.d.ts",
|
|
@@ -22,18 +22,18 @@
|
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@babel/cli": "^7.26.10",
|
|
24
24
|
"@babel/core": "^7.26.10",
|
|
25
|
+
"@babel/helper-split-export-declaration": "7.24.7",
|
|
25
26
|
"@babel/preset-env": "^7.26.10",
|
|
26
27
|
"@babel/preset-react": "^7.26.10",
|
|
27
28
|
"@babel/preset-typescript": "^7.26.10",
|
|
28
|
-
"browserslist": "^4.24.0",
|
|
29
29
|
"@storybook/addon-a11y": "^6.5.16",
|
|
30
30
|
"@storybook/addon-actions": "^6.5.16",
|
|
31
31
|
"@storybook/addon-essentials": "^6.5.16",
|
|
32
32
|
"@storybook/addon-knobs": "^6.4.0",
|
|
33
33
|
"@storybook/addon-links": "^6.5.16",
|
|
34
|
-
"@storybook/
|
|
34
|
+
"@storybook/builder-webpack5": "6.5.16",
|
|
35
|
+
"@storybook/manager-webpack5": "6.5.16",
|
|
35
36
|
"@storybook/react": "^6.5.16",
|
|
36
|
-
"@storybook/testing-react": "^1.3.0",
|
|
37
37
|
"@testing-library/dom": "^10.4.0",
|
|
38
38
|
"@testing-library/jest-dom": "^5.15.0",
|
|
39
39
|
"@testing-library/react": "^16.3.0",
|
|
@@ -42,62 +42,71 @@
|
|
|
42
42
|
"@types/jest-image-snapshot": "^4.3.1",
|
|
43
43
|
"@types/react": "^18.3.13",
|
|
44
44
|
"@types/react-dom": "^18.3.6",
|
|
45
|
-
"@types/styled-components": "^5.1.15",
|
|
46
45
|
"@typescript-eslint/eslint-plugin": "^8.33.0",
|
|
47
46
|
"@typescript-eslint/parser": "^8.33.0",
|
|
48
47
|
"babel-jest": "^27.3.1",
|
|
49
48
|
"babel-loader": "^8.2.2",
|
|
50
|
-
"
|
|
49
|
+
"browserslist": "^4.24.0",
|
|
51
50
|
"copyfiles": "^2.4.1",
|
|
52
51
|
"cross-env": "^7.0.3",
|
|
53
52
|
"eslint": "^9.27.0",
|
|
54
|
-
"eslint-
|
|
55
|
-
"eslint-plugin-import": "^2.25.2",
|
|
56
|
-
"eslint-plugin-node": "^11.1.0",
|
|
57
|
-
"eslint-plugin-promise": "^5.1.1",
|
|
58
|
-
"eslint-plugin-react": "^7.26.1",
|
|
59
|
-
"eslint-plugin-storybook": "^0.5.3",
|
|
53
|
+
"eslint-plugin-react": "^7.37.5",
|
|
60
54
|
"jest": "^27.3.1",
|
|
61
55
|
"jest-dom": "^4.0.0",
|
|
56
|
+
"jest-axe": "^10.0.0",
|
|
62
57
|
"jest-image-snapshot": "^4.5.1",
|
|
58
|
+
"jest-transform-stub": "^2.0.0",
|
|
63
59
|
"json": "^11.0.0",
|
|
64
60
|
"playwright": "^1.16.3",
|
|
65
|
-
"
|
|
61
|
+
"@axe-core/playwright": "^4.10.2",
|
|
62
|
+
"@axe-core/react": "^4.10.2",
|
|
63
|
+
"accessibility-insights-scan": "^3.0.0",
|
|
64
|
+
"postcss": "8.5.19",
|
|
66
65
|
"react": "^18.3.1",
|
|
67
66
|
"react-dom": "^18.3.1",
|
|
68
67
|
"react-test-renderer": "^18.3.1",
|
|
69
|
-
"storybook-addon-playwright": "
|
|
70
|
-
"typescript": "^5.8.3"
|
|
68
|
+
"storybook-addon-playwright": "4.9.2",
|
|
69
|
+
"typescript": "^5.8.3",
|
|
70
|
+
"undici": "8.9.0"
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
|
-
"@fluentui/react": "^8.
|
|
74
|
-
"adaptivecards": "
|
|
75
|
-
"
|
|
76
|
-
"broadcast-channel": "^4.5.0",
|
|
77
|
-
"jest-transform-stub": "^2.0.0",
|
|
73
|
+
"@fluentui/react": "^8.125.7",
|
|
74
|
+
"adaptivecards": "3.0.6",
|
|
75
|
+
"broadcast-channel": "7.3.0",
|
|
78
76
|
"rxjs": "^5.0.3",
|
|
79
|
-
"
|
|
77
|
+
"swiper": "12.1.2"
|
|
80
78
|
},
|
|
81
79
|
"scripts": {
|
|
82
80
|
"storybook": "start-storybook -p 6006",
|
|
83
81
|
"build-storybook": "cross-env NODE_OPTIONS=--openssl-legacy-provider build-storybook",
|
|
84
82
|
"build": "yarn eslint . && yarn build:esm && yarn build:cjs && tsc",
|
|
85
83
|
"test:unit": "jest -c jest.config.unit.cjs --env=jsdom --runInBand --force-exit",
|
|
86
|
-
"test:
|
|
84
|
+
"test:a11y": "jest -c jest.config.a11y.cjs --runInBand --force-exit",
|
|
85
|
+
"test:cjs": "node ./scripts/validate-module-entries.cjs && node -e \"require('./lib/cjs/index.js')\"",
|
|
86
|
+
"test:visual": "cross-env NODE_OPTIONS=--experimental-vm-modules jest -c jest.config.visual.cjs",
|
|
87
|
+
"pretest:visual": "yarn playwright install",
|
|
88
|
+
"test:visual:mobile:ios": "cross-env STORYBOOK_BROWSERS=chromium STORYBOOK_SCREENSHOT_PROFILE=mobile-iphone yarn test:visual",
|
|
89
|
+
"test:visual:mobile:android": "cross-env STORYBOOK_BROWSERS=chromium STORYBOOK_SCREENSHOT_PROFILE=mobile-android yarn test:visual",
|
|
90
|
+
"test:visual:reflow": "cross-env STORYBOOK_BROWSERS=chromium STORYBOOK_SCREENSHOT_PROFILE=reflow-320 yarn test:visual",
|
|
91
|
+
"test:visual:zoom": "cross-env STORYBOOK_BROWSERS=chromium STORYBOOK_SCREENSHOT_PROFILE=zoom-200 yarn test:visual",
|
|
92
|
+
"test:visual:forced-colors": "cross-env STORYBOOK_BROWSERS=chromium STORYBOOK_SCREENSHOT_PROFILE=forced-colors yarn test:visual",
|
|
93
|
+
"test:visual:contrast-more": "cross-env STORYBOOK_BROWSERS=chromium STORYBOOK_SCREENSHOT_PROFILE=contrast-more yarn test:visual",
|
|
94
|
+
"scan:a11y:axe": "node ../tools/accessibility/axeScan.cjs",
|
|
95
|
+
"scan:a11y:axe:gated": "node ../tools/accessibility/axeScan.cjs --gate-rules image-alt,button-name",
|
|
96
|
+
"scan:a11y:axe:build": "yarn build-storybook && yarn scan:a11y:axe",
|
|
97
|
+
"scan:a11y:insights": "node ../tools/accessibility/insightsScan.cjs",
|
|
98
|
+
"scan:a11y:insights:build": "yarn build-storybook && yarn scan:a11y:insights",
|
|
99
|
+
"scan:a11y": "yarn build-storybook && yarn scan:a11y:axe && yarn scan:a11y:insights",
|
|
87
100
|
"test:all": "yarn test:unit && yarn test:visual",
|
|
88
|
-
"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",
|
|
101
|
+
"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 && node ./scripts/write-cjs-package.cjs",
|
|
89
102
|
"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",
|
|
90
103
|
"verify": "yarn install && yarn build-storybook && yarn test:all && yarn build && yarn storybook"
|
|
91
104
|
},
|
|
92
105
|
"resolutions": {
|
|
106
|
+
"**/@types/glob": "7.2.0",
|
|
107
|
+
"**/@types/minimatch": "3.0.5",
|
|
93
108
|
"**/glob-parent": "5.1.2",
|
|
94
|
-
"**/
|
|
95
|
-
"**/
|
|
96
|
-
"**/nanoid": "3.1.31",
|
|
97
|
-
"**/url-parse": "1.5.9",
|
|
98
|
-
"**/markdown-it": "12.3.2",
|
|
99
|
-
"**/minimist": "1.2.6",
|
|
100
|
-
"**/sanitize-html": "2.12.1",
|
|
101
|
-
"**/lodash": "4.17.23"
|
|
109
|
+
"**/join-images": "1.1.5",
|
|
110
|
+
"**/nanoid": "3.3.18"
|
|
102
111
|
}
|
|
103
|
-
}
|
|
112
|
+
}
|