@azure/communication-react 1.11.0-alpha-202312130012 → 1.11.0-alpha-202312150013

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 (100) hide show
  1. package/dist/communication-react.d.ts +200 -1
  2. package/dist/dist-cjs/communication-react/index.js +468 -56
  3. package/dist/dist-cjs/communication-react/index.js.map +1 -1
  4. package/dist/dist-esm/acs-ui-common/src/telemetry.js +2 -2
  5. package/dist/dist-esm/acs-ui-common/src/telemetry.js.map +1 -1
  6. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
  7. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
  8. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.d.ts +2 -0
  9. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js +39 -26
  10. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js.map +1 -1
  11. package/dist/dist-esm/calling-component-bindings/src/participantListSelector.js +0 -1
  12. package/dist/dist-esm/calling-component-bindings/src/participantListSelector.js.map +1 -1
  13. package/dist/dist-esm/calling-component-bindings/src/videoGallerySelector.js.map +1 -1
  14. package/dist/dist-esm/calling-stateful-client/src/Converter.js.map +1 -1
  15. package/dist/dist-esm/calling-stateful-client/src/DeviceManagerDeclarative.d.ts +2 -2
  16. package/dist/dist-esm/calling-stateful-client/src/DeviceManagerDeclarative.js.map +1 -1
  17. package/dist/dist-esm/communication-react/src/index.d.ts +2 -0
  18. package/dist/dist-esm/communication-react/src/index.js.map +1 -1
  19. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsMessageBubble.js +4 -1
  20. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsMessageBubble.js.map +1 -1
  21. package/dist/dist-esm/react-components/src/components/Survey/StarSurvey/StarSurvey.d.ts +64 -0
  22. package/dist/dist-esm/react-components/src/components/Survey/StarSurvey/StarSurvey.js +54 -0
  23. package/dist/dist-esm/react-components/src/components/Survey/StarSurvey/StarSurvey.js.map +1 -0
  24. package/dist/dist-esm/react-components/src/components/Survey/StarSurvey/StarSurvey.styles.d.ts +14 -0
  25. package/dist/dist-esm/react-components/src/components/Survey/StarSurvey/StarSurvey.styles.js +39 -0
  26. package/dist/dist-esm/react-components/src/components/Survey/StarSurvey/StarSurvey.styles.js.map +1 -0
  27. package/dist/dist-esm/react-components/src/components/Survey/SurveyTypes.d.ts +141 -0
  28. package/dist/dist-esm/react-components/src/components/Survey/SurveyTypes.js +4 -0
  29. package/dist/dist-esm/react-components/src/components/Survey/SurveyTypes.js.map +1 -0
  30. package/dist/dist-esm/react-components/src/components/Survey/TagsSurvey/TagsSurvey.d.ts +59 -0
  31. package/dist/dist-esm/react-components/src/components/Survey/TagsSurvey/TagsSurvey.js +81 -0
  32. package/dist/dist-esm/react-components/src/components/Survey/TagsSurvey/TagsSurvey.js.map +1 -0
  33. package/dist/dist-esm/react-components/src/components/Survey/TagsSurvey/TagsSurvey.styles.d.ts +14 -0
  34. package/dist/dist-esm/react-components/src/components/Survey/TagsSurvey/TagsSurvey.styles.js +30 -0
  35. package/dist/dist-esm/react-components/src/components/Survey/TagsSurvey/TagsSurvey.styles.js.map +1 -0
  36. package/dist/dist-esm/react-components/src/components/index.d.ts +5 -0
  37. package/dist/dist-esm/react-components/src/components/index.js +6 -0
  38. package/dist/dist-esm/react-components/src/components/index.js.map +1 -1
  39. package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.d.ts +1 -1
  40. package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.js +13 -9
  41. package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.js.map +1 -1
  42. package/dist/dist-esm/react-components/src/index.d.ts +2 -0
  43. package/dist/dist-esm/react-components/src/index.js.map +1 -1
  44. package/dist/dist-esm/react-components/src/theming/icons.d.ts +2 -0
  45. package/dist/dist-esm/react-components/src/theming/icons.js +7 -1
  46. package/dist/dist-esm/react-components/src/theming/icons.js.map +1 -1
  47. package/dist/dist-esm/react-components/src/types/SurveyIssues.d.ts +45 -0
  48. package/dist/dist-esm/react-components/src/types/SurveyIssues.js +4 -0
  49. package/dist/dist-esm/react-components/src/types/SurveyIssues.js.map +1 -0
  50. package/dist/dist-esm/react-components/src/types/SurveyIssuesHeadingStrings.d.ts +11 -0
  51. package/dist/dist-esm/react-components/src/types/SurveyIssuesHeadingStrings.js +4 -0
  52. package/dist/dist-esm/react-components/src/types/SurveyIssuesHeadingStrings.js.map +1 -0
  53. package/dist/dist-esm/react-components/src/types/index.d.ts +2 -0
  54. package/dist/dist-esm/react-components/src/types/index.js +2 -0
  55. package/dist/dist-esm/react-components/src/types/index.js.map +1 -1
  56. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.d.ts +33 -0
  57. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js +17 -7
  58. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js.map +1 -1
  59. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.d.ts +61 -0
  60. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.js.map +1 -1
  61. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.d.ts +2 -0
  62. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +11 -3
  63. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js.map +1 -1
  64. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.d.ts +7 -0
  65. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js.map +1 -1
  66. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js +12 -1
  67. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js.map +1 -1
  68. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js +4 -0
  69. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js.map +1 -1
  70. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/NoticePage.d.ts +33 -0
  71. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/NoticePage.js +9 -1
  72. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/NoticePage.js.map +1 -1
  73. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.d.ts +33 -0
  74. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js +6 -0
  75. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js.map +1 -1
  76. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.d.ts +2 -0
  77. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js +6 -0
  78. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js.map +1 -1
  79. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.d.ts +7 -0
  80. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.js.map +1 -1
  81. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.d.ts +2 -0
  82. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js +6 -0
  83. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js.map +1 -1
  84. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js +2 -5
  85. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js.map +1 -1
  86. package/dist/dist-esm/react-composites/src/composites/common/StarSurvey.d.ts +6 -0
  87. package/dist/dist-esm/react-composites/src/composites/common/StarSurvey.js +29 -0
  88. package/dist/dist-esm/react-composites/src/composites/common/StarSurvey.js.map +1 -0
  89. package/dist/dist-esm/react-composites/src/composites/common/SurveyPane.d.ts +7 -0
  90. package/dist/dist-esm/react-composites/src/composites/common/SurveyPane.js +23 -0
  91. package/dist/dist-esm/react-composites/src/composites/common/SurveyPane.js.map +1 -0
  92. package/dist/dist-esm/react-composites/src/composites/common/SurveyPaneContent.d.ts +10 -0
  93. package/dist/dist-esm/react-composites/src/composites/common/SurveyPaneContent.js +106 -0
  94. package/dist/dist-esm/react-composites/src/composites/common/SurveyPaneContent.js.map +1 -0
  95. package/dist/dist-esm/react-composites/src/composites/common/TagsSurvey.d.ts +8 -0
  96. package/dist/dist-esm/react-composites/src/composites/common/TagsSurvey.js +22 -0
  97. package/dist/dist-esm/react-composites/src/composites/common/TagsSurvey.js.map +1 -0
  98. package/dist/dist-esm/react-composites/src/composites/common/icons.d.ts +2 -0
  99. package/dist/dist-esm/react-composites/src/composites/localization/locales/en-US/strings.json +59 -0
  100. package/package.json +1 -1
@@ -0,0 +1,141 @@
1
+ /**
2
+ *
3
+ * Represents a call survey rating.
4
+ *
5
+ * @internal
6
+ */
7
+ export declare interface _CallRating<TIssue extends _AudioIssue | _OverallIssue | _ScreenshareIssue | _VideoIssue> {
8
+ /**
9
+ * The rating value should follow rating scale.
10
+ */
11
+ score: number;
12
+ /**
13
+ * Call rating type with issues.
14
+ */
15
+ issues?: TIssue[];
16
+ /**
17
+ * Rating scale default 1-5 rating
18
+ */
19
+ scale?: _RatingScale;
20
+ }
21
+ /**
22
+ * Represents the end of call survey.
23
+ * @internal
24
+ */
25
+ export declare interface _CallSurvey {
26
+ /**
27
+ * Overall call rating with optional overall issues
28
+ */
29
+ overallRating?: _CallRating<_OverallIssue>;
30
+ /**
31
+ * Audio rating with optional audio issues
32
+ */
33
+ audioRating?: _CallRating<_AudioIssue>;
34
+ /**
35
+ * Video rating with optional video issues
36
+ */
37
+ videoRating?: _CallRating<_VideoIssue>;
38
+ /**
39
+ * Screenshare rating with optional screenshare issues
40
+ */
41
+ screenshareRating?: _CallRating<_ScreenshareIssue>;
42
+ }
43
+ /**
44
+ * Represents the end of call survey response.
45
+ * @internal
46
+ */
47
+ export declare interface _CallSurveyResponse extends _CallSurvey {
48
+ /**
49
+ * Uniquely identify the call survey
50
+ */
51
+ readonly id: string;
52
+ /**
53
+ * Uniquely identify the call being served
54
+ */
55
+ readonly callId: string;
56
+ /**
57
+ * The participant submitting the survey
58
+ */
59
+ readonly localParticipantId: string;
60
+ }
61
+ /**
62
+ * Represents the end of call survey call issues.
63
+ * @example
64
+ * CallCannotJoin - participant is unable to join the call.
65
+ * CallCannotInvite - participant is unable to add another participant in the call.
66
+ * HadToRejoin - participant rejoined the call due the call quality issue.
67
+ * CallEndedUnexpectedly - when the call ended unexpectedly.
68
+ * OtherIssues - any other overall call issue not listed here.
69
+ *
70
+ * @internal
71
+ *
72
+ */
73
+ export declare type _OverallIssue = 'CallCannotJoin' | 'CallCannotInvite' | 'HadToRejoin' | 'CallEndedUnexpectedly' | 'OtherIssues';
74
+ /**
75
+ * Represents the end of call survey audio issues.
76
+ * @example
77
+ * NoLocalAudio - other participants unable to hear me.
78
+ * NoRemoteAudio - participant unable to hear another participant's audio.
79
+ * Echo - heard echo.
80
+ * AudioNoise - heard audio noise.
81
+ * LowVolume - call audio volume was low.
82
+ * AudioStoppedUnexpectedly - call audio stopped unexpectedly.
83
+ * DistortedSpeech - audio was distorted.
84
+ * AudioInterruption - audio was interrupted.
85
+ * OtherIssues - any other audio issue not listed here.
86
+ *
87
+ * @internal
88
+ *
89
+ */
90
+ export declare type _AudioIssue = 'NoLocalAudio' | 'NoRemoteAudio' | 'Echo' | 'AudioNoise' | 'LowVolume' | 'AudioStoppedUnexpectedly' | 'DistortedSpeech' | 'AudioInterruption' | 'OtherIssues';
91
+ /**
92
+ * Represents the end of call survey screenshare issues.
93
+ * @example
94
+ * NoContentLocal - other participants unable to see my screen.
95
+ * NoContentRemote - participant unable to saw another participant's screen share.
96
+ * CannotPresent - participant was unable to share the screen.
97
+ * LowQuality - screen share video quality was low.
98
+ * Freezes - screen share freezes.
99
+ * StoppedUnexpectedly - screen share stopped unexpectedly.
100
+ * LargeDelay - watch screen share having large delay.
101
+ * OtherIssues - any other screen share issue not listed here.
102
+ *
103
+ * @internal
104
+ *
105
+ */
106
+ export declare type _ScreenshareIssue = 'NoContentLocal' | 'NoContentRemote' | 'CannotPresent' | 'LowQuality' | 'Freezes' | 'StoppedUnexpectedly' | 'LargeDelay' | 'OtherIssues';
107
+ /**
108
+ * Represents the end of call survey video issues.
109
+ * @example
110
+ * NoVideoReceived - participant unable to saw another participant's video.
111
+ * NoVideoSent - other participants unable to see me.
112
+ * LowQuality - video quality was low.
113
+ * Freezes - video freezes.
114
+ * StoppedUnexpectedly - video stopped unexpectedly.
115
+ * DarkVideoReceived - participant receives dark video.
116
+ * AudioVideoOutOfSync - participant watch video and audio out of sync.
117
+ * OtherIssues - any other video issue not listed here.
118
+ *
119
+ * @internal
120
+ *
121
+ */
122
+ export declare type _VideoIssue = 'NoVideoReceived' | 'NoVideoSent' | 'LowQuality' | 'Freezes' | 'StoppedUnexpectedly' | 'DarkVideoReceived' | 'AudioVideoOutOfSync' | 'OtherIssues';
123
+ /**
124
+ * Rating scale to override the default scale
125
+ * @internal
126
+ */
127
+ export declare interface _RatingScale {
128
+ /**
129
+ * Lower bound of the rating value 0 to 100 (default 1)
130
+ */
131
+ lowerBound: number;
132
+ /**
133
+ * Upper bound of the rating value 0 to 100 (default 5)
134
+ */
135
+ upperBound: number;
136
+ /**
137
+ * The rating value greater than the threshold will be considered as good
138
+ */
139
+ lowScoreThreshold: number;
140
+ }
141
+ //# sourceMappingURL=SurveyTypes.d.ts.map
@@ -0,0 +1,4 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export {};
4
+ //# sourceMappingURL=SurveyTypes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SurveyTypes.js","sourceRoot":"","sources":["../../../../../../../react-components/src/components/Survey/SurveyTypes.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n *\n * Represents a call survey rating.\n *\n * @internal\n */\nexport declare interface _CallRating<TIssue extends _AudioIssue | _OverallIssue | _ScreenshareIssue | _VideoIssue> {\n /**\n * The rating value should follow rating scale.\n */\n score: number;\n /**\n * Call rating type with issues.\n */\n issues?: TIssue[];\n /**\n * Rating scale default 1-5 rating\n */\n scale?: _RatingScale;\n}\n\n/**\n * Represents the end of call survey.\n * @internal\n */\nexport declare interface _CallSurvey {\n /**\n * Overall call rating with optional overall issues\n */\n overallRating?: _CallRating<_OverallIssue>;\n /**\n * Audio rating with optional audio issues\n */\n audioRating?: _CallRating<_AudioIssue>;\n /**\n * Video rating with optional video issues\n */\n videoRating?: _CallRating<_VideoIssue>;\n /**\n * Screenshare rating with optional screenshare issues\n */\n screenshareRating?: _CallRating<_ScreenshareIssue>;\n}\n\n/**\n * Represents the end of call survey response.\n * @internal\n */\nexport declare interface _CallSurveyResponse extends _CallSurvey {\n /**\n * Uniquely identify the call survey\n */\n readonly id: string;\n /**\n * Uniquely identify the call being served\n */\n readonly callId: string;\n /**\n * The participant submitting the survey\n */\n readonly localParticipantId: string;\n}\n\n/**\n * Represents the end of call survey call issues.\n * @example\n * CallCannotJoin - participant is unable to join the call.\n * CallCannotInvite - participant is unable to add another participant in the call.\n * HadToRejoin - participant rejoined the call due the call quality issue.\n * CallEndedUnexpectedly - when the call ended unexpectedly.\n * OtherIssues - any other overall call issue not listed here.\n *\n * @internal\n *\n */\nexport declare type _OverallIssue =\n | 'CallCannotJoin'\n | 'CallCannotInvite'\n | 'HadToRejoin'\n | 'CallEndedUnexpectedly'\n | 'OtherIssues';\n\n/**\n * Represents the end of call survey audio issues.\n * @example\n * NoLocalAudio - other participants unable to hear me.\n * NoRemoteAudio - participant unable to hear another participant's audio.\n * Echo - heard echo.\n * AudioNoise - heard audio noise.\n * LowVolume - call audio volume was low.\n * AudioStoppedUnexpectedly - call audio stopped unexpectedly.\n * DistortedSpeech - audio was distorted.\n * AudioInterruption - audio was interrupted.\n * OtherIssues - any other audio issue not listed here.\n *\n * @internal\n *\n */\nexport declare type _AudioIssue =\n | 'NoLocalAudio'\n | 'NoRemoteAudio'\n | 'Echo'\n | 'AudioNoise'\n | 'LowVolume'\n | 'AudioStoppedUnexpectedly'\n | 'DistortedSpeech'\n | 'AudioInterruption'\n | 'OtherIssues';\n\n/**\n * Represents the end of call survey screenshare issues.\n * @example\n * NoContentLocal - other participants unable to see my screen.\n * NoContentRemote - participant unable to saw another participant's screen share.\n * CannotPresent - participant was unable to share the screen.\n * LowQuality - screen share video quality was low.\n * Freezes - screen share freezes.\n * StoppedUnexpectedly - screen share stopped unexpectedly.\n * LargeDelay - watch screen share having large delay.\n * OtherIssues - any other screen share issue not listed here.\n *\n * @internal\n *\n */\nexport declare type _ScreenshareIssue =\n | 'NoContentLocal'\n | 'NoContentRemote'\n | 'CannotPresent'\n | 'LowQuality'\n | 'Freezes'\n | 'StoppedUnexpectedly'\n | 'LargeDelay'\n | 'OtherIssues';\n\n/**\n * Represents the end of call survey video issues.\n * @example\n * NoVideoReceived - participant unable to saw another participant's video.\n * NoVideoSent - other participants unable to see me.\n * LowQuality - video quality was low.\n * Freezes - video freezes.\n * StoppedUnexpectedly - video stopped unexpectedly.\n * DarkVideoReceived - participant receives dark video.\n * AudioVideoOutOfSync - participant watch video and audio out of sync.\n * OtherIssues - any other video issue not listed here.\n *\n * @internal\n *\n */\nexport declare type _VideoIssue =\n | 'NoVideoReceived'\n | 'NoVideoSent'\n | 'LowQuality'\n | 'Freezes'\n | 'StoppedUnexpectedly'\n | 'DarkVideoReceived'\n | 'AudioVideoOutOfSync'\n | 'OtherIssues';\n\n/**\n * Rating scale to override the default scale\n * @internal\n */\nexport declare interface _RatingScale {\n /**\n * Lower bound of the rating value 0 to 100 (default 1)\n */\n lowerBound: number;\n /**\n * Upper bound of the rating value 0 to 100 (default 5)\n */\n upperBound: number;\n /**\n * The rating value greater than the threshold will be considered as good\n */\n lowScoreThreshold: number;\n}\n"]}
@@ -0,0 +1,59 @@
1
+ /// <reference types="react" />
2
+ import { _AudioIssue, _CallSurvey, _OverallIssue, _ScreenshareIssue, _VideoIssue } from '../SurveyTypes';
3
+ import { SurveyIssuesHeadingStrings, SurveyIssues } from '../../../types';
4
+ /**
5
+ * Strings of {@link TagsSurvey} that can be overridden.
6
+ *
7
+ * @internal
8
+ */
9
+ export interface _TagsSurveyStrings {
10
+ /**
11
+ * Survey question
12
+ */
13
+ tagsSurveyQuestion?: string;
14
+ /**
15
+ * Helper text for tag survey explaining what the survey is for
16
+ */
17
+ tagsSurveyHelperText?: string;
18
+ }
19
+ /**
20
+ * Survey Issue categories
21
+ *
22
+ * @internal
23
+ */
24
+ export type _IssueCategory = 'overallRating' | 'audioRating' | 'videoRating' | 'screenshareRating';
25
+ /**
26
+ * Key value pair of survey catogories and corresponding message/issue
27
+ *
28
+ * @internal
29
+ */
30
+ export type _SurveyTag = {
31
+ [issueCategory: string]: {
32
+ message: string;
33
+ issue: _AudioIssue | _OverallIssue | _ScreenshareIssue | _VideoIssue;
34
+ }[];
35
+ };
36
+ /**
37
+ * Props for {@link TagsSurvey} component.
38
+ *
39
+ * @internal
40
+ */
41
+ export interface _TagsSurveyProps {
42
+ /** Issues included in the survey */
43
+ issues: (_AudioIssue | _OverallIssue | _ScreenshareIssue | _VideoIssue)[];
44
+ /** Mappings from call issues to tags displayed on the survey*/
45
+ callIssuesToTag: SurveyIssues;
46
+ /** Mappings from issue category to categories displayed on survey*/
47
+ categoryHeadings: SurveyIssuesHeadingStrings;
48
+ /** Function to send TagsSurvey results*/
49
+ onConfirm?: (selectedTags: _CallSurvey) => void;
50
+ /** Tags survey strings */
51
+ strings?: _TagsSurveyStrings;
52
+ }
53
+ /**
54
+ * A component to allow users to send numerical ratings regarding call quality
55
+ *
56
+ * @internal
57
+ */
58
+ export declare const _TagsSurvey: (props: _TagsSurveyProps) => JSX.Element;
59
+ //# sourceMappingURL=TagsSurvey.d.ts.map
@@ -0,0 +1,81 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import React, { useMemo, useState } from 'react';
4
+ import { Text, useTheme, Stack, Checkbox, Pivot, PivotItem } from '@fluentui/react';
5
+ import { checkboxClassName, questionTextStyle, helperTextStyle } from './TagsSurvey.styles';
6
+ /**
7
+ * A component to allow users to send numerical ratings regarding call quality
8
+ *
9
+ * @internal
10
+ */
11
+ export const _TagsSurvey = (props) => {
12
+ const { issues, callIssuesToTag, categoryHeadings, onConfirm, strings } = props;
13
+ const [selectedTags, setSelectedTags] = useState({});
14
+ const tags = useMemo(() => {
15
+ const tags = [];
16
+ issues.forEach((issue) => {
17
+ const issueCamelCase = (issue === null || issue === void 0 ? void 0 : issue.charAt(0).toLowerCase()) + (issue === null || issue === void 0 ? void 0 : issue.slice(1));
18
+ const issueCategory = Object.keys(callIssuesToTag).find((key) => callIssuesToTag[key][issueCamelCase] !== undefined);
19
+ if (issueCategory) {
20
+ if (tags[issueCategory]) {
21
+ tags[issueCategory].push({
22
+ message: callIssuesToTag[issueCategory][issueCamelCase],
23
+ issue: issue
24
+ });
25
+ }
26
+ else {
27
+ tags[issueCategory] = [
28
+ {
29
+ message: callIssuesToTag[issueCategory][issueCamelCase],
30
+ issue: issue
31
+ }
32
+ ];
33
+ }
34
+ }
35
+ });
36
+ return tags;
37
+ }, [issues, callIssuesToTag]);
38
+ const onChange = React.useCallback((issue, issueCategory, checked) => {
39
+ if (checked) {
40
+ setSelectedTags((prevState) => {
41
+ if (prevState[issueCategory]) {
42
+ prevState[issueCategory].issues.push(issue);
43
+ }
44
+ else {
45
+ prevState[issueCategory] = { score: 1, issues: [issue] };
46
+ }
47
+ return prevState;
48
+ });
49
+ }
50
+ else {
51
+ setSelectedTags((prevState) => {
52
+ if (prevState[issueCategory]) {
53
+ prevState[issueCategory].issues = prevState[issueCategory].issues.filter(function (value) {
54
+ return value !== issue;
55
+ });
56
+ if (prevState[issueCategory].issues.length === 0) {
57
+ delete prevState[issueCategory];
58
+ }
59
+ }
60
+ return prevState;
61
+ });
62
+ }
63
+ if (onConfirm) {
64
+ onConfirm(selectedTags);
65
+ }
66
+ }, [onConfirm, selectedTags]);
67
+ const theme = useTheme();
68
+ return (React.createElement(React.Fragment, null,
69
+ React.createElement(Stack, { verticalAlign: "center" },
70
+ React.createElement(Text, { className: questionTextStyle(theme) }, strings === null || strings === void 0 ? void 0 : strings.tagsSurveyQuestion),
71
+ React.createElement(Text, { className: helperTextStyle(theme) }, strings === null || strings === void 0 ? void 0 : strings.tagsSurveyHelperText)),
72
+ React.createElement(Pivot, null, Object.keys(tags).map((key, i) => {
73
+ return (React.createElement(PivotItem, { key: `key-${i}`, headerText: categoryHeadings[key], headerButtonProps: {
74
+ 'data-order': i,
75
+ 'data-title': key
76
+ }, alwaysRender: true }, tags[key].map((t, i) => {
77
+ return (React.createElement(Checkbox, { className: checkboxClassName, key: `checkBox_${i}`, label: t.message, onChange: (ev, checked) => onChange(t.issue, key, checked !== null && checked !== void 0 ? checked : false) }));
78
+ })));
79
+ }))));
80
+ };
81
+ //# sourceMappingURL=TagsSurvey.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TagsSurvey.js","sourceRoot":"","sources":["../../../../../../../../react-components/src/components/Survey/TagsSurvey/TagsSurvey.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEpF,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AA+D5F;;;;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AAC;IAEzB,OAAO,CACL;QACE,oBAAC,KAAK,IAAC,aAAa,EAAC,QAAQ;YAC3B,oBAAC,IAAI,IAAC,SAAS,EAAE,iBAAiB,CAAC,KAAK,CAAC,IAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,kBAAkB,CAAQ;YAC/E,oBAAC,IAAI,IAAC,SAAS,EAAE,eAAe,CAAC,KAAK,CAAC,IAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,oBAAoB,CAAQ,CACzE;QAER,oBAAC,KAAK,QACH,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE;YAChC,OAAO,CACL,oBAAC,SAAS,IACR,GAAG,EAAE,OAAO,CAAC,EAAE,EACf,UAAU,EAAE,gBAAgB,CAAC,GAAG,CAAC,EACjC,iBAAiB,EAAE;oBACjB,YAAY,EAAE,CAAC;oBACf,YAAY,EAAE,GAAG;iBAClB,EACD,YAAY,UAEX,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;gBACtB,OAAO,CACL,oBAAC,QAAQ,IACP,SAAS,EAAE,iBAAiB,EAC5B,GAAG,EAAE,YAAY,CAAC,EAAE,EACpB,KAAK,EAAE,CAAC,CAAC,OAAO,EAChB,QAAQ,EAAE,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,EAAE,GAAG,EAAE,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,KAAK,CAAC,GACnE,CACH,CAAC;YACJ,CAAC,CAAC,CACQ,CACb,CAAC;QACJ,CAAC,CAAC,CACI,CACP,CACJ,CAAC;AACJ,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport React, { useMemo, useState } from 'react';\nimport { Text, useTheme, Stack, Checkbox, Pivot, PivotItem } from '@fluentui/react';\nimport { _formatString, _pxToRem } from '@internal/acs-ui-common';\nimport { checkboxClassName, questionTextStyle, helperTextStyle } from './TagsSurvey.styles';\nimport {\n _AudioIssue,\n _CallSurvey,\n _CallSurveyResponse,\n _OverallIssue,\n _ScreenshareIssue,\n _VideoIssue\n} from '../SurveyTypes';\nimport { SurveyIssuesHeadingStrings, SurveyIssues } from '../../../types';\n/**\n * Strings of {@link TagsSurvey} that can be overridden.\n *\n * @internal\n */\nexport interface _TagsSurveyStrings {\n /**\n * Survey question\n */\n tagsSurveyQuestion?: string;\n /**\n * Helper text for tag survey explaining what the survey is for\n */\n tagsSurveyHelperText?: string;\n}\n\n/**\n * Survey Issue categories\n *\n * @internal\n */\nexport type _IssueCategory = 'overallRating' | 'audioRating' | 'videoRating' | 'screenshareRating';\n\n/**\n * Key value pair of survey catogories and corresponding message/issue\n *\n * @internal\n */\nexport type _SurveyTag = {\n [issueCategory: string]: {\n message: string;\n issue: _AudioIssue | _OverallIssue | _ScreenshareIssue | _VideoIssue;\n }[];\n};\n\n/**\n * Props for {@link TagsSurvey} component.\n *\n * @internal\n */\nexport interface _TagsSurveyProps {\n /** Issues included in the survey */\n issues: (_AudioIssue | _OverallIssue | _ScreenshareIssue | _VideoIssue)[];\n /** Mappings from call issues to tags displayed on the survey*/\n callIssuesToTag: SurveyIssues;\n /** Mappings from issue category to categories displayed on survey*/\n categoryHeadings: SurveyIssuesHeadingStrings;\n /** Function to send TagsSurvey results*/\n onConfirm?: (selectedTags: _CallSurvey) => void;\n /** Tags survey strings */\n strings?: _TagsSurveyStrings;\n}\n\n/**\n * A component to allow users to send numerical ratings regarding call quality\n *\n * @internal\n */\nexport const _TagsSurvey = (props: _TagsSurveyProps): JSX.Element => {\n const { issues, callIssuesToTag, categoryHeadings, onConfirm, strings } = props;\n\n const [selectedTags, setSelectedTags] = useState({});\n\n const tags: _SurveyTag[] = useMemo(() => {\n const tags: _SurveyTag[] = [];\n issues.forEach((issue) => {\n const issueCamelCase = issue?.charAt(0).toLowerCase() + issue?.slice(1);\n const issueCategory = Object.keys(callIssuesToTag).find(\n (key) => callIssuesToTag[key][issueCamelCase] !== undefined\n );\n if (issueCategory) {\n if (tags[issueCategory]) {\n tags[issueCategory].push({\n message: callIssuesToTag[issueCategory][issueCamelCase],\n issue: issue\n });\n } else {\n tags[issueCategory] = [\n {\n message: callIssuesToTag[issueCategory][issueCamelCase],\n issue: issue\n }\n ];\n }\n }\n });\n return tags;\n }, [issues, callIssuesToTag]);\n\n const onChange = React.useCallback(\n (issue: string, issueCategory: string, checked: boolean): void => {\n if (checked) {\n setSelectedTags((prevState) => {\n if (prevState[issueCategory]) {\n prevState[issueCategory].issues.push(issue);\n } else {\n prevState[issueCategory] = { score: 1, issues: [issue] };\n }\n return prevState;\n });\n } else {\n setSelectedTags((prevState) => {\n if (prevState[issueCategory]) {\n prevState[issueCategory].issues = prevState[issueCategory].issues.filter(function (value) {\n return value !== issue;\n });\n if (prevState[issueCategory].issues.length === 0) {\n delete prevState[issueCategory];\n }\n }\n return prevState;\n });\n }\n\n if (onConfirm) {\n onConfirm(selectedTags);\n }\n },\n [onConfirm, selectedTags]\n );\n\n const theme = useTheme();\n\n return (\n <>\n <Stack verticalAlign=\"center\">\n <Text className={questionTextStyle(theme)}>{strings?.tagsSurveyQuestion}</Text>\n <Text className={helperTextStyle(theme)}>{strings?.tagsSurveyHelperText}</Text>\n </Stack>\n\n <Pivot>\n {Object.keys(tags).map((key, i) => {\n return (\n <PivotItem\n key={`key-${i}`}\n headerText={categoryHeadings[key]}\n headerButtonProps={{\n 'data-order': i,\n 'data-title': key\n }}\n alwaysRender\n >\n {tags[key].map((t, i) => {\n return (\n <Checkbox\n className={checkboxClassName}\n key={`checkBox_${i}`}\n label={t.message}\n onChange={(ev, checked) => onChange(t.issue, key, checked ?? false)}\n />\n );\n })}\n </PivotItem>\n );\n })}\n </Pivot>\n </>\n );\n};\n"]}
@@ -0,0 +1,14 @@
1
+ import { Theme } from '@fluentui/react';
2
+ /**
3
+ * @private
4
+ */
5
+ export declare const questionTextStyle: (theme: Theme) => string;
6
+ /**
7
+ * @private
8
+ */
9
+ export declare const helperTextStyle: (theme: Theme) => string;
10
+ /**
11
+ * @private
12
+ */
13
+ export declare const checkboxClassName: string;
14
+ //# sourceMappingURL=TagsSurvey.styles.d.ts.map
@@ -0,0 +1,30 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { mergeStyles } from '@fluentui/react';
4
+ import { _pxToRem } from "../../../../../acs-ui-common/src";
5
+ /**
6
+ * @private
7
+ */
8
+ export const questionTextStyle = (theme) => mergeStyles({
9
+ fontWeight: 600,
10
+ fontSize: _pxToRem(14),
11
+ lineHeight: _pxToRem(20),
12
+ color: theme.palette.neutralPrimary,
13
+ paddingTop: _pxToRem(20)
14
+ });
15
+ /**
16
+ * @private
17
+ */
18
+ export const helperTextStyle = (theme) => mergeStyles({
19
+ fontWeight: 400,
20
+ fontSize: _pxToRem(12),
21
+ lineHeight: _pxToRem(16),
22
+ color: theme.palette.neutralPrimary
23
+ });
24
+ /**
25
+ * @private
26
+ */
27
+ export const checkboxClassName = mergeStyles({
28
+ padding: _pxToRem(8)
29
+ });
30
+ //# sourceMappingURL=TagsSurvey.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TagsSurvey.styles.js","sourceRoot":"","sources":["../../../../../../../../react-components/src/components/Survey/TagsSurvey/TagsSurvey.styles.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAS,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,yCAAgC;AAEnD;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,KAAY,EAAU,EAAE,CACxD,WAAW,CAAC;IACV,UAAU,EAAE,GAAG;IACf,QAAQ,EAAE,QAAQ,CAAC,EAAE,CAAC;IACtB,UAAU,EAAE,QAAQ,CAAC,EAAE,CAAC;IACxB,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,cAAc;IACnC,UAAU,EAAE,QAAQ,CAAC,EAAE,CAAC;CACzB,CAAC,CAAC;AAEL;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,KAAY,EAAU,EAAE,CACtD,WAAW,CAAC;IACV,UAAU,EAAE,GAAG;IACf,QAAQ,EAAE,QAAQ,CAAC,EAAE,CAAC;IACtB,UAAU,EAAE,QAAQ,CAAC,EAAE,CAAC;IACxB,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,cAAc;CACpC,CAAC,CAAC;AAEL;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,WAAW,CAAC;IAC3C,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC;CACrB,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { Theme, mergeStyles } from '@fluentui/react';\nimport { _pxToRem } from '@internal/acs-ui-common';\n\n/**\n * @private\n */\nexport const questionTextStyle = (theme: Theme): string =>\n mergeStyles({\n fontWeight: 600,\n fontSize: _pxToRem(14),\n lineHeight: _pxToRem(20),\n color: theme.palette.neutralPrimary,\n paddingTop: _pxToRem(20)\n });\n\n/**\n * @private\n */\nexport const helperTextStyle = (theme: Theme): string =>\n mergeStyles({\n fontWeight: 400,\n fontSize: _pxToRem(12),\n lineHeight: _pxToRem(16),\n color: theme.palette.neutralPrimary\n });\n\n/**\n * @private\n */\nexport const checkboxClassName = mergeStyles({\n padding: _pxToRem(8)\n});\n"]}
@@ -77,6 +77,11 @@ export { _ComplianceBanner } from './ComplianceBanner';
77
77
  export type { _ComplianceBannerProps, _ComplianceBannerStrings } from './ComplianceBanner';
