Fix copyright header to MIT and add LICENSE files (#225)
This commit is contained in:
Родитель
d3b01cf8bd
Коммит
d7b62e0ea8
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"type": "prerelease",
|
||||
"comment": "Fix copyright header to MIT and add LICENSE files",
|
||||
"packageName": "@azure/acs-calling-declarative",
|
||||
"email": "domessin@microsoft.com",
|
||||
"dependentChangeType": "patch"
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"type": "prerelease",
|
||||
"comment": "Fix copyright header to MIT and add LICENSE files",
|
||||
"packageName": "@azure/acs-calling-selector",
|
||||
"email": "domessin@microsoft.com",
|
||||
"dependentChangeType": "patch"
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"type": "prerelease",
|
||||
"comment": "Fix copyright header to MIT and add LICENSE files",
|
||||
"packageName": "@azure/acs-chat-declarative",
|
||||
"email": "domessin@microsoft.com",
|
||||
"dependentChangeType": "patch"
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"type": "prerelease",
|
||||
"comment": "Fix copyright header to MIT and add LICENSE files",
|
||||
"packageName": "@azure/acs-chat-selector",
|
||||
"email": "domessin@microsoft.com",
|
||||
"dependentChangeType": "patch"
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"type": "prerelease",
|
||||
"comment": "Fix copyright header to MIT and add LICENSE files",
|
||||
"packageName": "react-components",
|
||||
"email": "domessin@microsoft.com",
|
||||
"dependentChangeType": "patch"
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"type": "prerelease",
|
||||
"comment": "Fix copyright header to MIT and add LICENSE files",
|
||||
"packageName": "react-composites",
|
||||
"email": "domessin@microsoft.com",
|
||||
"dependentChangeType": "patch"
|
||||
}
|
|
@ -26,7 +26,7 @@ module.exports = {
|
|||
],
|
||||
'@typescript-eslint/no-explicit-any': 'off',
|
||||
eqeqeq: 'warn',
|
||||
'header/header': ['error', 'line', ' © Microsoft Corporation. All rights reserved.'],
|
||||
'header/header': ['error', 'line', ' Copyright (c) Microsoft Corporation.\n Licensed under the MIT license.'],
|
||||
'@typescript-eslint/no-unused-vars': ['warn', { varsIgnorePattern: '^_' }],
|
||||
'no-restricted-imports': [
|
||||
'error',
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2020 Microsoft
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
|
@ -1,4 +1,6 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import {
|
||||
Call,
|
||||
CallAgent,
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import { Call, CallAgent, CallEndReason, IncomingCall } from '@azure/communication-calling';
|
||||
import { CallContext } from './CallContext';
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import {
|
||||
Call,
|
||||
CallAgent,
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import { deviceManagerDeclaratify } from './DeviceManagerDeclarative';
|
||||
import { CallAgent, CallClient, CreateViewOptions, DeviceManager } from '@azure/communication-calling';
|
||||
import { CallClientState, LocalVideoStream, RemoteVideoStream } from './CallClientState';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import {
|
||||
AudioDeviceInfo,
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import { AudioDeviceInfo, DeviceAccess, VideoDeviceInfo } from '@azure/communication-calling';
|
||||
import EventEmitter from 'events';
|
||||
import { enableMapSet, produce } from 'immer';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import { CallerInfo } from '@azure/communication-calling';
|
||||
import { CallContext } from './CallContext';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import { Call } from '@azure/communication-calling';
|
||||
import { CallContext } from './CallContext';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
/**
|
||||
* Internal object used to hold callId. This is so when we create the closure that includes this container we can update
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import { Call, Features, LocalVideoStream, RemoteParticipant } from '@azure/communication-calling';
|
||||
import { CallContext } from './CallContext';
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import {
|
||||
Call as SdkCall,
|
||||
RemoteParticipant as SdkRemoteParticipant,
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import {
|
||||
AudioDeviceInfo,
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import { AudioDeviceInfo, DeviceAccess, DeviceManager, VideoDeviceInfo } from '@azure/communication-calling';
|
||||
import { CallContext } from './CallContext';
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import { CallEndReason, IncomingCall } from '@azure/communication-calling';
|
||||
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import { LocalVideoStream, RemoteVideoStream, VideoStreamRenderer } from '@azure/communication-calling';
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import { RemoteParticipant, RemoteVideoStream } from '@azure/communication-calling';
|
||||
import { CallContext } from './CallContext';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import { RecordingCallFeature } from '@azure/communication-calling';
|
||||
import { CallContext } from './CallContext';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import { RemoteVideoStream } from '@azure/communication-calling';
|
||||
import { CallContext } from './CallContext';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import {
|
||||
CallerInfo,
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import { CreateViewOptions, VideoStreamRenderer } from '@azure/communication-calling';
|
||||
import { LocalVideoStream, RemoteVideoStream } from './CallClientState';
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import {
|
||||
Call,
|
||||
CallAgent,
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import { TranscriptionCallFeature } from '@azure/communication-calling';
|
||||
import { CallContext } from './CallContext';
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
export { callClientDeclaratify } from './CallClientDeclarative';
|
||||
export type { DeclarativeCallClient } from './CallClientDeclarative';
|
||||
export type {
|
||||
|
|
|
@ -26,7 +26,7 @@ module.exports = {
|
|||
],
|
||||
'@typescript-eslint/no-explicit-any': 'off',
|
||||
eqeqeq: 'warn',
|
||||
'header/header': ['error', 'line', ' © Microsoft Corporation. All rights reserved.'],
|
||||
'header/header': ['error', 'line', ' Copyright (c) Microsoft Corporation.\n Licensed under the MIT license.'],
|
||||
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
|
||||
'no-restricted-imports': [
|
||||
'error',
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2020 Microsoft
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
|
@ -1,4 +1,5 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import { Call, CallClientState, DeviceManager, IncomingCall } from '@azure/acs-calling-declarative';
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
// @ts-ignore
|
||||
import * as reselect from 'reselect';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import { CallAgent, CallAgentOptions, DeviceManager } from '@azure/communication-calling';
|
||||
import { CommunicationTokenCredential } from '@azure/communication-common';
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import {
|
||||
CallAgent,
|
||||
DeviceManager,
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
export { createDefaultHandlersForComponent } from './handlers/createHandlers';
|
||||
export type { BaseSelectorProps } from './baseSelectors';
|
||||
export type { CommonProperties } from './handlers/createHandlers';
|
||||
|
|
|
@ -26,7 +26,7 @@ module.exports = {
|
|||
],
|
||||
'@typescript-eslint/no-explicit-any': 'off',
|
||||
eqeqeq: 'warn',
|
||||
'header/header': ['error', 'line', ' © Microsoft Corporation. All rights reserved.'],
|
||||
'header/header': ['error', 'line', ' Copyright (c) Microsoft Corporation.\n Licensed under the MIT license.'],
|
||||
'@typescript-eslint/no-unused-vars': ['warn', { varsIgnorePattern: '^_' }],
|
||||
'no-restricted-imports': [
|
||||
'error',
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2020 Microsoft
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
|
@ -1,4 +1,5 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import { ChatClient, ChatThread, ChatThreadInfo } from '@azure/communication-chat';
|
||||
import {
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import { ChatClient } from '@azure/communication-chat';
|
||||
import { ChatContext } from './ChatContext';
|
||||
import { ChatClientState } from './ChatClientState';
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import { ChatThreadInfo, ChatParticipant } from '@azure/communication-chat';
|
||||
import { ChatMessageWithStatus } from './types/ChatMessageWithStatus';
|
||||
import { ReadReceipt } from './types/ReadReceipt';
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import EventEmitter from 'events';
|
||||
import produce from 'immer';
|
||||
import { ChatClientState, ChatThreadClientState } from './ChatClientState';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import { ChatMessage, ChatMessageReadReceipt, ChatParticipant, ChatThreadClient } from '@azure/communication-chat';
|
||||
import { ChatContext } from './ChatContext';
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import { ChatThreadClient, SendChatMessageResult, WithResponse } from '@azure/communication-chat';
|
||||
import { ChatMessageWithStatus } from './types/ChatMessageWithStatus';
|
||||
import { ChatContext } from './ChatContext';
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
export const Constants = {
|
||||
TYPING_INDICATOR_MAINTAIN_TIME: 30 * 1000,
|
||||
DUMMY_DATE: new Date(0)
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import { ChatClient } from '@azure/communication-chat';
|
||||
import {
|
||||
ChatMessageDeletedEvent,
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import { ChatMessage } from '@azure/communication-chat';
|
||||
import { ChatMessageWithStatus, MessageStatus } from './types/ChatMessageWithStatus';
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
export { chatClientDeclaratify } from './ChatClientDeclarative';
|
||||
export { ChatContext } from './ChatContext';
|
||||
export { chatThreadClientDeclaratify } from './ChatThreadClientDeclarative';
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import { ListPageSettings } from '@azure/communication-chat';
|
||||
import { ChatContext } from '../ChatContext';
|
||||
import { PagedAsyncIterableIterator } from '@azure/core-paging';
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import { ChatMessage, ChatThreadClient, RestListMessagesOptions } from '@azure/communication-chat';
|
||||
import { ChatContext } from '../ChatContext';
|
||||
import { convertChatMessage } from '../convertChatMessage';
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import { ChatParticipant, ChatThreadClient, RestListParticipantsOptions } from '@azure/communication-chat';
|
||||
import { ChatContext } from '../ChatContext';
|
||||
import { createDecoratedIterator } from './createDecoratedIterator';
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import { ChatThreadClient, ChatMessageReadReceipt, RestListReadReceiptsOptions } from '@azure/communication-chat';
|
||||
import { ChatContext } from '../ChatContext';
|
||||
import { createDecoratedIterator } from './createDecoratedIterator';
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import { ChatThreadInfo, ChatClient, RestListChatThreadsOptions } from '@azure/communication-chat';
|
||||
import { ChatContext } from '../ChatContext';
|
||||
import { createDecoratedIterator } from './createDecoratedIterator';
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
export class MockCommunicationUserCredential {
|
||||
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
||||
public getToken(): any {}
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import { ChatMessageReadReceipt, ChatThreadClient, ChatParticipant } from '@azure/communication-chat';
|
||||
import { ChatMessageWithStatus } from '..';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
export const createMockIterator = <T>(mockItems: T[]): any => {
|
||||
let i = 0;
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
export type ChatConfig = {
|
||||
userId: string;
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import { ChatMessage } from '@azure/communication-chat';
|
||||
|
||||
export type MessageStatus = 'delivered' | 'sending' | 'seen' | 'failed';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import { ChatMessageReadReceipt } from '@azure/communication-chat';
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import { TypingIndicatorReceivedEvent } from '@azure/communication-signaling';
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ module.exports = {
|
|||
],
|
||||
'@typescript-eslint/no-explicit-any': 'off',
|
||||
eqeqeq: 'warn',
|
||||
'header/header': ['error', 'line', ' © Microsoft Corporation. All rights reserved.'],
|
||||
'header/header': ['error', 'line', ' Copyright (c) Microsoft Corporation.\n Licensed under the MIT license.'],
|
||||
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
|
||||
'no-restricted-imports': [
|
||||
'error',
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2020 Microsoft
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
|
@ -1,4 +1,6 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import { ChatClientState, ChatMessageWithStatus, TypingIndicator } from '@azure/acs-chat-declarative';
|
||||
import { ChatParticipant, ChatMessageReadReceipt } from '@azure/communication-chat';
|
||||
export type BaseSelectorProps = {
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
// @ts-ignore
|
||||
import { ChatClientState } from '@azure/acs-chat-declarative';
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import { getChatMessages, getIsLargeGroup, getLatestReadTime, getUserId } from './baseSelectors';
|
||||
import { ChatMessageWithStatus } from '@azure/acs-chat-declarative';
|
||||
// The following need explicitly imported to avoid api-extractor issues.
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import { ReactElement } from 'react';
|
||||
import { DeclarativeChatClient } from '@azure/acs-chat-declarative';
|
||||
import { ChatThreadClient } from '@azure/communication-chat';
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
export { chatThreadSelector } from './chatThreadSelector';
|
||||
export { sendBoxSelector } from './sendBoxSelector';
|
||||
export { chatParticipantListSelector } from './chatParticipantListSelector';
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import { createSelector } from 'reselect';
|
||||
import { getCoolPeriod, getDisplayName, getUserId } from './baseSelectors';
|
||||
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import { MessageStatus } from '@azure/acs-chat-declarative';
|
||||
|
||||
export enum MessageAttachedStatus {
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
export type WebUiChatParticipant = {
|
||||
userId: string;
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import { TypingIndicator } from '@azure/acs-chat-declarative';
|
||||
import { typingIndicatorSelector } from './typingIndicatorSelector';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
// @ts-ignore
|
||||
import { ChatClientState } from '@azure/acs-chat-declarative';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import { ChatMessage } from '../types/UiChatMessage';
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
export const MINIMUM_TYPING_INTERVAL_IN_MILLISECONDS = 8000;
|
||||
export const PARTICIPANTS_THRESHOLD = 20;
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import { memoizeFnAll } from './memoizeFnAll';
|
||||
|
||||
function* genArray(
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
export type FunctionWithKey<KeyT, ArgsT extends any[], RetT> = (key: KeyT, ...args: ArgsT) => RetT;
|
||||
export type CallbackType<KeyT, ArgsT extends any[], FnRetT> = (
|
||||
memoizedFn: FunctionWithKey<KeyT, ArgsT, FnRetT>
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2020 Microsoft
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
|
@ -31,7 +31,7 @@ module.exports = {
|
|||
],
|
||||
'@typescript-eslint/no-explicit-any': 'off',
|
||||
eqeqeq: 'warn',
|
||||
'header/header': ['error', 'line', ' © Microsoft Corporation. All rights reserved.'],
|
||||
'header/header': ['error', 'line', ' Copyright (c) Microsoft Corporation.\n Licensed under the MIT license.'],
|
||||
'react/display-name': 'off',
|
||||
'@typescript-eslint/no-unused-vars': ['warn', { varsIgnorePattern: '^_' }]
|
||||
},
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2020 Microsoft
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
|
@ -1,3 +1,4 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
export * from '../../react-components/src';
|
||||
|
|
|
@ -31,7 +31,7 @@ module.exports = {
|
|||
],
|
||||
'@typescript-eslint/no-explicit-any': 'off',
|
||||
eqeqeq: 'warn',
|
||||
'header/header': ['error', 'line', ' © Microsoft Corporation. All rights reserved.'],
|
||||
'header/header': ['error', 'line', ' Copyright (c) Microsoft Corporation.\n Licensed under the MIT license.'],
|
||||
'react/display-name': 'off',
|
||||
'@typescript-eslint/no-unused-vars': ['warn', { varsIgnorePattern: '^_' }],
|
||||
'no-restricted-imports': [
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2020 Microsoft
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
|
@ -1,4 +1,5 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import React from 'react';
|
||||
import { DefaultButton, IButtonProps, Stack, concatStyleSets, mergeStyles } from '@fluentui/react';
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import { mergeStyles, Stack, IButtonProps } from '@fluentui/react';
|
||||
import { useTheme } from '@fluentui/react-theme-provider';
|
||||
import { CallIcon, CallRecordingIcon } from '@fluentui/react-northstar';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import React from 'react';
|
||||
import { DefaultButton, IButtonProps, Stack, concatStyleSets, mergeStyles } from '@fluentui/react';
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import React from 'react';
|
||||
import { render, unmountComponentAtNode } from 'react-dom';
|
||||
import { act } from 'react-dom/test-utils';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import React from 'react';
|
||||
import { mergeStyles, MessageBar, MessageBarType } from '@fluentui/react';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import { mergeStyles } from '@fluentui/react';
|
||||
import React, { useState } from 'react';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
||||
import Linkify from 'react-linkify';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import React from 'react';
|
||||
import { DefaultButton, IButtonProps, Stack, concatStyleSets, mergeStyles } from '@fluentui/react';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import React from 'react';
|
||||
import { DefaultButton, IButtonProps, Stack, concatStyleSets, mergeStyles } from '@fluentui/react';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import { memberItemContainerStyle, memberItemIsYouStyle, iconContainerStyle } from './styles/ParticipantItem.styles';
|
||||
import {
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import React from 'react';
|
||||
import { mergeStyles, TooltipHost } from '@fluentui/react';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import React from 'react';
|
||||
import { DefaultButton, IButtonProps, Stack, concatStyleSets, mergeStyles } from '@fluentui/react';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import React, { useState } from 'react';
|
||||
import {
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import React, { useEffect, useRef } from 'react';
|
||||
import { invertedVideoStyle, mediaContainer } from './styles/StreamMedia.styles';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import { IStyle, FontIcon, mergeStyles, Stack } from '@fluentui/react';
|
||||
import { ComponentSlotStyle } from '@fluentui/react-northstar';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// © Microsoft Corporation. All rights reserved.
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import React from 'react';
|
||||
import { ChoiceGroup, IChoiceGroupOption, concatStyleSets } from '@fluentui/react';
|
||||
|
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче