@microsoft/omnichannel-chat-components 1.0.0 → 1.0.1-main.57b83f8

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 (102) hide show
  1. package/lib/cjs/common/Constants.js +16 -3
  2. package/lib/cjs/components/callingcontainer/common/defaultProps/defaultCallingContainerControlProps.js +4 -1
  3. package/lib/cjs/components/callingcontainer/subcomponents/CurrentCall/CurrentCall.js +6 -6
  4. package/lib/cjs/components/callingcontainer/subcomponents/CurrentCall/common/defaultProps/defaultCurrentCallControlProps.js +26 -23
  5. package/lib/cjs/components/callingcontainer/subcomponents/CurrentCall/common/defaultProps/defaultCurrentCallControlPropsRtl.js +20 -18
  6. package/lib/cjs/components/callingcontainer/subcomponents/IncomingCall/IncomingCall.js +6 -6
  7. package/lib/cjs/components/callingcontainer/subcomponents/IncomingCall/common/defaultProps/defaultIncomingCallControlProps.js +22 -19
  8. package/lib/cjs/components/callingcontainer/subcomponents/IncomingCall/common/defaultProps/defaultIncomingCallControlPropsRtl.js +18 -16
  9. package/lib/cjs/components/chatbutton/ChatButton.js +2 -2
  10. package/lib/cjs/components/chatbutton/common/defaultProps/defaultChatButtonControlProps.js +10 -7
  11. package/lib/cjs/components/common/commandbutton/CommandButton.js +4 -4
  12. package/lib/cjs/components/common/subcomponents/CloseButton.js +4 -4
  13. package/lib/cjs/components/confirmationpane/ConfirmationPane.js +2 -2
  14. package/lib/cjs/components/confirmationpane/common/defaultProps/defaultConfirmationPaneControlProps.js +10 -7
  15. package/lib/cjs/components/footer/Footer.js +5 -3
  16. package/lib/cjs/components/footer/common/defaultProps/customFooterControlProps.js +12 -10
  17. package/lib/cjs/components/footer/common/defaultProps/defaultFooterControlProps.js +18 -15
  18. package/lib/cjs/components/footer/subcomponents/AudioNotificationButton.js +5 -5
  19. package/lib/cjs/components/footer/subcomponents/DownloadTranscriptButton.js +4 -4
  20. package/lib/cjs/components/footer/subcomponents/EmailTranscriptButton.js +4 -4
  21. package/lib/cjs/components/header/Header.js +5 -3
  22. package/lib/cjs/components/header/common/defaultProps/azureHeaderControlProps.js +8 -6
  23. package/lib/cjs/components/header/common/defaultProps/customHeaderControlProps.js +9 -7
  24. package/lib/cjs/components/header/common/defaultProps/defaultHeaderComponentOverrides.js +3 -1
  25. package/lib/cjs/components/header/common/defaultProps/defaultHeaderControlProps.js +13 -11
  26. package/lib/cjs/components/header/subcomponents/MinimizeButton.js +4 -4
  27. package/lib/cjs/components/inputvalidationpane/common/default/defaultProps/defaultInputValidationPaneControlProps.js +11 -11
  28. package/lib/cjs/components/inputvalidationpane/common/presetTwo/presetTwoProps/presetTwoInputValidationPaneControlProps.js +11 -11
  29. package/lib/cjs/components/loadingpane/LoadingPane.js +1 -1
  30. package/lib/cjs/components/loadingpane/common/defaultProps/defaultLoadingPaneControlProps.js +7 -4
  31. package/lib/cjs/components/loadingpane/common/presetOneProps/presetOneLoadingPaneControlProps.js +1 -1
  32. package/lib/cjs/components/loadingpane/common/presetThreeProps/presetThreeLoadingPaneControlProps.js +1 -1
  33. package/lib/cjs/components/loadingpane/common/presetTwoProps/presetTwoLoadingPaneControlProps.js +1 -1
  34. package/lib/cjs/components/outofofficehourspane/common/defaultProps/defaultOOOHPaneControlProps.js +5 -2
  35. package/lib/cjs/components/outofofficehourspane/common/presetFourProps/presetFourOOOHPaneControlProps.js +1 -1
  36. package/lib/cjs/components/outofofficehourspane/common/presetOneProps/presetOneOOOHPaneControlProps.js +1 -1
  37. package/lib/cjs/components/outofofficehourspane/common/presetTwoProps/presetTwoOOOHPaneControlProps.js +1 -1
  38. package/lib/cjs/components/postchatsurveypane/common/defaultProps/defaultPostChatSurveyPaneControlProps.js +5 -2
  39. package/lib/cjs/components/postchatsurveypane/common/presetOneProps/presetOnePostChatSurveyPaneControlProps.js +1 -1
  40. package/lib/cjs/components/prechatsurveypane/PreChatSurveyPane.js +2 -2
  41. package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultPreChatSurveyPaneControlProps.js +4 -1
  42. package/lib/cjs/components/prechatsurveypane/common/presetThreeProps/presetThreePreChatSurveyPaneControlProps.js +1 -1
  43. package/lib/cjs/components/prechatsurveypane/common/presetTwoProps/presetTwoPreChatSurveyPaneControlProps.js +1 -1
  44. package/lib/cjs/components/proactivechatpane/common/default/defaultProps/defaultProactiveChatPaneControlProps.js +12 -9
  45. package/lib/cjs/components/proactivechatpane/common/presetOne/presetOneProps/presetOneProactiveChatPaneControlProps.js +12 -9
  46. package/lib/cjs/components/proactivechatpane/common/presetThree/presetThreeProps/presetThreeProactiveChatPaneControlProps.js +12 -9
  47. package/lib/cjs/components/proactivechatpane/common/presetTwo/presetTwoProps/presetTwoProactiveChatPaneControlProps.js +9 -6
  48. package/lib/cjs/components/reconnectchatpane/ReconnectChatPane.js +3 -3
  49. package/lib/cjs/components/reconnectchatpane/common/default/defaultProps/defaultReconnectChatPaneControlProps.js +12 -9
  50. package/lib/cjs/components/reconnectchatpane/common/presetThree/presetThreeProps/presetThreeReconnectChatPaneControlProps.js +11 -8
  51. package/lib/esm/common/Constants.js +9 -2
  52. package/lib/esm/components/callingcontainer/common/defaultProps/defaultCallingContainerControlProps.js +2 -1
  53. package/lib/esm/components/callingcontainer/subcomponents/CurrentCall/CurrentCall.js +7 -7
  54. package/lib/esm/components/callingcontainer/subcomponents/CurrentCall/common/defaultProps/defaultCurrentCallControlProps.js +24 -23
  55. package/lib/esm/components/callingcontainer/subcomponents/CurrentCall/common/defaultProps/defaultCurrentCallControlPropsRtl.js +19 -18
  56. package/lib/esm/components/callingcontainer/subcomponents/IncomingCall/IncomingCall.js +7 -7
  57. package/lib/esm/components/callingcontainer/subcomponents/IncomingCall/common/defaultProps/defaultIncomingCallControlProps.js +20 -19
  58. package/lib/esm/components/callingcontainer/subcomponents/IncomingCall/common/defaultProps/defaultIncomingCallControlPropsRtl.js +17 -16
  59. package/lib/esm/components/chatbutton/ChatButton.js +3 -3
  60. package/lib/esm/components/chatbutton/common/defaultProps/defaultChatButtonControlProps.js +8 -7
  61. package/lib/esm/components/common/commandbutton/CommandButton.js +5 -5
  62. package/lib/esm/components/common/subcomponents/CloseButton.js +5 -5
  63. package/lib/esm/components/confirmationpane/ConfirmationPane.js +3 -3
  64. package/lib/esm/components/confirmationpane/common/defaultProps/defaultConfirmationPaneControlProps.js +8 -7
  65. package/lib/esm/components/footer/Footer.js +4 -3
  66. package/lib/esm/components/footer/common/defaultProps/customFooterControlProps.js +11 -10
  67. package/lib/esm/components/footer/common/defaultProps/defaultFooterControlProps.js +16 -15
  68. package/lib/esm/components/footer/subcomponents/AudioNotificationButton.js +6 -6
  69. package/lib/esm/components/footer/subcomponents/DownloadTranscriptButton.js +5 -5
  70. package/lib/esm/components/footer/subcomponents/EmailTranscriptButton.js +5 -5
  71. package/lib/esm/components/header/Header.js +4 -3
  72. package/lib/esm/components/header/common/defaultProps/azureHeaderControlProps.js +7 -6
  73. package/lib/esm/components/header/common/defaultProps/customHeaderControlProps.js +8 -7
  74. package/lib/esm/components/header/common/defaultProps/defaultHeaderComponentOverrides.js +2 -1
  75. package/lib/esm/components/header/common/defaultProps/defaultHeaderControlProps.js +12 -11
  76. package/lib/esm/components/header/subcomponents/MinimizeButton.js +5 -5
  77. package/lib/esm/components/inputvalidationpane/common/default/defaultProps/defaultInputValidationPaneControlProps.js +12 -12
  78. package/lib/esm/components/inputvalidationpane/common/presetTwo/presetTwoProps/presetTwoInputValidationPaneControlProps.js +12 -12
  79. package/lib/esm/components/loadingpane/LoadingPane.js +1 -1
  80. package/lib/esm/components/loadingpane/common/defaultProps/defaultLoadingPaneControlProps.js +5 -4
  81. package/lib/esm/components/loadingpane/common/presetOneProps/presetOneLoadingPaneControlProps.js +1 -1
  82. package/lib/esm/components/loadingpane/common/presetThreeProps/presetThreeLoadingPaneControlProps.js +1 -1
  83. package/lib/esm/components/loadingpane/common/presetTwoProps/presetTwoLoadingPaneControlProps.js +1 -1
  84. package/lib/esm/components/outofofficehourspane/common/defaultProps/defaultOOOHPaneControlProps.js +3 -2
  85. package/lib/esm/components/outofofficehourspane/common/presetFourProps/presetFourOOOHPaneControlProps.js +1 -1
  86. package/lib/esm/components/outofofficehourspane/common/presetOneProps/presetOneOOOHPaneControlProps.js +1 -1
  87. package/lib/esm/components/outofofficehourspane/common/presetTwoProps/presetTwoOOOHPaneControlProps.js +1 -1
  88. package/lib/esm/components/postchatsurveypane/common/defaultProps/defaultPostChatSurveyPaneControlProps.js +3 -2
  89. package/lib/esm/components/postchatsurveypane/common/presetOneProps/presetOnePostChatSurveyPaneControlProps.js +1 -1
  90. package/lib/esm/components/prechatsurveypane/PreChatSurveyPane.js +3 -3
  91. package/lib/esm/components/prechatsurveypane/common/defaultProps/defaultPreChatSurveyPaneControlProps.js +2 -1
  92. package/lib/esm/components/prechatsurveypane/common/presetThreeProps/presetThreePreChatSurveyPaneControlProps.js +1 -1
  93. package/lib/esm/components/prechatsurveypane/common/presetTwoProps/presetTwoPreChatSurveyPaneControlProps.js +1 -1
  94. package/lib/esm/components/proactivechatpane/common/default/defaultProps/defaultProactiveChatPaneControlProps.js +10 -9
  95. package/lib/esm/components/proactivechatpane/common/presetOne/presetOneProps/presetOneProactiveChatPaneControlProps.js +10 -9
  96. package/lib/esm/components/proactivechatpane/common/presetThree/presetThreeProps/presetThreeProactiveChatPaneControlProps.js +10 -9
  97. package/lib/esm/components/proactivechatpane/common/presetTwo/presetTwoProps/presetTwoProactiveChatPaneControlProps.js +7 -6
  98. package/lib/esm/components/reconnectchatpane/ReconnectChatPane.js +4 -4
  99. package/lib/esm/components/reconnectchatpane/common/default/defaultProps/defaultReconnectChatPaneControlProps.js +10 -9
  100. package/lib/esm/components/reconnectchatpane/common/presetThree/presetThreeProps/presetThreeReconnectChatPaneControlProps.js +9 -8
  101. package/lib/types/common/Constants.d.ts +148 -0
  102. package/package.json +1 -1
