@azure/communication-react 1.18.0-alpha-202406150014 → 1.18.0-alpha-202406191739

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 (170) hide show
  1. package/dist/communication-react.d.ts +54 -28
  2. package/dist/dist-cjs/communication-react/{ChatMessageComponentAsRichTextEditBox-XMNUmuTx.js → ChatMessageComponentAsRichTextEditBox-HBSSHZ2s.js} +2 -2
  3. package/dist/dist-cjs/communication-react/{ChatMessageComponentAsRichTextEditBox-XMNUmuTx.js.map → ChatMessageComponentAsRichTextEditBox-HBSSHZ2s.js.map} +1 -1
  4. package/dist/dist-cjs/communication-react/{RichTextSendBoxWrapper-BLmR8ku0.js → RichTextSendBoxWrapper-DDN8Weyb.js} +2 -2
  5. package/dist/dist-cjs/communication-react/{RichTextSendBoxWrapper-BLmR8ku0.js.map → RichTextSendBoxWrapper-DDN8Weyb.js.map} +1 -1
  6. package/dist/dist-cjs/communication-react/{index-CzkriUUT.js → index-CAm6Qb1t.js} +638 -197
  7. package/dist/dist-cjs/communication-react/index-CAm6Qb1t.js.map +1 -0
  8. package/dist/dist-cjs/communication-react/index.js +1 -1
  9. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
  10. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
  11. package/dist/dist-esm/calling-component-bindings/src/errorNotificationsSelector.d.ts +22 -0
  12. package/dist/dist-esm/calling-component-bindings/src/errorNotificationsSelector.js +146 -0
  13. package/dist/dist-esm/calling-component-bindings/src/errorNotificationsSelector.js.map +1 -0
  14. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.d.ts +1 -0
  15. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js +7 -1
  16. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js.map +1 -1
  17. package/dist/dist-esm/calling-component-bindings/src/index.d.ts +2 -0
  18. package/dist/dist-esm/calling-component-bindings/src/index.js +2 -0
  19. package/dist/dist-esm/calling-component-bindings/src/index.js.map +1 -1
  20. package/dist/dist-esm/chat-component-bindings/src/handlers/createHandlers.js +2 -1
  21. package/dist/dist-esm/chat-component-bindings/src/handlers/createHandlers.js.map +1 -1
  22. package/dist/dist-esm/react-components/src/components/Attachment/AttachmentCard.js +5 -4
  23. package/dist/dist-esm/react-components/src/components/Attachment/AttachmentCard.js.map +1 -1
  24. package/dist/dist-esm/react-components/src/components/Attachment/AttachmentCardGroup.d.ts +1 -0
  25. package/dist/dist-esm/react-components/src/components/Attachment/AttachmentCardGroup.js +3 -3
  26. package/dist/dist-esm/react-components/src/components/Attachment/AttachmentCardGroup.js.map +1 -1
  27. package/dist/dist-esm/react-components/src/components/Attachment/AttachmentDownloadCards.js +1 -10
  28. package/dist/dist-esm/react-components/src/components/Attachment/AttachmentDownloadCards.js.map +1 -1
  29. package/dist/dist-esm/react-components/src/components/Attachment/AttachmentUploadCards.d.ts +4 -0
  30. package/dist/dist-esm/react-components/src/components/Attachment/AttachmentUploadCards.js +18 -21
  31. package/dist/dist-esm/react-components/src/components/Attachment/AttachmentUploadCards.js.map +1 -1
  32. package/dist/dist-esm/react-components/src/components/ErrorBar.js +1 -1
  33. package/dist/dist-esm/react-components/src/components/ErrorBar.js.map +1 -1
  34. package/dist/dist-esm/react-components/src/components/Notifications.d.ts +23 -28
  35. package/dist/dist-esm/react-components/src/components/Notifications.js +17 -7
  36. package/dist/dist-esm/react-components/src/components/Notifications.js.map +1 -1
  37. package/dist/dist-esm/react-components/src/components/ParticipantList.js +3 -2
  38. package/dist/dist-esm/react-components/src/components/ParticipantList.js.map +1 -1
  39. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/PlaceholderPlugin.d.ts +2 -2
  40. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/PlaceholderPlugin.js +1 -1
  41. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/PlaceholderPlugin.js.map +1 -1
  42. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextEditor.js +16 -29
  43. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextEditor.js.map +1 -1
  44. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBox.js +10 -4
  45. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBox.js.map +1 -1
  46. package/dist/dist-esm/react-components/src/components/SendBox.js +9 -3
  47. package/dist/dist-esm/react-components/src/components/SendBox.js.map +1 -1
  48. package/dist/dist-esm/react-components/src/components/TroubleshootingGuideErrorBar.js +1 -1
  49. package/dist/dist-esm/react-components/src/components/TroubleshootingGuideErrorBar.js.map +1 -1
  50. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoBackgroundEffectsPicker.js +1 -1
  51. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoBackgroundEffectsPicker.js.map +1 -1
  52. package/dist/dist-esm/react-components/src/components/VideoGallery/useVideoTileContextualMenuProps.d.ts +1 -0
  53. package/dist/dist-esm/react-components/src/components/VideoGallery/useVideoTileContextualMenuProps.js +3 -3
  54. package/dist/dist-esm/react-components/src/components/VideoGallery/useVideoTileContextualMenuProps.js.map +1 -1
  55. package/dist/dist-esm/react-components/src/components/VideoGallery.d.ts +2 -0
  56. package/dist/dist-esm/react-components/src/components/VideoGallery.js.map +1 -1
  57. package/dist/dist-esm/react-components/src/components/styles/AttachmentCard.styles.d.ts +1 -1
  58. package/dist/dist-esm/react-components/src/components/styles/AttachmentCard.styles.js +10 -0
  59. package/dist/dist-esm/react-components/src/components/styles/AttachmentCard.styles.js.map +1 -1
  60. package/dist/dist-esm/react-components/src/components/styles/AttachmentCardGroup.styles.d.ts +4 -0
  61. package/dist/dist-esm/react-components/src/components/styles/AttachmentCardGroup.styles.js +8 -0
  62. package/dist/dist-esm/react-components/src/components/styles/AttachmentCardGroup.styles.js.map +1 -1
  63. package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.js +1 -1
  64. package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.js.map +1 -1
  65. package/dist/dist-esm/react-components/src/components/styles/RichTextEditor.styles.js +24 -13
  66. package/dist/dist-esm/react-components/src/components/styles/RichTextEditor.styles.js.map +1 -1
  67. package/dist/dist-esm/react-components/src/components/styles/SendBox.styles.d.ts +4 -0
  68. package/dist/dist-esm/react-components/src/components/styles/SendBox.styles.js +9 -0
  69. package/dist/dist-esm/react-components/src/components/styles/SendBox.styles.js.map +1 -1
  70. package/dist/dist-esm/react-components/src/components/utils.d.ts +32 -1
  71. package/dist/dist-esm/react-components/src/components/utils.js +84 -0
  72. package/dist/dist-esm/react-components/src/components/utils.js.map +1 -1
  73. package/dist/dist-esm/react-components/src/localization/locales/ar-SA/strings.json +170 -3
  74. package/dist/dist-esm/react-components/src/localization/locales/cs-CZ/strings.json +168 -1
  75. package/dist/dist-esm/react-components/src/localization/locales/de-DE/strings.json +170 -3
  76. package/dist/dist-esm/react-components/src/localization/locales/en-GB/strings.json +168 -1
  77. package/dist/dist-esm/react-components/src/localization/locales/en-US/strings.json +2 -23
  78. package/dist/dist-esm/react-components/src/localization/locales/es-ES/strings.json +170 -3
  79. package/dist/dist-esm/react-components/src/localization/locales/fi-FI/strings.json +168 -1
  80. package/dist/dist-esm/react-components/src/localization/locales/fr-FR/strings.json +170 -3
  81. package/dist/dist-esm/react-components/src/localization/locales/he-IL/strings.json +168 -1
  82. package/dist/dist-esm/react-components/src/localization/locales/it-IT/strings.json +170 -3
  83. package/dist/dist-esm/react-components/src/localization/locales/ja-JP/strings.json +168 -1
  84. package/dist/dist-esm/react-components/src/localization/locales/ko-KR/strings.json +168 -1
  85. package/dist/dist-esm/react-components/src/localization/locales/nb-NO/strings.json +168 -1
  86. package/dist/dist-esm/react-components/src/localization/locales/nl-NL/strings.json +168 -1
  87. package/dist/dist-esm/react-components/src/localization/locales/pl-PL/strings.json +168 -1
  88. package/dist/dist-esm/react-components/src/localization/locales/pt-BR/strings.json +170 -3
  89. package/dist/dist-esm/react-components/src/localization/locales/ru-RU/strings.json +168 -1
  90. package/dist/dist-esm/react-components/src/localization/locales/sv-SE/strings.json +170 -3
  91. package/dist/dist-esm/react-components/src/localization/locales/tr-TR/strings.json +170 -3
  92. package/dist/dist-esm/react-components/src/localization/locales/zh-CN/strings.json +170 -3
  93. package/dist/dist-esm/react-components/src/localization/locales/zh-TW/strings.json +170 -3
  94. package/dist/dist-esm/react-components/src/theming/FluentV9ThemeProvider.d.ts +1 -0
  95. package/dist/dist-esm/react-components/src/theming/FluentV9ThemeProvider.js +4 -4
  96. package/dist/dist-esm/react-components/src/theming/FluentV9ThemeProvider.js.map +1 -1
  97. package/dist/dist-esm/react-components/src/theming/themes.js +13 -12
  98. package/dist/dist-esm/react-components/src/theming/themes.js.map +1 -1
  99. package/dist/dist-esm/react-components/src/theming/v9ThemeShim.js +1 -1
  100. package/dist/dist-esm/react-components/src/theming/v9ThemeShim.js.map +1 -1
  101. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js +24 -5
  102. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js.map +1 -1
  103. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.d.ts +20 -0
  104. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.js.map +1 -1
  105. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.d.ts +1 -0
  106. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +8 -0
  107. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js.map +1 -1
  108. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.d.ts +4 -0
  109. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js.map +1 -1
  110. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.d.ts +4 -2
  111. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js +33 -5
  112. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js.map +1 -1
  113. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/usePeoplePane.d.ts +1 -1
  114. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/usePeoplePane.js +68 -4
  115. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/usePeoplePane.js.map +1 -1
  116. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/useVideoEffectsPane.d.ts +3 -2
  117. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/useVideoEffectsPane.js +1 -1
  118. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/useVideoEffectsPane.js.map +1 -1
  119. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js +4 -0
  120. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js.map +1 -1
  121. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.d.ts +3 -2
  122. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.js +5 -3
  123. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.js.map +1 -1
  124. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/HoldPage.js +4 -2
  125. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/HoldPage.js.map +1 -1
  126. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/LobbyPage.js +4 -2
  127. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/LobbyPage.js.map +1 -1
  128. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/TransferPage.js +4 -2
  129. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/TransferPage.js.map +1 -1
  130. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.d.ts +1 -0
  131. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js +6 -0
  132. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js.map +1 -1
  133. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.d.ts +4 -0
  134. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.js.map +1 -1
  135. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.d.ts +1 -0
  136. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js +6 -0
  137. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js.map +1 -1
  138. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js +26 -6
  139. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js.map +1 -1
  140. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/AttachmentUploadButton.js +5 -4
  141. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/AttachmentUploadButton.js.map +1 -1
  142. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.d.ts +1 -0
  143. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.js.map +1 -1
  144. package/dist/dist-esm/react-composites/src/composites/common/VideoEffectsPane.d.ts +3 -2
  145. package/dist/dist-esm/react-composites/src/composites/common/VideoEffectsPane.js +40 -2
  146. package/dist/dist-esm/react-composites/src/composites/common/VideoEffectsPane.js.map +1 -1
  147. package/dist/dist-esm/react-composites/src/composites/localization/locales/ar-SA/strings.json +7 -1
  148. package/dist/dist-esm/react-composites/src/composites/localization/locales/cs-CZ/strings.json +7 -1
  149. package/dist/dist-esm/react-composites/src/composites/localization/locales/de-DE/strings.json +7 -1
  150. package/dist/dist-esm/react-composites/src/composites/localization/locales/en-GB/strings.json +7 -1
  151. package/dist/dist-esm/react-composites/src/composites/localization/locales/en-US/strings.json +6 -1
  152. package/dist/dist-esm/react-composites/src/composites/localization/locales/es-ES/strings.json +7 -1
  153. package/dist/dist-esm/react-composites/src/composites/localization/locales/fi-FI/strings.json +7 -1
  154. package/dist/dist-esm/react-composites/src/composites/localization/locales/fr-FR/strings.json +7 -1
  155. package/dist/dist-esm/react-composites/src/composites/localization/locales/he-IL/strings.json +7 -1
  156. package/dist/dist-esm/react-composites/src/composites/localization/locales/it-IT/strings.json +7 -1
  157. package/dist/dist-esm/react-composites/src/composites/localization/locales/ja-JP/strings.json +7 -1
  158. package/dist/dist-esm/react-composites/src/composites/localization/locales/ko-KR/strings.json +7 -1
  159. package/dist/dist-esm/react-composites/src/composites/localization/locales/nb-NO/strings.json +7 -1
  160. package/dist/dist-esm/react-composites/src/composites/localization/locales/nl-NL/strings.json +7 -1
  161. package/dist/dist-esm/react-composites/src/composites/localization/locales/pl-PL/strings.json +7 -1
  162. package/dist/dist-esm/react-composites/src/composites/localization/locales/pt-BR/strings.json +7 -1
  163. package/dist/dist-esm/react-composites/src/composites/localization/locales/ru-RU/strings.json +7 -1
  164. package/dist/dist-esm/react-composites/src/composites/localization/locales/sv-SE/strings.json +7 -1
  165. package/dist/dist-esm/react-composites/src/composites/localization/locales/tr-TR/strings.json +7 -1
  166. package/dist/dist-esm/react-composites/src/composites/localization/locales/zh-CN/strings.json +7 -1
  167. package/dist/dist-esm/react-composites/src/composites/localization/locales/zh-TW/strings.json +7 -1
  168. package/dist/tsdoc-metadata.json +1 -1
  169. package/package.json +10 -10
  170. package/dist/dist-cjs/communication-react/index-CzkriUUT.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"SendBox.styles.js","sourceRoot":"","sources":["../../../../../../../react-components/src/components/styles/SendBox.styles.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAU,WAAW,EAAS,MAAM,iBAAiB,CAAC;AAE7D;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,aAAa,EAAE,EAA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eAAe,aAAa,WAAW,EAAE;QAEpD,mHAAmH;QACnH,uHAAuH;QACvH,MAAM,EAAE,GAAG,sCAAsC,GAAG,eAAe,KAAK;QAExE,wCAAwC,EAAE;YACxC,MAAM,EAAE,GAAG,qBAAqB,aAAa,iBAAiB,EAAE;YAChE,MAAM,EAAE,GAAG,sCAAsC,GAAG,qBAAqB,KAAK;SAC/E;KACF,CAAC;AACJ,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { IStyle, mergeStyles, Theme } from '@fluentui/react';\n\n/**\n * @private\n */\nexport const suppressIconStyle = {\n iconContainer: { minHeight: '0', minWidth: '0', height: '0', width: '0', margin: '0' },\n icon: { display: 'none' }\n};\n\n/**\n * @private\n */\nexport const sendBoxWrapperStyles = mergeStyles({\n margin: '0.25rem',\n overflow: 'hidden',\n /**\n * margin-top set for all the child components of sendbox except first\n */\n ':not(:first-child)': {\n marginTop: '0.25rem'\n }\n});\n\n/**\n * @private\n */\nexport const sendButtonStyle = mergeStyles({\n height: '2.25rem',\n width: '2.25rem'\n});\n\n/**\n * @private\n */\nexport const sendIconStyle = (props: {\n theme: Theme;\n hasText: boolean;\n /* @conditional-compile-remove(file-sharing-acs) */ hasAttachment: boolean;\n disabled?: boolean;\n hasErrorMessage: boolean;\n customSendIconStyle?: IStyle;\n defaultTextColor?: string;\n}): string => {\n const {\n theme,\n hasText,\n disabled = false,\n /* @conditional-compile-remove(file-sharing-acs) */ hasAttachment,\n hasErrorMessage,\n customSendIconStyle,\n defaultTextColor = theme.palette.neutralTertiary\n } = props;\n const hasNoContent = !hasText && /* @conditional-compile-remove(file-sharing-acs) */ !hasAttachment;\n return mergeStyles(\n editorTextBoxButtonStyle,\n {\n color: disabled || hasErrorMessage || hasNoContent ? defaultTextColor : theme.palette.themePrimary\n },\n customSendIconStyle\n );\n};\n\n/**\n * @private\n */\nexport const editorTextBoxButtonStyle: IStyle = {\n width: '1.25rem',\n height: '1.25rem',\n margin: 'auto'\n};\n\n/**\n * @private\n */\nexport const attachmentUploadCardsStyles = mergeStyles({\n margin: '0 0.25rem 0.25rem 0.25rem',\n overflow: 'auto'\n});\n\n/**\n * @private\n */\nexport const attachmentCardBoxStyle = mergeStyles({\n width: '100%',\n padding: '0.50rem'\n});\n\n/**\n * @private\n */\nexport const defaultSendBoxInactiveBorderThicknessREM = 0.0625;\n/**\n * @private\n */\nexport const defaultSendBoxActiveBorderThicknessREM = 0.125;\n\n/**\n * @private\n */\nexport const borderAndBoxShadowStyle = (props: {\n theme: Theme;\n hasErrorMessage: boolean;\n disabled: boolean;\n}): string => {\n return mergeStyles(borderEditBoxStyle({ ...props, defaultBorderColor: props.theme.palette.neutralSecondary }));\n};\n\n/**\n * @private\n */\nexport const borderEditBoxStyle = (props: {\n theme: Theme;\n defaultBorderColor?: string;\n hasErrorMessage: boolean;\n disabled: boolean;\n}): IStyle => {\n const { theme, hasErrorMessage, disabled, defaultBorderColor } = props;\n const borderColor = hasErrorMessage ? theme.semanticColors.errorText : defaultBorderColor;\n const borderColorActive = hasErrorMessage ? theme.semanticColors.errorText : theme.palette.themePrimary;\n\n const borderThickness = disabled ? 0 : defaultSendBoxInactiveBorderThicknessREM;\n const borderActiveThickness = disabled ? 0 : defaultSendBoxActiveBorderThicknessREM;\n\n return {\n borderRadius: theme.effects.roundedCorner4,\n border: `${borderThickness}rem solid ${borderColor}`,\n\n // The border thickness of the sendbox wrapper changes on hover, to prevent the border thickness change causing the\n // input box to shift we apply a margin to compensate. This margin is then removed on hover when the border is thicker.\n margin: `${defaultSendBoxActiveBorderThicknessREM - borderThickness}rem`,\n\n ':hover, :active, :focus, :focus-within': {\n border: `${borderActiveThickness}rem solid ${borderColorActive}`,\n margin: `${defaultSendBoxActiveBorderThicknessREM - borderActiveThickness}rem`\n }\n };\n};\n"]}