78
78
  export { Dialpad } from './Dialpad/Dialpad';
79
79
  export type { DialpadProps, DialpadStrings, DialpadStyles, DtmfTone } from './Dialpad/Dialpad';
80
+ export { _StarSurvey } from './Survey/StarSurvey/StarSurvey';
81
+ export type { _StarSurveyProps, _StarSurveyStrings } from './Survey/StarSurvey/StarSurvey';
82
+ export * from './Survey/SurveyTypes';
83
+ export { _TagsSurvey } from './Survey/TagsSurvey/TagsSurvey';
84
+ export type { _TagsSurveyProps, _TagsSurveyStrings, _IssueCategory, _SurveyTag } from './Survey/TagsSurvey/TagsSurvey';
80
85
  export { HoldButton } from './HoldButton';
81
86
  export type { HoldButtonProps, HoldButtonStrings } from './HoldButton';
82
87
  export { _LocalVideoTile } from './LocalVideoTile';
@@ -42,6 +42,12 @@ export * from './FileDownloadCards';
42
42
  export { _useContainerHeight, _useContainerWidth } from './utils/responsive';
43
43
  export { _ComplianceBanner } from './ComplianceBanner';
44
44
  export { Dialpad } from './Dialpad/Dialpad';
45
+ /* @conditional-compile-remove(end-of-call-survey) */
46
+ export { _StarSurvey } from './Survey/StarSurvey/StarSurvey';
47
+ /* @conditional-compile-remove(end-of-call-survey) */
48
+ export * from './Survey/SurveyTypes';
49
+ /* @conditional-compile-remove(end-of-call-survey) */
50
+ export { _TagsSurvey } from './Survey/TagsSurvey/TagsSurvey';
45
51
  /* @conditional-compile-remove(PSTN-calls) */
