Update license to License (including lint rule) (#3588)
This commit is contained in:
Родитель
f0d586295b
Коммит
71e9a00420
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"type": "none",
|
||||
"area": "fix",
|
||||
"workstream": "KTLO",
|
||||
"comment": "Update license to License (including lint rule)",
|
||||
"packageName": "@azure/communication-react",
|
||||
"email": "2684369+JamesBurnside@users.noreply.github.com",
|
||||
"dependentChangeType": "none"
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"type": "none",
|
||||
"area": "fix",
|
||||
"workstream": "KTLO",
|
||||
"comment": "Update license to License (including lint rule)",
|
||||
"packageName": "@azure/communication-react",
|
||||
"email": "2684369+JamesBurnside@users.noreply.github.com",
|
||||
"dependentChangeType": "none"
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
/*
|
||||
* For a detailed explanation regarding each configuration property and type check, visit:
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
// Ensure console errors fail tests
|
||||
console.error = (...args) => {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
import commonjs from '@rollup/plugin-commonjs';
|
||||
import json from '@rollup/plugin-json';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
const path = require('path');
|
||||
const webpack = require('webpack');
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
const core = require('@actions/core');
|
||||
const fs = require('fs');
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
/**
|
||||
* Script to generate change files for changes in this repository.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
/**
|
||||
* A helper module to generate CHANGELOG files without bumping packlet versions.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
/**
|
||||
* Script to check that changefile has been generated for each Pull Request.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
/**
|
||||
* Script to collect CHANGELOG files for stable and beta releases.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
import path from 'path';
|
||||
import { REPO_ROOT } from '../lib/index.mjs';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
const NEW_CHANGE_FILE_REGEXP = /\s*A\s*change\/(.*\.json)\s*/;
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
"use strict";
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env node
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
import { REPO_ROOT } from './lib/index.mjs';
|
||||
import { removeDepsFromAllPackages, updateAllDepVersions } from './package-utils.js';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
import path from 'path';
|
||||
import { fileURLToPath } from 'url';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
import child_process from 'child_process';
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
import path from 'path';
|
||||
import { readFileSync } from 'fs';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
export * from './constants.mjs';
|
||||
export * from './exec.mjs';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
"use strict";
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License.
|
||||
// See the @microsoft/rush package's LICENSE file for license information.
|
||||
|
||||
// Use this script to set all the packlets' version to a specific value.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
"use strict";
|
||||
|
||||
|
@ -27,7 +27,7 @@ function _generateTelemetryVersionFile(filePath, packageVersion) {
|
|||
fs.writeFileSync(
|
||||
filePath,
|
||||
'// Copyright (c) Microsoft Corporation.\n' +
|
||||
'// Licensed under the MIT license.\n' +
|
||||
'// Licensed under the MIT License.\n' +
|
||||
'\n' +
|
||||
'// GENERATED FILE. DO NOT EDIT MANUALLY.\n' +
|
||||
'\n' +
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env node
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
/**
|
||||
* This script is used by GitHub workflows to parse and marshal the build matrix
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
module.exports = {
|
||||
env: {
|
||||
|
@ -27,7 +27,7 @@ module.exports = {
|
|||
],
|
||||
'@typescript-eslint/no-explicit-any': 'error',
|
||||
eqeqeq: 'warn',
|
||||
'header/header': ['error', 'line', ' Copyright (c) Microsoft Corporation.\n Licensed under the MIT license.'],
|
||||
'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',
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||
const commonConfig = require('../../common/config/jest/jest.config');
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
"test:ci-coverage": "rushx _by-flavor \"rushx _test:by-flavor --coverage\"",
|
||||
"test:coverage": "rushx _by-flavor \"rushx _test:by-flavor --coverage --coverageReporters=lcov\"",
|
||||
"lint": "eslint --max-warnings 0 \"*/**/*.{ts,tsx}\"",
|
||||
"lint:fix": "rushx lint -- --fix",
|
||||
"lint:fix": "rushx lint --fix --",
|
||||
"lint:quiet": "rushx lint -- --quiet",
|
||||
"api-extractor": "rushx _by-flavor \"rushx build:esm && rushx _api-extractor:by-flavor\"",
|
||||
"generate-doc": "api-documenter markdown -i temp -o docGen",
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
import Package from './package.json';
|
||||
import commonConfig from '../../common/config/rollup/rollup.config';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
/**
|
||||
* Client-side state of a sent message.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
/**
|
||||
* @internal
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
/**
|
||||
* Return intersect type of 2 types
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
import React from 'react';
|
||||
import * as utils from './utils';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
import React from 'react';
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
/**
|
||||
* Default max listeners for use with {@link EventEmitter.setMaxListeners} function
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
/**
|
||||
* @internal
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
import {
|
||||
isCommunicationUserIdentifier,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
import {
|
||||
CommunicationIdentifier,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
export { memoizeFnAll } from './memoizeFnAll';
|
||||
export {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
/**
|
||||
* @internal
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
import { AzureLogger, AzureLogLevel } from '@azure/logger';
|
||||
import { _safeJSONStringify } from './safeStringify';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
import { memoizeFnAll } from './memoizeFnAll';
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
/**
|
||||
* A function type where the first argument is a key used to memoize results.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
/**
|
||||
* Wrap JSON.stringify in a try-catch as JSON.stringify throws an exception if it fails.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
import { _getApplicationId, sanitize } from './telemetry';
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
import * as telemetryVersion from './telemetryVersion';
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
// GENERATED FILE. DO NOT EDIT MANUALLY.
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
module.exports = {
|
||||
env: {
|
||||
|
@ -27,7 +27,7 @@ module.exports = {
|
|||
],
|
||||
'@typescript-eslint/no-explicit-any': 'off',
|
||||
eqeqeq: 'warn',
|
||||
'header/header': ['error', 'line', ' Copyright (c) Microsoft Corporation.\n Licensed under the MIT license.'],
|
||||
'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',
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||
const commonConfig = require('../../common/config/jest/jest.config');
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
"test:ci-coverage": "rushx _by-flavor \"rushx _test:by-flavor --coverage\"",
|
||||
"test:coverage": "rushx _by-flavor \"rushx _test:by-flavor --coverage --coverageReporters=lcov\"",
|
||||
"lint": "eslint --max-warnings 0 \"*/**/*.{ts,tsx}\"",
|
||||
"lint:fix": "rushx lint -- --fix",
|
||||
"lint:fix": "rushx lint --fix --",
|
||||
"lint:quiet": "rushx lint -- --quiet",
|
||||
"api-extractor": "rushx _by-flavor \"rushx build:esm && rushx _api-extractor:by-flavor\"",
|
||||
"generate-doc": "api-documenter markdown -i temp -o docGen",
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
import Package from './package.json';
|
||||
import commonConfig from '../../common/config/rollup/rollup.config';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
import { DominantSpeakersInfo } from '@azure/communication-calling';
|
||||
/* @conditional-compile-remove(capabilities) */
|
||||
import { ParticipantCapabilities } from '@azure/communication-calling';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
import { AudioDeviceInfo, VideoDeviceInfo } from '@azure/communication-calling';
|
||||
import { CallClientState } from '@internal/calling-stateful-client';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
import { CommunicationIdentifier } from '@azure/communication-common';
|
||||
import { DeviceManagerState, LocalVideoStreamState } from '@internal/calling-stateful-client';
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
/* @conditional-compile-remove(close-captions) */
|
||||
import { CallClientState, CaptionsInfo } from '@internal/calling-stateful-client';
|
||||
/* @conditional-compile-remove(close-captions) */
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
import {
|
||||
CallingBaseSelectorProps,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
import {
|
||||
AudioDeviceInfo,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
/* @conditional-compile-remove(teams-identity-support) */
|
||||
import { _isTeamsCall, _isTeamsCallAgent } from '@internal/calling-stateful-client';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
import { CallAgent, CallAgentOptions, DeviceManager } from '@azure/communication-calling';
|
||||
import { CommunicationTokenCredential } from '@azure/communication-common';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
import { Call, CallAgent, StartCallOptions } from '@azure/communication-calling';
|
||||
/* @conditional-compile-remove(dialpad) */ /* @conditional-compile-remove(PSTN-calls) */
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
import { StartCallOptions } from '@azure/communication-calling';
|
||||
/* @conditional-compile-remove(teams-identity-support) */
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
import { ReactElement, useContext } from 'react';
|
||||
import {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
import {
|
||||
CameraButton,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
import { CallClientState, StatefulCallClient } from '@internal/calling-stateful-client';
|
||||
import { CallClientContext, CallContext } from '../providers';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
export type { CallingBaseSelectorProps } from './baseSelectors';
|
||||
export * from './callControlSelectors';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
import { CallClientState, RemoteParticipantState } from '@internal/calling-stateful-client';
|
||||
import { createSelector } from 'reselect';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
import { CallParticipantListParticipant } from '@internal/react-components';
|
||||
import { participantListSelector } from './participantListSelector';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
import { CallAgent } from '@azure/communication-calling';
|
||||
/* @conditional-compile-remove(teams-identity-support) */
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
import { StatefulCallClient, StatefulDeviceManager } from '@internal/calling-stateful-client';
|
||||
import React, { createContext, useContext, useEffect, useState } from 'react';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
import React, { useContext, createContext } from 'react';
|
||||
import { Call } from '@azure/communication-calling';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
export * from './CallAgentProvider';
|
||||
export * from './CallClientProvider';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
import { RemoteParticipantState } from '@internal/calling-stateful-client';
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
import { DeviceManagerState, RemoteParticipantState, StatefulCallClient } from '@internal/calling-stateful-client';
|
||||
import { CallState as CallStatus } from '@azure/communication-calling';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
import { RemoteParticipantState } from '@azure/communication-calling';
|
||||
import { getIdentifierKind } from '@azure/communication-common';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
import {
|
||||
DominantSpeakersInfo,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
import { toFlatCommunicationIdentifier } from '@internal/acs-ui-common';
|
||||
import { CallClientState, RemoteParticipantState } from '@internal/calling-stateful-client';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
module.exports = {
|
||||
env: {
|
||||
|
@ -27,7 +27,7 @@ module.exports = {
|
|||
],
|
||||
'@typescript-eslint/no-explicit-any': 'off',
|
||||
eqeqeq: 'warn',
|
||||
'header/header': ['error', 'line', ' Copyright (c) Microsoft Corporation.\n Licensed under the MIT license.'],
|
||||
'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',
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||
const commonConfig = require('../../common/config/jest/jest.config');
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
"test:ci-coverage": "rushx _by-flavor \"rushx _test:by-flavor --coverage\"",
|
||||
"test:coverage": "rushx _by-flavor \"rushx _test:by-flavor --coverage --coverageReporters=lcov\"",
|
||||
"lint": "eslint --max-warnings 0 \"*/**/*.{ts,tsx}\"",
|
||||
"lint:fix": "rushx lint -- --fix",
|
||||
"lint:fix": "rushx lint --fix --",
|
||||
"lint:quiet": "rushx lint -- --quiet",
|
||||
"api-extractor": "rushx _by-flavor \"rushx build:esm && rushx _api-extractor:by-flavor\"",
|
||||
"generate-doc": "api-documenter markdown -i temp -o docGen",
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
import Package from './package.json';
|
||||
import commonConfig from '../../common/config/rollup/rollup.config';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
// This is for mapping new types from beta, which does not exist in stable sdk.
|
||||
// These mappings are necessary to bypass type check of conditional compilation
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
import {
|
||||
Call,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
import { CallAgent } from '@azure/communication-calling';
|
||||
import { clearCallRelatedState, DeclarativeCallCommon, ProxyCallAgentCommon } from './CallAgentDeclarativeCommon';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
import { Call, CallAgent, CallEndReason, CollectionUpdatedEvent } from '@azure/communication-calling';
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
import {
|
||||
AudioDeviceInfo,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
import { CommunicationIdentifierKind } from '@azure/communication-common';
|
||||
import {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
import { Call } from '@azure/communication-calling';
|
||||
import { ProxyCallCommon } from './CallDeclarativeCommon';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
import { CallContext } from './CallContext';
|
||||
import { CallCommon } from './BetaToStableTypes';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
/**
|
||||
* @private
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// 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,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
import { Features, LocalVideoStream, RemoteParticipant } from '@azure/communication-calling';
|
||||
/* @conditional-compile-remove(close-captions) */
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
/* @conditional-compile-remove(capabilities) */
|
||||
import { CapabilitiesChangeInfo, CapabilitiesFeature } from '@azure/communication-calling';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
/* @conditional-compile-remove(close-captions) */
|
||||
import {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
import {
|
||||
RemoteParticipant as SdkRemoteParticipant,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
import {
|
||||
AudioDeviceInfo,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
import { AudioDeviceInfo, DeviceAccess, DeviceManager, VideoDeviceInfo } from '@azure/communication-calling';
|
||||
import { CallContext } from './CallContext';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
import { IncomingCall } from '@azure/communication-calling';
|
||||
import { IncomingCallCommon } from './BetaToStableTypes';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
import { CallEndReason } from '@azure/communication-calling';
|
||||
import { IncomingCallCommon } from './BetaToStableTypes';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
import { LocalVideoStream, RemoteVideoStream, VideoStreamRenderer } from '@azure/communication-calling';
|
||||
import { LocalVideoStreamState } from './CallClientState';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
/* @conditional-compile-remove(video-background-effects) */
|
||||
import { VideoEffectErrorPayload, VideoEffectsFeature } from '@azure/communication-calling';
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
import { createClientLogger } from '@azure/logger';
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
/* @conditional-compile-remove(optimal-video-count) */
|
||||
import { OptimalVideoCountCallFeature } from '@azure/communication-calling';
|
||||
/* @conditional-compile-remove(optimal-video-count) */
|
||||
|
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче