@azure/communication-react 1.4.3-alpha-202212070014.0 → 1.4.3-alpha-202212080013.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dist-cjs/communication-react/index.js +1290 -1284
- package/dist/dist-cjs/communication-react/index.js.map +1 -1
- package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
- package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.d.ts +12 -0
- package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.js +16 -0
- package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/videoGallerySelector.js +2 -13
- package/dist/dist-esm/calling-component-bindings/src/videoGallerySelector.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/Dialpad/Dialpad.js +8 -0
- package/dist/dist-esm/react-components/src/components/Dialpad/Dialpad.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideo.d.ts +12 -0
- package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideo.js +41 -0
- package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideo.js.map +1 -0
- package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideoLayout.d.ts +49 -0
- package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideoLayout.js +61 -0
- package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideoLayout.js.map +1 -0
- package/dist/dist-esm/react-components/src/components/VideoGallery/styles/FloatingLocalVideo.styles.d.ts +61 -0
- package/dist/dist-esm/react-components/src/components/VideoGallery/styles/FloatingLocalVideo.styles.js +117 -0
- package/dist/dist-esm/react-components/src/components/VideoGallery/styles/FloatingLocalVideo.styles.js.map +1 -0
- package/dist/dist-esm/react-components/src/components/VideoGallery/styles/FloatingLocalVideoLayout.styles.d.ts +14 -0
- package/dist/dist-esm/react-components/src/components/VideoGallery/styles/FloatingLocalVideoLayout.styles.js +28 -0
- package/dist/dist-esm/react-components/src/components/VideoGallery/styles/FloatingLocalVideoLayout.styles.js.map +1 -0
- package/dist/dist-esm/react-components/src/components/VideoGallery/videoGalleryUtils.js +5 -1
- package/dist/dist-esm/react-components/src/components/VideoGallery/videoGalleryUtils.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/VideoGallery.js +9 -120
- package/dist/dist-esm/react-components/src/components/VideoGallery.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/styles/VideoGallery.styles.d.ts +1 -95
- package/dist/dist-esm/react-components/src/components/styles/VideoGallery.styles.js +1 -137
- package/dist/dist-esm/react-components/src/components/styles/VideoGallery.styles.js.map +1 -1
- package/package.json +8 -8
@@ -1,6 +1,4 @@
|
|
1
|
-
import {
|
2
|
-
import { VideoTileStylesProps } from '../VideoTile';
|
3
|
-
import { HorizontalGalleryStyles } from '../HorizontalGallery';
|
1
|
+
import { IButtonStyles, IStackStyles, Theme } from '@fluentui/react';
|
4
2
|
/**
|
5
3
|
* @private
|
6
4
|
*/
|
@@ -9,100 +7,8 @@ export declare const videoGalleryOuterDivStyle: string;
|
|
9
7
|
* @private
|
10
8
|
*/
|
11
9
|
export declare const videoGalleryContainerStyle: IStackStyles;
|
12
|
-
/**
|
13
|
-
* Small floating modal width and height in rem for small screen
|
14
|
-
*/
|
15
|
-
export declare const SMALL_FLOATING_MODAL_SIZE_PX: {
|
16
|
-
width: number;
|
17
|
-
height: number;
|
18
|
-
};
|
19
|
-
/**
|
20
|
-
* Large floating modal width and height in rem for large screen
|
21
|
-
*/
|
22
|
-
export declare const LARGE_FLOATING_MODAL_SIZE_PX: {
|
23
|
-
width: number;
|
24
|
-
height: number;
|
25
|
-
};
|
26
|
-
/**
|
27
|
-
* @private
|
28
|
-
* z-index to ensure that the local video tile is above the video gallery.
|
29
|
-
*/
|
30
|
-
export declare const LOCAL_VIDEO_TILE_ZINDEX = 2;
|
31
|
-
/**
|
32
|
-
* @private
|
33
|
-
*/
|
34
|
-
export declare const floatingLocalVideoModalStyle: (theme: Theme, isNarrow?: boolean | undefined) => IStyleFunctionOrObject<IModalStyleProps, IModalStyles>;
|
35
|
-
/**
|
36
|
-
* Padding equal to the amount the modal should stay inside the bounds of the container.
|
37
|
-
* i.e. if this is 8px, the modal should always be at least 8px inside the container at all times on all sides.
|
38
|
-
* @private
|
39
|
-
*/
|
40
|
-
export declare const localVideoTileOuterPaddingPX = 8;
|
41
|
-
/**
|
42
|
-
* @private
|
43
|
-
*/
|
44
|
-
export declare const localVideoTileContainerStyle: (theme: Theme, isNarrow?: boolean | undefined) => IStyle;
|
45
|
-
/**
|
46
|
-
* @private
|
47
|
-
*/
|
48
|
-
export declare const localVideoTileWithControlsContainerStyle: (theme: Theme, isNarrow?: boolean | undefined) => IStackStyles;
|
49
|
-
/**
|
50
|
-
* @private
|
51
|
-
*/
|
52
|
-
export declare const floatingLocalVideoTileStyle: VideoTileStylesProps;
|
53
|
-
/**
|
54
|
-
* @private
|
55
|
-
*/
|
56
|
-
export declare const horizontalGalleryContainerStyle: (shouldFloatLocalVideo: boolean, isNarrow: boolean) => IStyle;
|
57
|
-
/**
|
58
|
-
* @private
|
59
|
-
*/
|
60
|
-
export declare const horizontalGalleryStyle: (isNarrow: boolean) => HorizontalGalleryStyles;
|
61
|
-
/**
|
62
|
-
* Small horizontal gallery tile size in rem
|
63
|
-
* @private
|
64
|
-
*/
|
65
|
-
export declare const SMALL_HORIZONTAL_GALLERY_TILE_SIZE_REM: {
|
66
|
-
height: number;
|
67
|
-
width: number;
|
68
|
-
};
|
69
|
-
/**
|
70
|
-
* Large horizontal gallery tile size in rem
|
71
|
-
* @private
|
72
|
-
*/
|
73
|
-
export declare const LARGE_HORIZONTAL_GALLERY_TILE_SIZE_REM: {
|
74
|
-
height: number;
|
75
|
-
width: number;
|
76
|
-
};
|
77
|
-
/**
|
78
|
-
* @private
|
79
|
-
*/
|
80
|
-
export declare const SMALL_HORIZONTAL_GALLERY_TILE_STYLE: {
|
81
|
-
minHeight: string;
|
82
|
-
minWidth: string;
|
83
|
-
maxHeight: string;
|
84
|
-
maxWidth: string;
|
85
|
-
};
|
86
|
-
/**
|
87
|
-
* @private
|
88
|
-
*/
|
89
|
-
export declare const LARGE_HORIZONTAL_GALLERY_TILE_STYLE: {
|
90
|
-
minHeight: string;
|
91
|
-
minWidth: string;
|
92
|
-
maxHeight: string;
|
93
|
-
maxWidth: string;
|
94
|
-
};
|
95
|
-
/**
|
96
|
-
* @private
|
97
|
-
*/
|
98
|
-
export declare const layerHostStyle: IStyle;
|
99
10
|
/**
|
100
11
|
* @private
|
101
12
|
*/
|
102
13
|
export declare const localVideoCameraCycleButtonStyles: (theme: Theme) => IButtonStyles;
|
103
|
-
/**
|
104
|
-
* Styles for the local video tile modal when it is focused, will cause keyboard move icon to appear over video
|
105
|
-
* @private
|
106
|
-
*/
|
107
|
-
export declare const localVideoModalStyles: Partial<IModalStyles>;
|
108
14
|
//# sourceMappingURL=VideoGallery.styles.d.ts.map
|
@@ -1,6 +1,6 @@
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
2
2
|
// Licensed under the MIT license.
|
3
|
-
import { mergeStyles
|
3
|
+
import { mergeStyles } from '@fluentui/react';
|
4
4
|
import { _pxToRem } from "../../../../acs-ui-common/src";
|
5
5
|
/**
|
6
6
|
* @private
|
@@ -12,133 +12,6 @@ export const videoGalleryOuterDivStyle = mergeStyles({ position: 'relative', wid
|
|
12
12
|
export const videoGalleryContainerStyle = {
|
13
13
|
root: { position: 'relative', height: '100%', width: '100%', padding: '0.5rem' }
|
14
14
|
};
|
15
|
-
/**
|
16
|
-
* Small floating modal width and height in rem for small screen
|
17
|
-
*/
|
18
|
-
export const SMALL_FLOATING_MODAL_SIZE_PX = { width: 64, height: 88 };
|
19
|
-
/**
|
20
|
-
* Large floating modal width and height in rem for large screen
|
21
|
-
*/
|
22
|
-
export const LARGE_FLOATING_MODAL_SIZE_PX = { width: 160, height: 120 };
|
23
|
-
/**
|
24
|
-
* @private
|
25
|
-
* z-index to ensure that the local video tile is above the video gallery.
|
26
|
-
*/
|
27
|
-
export const LOCAL_VIDEO_TILE_ZINDEX = 2;
|
28
|
-
/**
|
29
|
-
* @private
|
30
|
-
*/
|
31
|
-
export const floatingLocalVideoModalStyle = (theme, isNarrow) => {
|
32
|
-
return concatStyleSets({
|
33
|
-
main: localVideoTileContainerStyle(theme, isNarrow)
|
34
|
-
}, {
|
35
|
-
main: {
|
36
|
-
boxShadow: theme.effects.elevation8,
|
37
|
-
':focus-within': {
|
38
|
-
boxShadow: theme.effects.elevation16,
|
39
|
-
border: `${_pxToRem(2)} solid ${theme.palette.neutralPrimary}`
|
40
|
-
}
|
41
|
-
}
|
42
|
-
}, localVideoModalStyles);
|
43
|
-
};
|
44
|
-
/**
|
45
|
-
* Padding equal to the amount the modal should stay inside the bounds of the container.
|
46
|
-
* i.e. if this is 8px, the modal should always be at least 8px inside the container at all times on all sides.
|
47
|
-
* @private
|
48
|
-
*/
|
49
|
-
export const localVideoTileOuterPaddingPX = 8;
|
50
|
-
/**
|
51
|
-
* @private
|
52
|
-
*/
|
53
|
-
export const localVideoTileContainerStyle = (theme, isNarrow) => {
|
54
|
-
return Object.assign({ minWidth: isNarrow ? _pxToRem(SMALL_FLOATING_MODAL_SIZE_PX.width) : _pxToRem(LARGE_FLOATING_MODAL_SIZE_PX.width), minHeight: isNarrow ? _pxToRem(SMALL_FLOATING_MODAL_SIZE_PX.height) : _pxToRem(LARGE_FLOATING_MODAL_SIZE_PX.height), position: 'absolute', bottom: _pxToRem(localVideoTileOuterPaddingPX), borderRadius: theme.effects.roundedCorner4, overflow: 'hidden' }, (theme.rtl
|
55
|
-
? { left: _pxToRem(localVideoTileOuterPaddingPX) }
|
56
|
-
: { right: _pxToRem(localVideoTileOuterPaddingPX) }));
|
57
|
-
};
|
58
|
-
/**
|
59
|
-
* @private
|
60
|
-
*/
|
61
|
-
export const localVideoTileWithControlsContainerStyle = (theme, isNarrow) => {
|
62
|
-
return concatStyleSets(localVideoTileContainerStyle(theme, isNarrow), {
|
63
|
-
root: { boxShadow: theme.effects.elevation8 }
|
64
|
-
});
|
65
|
-
};
|
66
|
-
/**
|
67
|
-
* @private
|
68
|
-
*/
|
69
|
-
export const floatingLocalVideoTileStyle = {
|
70
|
-
root: {
|
71
|
-
position: 'absolute',
|
72
|
-
zIndex: LOCAL_VIDEO_TILE_ZINDEX,
|
73
|
-
height: '100%',
|
74
|
-
width: '100%'
|
75
|
-
}
|
76
|
-
};
|
77
|
-
/**
|
78
|
-
* @private
|
79
|
-
*/
|
80
|
-
export const horizontalGalleryContainerStyle = (shouldFloatLocalVideo, isNarrow) => {
|
81
|
-
return {
|
82
|
-
minHeight: isNarrow
|
83
|
-
? `${SMALL_HORIZONTAL_GALLERY_TILE_SIZE_REM.height}rem`
|
84
|
-
: `${LARGE_HORIZONTAL_GALLERY_TILE_SIZE_REM.height}rem`,
|
85
|
-
width: shouldFloatLocalVideo
|
86
|
-
? isNarrow
|
87
|
-
? `calc(100% - ${_pxToRem(SMALL_FLOATING_MODAL_SIZE_PX.width)})`
|
88
|
-
: `calc(100% - ${_pxToRem(LARGE_FLOATING_MODAL_SIZE_PX.width)})`
|
89
|
-
: '100%',
|
90
|
-
paddingRight: '0.5rem'
|
91
|
-
};
|
92
|
-
};
|
93
|
-
/**
|
94
|
-
* @private
|
95
|
-
*/
|
96
|
-
export const horizontalGalleryStyle = (isNarrow) => {
|
97
|
-
return {
|
98
|
-
children: isNarrow ? SMALL_HORIZONTAL_GALLERY_TILE_STYLE : LARGE_HORIZONTAL_GALLERY_TILE_STYLE
|
99
|
-
};
|
100
|
-
};
|
101
|
-
/**
|
102
|
-
* Small horizontal gallery tile size in rem
|
103
|
-
* @private
|
104
|
-
*/
|
105
|
-
export const SMALL_HORIZONTAL_GALLERY_TILE_SIZE_REM = { height: 5.5, width: 5.5 };
|
106
|
-
/**
|
107
|
-
* Large horizontal gallery tile size in rem
|
108
|
-
* @private
|
109
|
-
*/
|
110
|
-
export const LARGE_HORIZONTAL_GALLERY_TILE_SIZE_REM = { height: 7.5, width: 10 };
|
111
|
-
/**
|
112
|
-
* @private
|
113
|
-
*/
|
114
|
-
export const SMALL_HORIZONTAL_GALLERY_TILE_STYLE = {
|
115
|
-
minHeight: `${SMALL_HORIZONTAL_GALLERY_TILE_SIZE_REM.height}rem`,
|
116
|
-
minWidth: `${SMALL_HORIZONTAL_GALLERY_TILE_SIZE_REM.width}rem`,
|
117
|
-
maxHeight: `${SMALL_HORIZONTAL_GALLERY_TILE_SIZE_REM.height}rem`,
|
118
|
-
maxWidth: `${SMALL_HORIZONTAL_GALLERY_TILE_SIZE_REM.width}rem`
|
119
|
-
};
|
120
|
-
/**
|
121
|
-
* @private
|
122
|
-
*/
|
123
|
-
export const LARGE_HORIZONTAL_GALLERY_TILE_STYLE = {
|
124
|
-
minHeight: `${LARGE_HORIZONTAL_GALLERY_TILE_SIZE_REM.height}rem`,
|
125
|
-
minWidth: `${LARGE_HORIZONTAL_GALLERY_TILE_SIZE_REM.width}rem`,
|
126
|
-
maxHeight: `${LARGE_HORIZONTAL_GALLERY_TILE_SIZE_REM.height}rem`,
|
127
|
-
maxWidth: `${LARGE_HORIZONTAL_GALLERY_TILE_SIZE_REM.width}rem`
|
128
|
-
};
|
129
|
-
/**
|
130
|
-
* @private
|
131
|
-
*/
|
132
|
-
export const layerHostStyle = {
|
133
|
-
position: 'absolute',
|
134
|
-
left: 0,
|
135
|
-
top: 0,
|
136
|
-
width: '100%',
|
137
|
-
height: '100%',
|
138
|
-
overflow: 'hidden',
|
139
|
-
// pointer events for layerHost set to none to make descendants interactive
|
140
|
-
pointerEvents: 'none'
|
141
|
-
};
|
142
15
|
/**
|
143
16
|
* @private
|
144
17
|
*/
|
@@ -170,13 +43,4 @@ export const localVideoCameraCycleButtonStyles = (theme) => {
|
|
170
43
|
}
|
171
44
|
};
|
172
45
|
};
|
173
|
-
/**
|
174
|
-
* Styles for the local video tile modal when it is focused, will cause keyboard move icon to appear over video
|
175
|
-
* @private
|
176
|
-
*/
|
177
|
-
export const localVideoModalStyles = {
|
178
|
-
keyboardMoveIconContainer: {
|
179
|
-
zIndex: LOCAL_VIDEO_TILE_ZINDEX + 1 // zIndex to set the keyboard movement Icon above the other layers in the video tile.
|
180
|
-
}
|
181
|
-
};
|
182
46
|
//# sourceMappingURL=VideoGallery.styles.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"VideoGallery.styles.js","sourceRoot":"","sources":["../../../../../../../react-components/src/components/styles/VideoGallery.styles.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EACL,WAAW,EAOX,eAAe,EAEhB,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EAAE,QAAQ,EAAE,sCAAgC;AAEnD;;GAEG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,WAAW,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;AAE9G;;GAEG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAiB;IACtD,IAAI,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE;CACjF,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;AAEtE;;GAEG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;AAExE;;;GAGG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC;AAEzC;;GAEG;AACH,MAAM,CAAC,MAAM,4BAA4B,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iBAAiB;YAC7B,YAAY,EAAE,KAAK,CAAC,OAAO,CAAC,cAAc;SAC3C;QACD,WAAW,EAAE;YACX,yFAAyF;YACzF,KAAK,EAAE,SAAS;YAChB,UAAU,EAAE,iBAAiB,CAAC,6EAA6E;SAC5G;QACD,IAAI,EAAE;YACJ,WAAW,EAAE,QAAQ,CAAC,CAAC,CAAC;YACxB,YAAY,EAAE,QAAQ,CAAC,CAAC,CAAC;YACzB,MAAM,EAAE,CAAC;SACV;QACD,aAAa,EAAE;YACb,aAAa,EAAE,QAAQ,CAAC,CAAC,CAAC;SAC3B;KACF,CAAC;AACJ,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAA0B;IAC1D,yBAAyB,EAAE;QACzB,MAAM,EAAE,uBAAuB,GAAG,CAAC,CAAC,qFAAqF;KAC1H;CACF,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport {\n mergeStyles,\n IStackStyles,\n IModalStyleProps,\n IModalStyles,\n IStyleFunctionOrObject,\n Theme,\n IStyle,\n concatStyleSets,\n IButtonStyles\n} from '@fluentui/react';\nimport { VideoTileStylesProps } from '../VideoTile';\nimport { HorizontalGalleryStyles } from '../HorizontalGallery';\nimport { _pxToRem } from '@internal/acs-ui-common';\n\n/**\n * @private\n */\nexport const videoGalleryOuterDivStyle = mergeStyles({ position: 'relative', width: '100%', height: '100%' });\n\n/**\n * @private\n */\nexport const videoGalleryContainerStyle: IStackStyles = {\n root: { position: 'relative', height: '100%', width: '100%', padding: '0.5rem' }\n};\n\n/**\n * Small floating modal width and height in rem for small screen\n */\nexport const SMALL_FLOATING_MODAL_SIZE_PX = { width: 64, height: 88 };\n\n/**\n * Large floating modal width and height in rem for large screen\n */\nexport const LARGE_FLOATING_MODAL_SIZE_PX = { width: 160, height: 120 };\n\n/**\n * @private\n * z-index to ensure that the local video tile is above the video gallery.\n */\nexport const LOCAL_VIDEO_TILE_ZINDEX = 2;\n\n/**\n * @private\n */\nexport const floatingLocalVideoModalStyle = (\n theme: Theme,\n isNarrow?: boolean\n): IStyleFunctionOrObject<IModalStyleProps, IModalStyles> => {\n return concatStyleSets(\n {\n main: localVideoTileContainerStyle(theme, isNarrow)\n },\n {\n main: {\n boxShadow: theme.effects.elevation8,\n ':focus-within': {\n boxShadow: theme.effects.elevation16,\n border: `${_pxToRem(2)} solid ${theme.palette.neutralPrimary}`\n }\n }\n },\n localVideoModalStyles\n );\n};\n\n/**\n * Padding equal to the amount the modal should stay inside the bounds of the container.\n * i.e. if this is 8px, the modal should always be at least 8px inside the container at all times on all sides.\n * @private\n */\nexport const localVideoTileOuterPaddingPX = 8;\n\n/**\n * @private\n */\nexport const localVideoTileContainerStyle = (theme: Theme, isNarrow?: boolean): IStyle => {\n return {\n minWidth: isNarrow ? _pxToRem(SMALL_FLOATING_MODAL_SIZE_PX.width) : _pxToRem(LARGE_FLOATING_MODAL_SIZE_PX.width),\n minHeight: isNarrow ? _pxToRem(SMALL_FLOATING_MODAL_SIZE_PX.height) : _pxToRem(LARGE_FLOATING_MODAL_SIZE_PX.height),\n position: 'absolute',\n bottom: _pxToRem(localVideoTileOuterPaddingPX),\n borderRadius: theme.effects.roundedCorner4,\n overflow: 'hidden',\n ...(theme.rtl\n ? { left: _pxToRem(localVideoTileOuterPaddingPX) }\n : { right: _pxToRem(localVideoTileOuterPaddingPX) })\n };\n};\n\n/**\n * @private\n */\nexport const localVideoTileWithControlsContainerStyle = (theme: Theme, isNarrow?: boolean): IStackStyles => {\n return concatStyleSets(localVideoTileContainerStyle(theme, isNarrow), {\n root: { boxShadow: theme.effects.elevation8 }\n });\n};\n\n/**\n * @private\n */\nexport const floatingLocalVideoTileStyle: VideoTileStylesProps = {\n root: {\n position: 'absolute',\n zIndex: LOCAL_VIDEO_TILE_ZINDEX,\n height: '100%',\n width: '100%'\n }\n};\n\n/**\n * @private\n */\nexport const horizontalGalleryContainerStyle = (shouldFloatLocalVideo: boolean, isNarrow: boolean): IStyle => {\n return {\n minHeight: isNarrow\n ? `${SMALL_HORIZONTAL_GALLERY_TILE_SIZE_REM.height}rem`\n : `${LARGE_HORIZONTAL_GALLERY_TILE_SIZE_REM.height}rem`,\n width: shouldFloatLocalVideo\n ? isNarrow\n ? `calc(100% - ${_pxToRem(SMALL_FLOATING_MODAL_SIZE_PX.width)})`\n : `calc(100% - ${_pxToRem(LARGE_FLOATING_MODAL_SIZE_PX.width)})`\n : '100%',\n paddingRight: '0.5rem'\n };\n};\n\n/**\n * @private\n */\nexport const horizontalGalleryStyle = (isNarrow: boolean): HorizontalGalleryStyles => {\n return {\n children: isNarrow ? SMALL_HORIZONTAL_GALLERY_TILE_STYLE : LARGE_HORIZONTAL_GALLERY_TILE_STYLE\n };\n};\n\n/**\n * Small horizontal gallery tile size in rem\n * @private\n */\nexport const SMALL_HORIZONTAL_GALLERY_TILE_SIZE_REM = { height: 5.5, width: 5.5 };\n/**\n * Large horizontal gallery tile size in rem\n * @private\n */\nexport const LARGE_HORIZONTAL_GALLERY_TILE_SIZE_REM = { height: 7.5, width: 10 };\n\n/**\n * @private\n */\nexport const SMALL_HORIZONTAL_GALLERY_TILE_STYLE = {\n minHeight: `${SMALL_HORIZONTAL_GALLERY_TILE_SIZE_REM.height}rem`,\n minWidth: `${SMALL_HORIZONTAL_GALLERY_TILE_SIZE_REM.width}rem`,\n maxHeight: `${SMALL_HORIZONTAL_GALLERY_TILE_SIZE_REM.height}rem`,\n maxWidth: `${SMALL_HORIZONTAL_GALLERY_TILE_SIZE_REM.width}rem`\n};\n/**\n * @private\n */\nexport const LARGE_HORIZONTAL_GALLERY_TILE_STYLE = {\n minHeight: `${LARGE_HORIZONTAL_GALLERY_TILE_SIZE_REM.height}rem`,\n minWidth: `${LARGE_HORIZONTAL_GALLERY_TILE_SIZE_REM.width}rem`,\n maxHeight: `${LARGE_HORIZONTAL_GALLERY_TILE_SIZE_REM.height}rem`,\n maxWidth: `${LARGE_HORIZONTAL_GALLERY_TILE_SIZE_REM.width}rem`\n};\n\n/**\n * @private\n */\nexport const layerHostStyle: IStyle = {\n position: 'absolute',\n left: 0,\n top: 0,\n width: '100%',\n height: '100%',\n overflow: 'hidden',\n // pointer events for layerHost set to none to make descendants interactive\n pointerEvents: 'none'\n};\n\n/**\n * @private\n */\nexport const localVideoCameraCycleButtonStyles = (theme: Theme): IButtonStyles => {\n return {\n root: {\n position: 'absolute',\n width: _pxToRem(32),\n height: _pxToRem(32),\n right: '0rem',\n top: '0rem',\n color: '#FFFFFF', // only shows up on running video feed to we want to force specific colours.\n zIndex: 2, // shows the button directly over the local video feed.\n background: 'rgba(0,0,0,0.4)',\n borderRadius: theme.effects.roundedCorner2\n },\n rootFocused: {\n // styles to remove the unwanted white highlight and blue colour after tapping on button.\n color: '#FFFFFF',\n background: 'rgba(0,0,0,0.4)' // sets opacity of background to be visible on all backdrops in video stream.\n },\n icon: {\n paddingLeft: _pxToRem(3),\n paddingRight: _pxToRem(3),\n margin: 0\n },\n flexContainer: {\n paddingBottom: _pxToRem(8)\n }\n };\n};\n\n/**\n * Styles for the local video tile modal when it is focused, will cause keyboard move icon to appear over video\n * @private\n */\nexport const localVideoModalStyles: Partial<IModalStyles> = {\n keyboardMoveIconContainer: {\n zIndex: LOCAL_VIDEO_TILE_ZINDEX + 1 // zIndex to set the keyboard movement Icon above the other layers in the video tile.\n }\n};\n\"../../../../acs-ui-common/src\""]}
|
1
|
+
{"version":3,"file":"VideoGallery.styles.js","sourceRoot":"","sources":["../../../../../../../react-components/src/components/styles/VideoGallery.styles.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAA+B,WAAW,EAAS,MAAM,iBAAiB,CAAC;AAClF,OAAO,EAAE,QAAQ,EAAE,sCAAgC;AAEnD;;GAEG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,WAAW,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;AAE9G;;GAEG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAiB;IACtD,IAAI,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE;CACjF,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC,KAAY,EAAiB,EAAE;IAC/E,OAAO;QACL,IAAI,EAAE;YACJ,QAAQ,EAAE,UAAU;YACpB,KAAK,EAAE,QAAQ,CAAC,EAAE,CAAC;YACnB,MAAM,EAAE,QAAQ,CAAC,EAAE,CAAC;YACpB,KAAK,EAAE,MAAM;YACb,GAAG,EAAE,MAAM;YACX,KAAK,EAAE,SAAS;YAChB,MAAM,EAAE,CAAC;YACT,UAAU,EAAE,iBAAiB;YAC7B,YAAY,EAAE,KAAK,CAAC,OAAO,CAAC,cAAc;SAC3C;QACD,WAAW,EAAE;YACX,yFAAyF;YACzF,KAAK,EAAE,SAAS;YAChB,UAAU,EAAE,iBAAiB,CAAC,6EAA6E;SAC5G;QACD,IAAI,EAAE;YACJ,WAAW,EAAE,QAAQ,CAAC,CAAC,CAAC;YACxB,YAAY,EAAE,QAAQ,CAAC,CAAC,CAAC;YACzB,MAAM,EAAE,CAAC;SACV;QACD,aAAa,EAAE;YACb,aAAa,EAAE,QAAQ,CAAC,CAAC,CAAC;SAC3B;KACF,CAAC;AACJ,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { IButtonStyles, IStackStyles, mergeStyles, Theme } from '@fluentui/react';\nimport { _pxToRem } from '@internal/acs-ui-common';\n\n/**\n * @private\n */\nexport const videoGalleryOuterDivStyle = mergeStyles({ position: 'relative', width: '100%', height: '100%' });\n\n/**\n * @private\n */\nexport const videoGalleryContainerStyle: IStackStyles = {\n root: { position: 'relative', height: '100%', width: '100%', padding: '0.5rem' }\n};\n\n/**\n * @private\n */\nexport const localVideoCameraCycleButtonStyles = (theme: Theme): IButtonStyles => {\n return {\n root: {\n position: 'absolute',\n width: _pxToRem(32),\n height: _pxToRem(32),\n right: '0rem',\n top: '0rem',\n color: '#FFFFFF', // only shows up on running video feed to we want to force specific colours.\n zIndex: 2, // shows the button directly over the local video feed.\n background: 'rgba(0,0,0,0.4)',\n borderRadius: theme.effects.roundedCorner2\n },\n rootFocused: {\n // styles to remove the unwanted white highlight and blue colour after tapping on button.\n color: '#FFFFFF',\n background: 'rgba(0,0,0,0.4)' // sets opacity of background to be visible on all backdrops in video stream.\n },\n icon: {\n paddingLeft: _pxToRem(3),\n paddingRight: _pxToRem(3),\n margin: 0\n },\n flexContainer: {\n paddingBottom: _pxToRem(8)\n }\n };\n};\n\"../../../../acs-ui-common/src\""]}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@azure/communication-react",
|
3
|
-
"version": "1.4.3-alpha-
|
3
|
+
"version": "1.4.3-alpha-202212080013.0",
|
4
4
|
"sideEffects": false,
|
5
5
|
"description": "React library for building modern communication user experiences utilizing Azure Communication Services",
|
6
6
|
"keywords": [
|
@@ -86,13 +86,13 @@
|
|
86
86
|
"@azure/core-auth": "1.3.2",
|
87
87
|
"@babel/cli": "~7.16.0",
|
88
88
|
"@babel/core": "~7.16.0",
|
89
|
-
"@internal/calling-component-bindings": "1.4.3-alpha-
|
90
|
-
"@internal/calling-stateful-client": "1.4.3-alpha-
|
91
|
-
"@internal/chat-component-bindings": "1.4.3-alpha-
|
92
|
-
"@internal/chat-stateful-client": "1.4.3-alpha-
|
93
|
-
"@internal/fake-backends": "1.4.3-alpha-
|
94
|
-
"@internal/react-components": "1.4.3-alpha-
|
95
|
-
"@internal/react-composites": "1.4.3-alpha-
|
89
|
+
"@internal/calling-component-bindings": "1.4.3-alpha-202212080013.0",
|
90
|
+
"@internal/calling-stateful-client": "1.4.3-alpha-202212080013.0",
|
91
|
+
"@internal/chat-component-bindings": "1.4.3-alpha-202212080013.0",
|
92
|
+
"@internal/chat-stateful-client": "1.4.3-alpha-202212080013.0",
|
93
|
+
"@internal/fake-backends": "1.4.3-alpha-202212080013.0",
|
94
|
+
"@internal/react-components": "1.4.3-alpha-202212080013.0",
|
95
|
+
"@internal/react-composites": "1.4.3-alpha-202212080013.0",
|
96
96
|
"@microsoft/api-documenter": "~7.12.11",
|
97
97
|
"@microsoft/api-extractor": "~7.18.0",
|
98
98
|
"@rollup/plugin-json": "~4.1.0",
|