@@ -4,9 +4,12 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.defaultPostChatSurveyPaneControlProps = void 0;
7
+
8
+ var _Constants = require("../../../../common/Constants");
9
+
7
10
  const defaultPostChatSurveyPaneControlProps = {
8
- id: "oc-lcw-postchatsurvey-pane",
9
- title: "Post chat survey pane",
11
+ id: _Constants.Ids.DefaultPostChatSurveyPaneId,
12
+ title: _Constants.Texts.PostChatSurveyPaneTitleText,
10
13
  surveyURL: ""
11
14
  };
12
15
  exports.defaultPostChatSurveyPaneControlProps = defaultPostChatSurveyPaneControlProps;
@@ -8,6 +8,6 @@ exports.presetOnePostChatSurveyPaneControlProps = void 0;
8
8
  var _defaultPostChatSurveyPaneControlProps = require("../defaultProps/defaultPostChatSurveyPaneControlProps");
9
9
 
10
10
  const presetOnePostChatSurveyPaneControlProps = { ..._defaultPostChatSurveyPaneControlProps.defaultPostChatSurveyPaneControlProps,
11
- id: "oc-lcw-postchatsurveypane-preset1"
11
+ id: "lcw-postchat-survey-pane-preset1"
12
12
  };
13
13
  exports.presetOnePostChatSurveyPaneControlProps = presetOnePostChatSurveyPaneControlProps;