1
+ {"version":3,"file":"SendBox.styles.js","sourceRoot":"","sources":["../../../../../../../react-components/src/components/styles/SendBox.styles.ts"],"names":[],"mappings":"AA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,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC;IAExG,MAAM,eAAe,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,wCAAwC,CAAC;IAChF,MAAM,qBAAqB,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,sCAAsC,CAAC;IAEpF,OAAO;QACL,YAAY,EAAE,KAAK,CAAC,OAAO,CAAC,cAAc;QAC1C,MAAM,EAAE,GAAG,eAAe,aAAa,WAAW,EAAE;QAEpD,mHAAmH;QACnH,uHAAuH;QACvH,MAAM,EAAE,GAAG,sCAAsC,GAAG,eAAe,KAAK;QAExE,wCAAwC,EAAE;YACxC,MAAM,EAAE,GAAG,qBAAqB,aAAa,iBAAiB,EAAE;YAChE,MAAM,EAAE,GAAG,sCAAsC,GAAG,qBAAqB,KAAK;SAC/E;KACF,CAAC;AACJ,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { IStyle, mergeStyles, Theme } from '@fluentui/react';\nimport { makeStyles } from '@fluentui/react-components';\n\n/**\n * @private\n */\nexport const suppressIconStyle = {\n iconContainer: { minHeight: '0', minWidth: '0', height: '0', width: '0', margin: '0' },\n icon: { display: 'none' }\n};\n\n/**\n * @private\n */\nexport const sendBoxWrapperStyles = mergeStyles({\n margin: '0.25rem',\n overflow: 'hidden',\n /**\n * margin-top set for all the child components of sendbox except first\n */\n ':not(:first-child)': {\n marginTop: '0.25rem'\n }\n});\n\n/**\n * @private\n */\nexport const sendButtonStyle = mergeStyles({\n height: '2.25rem',\n width: '2.25rem'\n});\n\n/**\n * @private\n */\nexport const sendIconStyle = (props: {\n theme: Theme;\n hasText: boolean;\n /* @conditional-compile-remove(file-sharing-acs) */ hasAttachment: boolean;\n disabled?: boolean;\n hasErrorMessage: boolean;\n customSendIconStyle?: IStyle;\n defaultTextColor?: string;\n}): string => {\n const {\n theme,\n hasText,\n disabled = false,\n /* @conditional-compile-remove(file-sharing-acs) */ hasAttachment,\n hasErrorMessage,\n customSendIconStyle,\n defaultTextColor = theme.palette.neutralTertiary\n } = props;\n const hasNoContent = !hasText && /* @conditional-compile-remove(file-sharing-acs) */ !hasAttachment;\n return mergeStyles(\n editorTextBoxButtonStyle,\n {\n color: disabled || hasErrorMessage || hasNoContent ? defaultTextColor : theme.palette.themePrimary\n },\n customSendIconStyle\n );\n};\n\n/**\n * @private\n */\nexport const editorTextBoxButtonStyle: IStyle = {\n width: '1.25rem',\n height: '1.25rem',\n margin: 'auto'\n};\n\n/**\n * @private\n */\nexport const attachmentUploadCardsStyles = mergeStyles({\n margin: '0 0.25rem 0.25rem 0.25rem',\n overflow: 'auto'\n});\n\n/**\n * @private\n */\nexport const useV9CustomStyles = makeStyles({\n clearBackground: {\n backgroundColor: 'transparent'\n }\n});\n\n/**\n * @private\n */\nexport const attachmentCardBoxStyle = mergeStyles({\n width: '100%',\n padding: '0.50rem'\n});\n\n/**\n * @private\n */\nexport const defaultSendBoxInactiveBorderThicknessREM = 0.0625;\n/**\n * @private\n */\nexport const defaultSendBoxActiveBorderThicknessREM = 0.125;\n\n/**\n * @private\n */\nexport const borderAndBoxShadowStyle = (props: {\n theme: Theme;\n hasErrorMessage: boolean;\n disabled: boolean;\n}): string => {\n return mergeStyles(borderEditBoxStyle({ ...props, defaultBorderColor: props.theme.palette.neutralSecondary }));\n};\n\n/**\n * @private\n */\nexport const borderEditBoxStyle = (props: {\n theme: Theme;\n defaultBorderColor?: string;\n hasErrorMessage: boolean;\n disabled: boolean;\n}): IStyle => {\n const { theme, hasErrorMessage, disabled, defaultBorderColor } = props;\n const borderColor = hasErrorMessage ? theme.semanticColors.errorText : defaultBorderColor;\n const borderColorActive = hasErrorMessage ? theme.semanticColors.errorText : theme.palette.themePrimary;\n\n const borderThickness = disabled ? 0 : defaultSendBoxInactiveBorderThicknessREM;\n const borderActiveThickness = disabled ? 0 : defaultSendBoxActiveBorderThicknessREM;\n\n return {\n borderRadius: theme.effects.roundedCorner4,\n border: `${borderThickness}rem solid ${borderColor}`,\n\n // The border thickness of the sendbox wrapper changes on hover, to prevent the border thickness change causing the\n // input box to shift we apply a margin to compensate. This margin is then removed on hover when the border is thicker.\n margin: `${defaultSendBoxActiveBorderThicknessREM - borderThickness}rem`,\n\n ':hover, :active, :focus, :focus-within': {\n border: `${borderActiveThickness}rem solid ${borderColorActive}`,\n margin: `${defaultSendBoxActiveBorderThicknessREM - borderActiveThickness}rem`\n }\n };\n};\n"]}
@@ -1,7 +1,7 @@
1
1
  import { IIconProps, MessageBarType } from '@fluentui/react';
2
2
  import { ActiveErrorMessage, ErrorType } from './ErrorBar';
3
3
  import { _SupportedSpokenLanguage } from '../types';
4
- import { NotificationType } from './Notifications';
4
+ import { ActiveNotification, NotificationType } from './Notifications';
5
5
  /**
6
6
  * @private
7
7
  *
@@ -25,6 +25,14 @@ export interface DismissedError {
25
25
  dismissedAt: Date;
26
26
  activeSince?: Date;
27
27
  }
28
+ /**
29
+ * @private
30
+ */
31
+ export interface DismissedNotification {
32
+ type: NotificationType;
33
+ dismissedAt: Date;
34
+ activeSince?: Date;
35
+ }
28
36
  /**
29
37
  * @private
30
38
  * @param dismissedErrors
@@ -41,6 +49,22 @@ export declare const dismissError: (dismissedErrors: DismissedError[], toDismiss
41
49
  * Returns a new Array if and only if contents change, to avoid re-rendering when nothing was dropped.
42
50
  */
43
51
  export declare const dropDismissalsForInactiveErrors: (activeErrorMessages: ActiveErrorMessage[], dismissedErrors: DismissedError[]) => DismissedError[];
52
+ /**
53
+ * @private
54
+ * @param dismissedNotifications
55
+ * @param toDismiss
56
+ * @returns DismissedNotification[]
57
+ * Always returns a new Array so that the state variable is updated, trigerring a render.
58
+ */
59
+ export declare const dismissNotification: (dismissedNotifications: DismissedNotification[], toDismiss: ActiveNotification) => DismissedNotification[];
60
+ /**
61
+ * @private
62
+ * @param activeNotifications
63
+ * @param dismissedNotifications
64
+ * @returns DismissedError[]
65
+ * Returns a new Array if and only if contents change, to avoid re-rendering when nothing was dropped.
66
+ */
67
+ export declare const dropDismissalsForInactiveNotifications: (activeNotifications: ActiveNotification[], dismissedNotifications: DismissedNotification[]) => DismissedNotification[];
44
68
  /**
45
69
  * @private
46
70
  * @param activeErrorMessages
@@ -48,6 +72,13 @@ export declare const dropDismissalsForInactiveErrors: (activeErrorMessages: Acti
48
72
  * @returns ActiveErrorMessage[]
49
73
  */
