@azure/communication-react 1.10.0-alpha-202311080012 → 1.10.0-alpha-202311090013
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 +6 -8
- package/dist/dist-cjs/communication-react/index.js +18 -7
- 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-stateful-client/src/CallClientState.d.ts +2 -2
- package/dist/dist-esm/calling-stateful-client/src/CallClientState.js.map +1 -1
- package/dist/dist-esm/chat-component-bindings/src/handlers/createHandlers.d.ts +2 -1
- package/dist/dist-esm/chat-component-bindings/src/handlers/createHandlers.js +2 -2
- package/dist/dist-esm/chat-component-bindings/src/handlers/createHandlers.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/MessageThread.d.ts +2 -1
- package/dist/dist-esm/react-components/src/components/MessageThread.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.d.ts +3 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js +3 -2
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.js +5 -1
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useHandlers.js +7 -1
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useHandlers.js.map +1 -1
- package/package.json +2 -2
@@ -44,7 +44,7 @@ import { CommunicationIdentifier } from '@azure/communication-common';
|
|
44
44
|
import { CommunicationIdentifierKind } from '@azure/communication-common';
|
45
45
|
import { CommunicationTokenCredential } from '@azure/communication-common';
|
46
46
|
import { CommunicationUserIdentifier } from '@azure/communication-common';
|
47
|
-
import { CommunicationUserKind } from '@azure/communication-common';
|
47
|
+
import type { CommunicationUserKind } from '@azure/communication-common';
|
48
48
|
import { CreateViewOptions } from '@azure/communication-calling';
|
49
49
|
import { DeviceAccess } from '@azure/communication-calling';
|
50
50
|
import { DeviceManager } from '@azure/communication-calling';
|
@@ -73,9 +73,7 @@ import { LatestNetworkDiagnostics } from '@azure/communication-calling';
|
|
73
73
|
import { LocalVideoStream } from '@azure/communication-calling';
|
74
74
|
import type { MediaDiagnosticChangedEventArgs } from '@azure/communication-calling';
|
75
75
|
import { MediaStreamType } from '@azure/communication-calling';
|
76
|
-
import { MicrosoftTeamsAppKind } from '@azure/communication-common';
|
77
76
|
import { MicrosoftTeamsUserIdentifier } from '@azure/communication-common';
|
78
|
-
import { MicrosoftTeamsUserKind } from '@azure/communication-common';
|
79
77
|
import type { NetworkDiagnosticChangedEventArgs } from '@azure/communication-calling';
|
80
78
|
import { PartialTheme } from '@fluentui/react';
|
81
79
|
import { ParticipantCapabilities } from '@azure/communication-calling';
|
@@ -85,7 +83,6 @@ import { PersonaInitialsColor } from '@fluentui/react';
|
|
85
83
|
import { PersonaPresence } from '@fluentui/react';
|
86
84
|
import { PersonaSize } from '@fluentui/react';
|
87
85
|
import { PhoneNumberIdentifier } from '@azure/communication-common';
|
88
|
-
import { PhoneNumberKind } from '@azure/communication-common';
|
89
86
|
import { PropertyChangedEvent } from '@azure/communication-calling';
|
90
87
|
import { default as React_2 } from 'react';
|
91
88
|
import type { RemoteParticipant } from '@azure/communication-calling';
|
@@ -102,7 +99,6 @@ import { TeamsMeetingLinkLocator } from '@azure/communication-calling';
|
|
102
99
|
import { Theme } from '@fluentui/react';
|
103
100
|
import { TransferRequestedEventArgs } from '@azure/communication-calling';
|
104
101
|
import { TypingIndicatorReceivedEvent } from '@azure/communication-chat';
|
105
|
-
import { UnknownIdentifierKind } from '@azure/communication-common';
|
106
102
|
import { VideoDeviceInfo } from '@azure/communication-calling';
|
107
103
|
import { VideoEffectName } from '@azure/communication-calling';
|
108
104
|
import { VideoStreamRenderer } from '@azure/communication-calling';
|
@@ -4262,7 +4258,8 @@ export declare type ChatHandlers = {
|
|
4262
4258
|
onRemoveParticipant: (userId: string) => Promise<void>;
|
4263
4259
|
updateThreadTopicName: (topicName: string) => Promise<void>;
|
4264
4260
|
onLoadPreviousChatMessages: (messagesToLoad: number) => Promise<boolean>;
|
4265
|
-
onUpdateMessage: (messageId: string, content: string,
|
4261
|
+
onUpdateMessage: (messageId: string, content: string, options?: {
|
4262
|
+
metadata?: Record<string, string>;
|
4266
4263
|
attachedFilesMetadata?: FileMetadata[];
|
4267
4264
|
}) => Promise<void>;
|
4268
4265
|
onDeleteMessage: (messageId: string) => Promise<void>;
|
@@ -8651,7 +8648,7 @@ export declare interface RemoteParticipantState {
|
|
8651
8648
|
/**
|
8652
8649
|
* Proxy of {@link @azure/communication-calling#RemoteParticipant.identifier}.
|
8653
8650
|
*/
|
8654
|
-
identifier:
|
8651
|
+
identifier: CommunicationIdentifierKind;
|
8655
8652
|
/**
|
8656
8653
|
* Proxy of {@link @azure/communication-calling#RemoteParticipant.displayName}.
|
8657
8654
|
*/
|
@@ -9729,7 +9726,8 @@ export declare interface UnsupportedOperatingSystemStrings {
|
|
9729
9726
|
* @public
|
9730
9727
|
* Callback function run when a message is updated.
|
9731
9728
|
*/
|
9732
|
-
export declare type UpdateMessageCallback = (messageId: string, content: string,
|
9729
|
+
export declare type UpdateMessageCallback = (messageId: string, content: string, options?: {
|
9730
|
+
metadata?: Record<string, string>;
|
9733
9731
|
attachedFilesMetadata?: FileMetadata[];
|
9734
9732
|
}) => Promise<void>;
|
9735
9733
|
|
@@ -177,7 +177,7 @@ const _isValidIdentifier = (identifier) => {
|
|
177
177
|
// Copyright (c) Microsoft Corporation.
|
178
178
|
// Licensed under the MIT License.
|
179
179
|
// GENERATED FILE. DO NOT EDIT MANUALLY.
|
180
|
-
var telemetryVersion = '1.10.0-alpha-
|
180
|
+
var telemetryVersion = '1.10.0-alpha-202311090013';
|
181
181
|
|
182
182
|
// Copyright (c) Microsoft Corporation.
|
183
183
|
/**
|
@@ -19158,8 +19158,8 @@ const createDefaultChatHandlers = memoizeOne__default["default"]((chatClient, ch
|
|
19158
19158
|
};
|
19159
19159
|
yield chatThreadClient.sendMessage(sendMessageRequest, options);
|
19160
19160
|
}),
|
19161
|
-
onUpdateMessage: (messageId, content,
|
19162
|
-
const updatedMetadata = metadata ? Object.assign({}, metadata) : {};
|
19161
|
+
onUpdateMessage: (messageId, content, options) => __awaiter$q(void 0, void 0, void 0, function* () {
|
19162
|
+
const updatedMetadata = (options === null || options === void 0 ? void 0 : options.metadata) ? Object.assign({}, options.metadata) : {};
|
19163
19163
|
updatedMetadata['fileSharingMetadata'] = JSON.stringify((options === null || options === void 0 ? void 0 : options.attachedFilesMetadata) || []);
|
19164
19164
|
yield chatThreadClient.updateMessage(messageId, { content, metadata: updatedMetadata });
|
19165
19165
|
}),
|
@@ -21644,7 +21644,11 @@ class AzureCommunicationChatAdapter {
|
|
21644
21644
|
return __awaiter$k(this, void 0, void 0, function* () {
|
21645
21645
|
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$k(this, void 0, void 0, function* () {
|
21646
21646
|
/* @conditional-compile-remove(file-sharing) */
|
21647
|
-
|
21647
|
+
const updatedOptions = options
|
21648
|
+
? { attachedFilesMetadata: options.attachedFilesMetadata, metadata: metadata }
|
21649
|
+
: {};
|
21650
|
+
/* @conditional-compile-remove(file-sharing) */
|
21651
|
+
return yield this.handlers.onUpdateMessage(messageId, content, updatedOptions);
|
21648
21652
|
}));
|
21649
21653
|
});
|
21650
21654
|
}
|
@@ -22314,7 +22318,13 @@ const createCompositeHandlers$1 = memoizeOne__default["default"]((adapter) => ({
|
|
22314
22318
|
onTyping: adapter.sendTypingIndicator,
|
22315
22319
|
onRemoveParticipant: adapter.removeParticipant,
|
22316
22320
|
updateThreadTopicName: adapter.setTopic,
|
22317
|
-
onUpdateMessage:
|
22321
|
+
onUpdateMessage: (messageId, content, options) => {
|
22322
|
+
const metadata = options === null || options === void 0 ? void 0 : options.metadata;
|
22323
|
+
/* @conditional-compile-remove(file-sharing) */
|
22324
|
+
const updatedOptions = (options === null || options === void 0 ? void 0 : options.attachedFilesMetadata) ? Object.assign({}, options.attachedFilesMetadata) : {};
|
22325
|
+
return adapter.updateMessage(messageId, content, metadata,
|
22326
|
+
/* @conditional-compile-remove(file-sharing) */ updatedOptions);
|
22327
|
+
},
|
22318
22328
|
onDeleteMessage: adapter.deleteMessage
|
22319
22329
|
}));
|
22320
22330
|
|
@@ -32452,9 +32462,10 @@ class AzureCommunicationCallWithChatAdapter {
|
|
32452
32462
|
});
|
32453
32463
|
}
|
32454
32464
|
/** Update an existing message. */
|
32455
|
-
updateMessage(messageId, content, metadata) {
|
32465
|
+
updateMessage(messageId, content, metadata, options) {
|
32456
32466
|
return __awaiter$2(this, void 0, void 0, function* () {
|
32457
|
-
return yield this.chatAdapter.updateMessage(messageId, content, metadata
|
32467
|
+
return yield this.chatAdapter.updateMessage(messageId, content, metadata,
|
32468
|
+
/* @conditional-compile-remove(file-sharing) */ options);
|
32458
32469
|
});
|
32459
32470
|
}
|
32460
32471
|
/** Delete an existing message. */
|