46
52
  export { HoldButton } from './HoldButton';
47
53
  export { _LocalVideoTile } from './LocalVideoTile';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../react-components/src/components/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAGpD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAGtC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG1C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,0CAA0C;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEnD,gDAAgD;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAsB9C,OAAO,EAAE,sBAAs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ator } from './TypingIndicator';\nexport type { TypingIndicatorProps, TypingIndicatorStrings, TypingIndicatorStylesProps } from './TypingIndicator';\n\nexport { ErrorBar } from './ErrorBar';\nexport type { ActiveErrorMessage, ErrorBarProps, ErrorBarStrings, ErrorType } from './ErrorBar';\n\nexport { GridLayout } from './GridLayout';\nexport type { GridLayoutProps, GridLayoutStyles } from './GridLayout';\n\nexport { SendBox } from './SendBox';\n/* @conditional-compile-remove(mention) */\nexport { _MentionPopover } from './MentionPopover';\n\n/* @conditional-compile-remove(image-gallery) */\nexport { ImageGallery } from './ImageGallery';\n/* @conditional-compile-remove(image-gallery) */\nexport type { ImageGalleryStrings } from './ImageGallery';\n\nexport type { SendBoxProps, SendBoxStrings, SendBoxStylesProps } from './SendBox';\n\n/* @conditional-compile-remove(mention) */\nexport type {\n _MentionPopoverProps,\n MentionLookupOptions,\n MentionDisplayOptions,\n MentionOptions,\n Mention,\n MentionPopoverStrings\n} from './MentionPopover';\n\n/* @conditional-compile-remove(image-gallery) */\nexport type { ImageGalleryProps, ImageGalleryImageProps } from './ImageGallery';\n\n/* @conditional-compile-remove(file-sharing) */\nexport type { ActiveFileUpload } from './SendBox';\n\nexport { MessageStatusIndicator } from './MessageStatusIndicator';\nexport type { MessageStatusIndicatorProps, MessageStatusIndicatorStrings } from './MessageStatusIndicator';\n\nexport { MessageThread } from './MessageThread';\nexport type {\n MessageProps,\n MessageThreadProps,\n MessageThreadStrings,\n MessageThreadStyles,\n JumpToNewMessageButtonProps,\n MessageRenderer,\n UpdateMessageCallback,\n CancelEditCallback\n} from './MessageThread';\n\nexport { StreamMedia } from './StreamMedia';\nexport type { StreamMediaProps } from './StreamMedia';\nexport type { LoadingState } from './StreamMedia';\n\nexport { ParticipantItem } from './ParticipantItem';\nexport type { ParticipantItemProps, ParticipantItemStrings, ParticipantItemStyles } from './ParticipantItem';\n\nexport { ParticipantList } from './ParticipantList';\nexport type {\n ParticipantListItemStyles,\n ParticipantListProps,\n ParticipantListStyles,\n ParticipantMenuItemsCallback\n} from './ParticipantList';\n\n/* @conditional-compile-remove(total-participant-count) */\nexport type { ParticipantListStrings } from './ParticipantList';\n\nexport { Announcer } from './Announcer';\nexport type { AnnouncerProps } from './Announcer';\n\nexport { VideoGallery } from './VideoGallery';\nexport type { VideoGalleryProps, VideoGalleryStrings, VideoGalleryStyles, VideoGalleryLayout } from './VideoGallery';\n/* @conditional-compile-remove(pinned-participants) */\nexport type { VideoTileContextualMenuProps, VideoTileDrawerMenuProps } from './VideoGallery';\n/* @conditional-compile-remove(vertical-gallery) */\nexport type { OverflowGalleryPosition } from './VideoGallery';\n/* @conditional-compile-remove(click-to-call) */ /* @conditional-compile-remove(rooms) */\nexport type { LocalVideoTileSize } from './VideoGallery';\nexport type { HorizontalGalleryStyles } from './HorizontalGallery';\n\nexport { LocalVideoCameraCycleButton } from './LocalVideoCameraButton';\nexport type { LocalVideoCameraCycleButtonProps } from './LocalVideoCameraButton';\n\nexport { CameraButton } from './CameraButton';\nexport type {\n CameraButtonContextualMenuStyles,\n CameraButtonProps,\n CameraButtonStrings,\n CameraButtonStyles\n} from './CameraButton';\n\nexport { ControlBar } from './ControlBar';\nexport type { ControlBarProps, ControlBarLayout } from './ControlBar';\n\nexport { ControlBarButton } from './ControlBarButton';\nexport type { ControlBarButtonProps, ControlBarButtonStrings, ControlBarButtonStyles } from './ControlBarButton';\n\nexport { EndCallButton } from './EndCallButton';\nexport type { EndCallButtonProps, EndCallButtonStrings } from './EndCallButton';\n\nexport { MicrophoneButton } from './MicrophoneButton';\nexport type {\n MicrophoneButtonStyles,\n MicrophoneButtonContextualMenuStyles,\n MicrophoneButtonProps,\n MicrophoneButtonStrings\n} from './MicrophoneButton';\n\nexport { DevicesButton, generateDefaultDeviceMenuProps as _generateDefaultDeviceMenuProps } from './DevicesButton';\nexport type {\n OptionsDevice,\n DevicesButtonProps,\n DevicesButtonStrings,\n DevicesButtonStyles,\n DevicesButtonContextualMenuStyles,\n DeviceMenuProps as _DeviceMenuProps,\n DeviceMenuStrings as _DeviceMenuStrings,\n DeviceMenuStyles as _DeviceMenuStyles\n} from './DevicesButton';\n\n/* @conditional-compile-remove(call-readiness) */\nexport {\n CameraAndMicrophoneSitePermissions,\n MicrophoneSitePermissions,\n CameraSitePermissions\n} from './DevicePermissions/SitePermissions';\n/* @conditional-compile-remove(call-readiness) */\nexport type { SitePermissionsStrings, SitePermissionsStyles } from './DevicePermissions/SitePermissionsScaffolding';\n/* @conditional-compile-remove(call-readiness) */\nexport type {\n CameraAndMicrophoneSitePermissionsStrings,\n CameraAndMicrophoneSitePermissionsProps,\n CameraSitePermissionsStrings,\n CameraSitePermissionsProps,\n CommonSitePermissionsProps,\n MicrophoneSitePermissionsStrings,\n MicrophoneSitePermissionsProps\n} from './DevicePermissions/SitePermissions';\n/* @conditional-compile-remove(call-readiness) */\nexport { BrowserPermissionDenied } from './DevicePermissions/BrowserPermissionDenied';\n/* @conditional-compile-remove(call-readiness) */\nexport type {\n BrowserPermissionDeniedStrings,\n BrowserPermissionDeniedStyles,\n BrowserPermissionDeniedProps\n} from './DevicePermissions/BrowserPermissionDenied';\n/* @conditional-compile-remove(call-readiness) */\nexport { BrowserPermissionDeniedIOS } from './DevicePermissions/BrowserPermissionDeniedIOS';\n/* @conditional-compile-remove(call-readiness) */\nexport type {\n BrowserPermissionDeniedIOSStrings,\n BrowserPermissionDeniedIOSProps\n} from './DevicePermissions/BrowserPermissionDeniedIOS';\n\nexport { ParticipantsButton } from './ParticipantsButton';\nexport type {\n ParticipantsButtonContextualMenuStyles,\n ParticipantsButtonProps,\n ParticipantsButtonStrings,\n ParticipantsButtonStyles\n} from './ParticipantsButton';\n\nexport { ScreenShareButton } from './ScreenShareButton';\nexport type { ScreenShareButtonProps, ScreenShareButtonStrings } from './ScreenShareButton';\n\n/* @conditional-compile-remove(raise-hand) */\nexport { RaiseHandButton } from './RaiseHandButton';\n/* @conditional-compile-remove(raise-hand) */\nexport type { RaiseHandButtonProps, RaiseHandButtonStrings } from './RaiseHandButton';\n\nexport { VideoTile } from './VideoTile';\nexport type { VideoTileProps, VideoTileStylesProps } from './VideoTile';\n/* @conditional-compile-remove(PSTN-calls) */\nexport type { VideoTileStrings } from './VideoTile';\n\nexport { _PictureInPictureInPicture } from './PictureInPictureInPicture/PictureInPictureInPicture';\nexport type {\n _PictureInPictureInPictureProps,\n _PictureInPictureInPictureStrings\n} from './PictureInPictureInPicture/PictureInPictureInPicture';\nexport type {\n _PictureInPictureInPictureTileProps,\n _TileOrientation\n} from './PictureInPictureInPicture/PictureInPictureInPictureTile';\n\nexport * from './Drawer';\n/* @conditional-compile-remove(file-sharing) */\nexport type { SendBoxErrorBarError } from './SendBoxErrorBar';\nexport * from './FileCard';\nexport * from './FileCardGroup';\nexport * from './ModalClone/ModalClone';\nexport * from './FileDownloadCards';\nexport type { _FileUploadCardsStrings } from './FileUploadCards';\n\nexport { _useContainerHeight, _useContainerWidth } from './utils/responsive';\n\nexport { _ComplianceBanner } from './ComplianceBanner';\nexport type { _ComplianceBannerProps, _ComplianceBannerStrings } from './ComplianceBanner';\nexport { Dialpad } from './Dialpad/Dialpad';\nexport type { DialpadProps, DialpadStrings, DialpadStyles, DtmfTone } from './Dialpad/Dialpad';\n\n/* @conditional-compile-remove(PSTN-calls) */\nexport { HoldButton } from './HoldButton';\n/* @conditional-compile-remove(PSTN-calls) */\nexport type { HoldButtonProps, HoldButtonStrings } from './HoldButton';\n\nexport { _LocalVideoTile } from './LocalVideoTile';\nexport { _RemoteVideoTile } from './RemoteVideoTile';\nexport { _HighContrastAwareIcon } from './HighContrastAwareIcon';\nexport type { _HighContrastAwareIconProps } from './HighContrastAwareIcon';\n\nexport { UnsupportedBrowser } from './UnsupportedBrowser';\nexport type { UnsupportedBrowserStrings, UnsupportedBrowserProps } from './UnsupportedBrowser';\nexport { UnsupportedBrowserVersion } from './UnsupportedBrowserVersion';\nexport type { UnsupportedBrowserVersionStrings, UnsupportedBrowserVersionProps } from './UnsupportedBrowserVersion';\nexport { UnsupportedOperatingSystem } from './UnsupportedOperatingSystem';\nexport type { UnsupportedOperatingSystemStrings, UnsupportedOperatingSystemProps } from './UnsupportedOperatingSystem';\n\nexport { _TroubleshootingGuideErrorBar } from './TroubleshootingGuideErrorBar';\nexport type {\n _TroubleshootingGuideErrorBarStrings,\n _TroubleshootingGuideErrorBarProps\n} from './TroubleshootingGuideErrorBar';\n\nexport { _DevicePermissionDropdown } from './DevicePermissions/DevicePermissionDropdown';\nexport type {\n _DevicePermissionDropdownStrings,\n _DevicePermissionDropdownProps,\n _PermissionConstraints\n} from './DevicePermissions/DevicePermissionDropdown';\n\nexport { _VideoEffectsItem } from './VideoEffects/VideoEffectsItem';\nexport type { _VideoEffectsItemProps, _VideoEffectsItemStyles } from './VideoEffects/VideoEffectsItem';\nexport {\n _VideoEffectsItemNoBackground,\n _VideoEffectsItemBlur,\n _VideoEffectsItemAddImage\n} from './VideoEffects/PresetVideoEffectsItems';\n\nexport { _VideoBackgroundEffectsPicker } from './VideoEffects/VideoBackgroundEffectsPicker';\nexport type {\n _VideoBackgroundEffectsPickerProps,\n _VideoBackgroundEffectChoiceOption,\n _VideoBackgroundEffectsPickerStyles\n} from './VideoEffects/VideoBackgroundEffectsPicker';\n\nexport type { VerticalGalleryStyles, VerticalGalleryStrings, VerticalGalleryControlBarStyles } from './VerticalGallery';\n/* @conditional-compile-remove(close-captions) */\nexport * from './CaptionsBanner';\n/* @conditional-compile-remove(close-captions) */\nexport * from './Caption';\n/* @conditional-compile-remove(close-captions) */\nexport * from './StartCaptionsButton';\n/* @conditional-compile-remove(close-captions) */\nexport * from './CaptionsSettingsModal';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../react-components/src/components/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAGpD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAGtC,OAAO,EAAE,U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O,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAEpE,OAAO,EACL,6BAA6B,EAC7B,qBAAqB,EACrB,yBAAyB,EAC1B,MAAM,wCAAwC,CAAC;AAEhD,OAAO,EAAE,6BAA6B,EAAE,MAAM,6CAA6C,CAAC;AAQ5F,iDAAiD;AACjD,cAAc,kBAAkB,CAAC;AACjC,iDAAiD;AACjD,cAAc,WAAW,CAAC;AAC1B,iDAAiD;AACjD,cAAc,uBAAuB,CAAC;AACtC,iDAAiD;AACjD,cAAc,yBAAyB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport { TypingIndicator } from './TypingIndicator';\nexport type { TypingIndicatorProps, TypingIndicatorStrings, TypingIndicatorStylesProps } from './TypingIndicator';\n\nexport { ErrorBar } from './ErrorBar';\nexport type { ActiveErrorMessage, ErrorBarProps, ErrorBarStrings, ErrorType } from './ErrorBar';\n\nexport { GridLayout } from './GridLayout';\nexport type { GridLayoutProps, GridLayoutStyles } from './GridLayout';\n\nexport { SendBox } from './SendBox';\n/* @conditional-compile-remove(mention) */\nexport { _MentionPopover } from './MentionPopover';\n\n/* @conditional-compile-remove(image-gallery) */\nexport { ImageGallery } from './ImageGallery';\n/* @conditional-compile-remove(image-gallery) */\nexport type { ImageGalleryStrings } from './ImageGallery';\n\nexport type { SendBoxProps, SendBoxStrings, SendBoxStylesProps } from './SendBox';\n\n/* @conditional-compile-remove(mention) */\nexport type {\n _MentionPopoverProps,\n MentionLookupOptions,\n MentionDisplayOptions,\n MentionOptions,\n Mention,\n MentionPopoverStrings\n} from './MentionPopover';\n\n/* @conditional-compile-remove(image-gallery) */\nexport type { ImageGalleryProps, ImageGalleryImageProps } from './ImageGallery';\n\n/* @conditional-compile-remove(file-sharing) */\nexport type { ActiveFileUpload } from './SendBox';\n\nexport { MessageStatusIndicator } from './MessageStatusIndicator';\nexport type { MessageStatusIndicatorProps, MessageStatusIndicatorStrings } from './MessageStatusIndicator';\n\nexport { MessageThread } from './MessageThread';\nexport type {\n MessageProps,\n MessageThreadProps,\n MessageThreadStrings,\n MessageThreadStyles,\n JumpToNewMessageButtonProps,\n MessageRenderer,\n UpdateMessageCallback,\n CancelEditCallback\n} from './MessageThread';\n\nexport { StreamMedia } from './StreamMedia';\nexport type { StreamMediaProps } from './StreamMedia';\nexport type { LoadingState } from './StreamMedia';\n\nexport { ParticipantItem } from './ParticipantItem';\nexport type { ParticipantItemProps, ParticipantItemStrings, ParticipantItemStyles } from './ParticipantItem';\n\nexport { ParticipantList } from './ParticipantList';\nexport type {\n ParticipantListItemStyles,\n ParticipantListProps,\n ParticipantListStyles,\n ParticipantMenuItemsCallback\n} from './ParticipantList';\n\n/* @conditional-compile-remove(total-participant-count) */\nexport type { ParticipantListStrings } from './ParticipantList';\n\nexport { Announcer } from './Announcer';\nexport type { AnnouncerProps } from './Announcer';\n\nexport { VideoGallery } from './VideoGallery';\nexport type { VideoGalleryProps, VideoGalleryStrings, VideoGalleryStyles, VideoGalleryLayout } from './VideoGallery';\n/* @conditional-compile-remove(pinned-participants) */\nexport type { VideoTileContextualMenuProps, VideoTileDrawerMenuProps } from './VideoGallery';\n/* @conditional-compile-remove(vertical-gallery) */\nexport type { OverflowGalleryPosition } from './VideoGallery';\n/* @conditional-compile-remove(click-to-call) */ /* @conditional-compile-remove(rooms) */\nexport type { LocalVideoTileSize } from './VideoGallery';\nexport type { HorizontalGalleryStyles } from './HorizontalGallery';\n\nexport { LocalVideoCameraCycleButton } from './LocalVideoCameraButton';\nexport type { LocalVideoCameraCycleButtonProps } from './LocalVideoCameraButton';\n\nexport { CameraButton } from './CameraButton';\nexport type {\n CameraButtonContextualMenuStyles,\n CameraButtonProps,\n CameraButtonStrings,\n CameraButtonStyles\n} from './CameraButton';\n\nexport { ControlBar } from './ControlBar';\nexport type { ControlBarProps, ControlBarLayout } from './ControlBar';\n\nexport { ControlBarButton } from './ControlBarButton';\nexport type { ControlBarButtonProps, ControlBarButtonStrings, ControlBarButtonStyles } from './ControlBarButton';\n\nexport { EndCallButton } from './EndCallButton';\nexport type { EndCallButtonProps, EndCallButtonStrings } from './EndCallButton';\n\nexport { MicrophoneButton } from './MicrophoneButton';\nexport type {\n MicrophoneButtonStyles,\n MicrophoneButtonContextualMenuStyles,\n MicrophoneButtonProps,\n MicrophoneButtonStrings\n} from './MicrophoneButton';\n\nexport { DevicesButton, generateDefaultDeviceMenuProps as _generateDefaultDeviceMenuProps } from './DevicesButton';\nexport type {\n OptionsDevice,\n DevicesButtonProps,\n DevicesButtonStrings,\n DevicesButtonStyles,\n DevicesButtonContextualMenuStyles,\n DeviceMenuProps as _DeviceMenuProps,\n DeviceMenuStrings as _DeviceMenuStrings,\n DeviceMenuStyles as _DeviceMenuStyles\n} from './DevicesButton';\n\n/* @conditional-compile-remove(call-readiness) */\nexport {\n CameraAndMicrophoneSitePermissions,\n MicrophoneSitePermissions,\n CameraSitePermissions\n} from './DevicePermissions/SitePermissions';\n/* @conditional-compile-remove(call-readiness) */\nexport type { SitePermissionsStrings, SitePermissionsStyles } from './DevicePermissions/SitePermissionsScaffolding';\n/* @conditional-compile-remove(call-readiness) */\nexport type {\n CameraAndMicrophoneSitePermissionsStrings,\n CameraAndMicrophoneSitePermissionsProps,\n CameraSitePermissionsStrings,\n CameraSitePermissionsProps,\n CommonSitePermissionsProps,\n MicrophoneSitePermissionsStrings,\n MicrophoneSitePermissionsProps\n} from './DevicePermissions/SitePermissions';\n/* @conditional-compile-remove(call-readiness) */\nexport { BrowserPermissionDenied } from './DevicePermissions/BrowserPermissionDenied';\n/* @conditional-compile-remove(call-readiness) */\nexport type {\n BrowserPermissionDeniedStrings,\n BrowserPermissionDeniedStyles,\n BrowserPermissionDeniedProps\n} from './DevicePermissions/BrowserPermissionDenied';\n/* @conditional-compile-remove(call-readiness) */\nexport { BrowserPermissionDeniedIOS } from './DevicePermissions/BrowserPermissionDeniedIOS';\n/* @conditional-compile-remove(call-readiness) */\nexport type {\n BrowserPermissionDeniedIOSStrings,\n BrowserPermissionDeniedIOSProps\n} from './DevicePermissions/BrowserPermissionDeniedIOS';\n\nexport { ParticipantsButton } from './ParticipantsButton';\nexport type {\n ParticipantsButtonContextualMenuStyles,\n ParticipantsButtonProps,\n ParticipantsButtonStrings,\n ParticipantsButtonStyles\n} from './ParticipantsButton';\n\nexport { ScreenShareButton } from './ScreenShareButton';\nexport type { ScreenShareButtonProps, ScreenShareButtonStrings } from './ScreenShareButton';\n\n/* @conditional-compile-remove(raise-hand) */\nexport { RaiseHandButton } from './RaiseHandButton';\n/* @conditional-compile-remove(raise-hand) */\nexport type { RaiseHandButtonProps, RaiseHandButtonStrings } from './RaiseHandButton';\n\nexport { VideoTile } from './VideoTile';\nexport type { VideoTileProps, VideoTileStylesProps } from './VideoTile';\n/* @conditional-compile-remove(PSTN-calls) */\nexport type { VideoTileStrings } from './VideoTile';\n\nexport { _PictureInPictureInPicture } from './PictureInPictureInPicture/PictureInPictureInPicture';\nexport type {\n _PictureInPictureInPictureProps,\n _PictureInPictureInPictureStrings\n} from './PictureInPictureInPicture/PictureInPictureInPicture';\nexport type {\n _PictureInPictureInPictureTileProps,\n _TileOrientation\n} from './PictureInPictureInPicture/PictureInPictureInPictureTile';\n\nexport * from './Drawer';\n/* @conditional-compile-remove(file-sharing) */\nexport type { SendBoxErrorBarError } from './SendBoxErrorBar';\nexport * from './FileCard';\nexport * from './FileCardGroup';\nexport * from './ModalClone/ModalClone';\nexport * from './FileDownloadCards';\nexport type { _FileUploadCardsStrings } from './FileUploadCards';\n\nexport { _useContainerHeight, _useContainerWidth } from './utils/responsive';\n\nexport { _ComplianceBanner } from './ComplianceBanner';\nexport type { _ComplianceBannerProps, _ComplianceBannerStrings } from './ComplianceBanner';\nexport { Dialpad } from './Dialpad/Dialpad';\nexport type { DialpadProps, DialpadStrings, DialpadStyles, DtmfTone } from './Dialpad/Dialpad';\n/* @conditional-compile-remove(end-of-call-survey) */\nexport { _StarSurvey } from './Survey/StarSurvey/StarSurvey';\n/* @conditional-compile-remove(end-of-call-survey) */\nexport type { _StarSurveyProps, _StarSurveyStrings } from './Survey/StarSurvey/StarSurvey';\n/* @conditional-compile-remove(end-of-call-survey) */\nexport * from './Survey/SurveyTypes';\n/* @conditional-compile-remove(end-of-call-survey) */\nexport { _TagsSurvey } from './Survey/TagsSurvey/TagsSurvey';\n/* @conditional-compile-remove(end-of-call-survey) */\nexport type { _TagsSurveyProps, _TagsSurveyStrings, _IssueCategory, _SurveyTag } from './Survey/TagsSurvey/TagsSurvey';\n/* @conditional-compile-remove(PSTN-calls) */\nexport { HoldButton } from './HoldButton';\n/* @conditional-compile-remove(PSTN-calls) */\nexport type { HoldButtonProps, HoldButtonStrings } from './HoldButton';\n\nexport { _LocalVideoTile } from './LocalVideoTile';\nexport { _RemoteVideoTile } from './RemoteVideoTile';\nexport { _HighContrastAwareIcon } from './HighContrastAwareIcon';\nexport type { _HighContrastAwareIconProps } from './HighContrastAwareIcon';\n\nexport { UnsupportedBrowser } from './UnsupportedBrowser';\nexport type { UnsupportedBrowserStrings, UnsupportedBrowserProps } from './UnsupportedBrowser';\nexport { UnsupportedBrowserVersion } from './UnsupportedBrowserVersion';\nexport type { UnsupportedBrowserVersionStrings, UnsupportedBrowserVersionProps } from './UnsupportedBrowserVersion';\nexport { UnsupportedOperatingSystem } from './UnsupportedOperatingSystem';\nexport type { UnsupportedOperatingSystemStrings, UnsupportedOperatingSystemProps } from './UnsupportedOperatingSystem';\n\nexport { _TroubleshootingGuideErrorBar } from './TroubleshootingGuideErrorBar';\nexport type {\n _TroubleshootingGuideErrorBarStrings,\n _TroubleshootingGuideErrorBarProps\n} from './TroubleshootingGuideErrorBar';\n\nexport { _DevicePermissionDropdown } from './DevicePermissions/DevicePermissionDropdown';\nexport type {\n _DevicePermissionDropdownStrings,\n _DevicePermissionDropdownProps,\n _PermissionConstraints\n} from './DevicePermissions/DevicePermissionDropdown';\n\nexport { _VideoEffectsItem } from './VideoEffects/VideoEffectsItem';\nexport type { _VideoEffectsItemProps, _VideoEffectsItemStyles } from './VideoEffects/VideoEffectsItem';\nexport {\n _VideoEffectsItemNoBackground,\n _VideoEffectsItemBlur,\n _VideoEffectsItemAddImage\n} from './VideoEffects/PresetVideoEffectsItems';\n\nexport { _VideoBackgroundEffectsPicker } from './VideoEffects/VideoBackgroundEffectsPicker';\nexport type {\n _VideoBackgroundEffectsPickerProps,\n _VideoBackgroundEffectChoiceOption,\n _VideoBackgroundEffectsPickerStyles\n} from './VideoEffects/VideoBackgroundEffectsPicker';\n\nexport type { VerticalGalleryStyles, VerticalGalleryStrings, VerticalGalleryControlBarStyles } from './VerticalGallery';\n/* @conditional-compile-remove(close-captions) */\nexport * from './CaptionsBanner';\n/* @conditional-compile-remove(close-captions) */\nexport * from './Caption';\n/* @conditional-compile-remove(close-captions) */\nexport * from './StartCaptionsButton';\n/* @conditional-compile-remove(close-captions) */\nexport * from './CaptionsSettingsModal';\n"]}
