@zohoim/chat-components 1.1.1-beta.1 → 1.1.1-beta.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.
@@ -53,13 +53,10 @@ export default function ActionIconWrapper(props) {
53
53
  id
54
54
  });
55
55
  return icon ? /*#__PURE__*/React.createElement("div", {
56
- "aria-label": title,
57
56
  className: actionIconWrapperClass,
58
57
  "data-title": title,
59
58
  onClick: onClick,
60
- onMouseEnter: onMouseEnter,
61
- role: "menuitem",
62
- tabIndex: 0
59
+ onMouseEnter: onMouseEnter
63
60
  }, icon) : null;
64
61
  }
65
62
  ActionIconWrapper.propTypes = actionIconWrapperPropTypes;
@@ -71,9 +71,6 @@ export default function AttachmentHandler(props) {
71
71
  return /*#__PURE__*/React.createElement(Container, {
72
72
  alignBox: "column"
73
73
  }, customIcon || /*#__PURE__*/React.createElement(IconButton, {
74
- a11y: {
75
- ariaLabel: iconTitle
76
- },
77
74
  className: newStyle.iconButton,
78
75
  iconClass: newStyle.icon,
79
76
  iconName: iconName,
package/es/Emoji/Emoji.js CHANGED
@@ -58,11 +58,8 @@ export default function Emoji(props) {
58
58
  });
59
59
  return /*#__PURE__*/React.createElement("span", {
60
60
  ref: eleRef,
61
- "aria-label": title,
62
61
  className: emojiClass,
63
- onClick: onSelect,
64
- role: "button",
65
- tabIndex: 0
62
+ onClick: onSelect
66
63
  }, /*#__PURE__*/React.createElement("span", {
67
64
  className: newStyle.emojiContent,
68
65
  "data-smiley": emojiName,
@@ -83,10 +83,7 @@ function EmojiPopupComp(props) {
83
83
  isActive: isPopupOpen,
84
84
  onClick: onTogglePopup,
85
85
  title: tooltip,
86
- ...iconProps,
87
- a11y: {
88
- ariaLabel: tooltip
89
- }
86
+ ...iconProps
90
87
  }), isPopupOpen ? /*#__PURE__*/React.createElement(DropBox, {
91
88
  boxPosition: position,
92
89
  customClass: popupClass,
@@ -20,7 +20,6 @@ import { Box } from '@zohodesk/components/es/Layout';
20
20
  /** ** Styles *** */
21
21
 
22
22
  import style from "./css/MessageBubble.module.css";
23
- import generateUniqueId from '@zohoim/chat-components-utils/es/common/generateUniqueId';
24
23
  export default function MessageBubble(props) {
25
24
  const {
26
25
  renderMessageBox,
@@ -40,9 +39,7 @@ export default function MessageBubble(props) {
40
39
  const {
41
40
  onMouseEnter,
42
41
  onMouseLeave,
43
- isRenderMessageActions,
44
- onFocus,
45
- onBlur
42
+ isRenderMessageActions
46
43
  } = useMessageBubbleAction(props);
47
44
  /* css classnames added based on logic */
48
45
 
@@ -70,9 +67,7 @@ export default function MessageBubble(props) {
70
67
  const messageActionsRenderer = useCallback(() => {
71
68
  const messageActions = isRenderMessageActions ? renderHandler(renderMessageActions)() : null;
72
69
  return messageActions ? /*#__PURE__*/React.createElement(Box, {
73
- className: messageActionWrapperClass,
74
- role: "button",
75
- tabIndex: "0"
70
+ className: messageActionWrapperClass
76
71
  }, messageActions) : null;
77
72
  }, [isRenderMessageActions, renderMessageActions, messageActionWrapperClass]);
78
73
  /* Message Box Render */
@@ -89,16 +84,12 @@ export default function MessageBubble(props) {
89
84
 
90
85
  const messageBox = useMemo(() => messageBoxRenderer(), [messageBoxRenderer]);
91
86
  const messageActions = useMemo(() => messageActionsRenderer(), [messageActionsRenderer]);
92
- const uniqueId = generateUniqueId();
93
87
  const messageBoxWithActionsRenderer = useCallback(() => messageBox || messageActions ? /*#__PURE__*/React.createElement(Box, {
94
88
  className: newStyle.messageContainer
95
89
  }, /*#__PURE__*/React.createElement(Box, {
96
90
  className: newStyle.messageBoxWrapper,
97
91
  flexible: true
98
- }, messageBox, /*#__PURE__*/React.createElement("div", {
99
- id: uniqueId,
100
- role: "menu"
101
- }, messageActions))) : null, [messageBox, messageActions, newStyle.messageContainer, newStyle.messageBoxWrapper, uniqueId]);
92
+ }, messageBox, messageActions)) : null, [messageBox, messageActions, newStyle.messageContainer, newStyle.messageBoxWrapper]);
102
93
  /* Message Footer Render */
103
94
 
104
95
  const messageFooterRenderer = useCallback(() => {
@@ -115,16 +106,9 @@ export default function MessageBubble(props) {
115
106
  /* Construct Layout */
116
107
 
117
108
  const messageLayout = /*#__PURE__*/React.createElement("div", {
118
- "aria-controls": uniqueId,
119
- "aria-expanded": isRenderMessageActions ? 'true' : 'false',
120
- "aria-haspopup": "true",
121
109
  className: bubbleClass,
122
- onBlur: onBlur,
123
- onFocus: onFocus,
124
110
  onMouseEnter: onMouseEnter,
125
- onMouseLeave: onMouseLeave,
126
- role: "button",
127
- tabIndex: 0
111
+ onMouseLeave: onMouseLeave
128
112
  }, messageSender, messageBoxWithActions, messageFooter);
129
113
  return messageLayout;
130
114
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohoim/chat-components",
3
- "version": "1.1.1-beta.1",
3
+ "version": "1.1.1-beta.2",
4
4
  "description": "Chat Components",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -42,8 +42,8 @@
42
42
  "@zohodesk/utils": "1.3.13",
43
43
  "@zohodesk/variables": "1.0.0",
44
44
  "@zohodesk/virtualizer": "1.0.13",
45
- "@zohoim/chat-components-hooks": "1.1.1-beta.1",
46
- "@zohoim/chat-components-utils": "1.1.1-beta.1"
45
+ "@zohoim/chat-components-hooks": "1.1.1-beta.2",
46
+ "@zohoim/chat-components-utils": "1.1.1-beta.2"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@zohodesk-private/color-variable-preprocessor": "1.2.1",
@@ -52,5 +52,5 @@
52
52
  "jsdom": "23.0.0",
53
53
  "react-to-jsx": "1.3.2"
54
54
  },
55
- "gitHead": "091122e23dfa335359f530ac4965168085aebc37"
55
+ "gitHead": "626644b2b66a2e3053c2bf15a791e29bd28c4287"
56
56
  }