@@ -32,7 +32,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
32
32
  function PreChatSurveyPane(props) {
33
33
  var _props$controlProps, _props$styleProps, _props$styleProps2, _props$styleProps3, _props$styleProps3$cu, _props$styleProps4, _props$styleProps4$cu, _props$styleProps5, _props$styleProps5$cu, _props$styleProps6, _props$styleProps6$cu, _props$styleProps7, _props$styleProps7$cu, _props$styleProps8, _props$styleProps8$cu, _props$styleProps9, _props$styleProps9$cu, _defaultPreChatSurvey, _props$styleProps10, _props$styleProps10$c, _props$styleProps11, _props$styleProps11$c, _defaultPreChatSurvey2, _props$styleProps12, _props$styleProps12$c, _props$styleProps13, _props$styleProps13$c, _defaultPreChatSurvey3, _props$styleProps14, _props$styleProps14$c, _defaultPreChatSurvey4, _props$styleProps15, _props$styleProps15$c, _defaultPreChatSurvey5, _props$styleProps16, _props$styleProps16$c, _defaultPreChatSurvey6, _props$styleProps17, _props$styleProps17$c, _defaultPreChatSurvey7, _props$styleProps18, _props$styleProps18$c, _defaultPreChatSurvey8, _props$controlProps6, _props$controlProps7, _props$controlProps8;
34
34
 
35
- const elementId = ((_props$controlProps = props.controlProps) === null || _props$controlProps === void 0 ? void 0 : _props$controlProps.id) ?? "lcw-components-prechatsurvey-pane";
35
+ const elementId = ((_props$controlProps = props.controlProps) === null || _props$controlProps === void 0 ? void 0 : _props$controlProps.id) ?? _defaultPreChatSurveyPaneControlProps.defaultPreChatSurveyPaneControlProps.id;
36
36
  let adpativeCardPayload;
37
37
  let adaptiveCardHostConfig;
38
38
  const containerStyles = {
@@ -73,7 +73,7 @@ function PreChatSurveyPane(props) {
73
73
  const customEvent = {
74
74
  elementType: _Constants.ElementType.PreChatSurveySubmitButton,
75
75
  elementId: elementId,
76
- eventName: "OnClick"
76
+ eventName: _Constants.EventNames.OnClick
77
77
  };
78
78
 
79
79
  _BroadcastService.BroadcastService.postMessage(customEvent);
@@ -4,8 +4,11 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.defaultPreChatSurveyPaneControlProps = void 0;
7
+
8
+ var _Constants = require("../../../../common/Constants");
9
+
7
10
  const defaultPreChatSurveyPaneControlProps = {
8
- id: "oc-lcw-prechatsurveypane-default",
11
+ id: _Constants.Ids.DefaultPreChatSurveyPaneId,
9
12
  dir: "auto",
10
13
  role: "alert",
11
14
  hidePreChatSurveyPane: false,
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.presetThreePreChatSurveyPaneControlProps = void 0;
7
7
  const presetThreePreChatSurveyPaneControlProps = {
8
- id: "oc-lcw-prechatsurveypane-preset3",
8
+ id: "lcw-prechat-survey-pane-preset3",
9
9
  dir: "auto",
10
10
  hidePreChatSurveyPane: false,
11
11
  adaptiveCardHostConfig: "{\"fontFamily\":\"Segoe UI, Helvetica Neue, sans-serif\",\"containerStyles\":{\"default\":{\"foregroundColors\":{\"default\":{\"default\":\"#C3F60F\"}},\"backgroundColor\":\"#6A1E7A\"}},\"actions\":{\"actionsOrientation\":\"Vertical\",\"actionAlignment\":\"stretch\"}}",
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.presetTwoPreChatSurveyPaneControlProps = void 0;
7
7
  const presetTwoPreChatSurveyPaneControlProps = {
8
- id: "oc-lcw-prechatsurveypane-preset2",
8
+ id: "lcw-prechat-survey-pane-preset2",
9
9
  dir: "auto",
10
10
  hidePreChatSurveyPane: false,
11
11
  adaptiveCardHostConfig: "{\"fontFamily\":\"Segoe UI, Helvetica Neue, sans-serif\",\"containerStyles\":{\"default\":{\"foregroundColors\":{\"default\":{\"default\":\"#000000\"}},\"backgroundColor\":\"#FFFFFF\"}},\"actions\":{\"actionsOrientation\":\"Vertical\",\"actionAlignment\":\"stretch\"}}",
@@ -4,27 +4,30 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.defaultProactiveChatPaneControlProps = void 0;
7
+
8
+ var _Constants = require("../../../../../common/Constants");
9
+
7
10
  const defaultProactiveChatPaneControlProps = {
8
- id: "oc-lcw-proactivechat",
11
+ id: _Constants.Ids.DefaultProactiveChatPaneId,
9
12
  dir: "ltr",
10
13
  hideProactiveChatPane: false,
11
- proactiveChatPaneAriaLabel: "Proactive Chat Pane",
14
+ proactiveChatPaneAriaLabel: _Constants.AriaLabels.ProactiveChatPane,
12
15
  hideTitle: false,
13
- titleText: "Welcome to",
16
+ titleText: _Constants.Texts.ProactiveChatPaneTitleText,
14
17
  hideSubtitle: false,
15
- subtitleText: "Live chat support!",
18
+ subtitleText: _Constants.Texts.ProactiveChatPaneSubtitleText,
16
19
  hideCloseButton: false,
17
20
  closeButtonProps: {
18
- type: "icon",
19
- iconName: "ChromeClose",
21
+ type: _Constants.ButtonTypes.Icon,
22
+ iconName: _Constants.IconNames.ChromeClose,
20
23
  hideButtonTitle: true
21
24
  },
22
25
  isBodyContainerHorizantal: false,
23
26
  hideBodyTitle: false,
24
- bodyTitleText: "Hi! Have any questions? I am here to help.",
27
+ bodyTitleText: _Constants.Texts.ProactiveChatPaneBodyTitleText,
25
28
  hideStartButton: false,
26
- startButtonText: "Chat Now",
27
- startButtonAriaLabel: "Chat Now",
29
+ startButtonText: _Constants.Texts.ProactiveChatPaneStartButtonText,
30
+ startButtonAriaLabel: _Constants.AriaLabels.ChatNow,
28
31
  onClose: function () {
29
32
  console.log("on close");
30
33
  },
@@ -4,27 +4,30 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.presetOneProactiveChatPaneControlProps = void 0;
7
+
8
+ var _Constants = require("../../../../../common/Constants");
9
+
7
10
  const presetOneProactiveChatPaneControlProps = {
8
- id: "oclcw-incomingproactivechat",
11
+ id: "lcw-incoming-proactive-chat",
9
12
  dir: "ltr",
10
13
  hideProactiveChatPane: false,
11
- proactiveChatPaneAriaLabel: "Proactive Chat Pane",
14
+ proactiveChatPaneAriaLabel: _Constants.AriaLabels.ProactiveChatPane,
12
15
  hideTitle: false,
13
- titleText: "Welcome to",
16
+ titleText: _Constants.Texts.ProactiveChatPaneTitleText,
14
17
  hideSubtitle: false,
15
- subtitleText: "Live chat support!",
18
+ subtitleText: _Constants.Texts.ProactiveChatPaneSubtitleText,
16
19
  hideCloseButton: false,
17
20
  closeButtonProps: {
18
- type: "icon",
19
- iconName: "ChromeClose",
21
+ type: _Constants.ButtonTypes.Icon,
22
+ iconName: _Constants.IconNames.ChromeClose,
20
23
  hideButtonTitle: true
21
24
  },
22
25
  isBodyContainerHorizantal: true,
23
26
  hideBodyTitle: false,
24
- bodyTitleText: "Hi! Have any questions? I am here to help.",
27
+ bodyTitleText: _Constants.Texts.ProactiveChatPaneBodyTitleText,
25
28
  hideStartButton: false,
26
- startButtonText: "Chat Now",
27
- startButtonAriaLabel: "Chat Now",
29
+ startButtonText: _Constants.Texts.ProactiveChatPaneStartButtonText,
30
+ startButtonAriaLabel: _Constants.AriaLabels.ChatNow,
28
31
  onClose: function () {
29
32
  console.log("on close");
30
33
  },
@@ -4,27 +4,30 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.presetThreeProactiveChatPaneControlProps = void 0;
7
+
8
+ var _Constants = require("../../../../../common/Constants");
9
+
7
10
  const presetThreeProactiveChatPaneControlProps = {
8
- id: "oclcw-incomingproactivechat",
11
+ id: "lcw-incoming-proactive-chat",
9
12
  dir: "ltr",
10
13
  hideProactiveChatPane: false,
11
- proactiveChatPaneAriaLabel: "Proactive Chat Pane",
14
+ proactiveChatPaneAriaLabel: _Constants.AriaLabels.ProactiveChatPane,
12
15
  hideTitle: false,
13
- titleText: "Welcome to",
16
+ titleText: _Constants.Texts.ProactiveChatPaneTitleText,
14
17
  hideSubtitle: false,
15
- subtitleText: "Live chat support!",
18
+ subtitleText: _Constants.Texts.ProactiveChatPaneSubtitleText,
16
19
  hideCloseButton: false,
17
20
  closeButtonProps: {
18
- type: "icon",
19
- iconName: "ChromeClose",
21
+ type: _Constants.ButtonTypes.Icon,
22
+ iconName: _Constants.IconNames.ChromeClose,
20
23
  hideButtonTitle: true
21
24
  },
22
25
  isBodyContainerHorizantal: false,
23
26
  hideBodyTitle: false,
24
- bodyTitleText: "Hi! Have any questions? I am here to help.",
27
+ bodyTitleText: _Constants.Texts.ProactiveChatPaneBodyTitleText,
25
28
  hideStartButton: false,
26
- startButtonText: "Chat Now",
27
- startButtonAriaLabel: "Chat Now",
29
+ startButtonText: _Constants.Texts.ProactiveChatPaneStartButtonText,
30
+ startButtonAriaLabel: _Constants.AriaLabels.ChatNow,
28
31
  onClose: function () {
29
32
  console.log("on close");
30
33
  },
@@ -4,21 +4,24 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.presetTwoProactiveChatPaneControlProps = void 0;
7
+
8
+ var _Constants = require("../../../../../common/Constants");
9
+
7
10
  const presetTwoProactiveChatPaneControlProps = {
8
- id: "oclcw-incomingproactivechat",
11
+ id: "lcw-incoming-proactive-chat",
9
12
  dir: "ltr",
10
13
  hideProactiveChatPane: false,
11
- proactiveChatPaneAriaLabel: "Proactive Chat Pane",
14
+ proactiveChatPaneAriaLabel: _Constants.AriaLabels.ProactiveChatPane,
12
15
  hideTitle: true,
13
- titleText: "Welcome to",
16
+ titleText: _Constants.Texts.ProactiveChatPaneTitleText,
14
17
  hideSubtitle: false,
15
- subtitleText: "Live chat support!",
18
+ subtitleText: _Constants.Texts.ProactiveChatPaneSubtitleText,
16
19
  hideCloseButton: false,
17
20
  isBodyContainerHorizantal: true,
18
21
  hideBodyTitle: false,
19
22
  hideStartButton: false,
20
- startButtonText: "Chat Now",
21
- startButtonAriaLabel: "Chat Now",
23
+ startButtonText: _Constants.Texts.ProactiveChatPaneStartButtonText,
24
+ startButtonAriaLabel: _Constants.AriaLabels.ChatNow,
22
25
  onStart: function () {
23
26
  console.log("on start");
24
27
  }
@@ -54,7 +54,7 @@ function ReconnectChatPane(props) {
54
54
  const customEvent = {
55
55
  elementType: _Constants.ElementType.ReconnectChatContinueChatButton,
56
56
  elementId: elementId + "-continueconversationbutton",
57
- eventName: "OnClick"
57
+ eventName: _Constants.EventNames.OnClick
58
58
  };
59
59
 
60
60
  _BroadcastService.BroadcastService.postMessage(customEvent);
@@ -71,7 +71,7 @@ function ReconnectChatPane(props) {
71
71
  const customEvent = {
72
72
  elementType: _Constants.ElementType.ReconnectChatStartNewChatButton,
73
73
  elementId: elementId + "-startnewconversationbutton",
74
- eventName: "OnClick"
74
+ eventName: _Constants.EventNames.OnClick
75
75
  };
76
76
 
77
77
  _BroadcastService.BroadcastService.postMessage(customEvent);
@@ -89,7 +89,7 @@ function ReconnectChatPane(props) {
89
89
  const customEvent = {
90
90
  elementType: _Constants.ElementType.ReconnectChatPane,
91
91
  elementId: elementId,
92
- eventName: "OnEscapeKeyDown"
92
+ eventName: _Constants.EventNames.OnEscapeKeyDown
93
93
  };
94
94
 
95
95
  _BroadcastService.BroadcastService.postMessage(customEvent);
@@ -4,24 +4,27 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.defaultReconnectChatPaneControlProps = void 0;
7
+
8
+ var _Constants = require("../../../../../common/Constants");
9
+
7
10
  const defaultReconnectChatPaneControlProps = {
8
- id: "oc-lcw-reconnectchat-pane",
11
+ id: _Constants.Ids.DefaultReconnectChatPaneId,
9
12
  dir: "ltr",
10
13
  hideReconnectChatPane: false,
11
- reconnectChatPaneAriaLabel: "Reconnect Chat Pane",
14
+ reconnectChatPaneAriaLabel: _Constants.AriaLabels.ReconnectChatPane,
12
15
  hideTitle: false,
13
- titleText: "Previous session detected",
16
+ titleText: _Constants.Texts.ReconnectChatPaneTitleText,
14
17
  hideSubtitle: false,
15
- subtitleText: "We have detected a previous chat session. Would you like to continue with your previous session?",
18
+ subtitleText: _Constants.Texts.ReconnectChatPaneSubtitleText,
16
19
  hideIcon: false,
17
- iconAriaLabel: "Reconnect Chat Pane Icon",
20
+ iconAriaLabel: _Constants.AriaLabels.ReconnectChatPaneIcon,
18
21
  isButtonGroupHorizontal: false,
19
22
  hideContinueChatButton: false,
20
- continueChatButtonText: "Continue conversation",
21
- continueChatButtonAriaLabel: "Continue conversation",
23
+ continueChatButtonText: _Constants.Texts.ReconnectChatPaneContinueChatButtonText,
24
+ continueChatButtonAriaLabel: _Constants.AriaLabels.ContinueConversation,
22
25
  hideStartNewChatButton: false,
23
- startNewChatButtonText: "Start new conversation",
24
- startNewChatButtonAriaLabel: "Start new conversation",
26
+ startNewChatButtonText: _Constants.Texts.ReconnectChatPaneStartNewChatButtonText,
27
+ startNewChatButtonAriaLabel: _Constants.AriaLabels.StartNewConversation,
25
28
  onContinueChat: function () {
26
29
  console.log("on continue conversation");
27
30
  },
@@ -4,24 +4,27 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.presetThreeReconnectChatPaneControlProps = void 0;
7
+
8
+ var _Constants = require("../../../../../common/Constants");
9
+
7
10
  const presetThreeReconnectChatPaneControlProps = {
8
11
  id: "lcw-components-reconnect-chat-pane",
9
12
  dir: "ltr",
10
13
  hideReconnectChatPane: false,
11
- reconnectChatPaneAriaLabel: "Reconnect Chat Pane",
14
+ reconnectChatPaneAriaLabel: _Constants.AriaLabels.ReconnectChatPane,
12
15
  hideTitle: false,
13
- titleText: "Previous session detected",
16
+ titleText: _Constants.Texts.ReconnectChatPaneTitleText,
14
17
  hideSubtitle: true,
15
- subtitleText: "We have detected a previous chat session. Would you like to continue with your previous session?",
18
+ subtitleText: _Constants.Texts.ReconnectChatPaneSubtitleText,
16
19
  hideIcon: false,
17
- iconAriaLabel: "Reconnect Chat Pane Icon",
20
+ iconAriaLabel: _Constants.AriaLabels.ReconnectChatPaneIcon,
18
21
  isButtonGroupHorizontal: false,
19
22
  hideContinueChatButton: false,
20
- continueChatButtonText: "Continue conversation",
21
- continueChatButtonAriaLabel: "Continue conversation",
23
+ continueChatButtonText: _Constants.Texts.ReconnectChatPaneContinueChatButtonText,
24
+ continueChatButtonAriaLabel: _Constants.AriaLabels.ContinueConversation,
22
25
  hideStartNewChatButton: true,
23
- startNewChatButtonText: "Start new conversation",
24
- startNewChatButtonAriaLabel: "Start new conversation",
26
+ startNewChatButtonText: _Constants.Texts.ReconnectChatPaneStartNewChatButtonText,
27
+ startNewChatButtonAriaLabel: _Constants.AriaLabels.StartNewConversation,
25
28
  onContinueChat: function () {
26
29
  console.log("on continue conversation");
27
30
  },
@@ -1,4 +1,4 @@
1
- var _class, _class2;
1
+ var _class, _class2, _class3, _class4, _class5, _class6, _class7, _class8;
2
2
 
3
3
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
4
4
 
@@ -38,4 +38,11 @@ export let ElementType;
38
38
  ElementType["CurrentCallEndCallButton"] = "CurrentCallEndCallButton";
39
39
  ElementType["Utility"] = "Utility";
40
40
  ElementType["Custom"] = "Custom";
41
- })(ElementType || (ElementType = {}));
41
+ })(ElementType || (ElementType = {}));
42
+
43
+ export const Ids = (_class3 = class Ids {}, _defineProperty(_class3, "DefaultCallingContainerId", "lcw-calling-container"), _defineProperty(_class3, "DefaultCurrentCallId", "lcw-current-call-container"), _defineProperty(_class3, "CurrentCallActionGroupId", "lcw-current-call-action-icons"), _defineProperty(_class3, "CurrentCallFooterId", "lcw-current-call-footer"), _defineProperty(_class3, "RemoteVideoTileId", "lcw-remote-video"), _defineProperty(_class3, "SelfVideoTileId", "lcw-self-video"), _defineProperty(_class3, "VideoTileGroupId", "lcw-current-call-body"), _defineProperty(_class3, "EndCallButtonId", "lcw-call-reject-button"), _defineProperty(_class3, "MicButtonId", "lcw-toggle-audio"), _defineProperty(_class3, "VideoButtonId", "lcw-toggle-video"), _defineProperty(_class3, "CallTimerId", "lcw-current-call-timer"), _defineProperty(_class3, "CurrentCallLeftGroupId", "lcw-current-call-left-group"), _defineProperty(_class3, "CurrentCallMiddleGroupId", "lcw-current-call-middle-group"), _defineProperty(_class3, "CurrentCallRightGroupId", "lcw-current-call-right-group"), _defineProperty(_class3, "DefaultIncomingCallId", "lcw-incoming-call"), _defineProperty(_class3, "DeclineCallButtonId", "lcw-call-reject-button"), _defineProperty(_class3, "AudioCallButtonId", "lcw-call-accept-button"), _defineProperty(_class3, "VideoCallButtonId", "lcw-video-call-accept-button"), _defineProperty(_class3, "IncomingCallTitleId", "lcw-incoming-call-message"), _defineProperty(_class3, "DefaultIncomingCallPopupId", "lcw-incoming-call-popup"), _defineProperty(_class3, "IncomingCallLeftGroupId", "lcw-incoming-call-left-group"), _defineProperty(_class3, "IncomingCallMiddleGroupId", "lcw-incoming-call-middle-group"), _defineProperty(_class3, "IncomingCallRightGroupId", "lcw-incoming-call-right-group"), _defineProperty(_class3, "DefaultChatButtonId", "lcw-components-chat-button"), _defineProperty(_class3, "DefaultConfirmationPaneId", "lcw-components-confirmation-pane"), _defineProperty(_class3, "CustomFooterId", "lcw-footer"), _defineProperty(_class3, "DownloadTranscriptButtonId", "lcw-footer-download-transcript-button"), _defineProperty(_class3, "EmailTranscriptButtonId", "lcw-footer-email-transcript-button"), _defineProperty(_class3, "AudioNotificationButtonId", "lcw-footer-audio-notification-button"), _defineProperty(_class3, "DefaultFooterId", "lcw-components-footer"), _defineProperty(_class3, "FooterLeftGroupId", "lcw-footer-left-group"), _defineProperty(_class3, "FooterMiddleGroupId", "lcw-footer-middle-group"), _defineProperty(_class3, "FooterRightGroupId", "lcw-footer-right-group"), _defineProperty(_class3, "DefaultHeaderId", "lcw-header"), _defineProperty(_class3, "MinimizeButtonId", "lcw-header-minimize-button"), _defineProperty(_class3, "CloseButtonId", "lcw-header-close-button"), _defineProperty(_class3, "HeaderIconId", "lcw-header-icon"), _defineProperty(_class3, "HeaderTitleId", "lcw-header-title"), _defineProperty(_class3, "HeaderLeftGroupId", "lcw-header-left-group"), _defineProperty(_class3, "HeaderMiddleGroupId", "lcw-header-middle-group"), _defineProperty(_class3, "HeaderRightGroupId", "lcw-header-right-group"), _defineProperty(_class3, "DefaultInputValidationPaneId", "lcw-email-transcript-dialog-container"), _defineProperty(_class3, "DefaultInputValidationPaneInputId", "lcw-email-transcript-dialog-text-field"), _defineProperty(_class3, "DefaultLoadingPaneId", "lcw-loading-pane"), _defineProperty(_class3, "DefaultOOOHPaneId", "lcw-out-of-office-hours-pane"), _defineProperty(_class3, "DefaultPostChatSurveyPaneId", "lcw-postchat-survey-pane"), _defineProperty(_class3, "DefaultPreChatSurveyPaneId", "lcw-prechat-survey-pane-default"), _defineProperty(_class3, "DefaultProactiveChatPaneId", "lcw-proactive-chat"), _defineProperty(_class3, "DefaultReconnectChatPaneId", "lcw-reconnect-chat-pane"), _class3);
44
+ export const ButtonTypes = (_class4 = class ButtonTypes {}, _defineProperty(_class4, "Icon", "icon"), _defineProperty(_class4, "Text", "text"), _class4);
45
+ export const IconNames = (_class5 = class IconNames {}, _defineProperty(_class5, "DeclineCall", "DeclineCall"), _defineProperty(_class5, "Microphone", "Microphone"), _defineProperty(_class5, "MicOff2", "MicOff2"), _defineProperty(_class5, "Video", "Video"), _defineProperty(_class5, "VideoOff", "VideoOff"), _defineProperty(_class5, "IncomingCall", "IncomingCall"), _defineProperty(_class5, "ChromeClose", "ChromeClose"), _defineProperty(_class5, "Download", "Download"), _defineProperty(_class5, "Mail", "Mail"), _defineProperty(_class5, "Volume3", "Volume3"), _defineProperty(_class5, "Volume0", "Volume0"), _defineProperty(_class5, "ChromeMinimize", "ChromeMinimize"), _class5);
46
+ export const AriaLabels = (_class6 = class AriaLabels {}, _defineProperty(_class6, "EndCall", "End Call"), _defineProperty(_class6, "MicMute", "Mute"), _defineProperty(_class6, "MicUnmute", "Unmute"), _defineProperty(_class6, "VideoTurnCameraOn", "Turn camera on"), _defineProperty(_class6, "VideoTurnCameraOff", "Turn camera off"), _defineProperty(_class6, "IncomingCallArea", "Incoming call area"), _defineProperty(_class6, "RejectCall", "Reject call"), _defineProperty(_class6, "AcceptVoiceCall", "Accept voice call"), _defineProperty(_class6, "AcceptVideoCall", "Accept video Call"), _defineProperty(_class6, "DeclineCall", "Decline Call"), _defineProperty(_class6, "AudioCall", "Audio Call"), _defineProperty(_class6, "VideoCall", "Video Call"), _defineProperty(_class6, "LetsChatWeAreOnline", "Let's chat we are online"), _defineProperty(_class6, "UnreadMessageString", "you have new messages"), _defineProperty(_class6, "Close", "Close"), _defineProperty(_class6, "ConfirmationPaneConfirm", "Close Chat"), _defineProperty(_class6, "ConfirmationPaneCancel", "Cancel. Return to Chat"), _defineProperty(_class6, "DownloadChatTranscript", "Download chat transcript"), _defineProperty(_class6, "EmailTranscript", "Email Transcript"), _defineProperty(_class6, "TurnSoundOff", "Turn sound off"), _defineProperty(_class6, "TurnSoundOn", "Turn sound on"), _defineProperty(_class6, "Minimize", "Minimize"), _defineProperty(_class6, "EmailChatTranscriptPane", "Email Chat Transcript Pane"), _defineProperty(_class6, "InputValidationPaneInput", "Email this chat transcript. This will be sent after your chat ends. Email address text area"), _defineProperty(_class6, "Send", "Send"), _defineProperty(_class6, "Cancel", "Cancel"), _defineProperty(_class6, "ProactiveChatPane", "Proactive Chat Pane"), _defineProperty(_class6, "ChatNow", "Chat Now"), _defineProperty(_class6, "ReconnectChatPane", "Reconnect Chat Pane"), _defineProperty(_class6, "ReconnectChatPaneIcon", "Reconnect Chat Pane Icon"), _defineProperty(_class6, "ContinueConversation", "Continue conversation"), _defineProperty(_class6, "StartNewConversation", "Start new conversation"), _class6);
47
+ export const EventNames = (_class7 = class EventNames {}, _defineProperty(_class7, "OnClick", "OnClick"), _defineProperty(_class7, "OnEscapeKeyDown", "OnEscapeKeyDown"), _defineProperty(_class7, "IncomingCallEnded", "IncomingCallEnded"), _class7);
48
+ export const Texts = (_class8 = class Texts {}, _defineProperty(_class8, "IncomingCallTitle", "Incoming Call"), _defineProperty(_class8, "ChatButtonTitle", "Let's Chat!"), _defineProperty(_class8, "ChatButtonSubtitle", "We're online."), _defineProperty(_class8, "ChatButtonUnreadMessageString", "new messages"), _defineProperty(_class8, "ChatButtonLargeUnreadMessageString", "99+"), _defineProperty(_class8, "CloseButtonText", "Close"), _defineProperty(_class8, "ConfirmationPaneTitle", "Close chat"), _defineProperty(_class8, "ConfirmationPaneSubtitle", "Do you really want to close this chat?"), _defineProperty(_class8, "ConfirmButtonText", "Close"), _defineProperty(_class8, "CancelButtonText", "Cancel"), _defineProperty(_class8, "DownloadChatTranscriptText", "Download chat transcript"), _defineProperty(_class8, "EmailTranscriptText", "Email Transcript"), _defineProperty(_class8, "HeaderIcon", "Chat Icon"), _defineProperty(_class8, "HeaderTitle", "Let's Chat"), _defineProperty(_class8, "MinimizeText", "Minimize"), _defineProperty(_class8, "InputValidationPaneTitleText", "Email this chat transcript"), _defineProperty(_class8, "InputValidationPaneSubtitleText", "This will be sent after your chat ends."), _defineProperty(_class8, "InvalidInputErrorMessageText", "Enter a valid email address."), _defineProperty(_class8, "SendButtonText", "Send"), _defineProperty(_class8, "LoadingPaneTitleText", "Welcome to"), _defineProperty(_class8, "LoadingPaneSubtitleText", "live chat support ..."), _defineProperty(_class8, "LoadingPaneSpinnerText", "Loading ..."), _defineProperty(_class8, "OOOHPaneTitleText", "Thanks for contacting us. You have reached us outside of our operating hours. An agent will respond when we open."), _defineProperty(_class8, "PostChatSurveyPaneTitleText", "Post chat survey pane"), _defineProperty(_class8, "ProactiveChatPaneTitleText", "Welcome to"), _defineProperty(_class8, "ProactiveChatPaneSubtitleText", "Live chat support!"), _defineProperty(_class8, "ProactiveChatPaneBodyTitleText", "Hi! Have any questions? I am here to help."), _defineProperty(_class8, "ProactiveChatPaneStartButtonText", "Chat Now"), _defineProperty(_class8, "ReconnectChatPaneTitleText", "Previous session detected"), _defineProperty(_class8, "ReconnectChatPaneSubtitleText", "We have detected a previous chat session. Would you like to continue with your previous session?"), _defineProperty(_class8, "ReconnectChatPaneContinueChatButtonText", "Continue conversation"), _defineProperty(_class8, "ReconnectChatPaneStartNewChatButtonText", "Start new conversation"), _class8);
@@ -1,5 +1,6 @@
1
+ import { Ids } from "../../../../common/Constants";
1
2
  export const defaultCallingContainerControlProps = {
2
- id: "oc-lcw-callingcontainer",
3
+ id: Ids.DefaultCallingContainerId,
3
4
  dir: "ltr",
4
5
  isIncomingCall: false,
5
6
  hideCallingContainer: false
@@ -4,7 +4,7 @@ import * as React from "react";
4
4
  import { IconButton, Stack } from "@fluentui/react";
5
5
  import { BroadcastService } from "../../../../services/BroadcastService";
6
6
  import CommandButton from "../../../common/commandbutton/CommandButton";
7
- import { ElementType, KeyCodes } from "../../../../common/Constants";
7
+ import { ElementType, EventNames, Ids, KeyCodes } from "../../../../common/Constants";
8
8
  import Timer from "../Timer/Timer";
9
9
  import { defaultCurrentCallProps } from "./common/defaultProps/defaultCurrentCallProps";
10
10
  import { processCustomComponents } from "../../../../common/utils";
@@ -145,7 +145,7 @@ function CurrentCall(props) {
145
145
  const endCallCustomEvent = {
146
146
  elementType: ElementType.CurrentCallEndCallButton,
147
147
  elementId: endCallButtonId,
148
- eventName: "OnClick"
148
+ eventName: EventNames.OnClick
149
149
  };
150
150
  const handleEndCallClick = useCallback(() => {
151
151
  var _props$controlProps62;
@@ -165,7 +165,7 @@ function CurrentCall(props) {
165
165
  const videoOffCustomEvent = {
166
166
  elementType: ElementType.CurrentCallVideoButton,
167
167
  elementId: videoOffButtonId,
168
- eventName: "OnClick"
168
+ eventName: EventNames.OnClick
169
169
  };
170
170
  BroadcastService.postMessage(videoOffCustomEvent);
171
171
  (_props$controlProps65 = props.controlProps) === null || _props$controlProps65 === void 0 ? void 0 : _props$controlProps65.onVideoOffClick();
@@ -182,7 +182,7 @@ function CurrentCall(props) {
182
182
  const micCustomEvent = {
183
183
  elementType: ElementType.CurrentCallMicButton,
184
184
  elementId: micButtonId,
185
- eventName: "OnClick"
185
+ eventName: EventNames.OnClick
186
186
  };
187
187
  BroadcastService.postMessage(micCustomEvent);
188
188
  (_props$controlProps67 = props.controlProps) === null || _props$controlProps67 === void 0 ? void 0 : _props$controlProps67.onMicCallClick();
@@ -244,12 +244,12 @@ function CurrentCall(props) {
244
244
  dir: dir
245
245
  }, /*#__PURE__*/React.createElement(Stack, {
246
246
  horizontal: true,
247
- id: "currentCallLeftGroup",
247
+ id: Ids.CurrentCallLeftGroupId,
248
248
  verticalAlign: "center",
249
249
  tokens: leftGroupStackTokens
250
250
  }, processCustomComponents((_props$controlProps69 = props.controlProps) === null || _props$controlProps69 === void 0 ? void 0 : (_props$controlProps70 = _props$controlProps69.leftGroup) === null || _props$controlProps70 === void 0 ? void 0 : _props$controlProps70.children)), /*#__PURE__*/React.createElement(Stack, {
251
251
  horizontal: true,
252
- id: "currentCallMiddleGroup",
252
+ id: Ids.CurrentCallMiddleGroupId,
253
253
  verticalAlign: "center",
254
254
  tokens: middleGroupStackTokens,
255
255
  dir: dir
@@ -286,7 +286,7 @@ function CurrentCall(props) {
286
286
  customEvent: endCallCustomEvent
287
287
  }))), /*#__PURE__*/React.createElement(Stack, {
288
288
  horizontal: true,
289
- id: "currentCallRightGroup",
289
+ id: Ids.CurrentCallRightGroupId,
290
290
  verticalAlign: "center",
291
291
  tokens: rightGroupStackTokens
292
292
  }, processCustomComponents((_props$controlProps100 = props.controlProps) === null || _props$controlProps100 === void 0 ? void 0 : (_props$controlProps101 = _props$controlProps100.rightGroup) === null || _props$controlProps101 === void 0 ? void 0 : _props$controlProps101.children))));
@@ -1,11 +1,12 @@
1
+ import { AriaLabels, IconNames, ButtonTypes, Ids } from "../../../../../../common/Constants";
1
2
  export const defaultCurrentCallControlProps = {
2
- id: "currentCall-container",
3
+ id: Ids.DefaultCurrentCallId,
3
4
  nonActionIds: {
4
- currentCallActionGroupId: "currentCall-actionicons",
5
- currentCallFooterId: "currentCall-footer",
6
- remoteVideoTileId: "remoteVideo",
7
- selfVideoTileId: "selfVideo",
8
- videoTileGroupId: "currentCall-body"
5
+ currentCallActionGroupId: Ids.CurrentCallActionGroupId,
6
+ currentCallFooterId: Ids.CurrentCallFooterId,
7
+ remoteVideoTileId: Ids.RemoteVideoTileId,
8
+ selfVideoTileId: Ids.SelfVideoTileId,
9
+ videoTileGroupId: Ids.VideoTileGroupId
9
10
  },
10
11
  hideMicButton: false,
11
12
  hideVideoButton: false,
@@ -35,32 +36,32 @@ export const defaultCurrentCallControlProps = {
35
36
  children: []
36
37
  },
37
38
  endCallButtonProps: {
38
- id: "callRejectButton",
39
- type: "icon",
40
- ariaLabel: "End Call",
41
- iconName: "DeclineCall",
39
+ id: Ids.EndCallButtonId,
40
+ type: ButtonTypes.Icon,
41
+ ariaLabel: AriaLabels.EndCall,
42
+ iconName: IconNames.DeclineCall,
42
43
  iconSize: 18
43
44
  },
44
45
  micButtonProps: {
45
- id: "toggleAudio",
46
- type: "icon",
47
- ariaLabel: "Mute",
48
- toggleAriaLabel: "Unmute",
49
- iconName: "Microphone",
50
- toggleIconName: "MicOff2",
46
+ id: Ids.MicButtonId,
47
+ type: ButtonTypes.Icon,
48
+ ariaLabel: AriaLabels.MicMute,
49
+ toggleAriaLabel: AriaLabels.MicUnmute,
50
+ iconName: IconNames.Microphone,
51
+ toggleIconName: IconNames.MicOff2,
51
52
  iconSize: 18
52
53
  },
53
54
  videoButtonProps: {
54
- id: "toggleVideo",
55
- type: "icon",
56
- ariaLabel: "Turn on camera",
57
- toggleAriaLabel: "Turn off camera",
58
- iconName: "Video",
59
- toggleIconName: "VideoOff",
55
+ id: Ids.VideoButtonId,
56
+ type: ButtonTypes.Icon,
57
+ ariaLabel: AriaLabels.VideoTurnCameraOn,
58
+ toggleAriaLabel: AriaLabels.VideoTurnCameraOff,
59
+ iconName: IconNames.Video,
60
+ toggleIconName: IconNames.VideoOff,
60
61
  iconSize: 18
61
62
  },
62
63
  callTimerProps: {
63
- id: "oc-lcw-CurrentCall-timer",
64
+ id: Ids.CallTimerId,
64
65
  showHours: false,
65
66
  timerStyles: {
66
67
  color: "white",
@@ -1,12 +1,13 @@
1
1
  import { CallRejectButtonBase64, VideoOffIconBase64, VideoOnIconBase64, VoiceOffIconBase64, VoiceOnIconBase64 } from "../../../../../../assets/Icons";
2
+ import { AriaLabels, ButtonTypes, Ids } from "../../../../../../common/Constants";
2
3
  export const defaultCurrentCallControlPropsRtl = {
3
- id: "currentCall-container",
4
+ id: Ids.DefaultCurrentCallId,
4
5
  nonActionIds: {
5
- currentCallActionGroupId: "currentCall-actionicons",
6
- currentCallFooterId: "currentCall-footer",
7
- remoteVideoTileId: "remoteVideo",
8
- selfVideoTileId: "selfVideo",
9
- videoTileGroupId: "currentCall-body"
6
+ currentCallActionGroupId: Ids.CurrentCallActionGroupId,
7
+ currentCallFooterId: Ids.CurrentCallFooterId,
8
+ remoteVideoTileId: Ids.RemoteVideoTileId,
9
+ selfVideoTileId: Ids.SelfVideoTileId,
10
+ videoTileGroupId: Ids.VideoTileGroupId
10
11
  },
11
12
  hideMicButton: false,
12
13
  hideVideoButton: false,
@@ -37,9 +38,9 @@ export const defaultCurrentCallControlPropsRtl = {
37
38
  },
38
39
  dir: "rtl",
39
40
  endCallButtonProps: {
40
- id: "callRejectButton",
41
- type: "icon",
42
- ariaLabel: "End Call",
41
+ id: Ids.EndCallButtonId,
42
+ type: ButtonTypes.Icon,
43
+ ariaLabel: AriaLabels.EndCall,
43
44
  imageIconProps: {
44
45
  src: CallRejectButtonBase64,
45
46
  styles: {
@@ -51,10 +52,10 @@ export const defaultCurrentCallControlPropsRtl = {
51
52
  }
52
53
  },
53
54
  micButtonProps: {
54
- id: "toggleAudio",
55
- type: "icon",
56
- ariaLabel: "Mute",
57
- toggleAriaLabel: "Unmute",
55
+ id: Ids.MicButtonId,
56
+ type: ButtonTypes.Icon,
57
+ ariaLabel: AriaLabels.MicMute,
58
+ toggleAriaLabel: AriaLabels.MicUnmute,
58
59
  imageIconProps: {
59
60
  src: VoiceOnIconBase64,
60
61
  styles: {
@@ -76,10 +77,10 @@ export const defaultCurrentCallControlPropsRtl = {
76
77
  iconSize: 18
77
78
  },
78
79
  videoButtonProps: {
79
- id: "toggleVideo",
80
- type: "icon",
81
- ariaLabel: "Turn camera on",
82
- toggleAriaLabel: "Turn camera off",
80
+ id: Ids.VideoButtonId,
81
+ type: ButtonTypes.Icon,
82
+ ariaLabel: AriaLabels.VideoTurnCameraOn,
83
+ toggleAriaLabel: AriaLabels.VideoTurnCameraOff,
83
84
  imageIconProps: {
84
85
  src: VideoOnIconBase64,
85
86
  styles: {
@@ -101,6 +102,6 @@ export const defaultCurrentCallControlPropsRtl = {
101
102
  iconSize: 18
102
103
  },
103
104
  callTimerProps: {
104
- id: "oc-lcw-CurrentCall-timer"
105
+ id: Ids.CallTimerId
105
106
  }
106
107
  };