@@ -36,7 +36,7 @@ export declare const chatMessageDateStyle: CSSProperties;
36
36
  /**
37
37
  * @private
38
38
  */
39
- export declare const useChatMessageStyles: () => Record<"root" | "body" | "bodyWithoutAvatar" | "bodyWithAvatar" | "avatarNoOverlap" | "avatarOverlap", string>;
39
+ export declare const useChatMessageStyles: () => Record<"root" | "body" | "bodyWithoutAvatar" | "bodyWithAvatar" | "avatarNoOverlap" | "avatarOverlap" | "bodyWithPlaceholderImage", string>;
40
40
  /**
41
41
  * @private
42
42
  */
@@ -161,11 +161,20 @@ export const useChatMessageStyles = makeStyles({
161
161
  }, '& msft-mention': {
162
162
  color: tokens.colorStatusWarningBackground3,
163
163
  fontWeight: tokens.fontWeightSemibold
164
- }, '& img[src=""]': {
164
+ }, '& img': {
165
+ maxWidth: '100% !important', // Add !important to make sure it won't be overridden by style defined in element
166
+ height: 'auto !important'
167
+ }, '& video': {
168
+ maxWidth: '100% !important', // Add !important to make sure it won't be overridden by style defined in element
169
+ height: 'auto !important'
170
+ }, '& p': Object.assign({}, shorthands.marginBlock('0.125rem')), '& blockquote': Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ backgroundColor: tokens.colorBrandBackgroundInverted, clear: 'left', minHeight: '2.25rem', width: 'fit-content', marginTop: '7px', marginRight: '0px', marginLeft: '0px', marginBottom: '7px', paddingTop: '7px', paddingRight: '15px', paddingLeft: '15px', paddingBottom: '7px' }, shorthands.border('solid')), shorthands.borderRadius('4px')), shorthands.borderWidth('1px')), shorthands.borderColor(tokens.colorNeutralStroke1Selected)), { borderLeftWidth: '4px' }), '& table': Object.assign(Object.assign({ backgroundColor: tokens.colorBrandBackgroundInverted }, shorthands.borderColor(tokens.colorNeutralStroke1Selected)), { borderCollapse: 'collapse', tableLayout: 'auto', width: '100%', '& tr': Object.assign(Object.assign({}, shorthands.border('1px', 'solid', `${tokens.colorNeutralStroke1Selected}`)), { '& td': Object.assign(Object.assign({}, shorthands.border('1px', 'solid', `${tokens.colorNeutralStroke1Selected}`)), { wordBreak: 'normal', paddingTop: '0px', paddingRight: '5px' }) }) }) }),
171
+ bodyWithPlaceholderImage: {
172
+ '& img[src=""]': {
165
173
  display: 'block',
166
174
  position: 'relative',
167
175
  marginBottom: '5px'
168
- }, '& img[src=""]:after': {
176
+ },
177
+ '& img[src=""]:after': {
169
178
  backgroundColor: tokens.colorNeutralBackground1Selected,
170
179
  content: `url("data:image/gif;base64,R0lGODlhAQABAAAAACw=")`,
171
180
  backgroundSize: 'center',
@@ -175,13 +184,8 @@ export const useChatMessageStyles = makeStyles({
175
184
  top: '0',
176
185
  left: '0',
177
186
  display: 'block'
178
- }, '& img': {
179
- maxWidth: '100% !important', // Add !important to make sure it won't be overridden by style defined in element
180
- height: 'auto !important'
181
- }, '& video': {
182
- maxWidth: '100% !important', // Add !important to make sure it won't be overridden by style defined in element
183
- height: 'auto !important'
184
- }, '& p': Object.assign({}, shorthands.marginBlock('0.125rem')), '& blockquote': Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ backgroundColor: tokens.colorBrandBackgroundInverted, clear: 'left', minHeight: '2.25rem', width: 'fit-content', marginTop: '7px', marginRight: '0px', marginLeft: '0px', marginBottom: '7px', paddingTop: '7px', paddingRight: '15px', paddingLeft: '15px', paddingBottom: '7px' }, shorthands.border('solid')), shorthands.borderRadius('4px')), shorthands.borderWidth('1px')), shorthands.borderColor(tokens.colorNeutralStroke1Selected)), { borderLeftWidth: '4px' }), '& table': Object.assign(Object.assign({ backgroundColor: tokens.colorBrandBackgroundInverted }, shorthands.borderColor(tokens.colorNeutralStroke1Selected)), { borderCollapse: 'collapse', tableLayout: 'auto', width: '100%', '& tr': Object.assign(Object.assign({}, shorthands.border('1px', 'solid', `${tokens.colorNeutralStroke1Selected}`)), { '& td': Object.assign(Object.assign({}, shorthands.border('1px', 'solid', `${tokens.colorNeutralStroke1Selected}`)), { wordBreak: 'normal', paddingTop: '0px', paddingRight: '5px' }) }) }) }),
187
+ }
188
+ },
185
189
  bodyWithoutAvatar: {
186
190
  marginTop: '0.125rem'
187
191
  },