@azure/communication-react 1.7.0-alpha-202308030014 → 1.7.0-alpha-202308050013
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/communication-react.d.ts +108 -0
- package/dist/dist-cjs/communication-react/index.js +433 -97
- 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/communication-react/src/index.d.ts +2 -0
- package/dist/dist-esm/communication-react/src/index.js +2 -0
- package/dist/dist-esm/communication-react/src/index.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponent.d.ts +6 -0
- package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponent.js +2 -0
- package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponent.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsMessageBubble.d.ts +6 -0
- package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsMessageBubble.js +41 -3
- package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsMessageBubble.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.d.ts +1 -0
- package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.js +6 -0
- package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/ImageGallery.d.ts +5 -0
- package/dist/dist-esm/react-components/src/components/ImageGallery.js +10 -5
- package/dist/dist-esm/react-components/src/components/ImageGallery.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/MessageThread.d.ts +6 -0
- package/dist/dist-esm/react-components/src/components/MessageThread.js +7 -1
- package/dist/dist-esm/react-components/src/components/MessageThread.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/styles/ImageGallery.style.d.ts +6 -2
- package/dist/dist-esm/react-components/src/components/styles/ImageGallery.style.js +25 -3
- package/dist/dist-esm/react-components/src/components/styles/ImageGallery.style.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js +8 -4
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/usePeoplePane.d.ts +3 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/usePeoplePane.js +4 -2
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/usePeoplePane.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/useVideoEffectsPane.d.ts +3 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/useVideoEffectsPane.js +4 -2
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/useVideoEffectsPane.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Camera.d.ts +3 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Camera.js +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Camera.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.d.ts +1 -0
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js +45 -2
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.d.ts +4 -1
- package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js +2 -2
- package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js.map +1 -1
- package/package.json +8 -8
@@ -57,7 +57,12 @@ import { IContextualMenuProps } from '@fluentui/react';
|
|
57
57
|
import { IContextualMenuStyles } from '@fluentui/react';
|
58
58
|
import { ILinkStyles } from '@fluentui/react';
|
59
59
|
import { IMessageBarProps } from '@fluentui/react';
|
60
|
+
import { IModalStyleProps } from '@fluentui/react';
|
61
|
+
import { IModalStyles } from '@fluentui/react';
|
60
62
|
import { IncomingCall } from '@azure/communication-calling';
|
63
|
+
import { IOverlayStyleProps } from '@fluentui/react';
|
64
|
+
import { IOverlayStyles } from '@fluentui/react';
|
65
|
+
import { IPersonaProps } from '@fluentui/react';
|
61
66
|
import { IPersonaStyleProps } from '@fluentui/react';
|
62
67
|
import { IPersonaStyles } from '@fluentui/react';
|
63
68
|
import { IRawStyle } from '@fluentui/react';
|
@@ -93,6 +98,7 @@ import { ScalingMode } from '@azure/communication-calling';
|
|
93
98
|
import { SendMessageOptions } from '@azure/communication-chat';
|
94
99
|
import { StartCallOptions } from '@azure/communication-calling';
|
95
100
|
import { StartCaptionsOptions } from '@azure/communication-calling';
|
101
|
+
import { SyntheticEvent } from 'react';
|
96
102
|
import { TeamsCall } from '@azure/communication-calling';
|
97
103
|
import { TeamsCallAgent } from '@azure/communication-calling';
|
98
104
|
import { TeamsMeetingLinkLocator } from '@azure/communication-calling';
|
@@ -6574,6 +6580,103 @@ export declare interface ImageFileMetadata extends BaseFileMetadata {
|
|
6574
6580
|
previewUrl?: string;
|
6575
6581
|
}
|
6576
6582
|
|
6583
|
+
/**
|
6584
|
+
* Component to render a fullscreen modal for a selected image.
|
6585
|
+
*
|
6586
|
+
* @beta
|
6587
|
+
*/
|
6588
|
+
export declare const ImageGallery: (props: ImageGalleryProps) => JSX.Element;
|
6589
|
+
|
6590
|
+
/**
|
6591
|
+
* Props for {@link ImageGallery}.
|
6592
|
+
*
|
6593
|
+
* @beta
|
6594
|
+
*/
|
6595
|
+
export declare interface ImageGalleryImageProps {
|
6596
|
+
/** Image Url used to display the image in a large scale. */
|
6597
|
+
imageUrl: string;
|
6598
|
+
/** String used as a file name when downloading this image to user's local device. */
|
6599
|
+
saveAsName: string;
|
6600
|
+
/** Optional string used as a alt text for the image. @default 'image' */
|
6601
|
+
altText?: string;
|
6602
|
+
/** Optional string used as the title of the image and displayed on the top left corner of the ImageGallery. */
|
6603
|
+
title?: string;
|
6604
|
+
/** Optional JSX element used as a title icon and displayed to the left of the title element. */
|
6605
|
+
titleIcon?: JSX.Element;
|
6606
|
+
}
|
6607
|
+
|
6608
|
+
/**
|
6609
|
+
* Props for {@link ImageGallery}.
|
6610
|
+
*
|
6611
|
+
* @beta
|
6612
|
+
*/
|
6613
|
+
export declare interface ImageGalleryProps {
|
6614
|
+
/**
|
6615
|
+
* Array of images used to populate the ImageGallery
|
6616
|
+
*/
|
6617
|
+
images: Array<ImageGalleryImageProps>;
|
6618
|
+
/**
|
6619
|
+
* Callback to invoke when the ImageGallery modal is dismissed
|
6620
|
+
*/
|
6621
|
+
onDismiss: () => void;
|
6622
|
+
/**
|
6623
|
+
* Callback called when the download button is clicked.
|
6624
|
+
*/
|
6625
|
+
onImageDownloadButtonClicked: (imageUrl: string, saveAsName: string) => void;
|
6626
|
+
/**
|
6627
|
+
* Callback called when there's an error loading the image.
|
6628
|
+
*/
|
6629
|
+
onError?: (event: SyntheticEvent<HTMLImageElement, Event>) => void;
|
6630
|
+
/** Optional id property provided on a LayerHost that this Layer should render within.
|
6631
|
+
* If an id is not provided, we will render the Layer content in a fixed position element rendered at the end of the document.
|
6632
|
+
*/
|
6633
|
+
modalLayerHostId?: string;
|
6634
|
+
/**
|
6635
|
+
* Indicating which index of the images array to start with.
|
6636
|
+
*/
|
6637
|
+
startIndex?: number;
|
6638
|
+
/**
|
6639
|
+
* Allows users to pass in an object contains custom CSS styles.
|
6640
|
+
* @Example
|
6641
|
+
* ```
|
6642
|
+
* <ImageGallery styles={{ image: { background: 'blue' } }} />
|
6643
|
+
* ```
|
6644
|
+
*/
|
6645
|
+
styles?: ImageGalleryStylesProps;
|
6646
|
+
}
|
6647
|
+
|
6648
|
+
/**
|
6649
|
+
* Fluent styles for {@link ImageGallery}.
|
6650
|
+
*
|
6651
|
+
* @beta
|
6652
|
+
*/
|
6653
|
+
export declare interface ImageGalleryStylesProps extends BaseCustomStyles {
|
6654
|
+
/** Styles for the ImageGallery Modal. */
|
6655
|
+
modal?: IStyleFunctionOrObject<IModalStyleProps, IModalStyles>;
|
6656
|
+
/** Styles for the ImageGallery Modal overlay. */
|
6657
|
+
overlay?: IStyleFunctionOrObject<IOverlayStyleProps, IOverlayStyles>;
|
6658
|
+
/** Styles for the ImageGallery header bar. */
|
6659
|
+
header?: IStyle;
|
6660
|
+
/** Styles for the ImageGallery titleBar container. */
|
6661
|
+
titleBarContainer?: IStyle;
|
6662
|
+
/** styles for the title label */
|
6663
|
+
title?: IStyle;
|
6664
|
+
/** Styles for the ImageGallery controlBar container. */
|
6665
|
+
controlBarContainer?: IStyle;
|
6666
|
+
/** Styles for the download button. */
|
6667
|
+
downloadButton?: IStyle;
|
6668
|
+
/** Styles for the icon within the download button. */
|
6669
|
+
downloadButtonIcon?: IStyle;
|
6670
|
+
/** Styles for the small download button when screen width is smaller than 25 rem. */
|
6671
|
+
smallDownloadButton?: IStyle;
|
6672
|
+
/** Styles for the close modal icon. */
|
6673
|
+
closeIcon?: IStyle;
|
6674
|
+
/** Styles for the image container. */
|
6675
|
+
imageContainer?: IStyle;
|
6676
|
+
/** Styles for the image. */
|
6677
|
+
image?: IStyle;
|
6678
|
+
}
|
6679
|
+
|
6577
6680
|
/**
|
6578
6681
|
* @beta
|
6579
6682
|
* This contains a readonly array that returns all the active `incomingCalls`.
|
@@ -7276,6 +7379,11 @@ export declare type MessageThreadProps = {
|
|
7276
7379
|
* @beta
|
7277
7380
|
*/
|
7278
7381
|
mentionOptions?: MentionOptions;
|
7382
|
+
/**
|
7383
|
+
* Optional callback called when an inline image is clicked.
|
7384
|
+
* @beta
|
7385
|
+
*/
|
7386
|
+
onInlineImageClicked?: (attachment: FileMetadata, onRenderTitleIcon?: (personaProps?: IPersonaProps) => JSX.Element) => Promise<void>;
|
7279
7387
|
};
|
7280
7388
|
|
7281
7389
|
/**
|