50
74
  export declare const errorsToShow: (activeErrorMessages: ActiveErrorMessage[], dismissedErrors: DismissedError[], mountTimestamp?: Date) => ActiveErrorMessage[];
75
+ /**
76
+ * @private
77
+ * @param activeNotifications
78
+ * @param dismissedNotifications
79
+ * @returns ActiveNotification[]
80
+ */
81
+ export declare const notificationsToShow: (activeNotifications: ActiveNotification[], dismissedNotifications: DismissedNotification[], mountTimestamp?: Date) => ActiveNotification[];
51
82
  /**
52
83
  * @private
53
84
  * @param errorType
@@ -73,6 +73,61 @@ export const dropDismissalsForInactiveErrors = (activeErrorMessages, dismissedEr
73
73
  }
74
74
  return dismissedErrors;
75
75
  };
76
+ /**
77
+ * @private
78
+ * @param dismissedNotifications
79
+ * @param toDismiss
80
+ * @returns DismissedNotification[]
81
+ * Always returns a new Array so that the state variable is updated, trigerring a render.
82
+ */
83
+ export const dismissNotification = (dismissedNotifications, toDismiss) => {
84
+ var _a;
85
+ const now = new Date(Date.now());
86
+ for (const notification of dismissedNotifications) {
87
+ if (notification.type === toDismiss.type) {
88
+ // Bump the timestamp for latest dismissal of this error to now.
89
+ notification.dismissedAt = now;
90
+ notification.activeSince = toDismiss.timestamp;
91
+ return Array.from(dismissedNotifications);
92
+ }
93
+ }
94
+ const toDismissTimestamp = (_a = toDismiss.timestamp) !== null && _a !== void 0 ? _a : now;
95
+ // Record that this error was dismissed for the first time right now.
96
+ return [
97
+ ...dismissedNotifications,
98
+ {
99
+ type: toDismiss.type,
100
+ // the error time could be sometimes later than the button click time, which cause the dismiss not working
101
+ // so we set the dismiss time to the later one
102
+ dismissedAt: now > toDismissTimestamp ? now : toDismissTimestamp,
103
+ activeSince: toDismiss.timestamp
104
+ }
105
+ ];
106
+ };
107
+ /**
108
+ * @private
109
+ * @param activeNotifications
110
+ * @param dismissedNotifications
111
+ * @returns DismissedError[]
112
+ * Returns a new Array if and only if contents change, to avoid re-rendering when nothing was dropped.
113
+ */
114
+ export const dropDismissalsForInactiveNotifications = (activeNotifications, dismissedNotifications) => {
115
+ const active = new Map();
116
+ for (const message of activeNotifications) {
117
+ active.set(message.type, message);
118
+ }
119
+ // For an error such that:
120
+ // * It was previously active, and dismissed.
121
+ // * It did not have a timestamp associated with it.
122
+ // * It is no longer active.
123
+ //
124
+ // We remove it from dismissals. When it becomes active again next time, it will be shown again on the UI.
125
+ const shouldDeleteDismissal = (dismissed) => dismissed.activeSince === undefined && active.get(dismissed.type) === undefined;
126
+ if (dismissedNotifications.some((dismissed) => shouldDeleteDismissal(dismissed))) {
127
+ return dismissedNotifications.filter((dismissed) => !shouldDeleteDismissal(dismissed));
128
+ }
129
+ return dismissedNotifications;
130
+ };
76
131
  /**
77
132
  * @private
78
133
  * @param activeErrorMessages
@@ -102,6 +157,35 @@ export const errorsToShow = (activeErrorMessages, dismissedErrors, mountTimestam
102
157
  return error.timestamp > dismissal.dismissedAt;
103
158
  });
104
159
  };
160
+ /**
161
+ * @private
162
+ * @param activeNotifications
163
+ * @param dismissedNotifications
164
+ * @returns ActiveNotification[]
165
+ */
166
+ export const notificationsToShow = (activeNotifications, dismissedNotifications, mountTimestamp) => {
167
+ const dismissed = new Map();
168
+ for (const notification of dismissedNotifications) {
169
+ dismissed.set(notification.type, notification);
170
+ }
171
+ return activeNotifications.filter((notification) => {
172
+ if (mountTimestamp && notification.timestamp && mountTimestamp > notification.timestamp) {
173
+ // Notification has a timestamp and it is older than when the component was mounted.
174
+ return false;
175
+ }
176
+ const dismissal = dismissed.get(notification.type);
177
+ if (!dismissal) {
178
+ // This error was never dismissed.
179
+ return true;
180
+ }
181
+ if (!notification.timestamp) {
182
+ // No timestamp associated with the error. In this case, the existence of a dismissal is enough to suppress the error.
183
+ return false;
184
+ }
185
+ // Error has an associated timestamp, so compare with last dismissal.
186
+ return notification.timestamp > dismissal.dismissedAt;
187
+ });
188
+ };
105
189
  /**
106
190
  * @private
107
191
  * @param errorType
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../../react-components/src/components/utils.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAc,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAK7D;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,QAAgB,EAAE,MAAc,EAAU,EAAE;IAC5E,OAAO,QAAQ,CAAC,SAAS,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,OAAO,EAAE,GAAG,CAAC,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;AAC5F,CAAC,CAAC;AAEF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,QAAgB,EAAU,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,CAAC;AAWvF;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,eAAiC,EAAE,SAA6B,EAAoB,EAAE;;IACjH,MAAM,GAAG,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACjC,KAAK,MAAM,KAAK,IAAI,eAAe,EAAE,CAAC;QACpC,IAAI,KAAK,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,EAAE,CAAC;YAClC,gEAAgE;YAChE,KAAK,CAAC,WAAW,GAAG,GAAG,CAAC;YACxB,KAAK,CAAC,WAAW,GAAG,SAAS,CAAC,SAAS,CAAC;YACxC,OA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C;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAA6B,OAAO,CAAC;AAEvE;;GAEG;AACH,MAAM,0BAA0B,GAAG,GAAG,CAAC;AACvC;;;;GAIG;AACH,MAAM,CAAC,MAAM,qCAAqC,GAAG,CAAC,CAAgB,EAAW,EAAE;AACjF,oIAAoI;AACpI,CAAC,CAAC,WAAW,IAAI,CAAC,CAAC,OAAO,KAAK,0BAA0B,IAAI,CAAC,CAAC,KAAK,KAAK,0BAA0B,CAAC;AAEtG;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAI,KAAe,EAAiB,EAAE,CAAC,CAAC,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { IIconProps, MessageBarType } from '@fluentui/react';\nimport { ActiveErrorMessage, ErrorType } from './ErrorBar';\nimport { _SupportedSpokenLanguage } from '../types';\nimport { NotificationType } from './Notifications';\n\n/**\n * @private\n *\n * @param fileName\n * @param length\n * @returns string\n */\nexport const truncatedFileName = (fileName: string, length: number): string => {\n return fileName.substring(0, length).trimEnd() + (fileName.length > length ? '... ' : '');\n};\n\n/**\n * @private\n *\n * @param fileName\n * @returns string\n */\nexport const extension = (fileName: string): string => fileName.split('.').pop() || '';\n\n/**\n * @private\n */\nexport interface DismissedError {\n type: ErrorType;\n dismissedAt: Date;\n activeSince?: Date;\n}\n\n/**\n * @private\n * @param dismissedErrors\n * @param toDismiss\n * @returns DismissedError[]\n * Always returns a new Array so that the state variable is updated, trigerring a render.\n */\nexport const dismissError = (dismissedErrors: DismissedError[], toDismiss: ActiveErrorMessage): DismissedError[] => {\n const now = new Date(Date.now());\n for (const error of dismissedErrors) {\n if (error.type === toDismiss.type) {\n // Bump the timestamp for latest dismissal of this error to now.\n error.dismissedAt = now;\n error.activeSince = toDismiss.timestamp;\n return Array.from(dismissedErrors);\n }\n }\n\n const toDismissTimestamp = toDismiss.timestamp ?? now;\n\n // Record that this error was dismissed for the first time right now.\n return [\n ...dismissedErrors,\n {\n type: toDismiss.type,\n // the error time could be sometimes later than the button click time, which cause the dismiss not working\n // so we set the dismiss time to the later one\n dismissedAt: now > toDismissTimestamp ? now : toDismissTimestamp,\n activeSince: toDismiss.timestamp\n }\n ];\n};\n\n/**\n * @private\n * @param activeErrorMessages\n * @param dismissedErrors\n * @returns DismissedError[]\n * Returns a new Array if and only if contents change, to avoid re-rendering when nothing was dropped.\n */\nexport const dropDismissalsForInactiveErrors = (\n activeErrorMessages: ActiveErrorMessage[],\n dismissedErrors: DismissedError[]\n): DismissedError[] => {\n const active = new Map();\n for (const message of activeErrorMessages) {\n active.set(message.type, message);\n }\n\n // For an error such that:\n // * It was previously active, and dismissed.\n // * It did not have a timestamp associated with it.\n // * It is no longer active.\n //\n // We remove it from dismissals. When it becomes active again next time, it will be shown again on the UI.\n const shouldDeleteDismissal = (dismissed: DismissedError): boolean =>\n dismissed.activeSince === undefined && active.get(dismissed.type) === undefined;\n\n if (dismissedErrors.some((dismissed) => shouldDeleteDismissal(dismissed))) {\n return dismissedErrors.filter((dismissed) => !shouldDeleteDismissal(dismissed));\n }\n return dismissedErrors;\n};\n\n/**\n * @private\n * @param activeErrorMessages\n * @param dismissedErrors\n * @returns ActiveErrorMessage[]\n */\nexport const errorsToShow = (\n activeErrorMessages: ActiveErrorMessage[],\n dismissedErrors: DismissedError[],\n mountTimestamp?: Date\n): ActiveErrorMessage[] => {\n const dismissed: Map<ErrorType, DismissedError> = new Map();\n for (const error of dismissedErrors) {\n dismissed.set(error.type, error);\n }\n\n return activeErrorMessages.filter((error) => {\n if (mountTimestamp && error.timestamp && mountTimestamp > error.timestamp) {\n // Error has a timestamp and it is older than when the component was mounted.\n return false;\n }\n\n const dismissal = dismissed.get(error.type);\n if (!dismissal) {\n // This error was never dismissed.\n return true;\n }\n if (!error.timestamp) {\n // No timestamp associated with the error. In this case, the existence of a dismissal is enough to suppress the error.\n return false;\n }\n // Error has an associated timestamp, so compare with last dismissal.\n return error.timestamp > dismissal.dismissedAt;\n });\n};\n\n/**\n * @private\n * @param errorType\n * @returns MessageBarType\n */\nexport const messageBarType = (errorType: ErrorType): MessageBarType => {\n switch (errorType) {\n case 'callNetworkQualityLow':\n case 'callNoSpeakerFound':\n case 'callNoMicrophoneFound':\n case 'callMicrophoneAccessDenied':\n case 'callMicrophoneAccessDeniedSafari':\n case 'callMicrophoneMutedBySystem':\n case 'callMicrophoneUnmutedBySystem':\n case 'callMacOsMicrophoneAccessDenied':\n case 'callLocalVideoFreeze':\n case 'callCameraAccessDenied':\n case 'callCameraAccessDeniedSafari':\n case 'callCameraAlreadyInUse':\n case 'callVideoStoppedBySystem':\n case 'callVideoRecoveredBySystem':\n case 'callMacOsCameraAccessDenied':\n case 'callMacOsScreenShareAccessDenied':\n case 'startScreenShareGeneric':\n case 'cameraFrozenForRemoteParticipants':\n return MessageBarType.warning;\n default:\n return MessageBarType.error;\n }\n};\n\n/**\n * @private\n * @param errorType\n * @returns IIconProps | undefined\n */\nexport const messageBarIconProps = (errorType: ErrorType): IIconProps | undefined => {\n const iconName = customIconName[errorType];\n return iconName ? { iconName } : undefined;\n};\n\n/**\n * @private\n */\nexport const customIconName: Partial<{ [key in ErrorType]: string }> = {\n callNetworkQualityLow: 'ErrorBarCallNetworkQualityLow',\n callNoSpeakerFound: 'ErrorBarCallNoSpeakerFound',\n callNoMicrophoneFound: 'ErrorBarCallNoMicrophoneFound',\n callMicrophoneAccessDenied: 'ErrorBarCallMicrophoneAccessDenied',\n callMicrophoneAccessDeniedSafari: 'ErrorBarCallMicrophoneAccessDenied',\n callMicrophoneMutedBySystem: 'ErrorBarCallMicrophoneMutedBySystem',\n callMicrophoneUnmutedBySystem: 'ErrorBarCallMicrophoneUnmutedBySystem',\n callMacOsMicrophoneAccessDenied: 'ErrorBarCallMacOsMicrophoneAccessDenied',\n callLocalVideoFreeze: 'ErrorBarCallLocalVideoFreeze',\n callCameraAccessDenied: 'ErrorBarCallCameraAccessDenied',\n callCameraAccessDeniedSafari: 'ErrorBarCallCameraAccessDenied',\n callCameraAlreadyInUse: 'ErrorBarCallCameraAlreadyInUse',\n callVideoStoppedBySystem: 'ErrorBarCallVideoStoppedBySystem',\n callVideoRecoveredBySystem: 'ErrorBarCallVideoRecoveredBySystem',\n callMacOsCameraAccessDenied: 'ErrorBarCallMacOsCameraAccessDenied'\n};\n\n/**\n * @private\n * @param NotificationType\n * @returns IIconProps | undefined\n */\nexport const NotificationIconProps = (notificationType: NotificationType): IIconProps | undefined => {\n const iconName = customNotificationIconName[notificationType];\n return iconName ? { iconName } : undefined;\n};\n\n/**\n * @private\n */\nexport const customNotificationIconName: Partial<{ [key in NotificationType]: string }> = {\n callNetworkQualityLow: 'ErrorBarCallNetworkQualityLow',\n callNoSpeakerFound: 'ErrorBarCallNoSpeakerFound',\n callNoMicrophoneFound: 'ErrorBarCallNoMicrophoneFound',\n callMicrophoneAccessDenied: 'ErrorBarCallMicrophoneAccessDenied',\n callMicrophoneAccessDeniedSafari: 'ErrorBarCallMicrophoneAccessDenied',\n callMicrophoneMutedBySystem: 'ErrorBarCallMicrophoneMutedBySystem',\n callMicrophoneUnmutedBySystem: 'ErrorBarCallMicrophoneUnmutedBySystem',\n callMacOsMicrophoneAccessDenied: 'ErrorBarCallMacOsMicrophoneAccessDenied',\n callLocalVideoFreeze: 'ErrorBarCallLocalVideoFreeze',\n callCameraAccessDenied: 'ErrorBarCallCameraAccessDenied',\n callCameraAccessDeniedSafari: 'ErrorBarCallCameraAccessDenied',\n callCameraAlreadyInUse: 'ErrorBarCallCameraAlreadyInUse',\n callVideoStoppedBySystem: 'ErrorBarCallVideoStoppedBySystem',\n callVideoRecoveredBySystem: 'ErrorBarCallVideoRecoveredBySystem',\n callMacOsCameraAccessDenied: 'ErrorBarCallMacOsCameraAccessDenied'\n};\n\n/**\n * @private\n */\nexport const isValidString = (string: string | undefined): string is string => {\n return !!string && string.length > 0;\n};\n\n/**\n * Chunk an array into rows of a given size.\n * @private\n */\nexport function chunk<T>(options: T[], itemsPerRow: number): T[][] {\n const rows: T[][] = [];\n let currentRow: T[] = [];\n for (const option of options) {\n currentRow.push(option);\n if (currentRow.length === itemsPerRow) {\n rows.push(currentRow);\n currentRow = [];\n }\n }\n if (currentRow.length > 0) {\n rows.push(currentRow);\n }\n return rows;\n}\n\n/**\n * @private\n */\nexport const defaultSpokenLanguage: _SupportedSpokenLanguage = 'en-us';\n\n/**\n * @private\n */\nconst SAFARI_COMPOSITION_KEYCODE = 229;\n/**\n * Determine if the press of the enter key is from a composition session or not (Safari only)\n *\n * @private\n */\nexport const isEnterKeyEventFromCompositionSession = (e: KeyboardEvent): boolean =>\n // Uses KeyCode 229 and which code 229 to determine if the press of the enter key is from a composition session or not (Safari only)\n e.isComposing || e.keyCode === SAFARI_COMPOSITION_KEYCODE || e.which === SAFARI_COMPOSITION_KEYCODE;\n\n/**\n * @private\n */\nexport const nullToUndefined = <T>(value: T | null): T | undefined => (value === null ? undefined : value);\n"]}
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../../react-components/src/components/utils.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAc,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAK7D;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,QAAgB,EAAE,MAAc,EAAU,EAAE;IAC5E,OAAO,QAAQ,CAAC,SAAS,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,OAAO,EAAE,GAAG,CAAC,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;AAC5F,CAAC,CAAC;AAEF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,QAAgB,EAAU,EAA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M,GAAG,CAAC,CAAC;AACvC,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,UAAU,KAAK,CAAI,OAAY,EAAE,WAAmB;IACxD,MAAM,IAAI,GAAU,EAAE,CAAC;IACvB,IAAI,UAAU,GAAQ,EAAE,CAAC;IACzB,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;QAC7B,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACxB,IAAI,UAAU,CAAC,MAAM,KAAK,WAAW,EAAE,CAAC;YACtC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;YACtB,UAAU,GAAG,EAAE,CAAC;QAClB,CAAC;IACH,CAAC;IACD,IAAI,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC1B,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACxB,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAA6B,OAAO,CAAC;AAEvE;;GAEG;AACH,MAAM,0BAA0B,GAAG,GAAG,CAAC;AACvC;;;;GAIG;AACH,MAAM,CAAC,MAAM,qCAAqC,GAAG,CAAC,CAAgB,EAAW,EAAE;AACjF,oIAAoI;AACpI,CAAC,CAAC,WAAW,IAAI,CAAC,CAAC,OAAO,KAAK,0BAA0B,IAAI,CAAC,CAAC,KAAK,KAAK,0BAA0B,CAAC;AAEtG;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAI,KAAe,EAAiB,EAAE,CAAC,CAAC,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { IIconProps, MessageBarType } from '@fluentui/react';\nimport { ActiveErrorMessage, ErrorType } from './ErrorBar';\nimport { _SupportedSpokenLanguage } from '../types';\nimport { ActiveNotification, NotificationType } from './Notifications';\n\n/**\n * @private\n *\n * @param fileName\n * @param length\n * @returns string\n */\nexport const truncatedFileName = (fileName: string, length: number): string => {\n return fileName.substring(0, length).trimEnd() + (fileName.length > length ? '... ' : '');\n};\n\n/**\n * @private\n *\n * @param fileName\n * @returns string\n */\nexport const extension = (fileName: string): string => fileName.split('.').pop() || '';\n\n/**\n * @private\n */\nexport interface DismissedError {\n type: ErrorType;\n dismissedAt: Date;\n activeSince?: Date;\n}\n\n/**\n * @private\n */\nexport interface DismissedNotification {\n type: NotificationType;\n dismissedAt: Date;\n activeSince?: Date;\n}\n\n/**\n * @private\n * @param dismissedErrors\n * @param toDismiss\n * @returns DismissedError[]\n * Always returns a new Array so that the state variable is updated, trigerring a render.\n */\nexport const dismissError = (dismissedErrors: DismissedError[], toDismiss: ActiveErrorMessage): DismissedError[] => {\n const now = new Date(Date.now());\n for (const error of dismissedErrors) {\n if (error.type === toDismiss.type) {\n // Bump the timestamp for latest dismissal of this error to now.\n error.dismissedAt = now;\n error.activeSince = toDismiss.timestamp;\n return Array.from(dismissedErrors);\n }\n }\n\n const toDismissTimestamp = toDismiss.timestamp ?? now;\n\n // Record that this error was dismissed for the first time right now.\n return [\n ...dismissedErrors,\n {\n type: toDismiss.type,\n // the error time could be sometimes later than the button click time, which cause the dismiss not working\n // so we set the dismiss time to the later one\n dismissedAt: now > toDismissTimestamp ? now : toDismissTimestamp,\n activeSince: toDismiss.timestamp\n }\n ];\n};\n\n/**\n * @private\n * @param activeErrorMessages\n * @param dismissedErrors\n * @returns DismissedError[]\n * Returns a new Array if and only if contents change, to avoid re-rendering when nothing was dropped.\n */\nexport const dropDismissalsForInactiveErrors = (\n activeErrorMessages: ActiveErrorMessage[],\n dismissedErrors: DismissedError[]\n): DismissedError[] => {\n const active = new Map();\n for (const message of activeErrorMessages) {\n active.set(message.type, message);\n }\n\n // For an error such that:\n // * It was previously active, and dismissed.\n // * It did not have a timestamp associated with it.\n // * It is no longer active.\n //\n // We remove it from dismissals. When it becomes active again next time, it will be shown again on the UI.\n const shouldDeleteDismissal = (dismissed: DismissedError): boolean =>\n dismissed.activeSince === undefined && active.get(dismissed.type) === undefined;\n\n if (dismissedErrors.some((dismissed) => shouldDeleteDismissal(dismissed))) {\n return dismissedErrors.filter((dismissed) => !shouldDeleteDismissal(dismissed));\n }\n return dismissedErrors;\n};\n\n/**\n * @private\n * @param dismissedNotifications\n * @param toDismiss\n * @returns DismissedNotification[]\n * Always returns a new Array so that the state variable is updated, trigerring a render.\n */\nexport const dismissNotification = (\n dismissedNotifications: DismissedNotification[],\n toDismiss: ActiveNotification\n): DismissedNotification[] => {\n const now = new Date(Date.now());\n for (const notification of dismissedNotifications) {\n if (notification.type === toDismiss.type) {\n // Bump the timestamp for latest dismissal of this error to now.\n notification.dismissedAt = now;\n notification.activeSince = toDismiss.timestamp;\n return Array.from(dismissedNotifications);\n }\n }\n\n const toDismissTimestamp = toDismiss.timestamp ?? now;\n\n // Record that this error was dismissed for the first time right now.\n return [\n ...dismissedNotifications,\n {\n type: toDismiss.type,\n // the error time could be sometimes later than the button click time, which cause the dismiss not working\n // so we set the dismiss time to the later one\n dismissedAt: now > toDismissTimestamp ? now : toDismissTimestamp,\n activeSince: toDismiss.timestamp\n }\n ];\n};\n\n/**\n * @private\n * @param activeNotifications\n * @param dismissedNotifications\n * @returns DismissedError[]\n * Returns a new Array if and only if contents change, to avoid re-rendering when nothing was dropped.\n */\nexport const dropDismissalsForInactiveNotifications = (\n activeNotifications: ActiveNotification[],\n dismissedNotifications: DismissedNotification[]\n): DismissedNotification[] => {\n const active = new Map();\n for (const message of activeNotifications) {\n active.set(message.type, message);\n }\n\n // For an error such that:\n // * It was previously active, and dismissed.\n // * It did not have a timestamp associated with it.\n // * It is no longer active.\n //\n // We remove it from dismissals. When it becomes active again next time, it will be shown again on the UI.\n const shouldDeleteDismissal = (dismissed: DismissedNotification): boolean =>\n dismissed.activeSince === undefined && active.get(dismissed.type) === undefined;\n\n if (dismissedNotifications.some((dismissed) => shouldDeleteDismissal(dismissed))) {\n return dismissedNotifications.filter((dismissed) => !shouldDeleteDismissal(dismissed));\n }\n return dismissedNotifications;\n};\n\n/**\n * @private\n * @param activeErrorMessages\n * @param dismissedErrors\n * @returns ActiveErrorMessage[]\n */\nexport const errorsToShow = (\n activeErrorMessages: ActiveErrorMessage[],\n dismissedErrors: DismissedError[],\n mountTimestamp?: Date\n): ActiveErrorMessage[] => {\n const dismissed: Map<ErrorType, DismissedError> = new Map();\n for (const error of dismissedErrors) {\n dismissed.set(error.type, error);\n }\n\n return activeErrorMessages.filter((error) => {\n if (mountTimestamp && error.timestamp && mountTimestamp > error.timestamp) {\n // Error has a timestamp and it is older than when the component was mounted.\n return false;\n }\n\n const dismissal = dismissed.get(error.type);\n if (!dismissal) {\n // This error was never dismissed.\n return true;\n }\n if (!error.timestamp) {\n // No timestamp associated with the error. In this case, the existence of a dismissal is enough to suppress the error.\n return false;\n }\n // Error has an associated timestamp, so compare with last dismissal.\n return error.timestamp > dismissal.dismissedAt;\n });\n};\n\n/**\n * @private\n * @param activeNotifications\n * @param dismissedNotifications\n * @returns ActiveNotification[]\n */\nexport const notificationsToShow = (\n activeNotifications: ActiveNotification[],\n dismissedNotifications: DismissedNotification[],\n mountTimestamp?: Date\n): ActiveNotification[] => {\n const dismissed: Map<ErrorType, DismissedError> = new Map();\n for (const notification of dismissedNotifications) {\n dismissed.set(notification.type, notification);\n }\n\n return activeNotifications.filter((notification) => {\n if (mountTimestamp && notification.timestamp && mountTimestamp > notification.timestamp) {\n // Notification has a timestamp and it is older than when the component was mounted.\n return false;\n }\n\n const dismissal = dismissed.get(notification.type);\n if (!dismissal) {\n // This error was never dismissed.\n return true;\n }\n if (!notification.timestamp) {\n // No timestamp associated with the error. In this case, the existence of a dismissal is enough to suppress the error.\n return false;\n }\n // Error has an associated timestamp, so compare with last dismissal.\n return notification.timestamp > dismissal.dismissedAt;\n });\n};\n\n/**\n * @private\n * @param errorType\n * @returns MessageBarType\n */\nexport const messageBarType = (errorType: ErrorType): MessageBarType => {\n switch (errorType) {\n case 'callNetworkQualityLow':\n case 'callNoSpeakerFound':\n case 'callNoMicrophoneFound':\n case 'callMicrophoneAccessDenied':\n case 'callMicrophoneAccessDeniedSafari':\n case 'callMicrophoneMutedBySystem':\n case 'callMicrophoneUnmutedBySystem':\n case 'callMacOsMicrophoneAccessDenied':\n case 'callLocalVideoFreeze':\n case 'callCameraAccessDenied':\n case 'callCameraAccessDeniedSafari':\n case 'callCameraAlreadyInUse':\n case 'callVideoStoppedBySystem':\n case 'callVideoRecoveredBySystem':\n case 'callMacOsCameraAccessDenied':\n case 'callMacOsScreenShareAccessDenied':\n case 'startScreenShareGeneric':\n case 'cameraFrozenForRemoteParticipants':\n return MessageBarType.warning;\n default:\n return MessageBarType.error;\n }\n};\n\n/**\n * @private\n * @param errorType\n * @returns IIconProps | undefined\n */\nexport const messageBarIconProps = (errorType: ErrorType): IIconProps | undefined => {\n const iconName = customIconName[errorType];\n return iconName ? { iconName } : undefined;\n};\n\n/**\n * @private\n */\nexport const customIconName: Partial<{ [key in ErrorType]: string }> = {\n callNetworkQualityLow: 'ErrorBarCallNetworkQualityLow',\n callNoSpeakerFound: 'ErrorBarCallNoSpeakerFound',\n callNoMicrophoneFound: 'ErrorBarCallNoMicrophoneFound',\n callMicrophoneAccessDenied: 'ErrorBarCallMicrophoneAccessDenied',\n callMicrophoneAccessDeniedSafari: 'ErrorBarCallMicrophoneAccessDenied',\n callMicrophoneMutedBySystem: 'ErrorBarCallMicrophoneMutedBySystem',\n callMicrophoneUnmutedBySystem: 'ErrorBarCallMicrophoneUnmutedBySystem',\n callMacOsMicrophoneAccessDenied: 'ErrorBarCallMacOsMicrophoneAccessDenied',\n callLocalVideoFreeze: 'ErrorBarCallLocalVideoFreeze',\n callCameraAccessDenied: 'ErrorBarCallCameraAccessDenied',\n callCameraAccessDeniedSafari: 'ErrorBarCallCameraAccessDenied',\n callCameraAlreadyInUse: 'ErrorBarCallCameraAlreadyInUse',\n callVideoStoppedBySystem: 'ErrorBarCallVideoStoppedBySystem',\n callVideoRecoveredBySystem: 'ErrorBarCallVideoRecoveredBySystem',\n callMacOsCameraAccessDenied: 'ErrorBarCallMacOsCameraAccessDenied'\n};\n\n/**\n * @private\n * @param NotificationType\n * @returns IIconProps | undefined\n */\nexport const NotificationIconProps = (notificationType: NotificationType): IIconProps | undefined => {\n const iconName = customNotificationIconName[notificationType];\n return iconName ? { iconName } : undefined;\n};\n\n/**\n * @private\n */\nexport const customNotificationIconName: Partial<{ [key in NotificationType]: string }> = {\n callNetworkQualityLow: 'ErrorBarCallNetworkQualityLow',\n callNoSpeakerFound: 'ErrorBarCallNoSpeakerFound',\n callNoMicrophoneFound: 'ErrorBarCallNoMicrophoneFound',\n callMicrophoneAccessDenied: 'ErrorBarCallMicrophoneAccessDenied',\n callMicrophoneAccessDeniedSafari: 'ErrorBarCallMicrophoneAccessDenied',\n callMicrophoneMutedBySystem: 'ErrorBarCallMicrophoneMutedBySystem',\n callMicrophoneUnmutedBySystem: 'ErrorBarCallMicrophoneUnmutedBySystem',\n callMacOsMicrophoneAccessDenied: 'ErrorBarCallMacOsMicrophoneAccessDenied',\n callLocalVideoFreeze: 'ErrorBarCallLocalVideoFreeze',\n callCameraAccessDenied: 'ErrorBarCallCameraAccessDenied',\n callCameraAccessDeniedSafari: 'ErrorBarCallCameraAccessDenied',\n callCameraAlreadyInUse: 'ErrorBarCallCameraAlreadyInUse',\n callVideoStoppedBySystem: 'ErrorBarCallVideoStoppedBySystem',\n callVideoRecoveredBySystem: 'ErrorBarCallVideoRecoveredBySystem',\n callMacOsCameraAccessDenied: 'ErrorBarCallMacOsCameraAccessDenied'\n};\n\n/**\n * @private\n */\nexport const isValidString = (string: string | undefined): string is string => {\n return !!string && string.length > 0;\n};\n\n/**\n * Chunk an array into rows of a given size.\n * @private\n */\nexport function chunk<T>(options: T[], itemsPerRow: number): T[][] {\n const rows: T[][] = [];\n let currentRow: T[] = [];\n for (const option of options) {\n currentRow.push(option);\n if (currentRow.length === itemsPerRow) {\n rows.push(currentRow);\n currentRow = [];\n }\n }\n if (currentRow.length > 0) {\n rows.push(currentRow);\n }\n return rows;\n}\n\n/**\n * @private\n */\nexport const defaultSpokenLanguage: _SupportedSpokenLanguage = 'en-us';\n\n/**\n * @private\n */\nconst SAFARI_COMPOSITION_KEYCODE = 229;\n/**\n * Determine if the press of the enter key is from a composition session or not (Safari only)\n *\n * @private\n */\nexport const isEnterKeyEventFromCompositionSession = (e: KeyboardEvent): boolean =>\n // Uses KeyCode 229 and which code 229 to determine if the press of the enter key is from a composition session or not (Safari only)\n e.isComposing || e.keyCode === SAFARI_COMPOSITION_KEYCODE || e.which === SAFARI_COMPOSITION_KEYCODE;\n\n/**\n * @private\n */\nexport const nullToUndefined = <T>(value: T | null): T | undefined => (value === null ? undefined : value);\n"]}
@@ -57,7 +57,7 @@
57
57
  "richTextDeleteColumnMenu": "حذف العمود",
58
58
  "richTextDeleteRowMenu": "حذف الصف",
59
59
  "richTextDeleteTableMenu": "حذف الجدول",
60
- "richTextToolbarMoreButtonAriaLabel": "More options",
60
+ "richTextToolbarMoreButtonAriaLabel": "خيارات إضافية",
61
61
  "attachmentMoreMenu": "خيارات إضافية"
62
62
  },
63
63
  "mentionPopover": {
@@ -220,7 +220,7 @@
220
220
  "richTextDeleteColumnMenu": "حذف العمود",
221
221
  "richTextDeleteRowMenu": "حذف الصف",
222
222
  "richTextDeleteTableMenu": "حذف الجدول",
223
- "richTextToolbarMoreButtonAriaLabel": "More options"
223
+ "richTextToolbarMoreButtonAriaLabel": "خيارات إضافية"
224
224
  },
225
225
  "errorBar": {
226
226
  "unableToReachChatService": "أنت غير متصل",
@@ -259,12 +259,167 @@
259
259
  "unableToStartVideoEffect": "يتعذر تطبيق تأثير الفيديو.",
260
260
  "startSpotlightWhileMaxParticipantsAreSpotlighted": "لا يمكن بدء تسليط الضوء على المشاركين (المشاركين) لأنه تم بالفعل تسليط الضوء على الحد الأقصى لعدد المشاركين."
261
261
  },
262
+ "notifications": {
263
+ "unableToReachChatService": {
264
+ "title": "أنت غير متصل.",
265
+ "closeButtonAriaLabel": "إغلاق"
266
+ },
267
+ "accessDenied": {
268
+ "title": "غير قادر على الوصول إلى خدمات الدردشة",
269
+ "message": "الرجاء التحقق من بيانات اعتماد المستخدم المقدمة",
270
+ "closeButtonAriaLabel": "إغلاق"
271
+ },
272
+ "userNotInChatThread": {
273
+ "title": "لم تعد في مؤشر ترابط الدردشة هذا.",
274
+ "closeButtonAriaLabel": "إغلاق"
275
+ },
276
+ "sendMessageNotInChatThread": {
277
+ "title": "فشل إرسال الرسالة",
278
+ "message": "لم تعد مضمناً في هذا ترابط الدردشة هذا",
279
+ "closeButtonAriaLabel": "إغلاق"
280
+ },
281
+ "sendMessageGeneric": {
282
+ "title": "فشل إرسال الرسالة.",
283
+ "closeButtonAriaLabel": "إغلاق"
284
+ },
285
+ "callingNetworkFailure": {
286
+ "title": "مكالمة مزعجة",
287
+ "message": "يبدو أنك غير متصل. الرجاء التحقق من اتصال الشبكة والمحاولة مرة أخرى.",
288
+ "closeButtonAriaLabel": "إغلاق"
289
+ },
290
+ "startVideoGeneric": {
291
+ "title": "فشل بدء الفيديو.",
292
+ "closeButtonAriaLabel": "إغلاق"
293
+ },
294
+ "stopVideoGeneric": {
295
+ "title": "فشل إيقاف الفيديو.",
296
+ "closeButtonAriaLabel": "إغلاق"
297
+ },
298
+ "muteGeneric": {
299
+ "title": "فشل كتم صوت الميكروفون.",
300
+ "closeButtonAriaLabel": "إغلاق"
301
+ },
302
+ "unmuteGeneric": {
303
+ "title": "فشل إلغاء كتم صوت الميكروفون",
304
+ "closeButtonAriaLabel": "إغلاق"
305
+ },
306
+ "speakingWhileMuted": {
307
+ "title": "تم كتم صوتك.",
308
+ "closeButtonAriaLabel": "إغلاق"
309
+ },
310
+ "startScreenShareGeneric": {
311
+ "title": "حدثت مشكلة أثناء بدء مشاركة الشاشة.",
312
+ "closeButtonAriaLabel": "إغلاق"
313
+ },
314
+ "stopScreenShareGeneric": {
315
+ "title": "فشل إيقاف مشاركة الشاشة",
316
+ "closeButtonAriaLabel": "إغلاق"
317
+ },
318
+ "callNetworkQualityLow": {
319
+ "title": "جودة الشبكة مقبولة.",
320
+ "closeButtonAriaLabel": "إغلاق"
321
+ },
322
+ "callNoSpeakerFound": {
323
+ "title": "لم يتم العثور على سماعات أو سماعات رأس",
324
+ "message": "قم بتوصيل جهاز صوت لسماع المكالمة.",
325
+ "closeButtonAriaLabel": "إغلاق"
326
+ },
327
+ "callNoMicrophoneFound": {
328
+ "title": "لم يتم العثور على ميكروفونات",
329
+ "message": "قم بتوصيل جهاز إدخال صوت.",
330
+ "closeButtonAriaLabel": "إغلاق"
331
+ },
332
+ "callMicrophoneAccessDenied": {
333
+ "title": "يتعذر الوصول إلى الميكروفون",
334
+ "message": "انقر فوق التأمين في شريط العناوين لمنح الإذن لصفحة ويب هذه.",
335
+ "closeButtonAriaLabel": "إغلاق"
336
+ },
337
+ "callMicrophoneAccessDeniedSafari": {
338
+ "title": "يتعذر الوصول إلى الميكروفون",
339
+ "message": "قم بتحديث الصفحة للسماح بالأذونات، أو تحقق من إعدادات هذا المستعرض وتحقق من تمكين الأذونات لموقع الويب هذا.",
340
+ "closeButtonAriaLabel": "إغلاق"
341
+ },
342
+ "callMicrophoneMutedBySystem": {
343
+ "title": "تم كتم صوتك بواسطة النظام.",
344
+ "closeButtonAriaLabel": "إغلاق"
345
+ },
346
+ "callMicrophoneUnmutedBySystem": {
347
+ "title": "تم استرداد الميكروفون وتم إلغاء كتم صوتك من قبل النظام.",
348
+ "closeButtonAriaLabel": "إغلاق"
349
+ },
350
+ "callMacOsMicrophoneAccessDenied": {
351
+ "title": "يتعذر الوصول إلى الميكروفون",
352
+ "message": "امنح الميكروفون إذنا في إعدادات خصوصية macOS.",
353
+ "closeButtonAriaLabel": "إغلاق"
354
+ },
355
+ "callLocalVideoFreeze": {
356
+ "title": "النطاق الترددي للشبكة ضعيف.",
357
+ "message": "قد يظهر الفيديو متوقفا مؤقتا للآخرين في المكالمة.",
358
+ "closeButtonAriaLabel": "إغلاق"
359
+ },
360
+ "callCameraAccessDenied": {
361
+ "title": "تعذر الوصول إلى الكاميرا",
362
+ "message": "انقر فوق التأمين في شريط العناوين لمنح الإذن لصفحة ويب هذه.",
363
+ "closeButtonAriaLabel": "إغلاق"
364
+ },
365
+ "callCameraAccessDeniedSafari": {
366
+ "title": "تعذر الوصول إلى الكاميرا",
367
+ "message": "قم بتحديث الصفحة للسماح بالأذونات، أو تحقق من إعدادات هذا المستعرض وتحقق من تمكين الأذونات لموقع الويب هذا.",
368
+ "closeButtonAriaLabel": "إغلاق"
369
+ },
370
+ "callCameraAlreadyInUse": {
371
+ "title": "تعذر الوصول إلى الكاميرا",
372
+ "message": "قد يكون قيد الاستخدام بالفعل بواسطة تطبيق آخر.",
373
+ "closeButtonAriaLabel": "إغلاق"
374
+ },
375
+ "callVideoStoppedBySystem": {
376
+ "title": "تم إيقاف الفيديو الخاص بك من قبل النظام.",
377
+ "closeButtonAriaLabel": "إغلاق"
378
+ },
379
+ "callVideoRecoveredBySystem": {
380
+ "title": "تم استئناف الفيديو الخاص بك.",
381
+ "closeButtonAriaLabel": "إغلاق"
382
+ },
383
+ "callMacOsCameraAccessDenied": {
384
+ "title": "يقوم MacOS بحظر الوصول إلى الكاميرا",
385
+ "message": "قم بتحديث إعدادات الخصوصية للسماح لهذا المستعرض بالوصول إلى الكاميرا.",
386
+ "closeButtonAriaLabel": "إغلاق"
387
+ },
388
+ "callMacOsScreenShareAccessDenied": {
389
+ "title": "يقوم MacOS بحظر مشاركة الشاشة",
390
+ "message": "قم بتحديث إعدادات الخصوصية للسماح لهذا المستعرض بتسجيل الشاشة.",
391
+ "closeButtonAriaLabel": "إغلاق"
392
+ },
393
+ "failedToJoinCallGeneric": {
394
+ "title": "فشل في الانضمام إلى المكالمة.",
395
+ "closeButtonAriaLabel": "إغلاق"
396
+ },
397
+ "failedToJoinCallInvalidMeetingLink": {
398
+ "title": "تعذر الانضمام إلى الاجتماع. ارتباط غير صالح.",
399
+ "closeButtonAriaLabel": "إغلاق"
400
+ },
401
+ "cameraFrozenForRemoteParticipants": {
402
+ "title": "يواجه المستخدمون في المكالمة مشكلات في رؤية الفيديو الخاص بك.",
403
+ "message": "الرجاء التحقق من أجهزتك وشبكتك.",
404
+ "closeButtonAriaLabel": "إغلاق"
405
+ },
406
+ "unableToStartVideoEffect": {
407
+ "title": "يتعذر تطبيق تأثير الفيديو.",
408
+ "closeButtonAriaLabel": "إغلاق"
409
+ },
410
+ "startSpotlightWhileMaxParticipantsAreSpotlighted": {
411
+ "title": "يتعذر بدء تسليط ضوء على المشاركين.",
412
+ "message": "يتم تسليط الضوء على الحد الأقصى لعدد المشاركين بالفعل.",
413
+ "closeButtonAriaLabel": "إغلاق"
414
+ }
415
+ },
262
416
  "videoGallery": {
263
417
  "screenIsBeingSharedMessage": "أنت تشارك شاشتك",
264
418
  "screenShareLoadingMessage": "يتم الآن تحميل شاشة {participant}",
265
419
  "localVideoLabel": "أنت",
266
420
  "localVideoCameraSwitcherLabel": "تبديل الكاميرا",
267
421
  "localVideoMovementLabel": "لوحة فيديو محلية قابلة للنقل",
422
+ "localVideoMovementAriaLabel": "لوحة فيديو محلية قابلة للنقل",
268
423
  "localVideoSelectedDescription": "تم تحديد {cameraName}",
269
424
  "displayNamePlaceholder": "مشارك غير مسمى",
270
425
  "fitRemoteParticipantToFrame": "الملاءمة داخل إطار",
@@ -295,7 +450,8 @@
295
450
  },
296
451
  "videoTile": {
297
452
  "participantStateRinging": "يتم الآن الاتصال...",
298
- "participantStateHold": "قيد الانتظار"
453
+ "participantStateHold": "قيد الانتظار",
454
+ "moreOptionsButtonAriaLabel": "خيارات إضافية"
299
455
  },
300
456
  "CameraAndMicrophoneSitePermissionsRequest": {
301
457
  "primaryText": "السماح {appName} باستخدام الكاميرا والميكروفون لديك",
@@ -415,5 +571,16 @@
415
571
  "verticalGallery": {
416
572
  "leftNavButtonAriaLabel": "الصفحة السابقة",
417
573
  "rightNavButtonAriaLabel": "الصفحة التالية"
574
+ },
575
+ "MeetingConferencePhoneInfo": {
576
+ "meetingConferencePhoneInfoModalTitle": "الانضمام إلى مكالمة من هاتفك",
577
+ "meetingConferencePhoneInfoModalDialIn": "رقم الاتصال",
578
+ "meetingConferencePhoneInfoModalMeetingId": "أدخل معرف الاجتماع",
579
+ "meetingConferencePhoneInfoModalWait": "انتظر حتى يتم القبول من قبل المنظم",
580
+ "meetingConferencePhoneInfoModalNoPhoneAvailable": "لا يتوفر هاتف",
581
+ "meetingConferencePhoneInfoModalTollFree": "{phoneNumber} (رقم مجاني) {country}، {city}",
582
+ "meetingConferencePhoneInfoModalTollFreeWithoutGeoData": "{phoneNumber} (رقم مجاني)",
583
+ "meetingConferencePhoneInfoModalToll": "{country} {phoneNumber} (رقم غير مجاني)، {city}",
584
+ "meetingConferencePhoneInfoModalTollWithoutGeoData": "{phoneNumber} (رقم غير مجاني)"
418
585
  }
419
586
  }