diff --git a/.yarn/install-state.gz b/.yarn/install-state.gz index 713879e463..2a953cd76d 100644 Binary files a/.yarn/install-state.gz and b/.yarn/install-state.gz differ diff --git a/packages/mgt-chat/src/statefulClient/Caching/MessageCache.ts b/packages/mgt-chat/src/statefulClient/Caching/MessageCache.ts index ea6941d12c..b59a329686 100644 --- a/packages/mgt-chat/src/statefulClient/Caching/MessageCache.ts +++ b/packages/mgt-chat/src/statefulClient/Caching/MessageCache.ts @@ -1,3 +1,10 @@ +/** + * ------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. + * See License in the project root for license information. + * ------------------------------------------------------------------------------------------- + */ + import { CacheItem, CacheSchema, CacheService, CacheStore, schemas } from '@microsoft/mgt-react'; import { ChatMessage } from '@microsoft/microsoft-graph-types'; import { GraphCollection } from '../graph.chat'; diff --git a/packages/mgt-chat/src/statefulClient/Caching/SubscriptionCache.ts b/packages/mgt-chat/src/statefulClient/Caching/SubscriptionCache.ts index 4b276e56e6..28a75c0c52 100644 --- a/packages/mgt-chat/src/statefulClient/Caching/SubscriptionCache.ts +++ b/packages/mgt-chat/src/statefulClient/Caching/SubscriptionCache.ts @@ -1,3 +1,10 @@ +/** + * ------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. + * See License in the project root for license information. + * ------------------------------------------------------------------------------------------- + */ + import { CacheItem, CacheSchema, CacheService, CacheStore, schemas } from '@microsoft/mgt-react'; import { Subscription } from '@microsoft/microsoft-graph-types'; import { isConversationCacheEnabled } from './isConversationCacheEnabled'; diff --git a/packages/mgt-chat/src/statefulClient/Caching/cacheEntryIsValid.ts b/packages/mgt-chat/src/statefulClient/Caching/cacheEntryIsValid.ts index e9ca12a211..3d5e7b46cf 100644 --- a/packages/mgt-chat/src/statefulClient/Caching/cacheEntryIsValid.ts +++ b/packages/mgt-chat/src/statefulClient/Caching/cacheEntryIsValid.ts @@ -1,3 +1,10 @@ +/** + * ------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. + * See License in the project root for license information. + * ------------------------------------------------------------------------------------------- + */ + import { CacheItem, CacheService } from '@microsoft/mgt-react'; /** diff --git a/packages/mgt-chat/src/statefulClient/Caching/isConversationCacheEnabled.ts b/packages/mgt-chat/src/statefulClient/Caching/isConversationCacheEnabled.ts index 58bbd20200..db71355943 100644 --- a/packages/mgt-chat/src/statefulClient/Caching/isConversationCacheEnabled.ts +++ b/packages/mgt-chat/src/statefulClient/Caching/isConversationCacheEnabled.ts @@ -1,3 +1,10 @@ +/** + * ------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. + * See License in the project root for license information. + * ------------------------------------------------------------------------------------------- + */ + import { CacheService } from '@microsoft/mgt-react'; export const isConversationCacheEnabled = (): boolean => { diff --git a/packages/mgt-chat/src/statefulClient/GraphConfig.ts b/packages/mgt-chat/src/statefulClient/GraphConfig.ts index 057382f399..bd1db73e84 100644 --- a/packages/mgt-chat/src/statefulClient/GraphConfig.ts +++ b/packages/mgt-chat/src/statefulClient/GraphConfig.ts @@ -1,3 +1,10 @@ +/** + * ------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. + * See License in the project root for license information. + * ------------------------------------------------------------------------------------------- + */ + import { GraphEndpoint } from '@microsoft/mgt-element'; export class GraphConfig { diff --git a/packages/mgt-chat/src/statefulClient/certs.ts b/packages/mgt-chat/src/statefulClient/certs.ts index 1f1d022e43..55b604b422 100644 --- a/packages/mgt-chat/src/statefulClient/certs.ts +++ b/packages/mgt-chat/src/statefulClient/certs.ts @@ -1,2 +1,9 @@ +/** + * ------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. + * See License in the project root for license information. + * ------------------------------------------------------------------------------------------- + */ + export const pk = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0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1DQpLTGcyUWZrTGRLOXorS1JsQm1tWTI4Y0dOZHV5bmtzVFM3QnpyRHQzMjRSMEV0M0V5QzRzQzRlb2JyTGFTbi9ODQpKcU83S3VIaHdheE8wUmFnN0dPNTdZTWFpNy8yV0kxQ09vTlhFOTJUTEg5NXFuMFBJWWVtSlhEVmdsOE8ybzJBDQplcmU2R1JBQXc3UWFjSERpUjdFd1o5UnVwQldNTkFxbHpiNGRFNk13bzZtWkMwcDQrQng0MHZnb2hKbWtiNXhiDQozclJsME0wM0F6RmQwVWpqNGtLOGkzdy9ic0E4cDdMWUlIS3BjQkVjS3MzbGwvV2Y3UTlhVE1LS3NvTDNTdlpYDQpIT0xrS3pYbGc4K1l4blJKZ3ZoS2I4WmFQV3R1V25ZeG5oaUlYVk4yeVBqdjlzcU56NWVmWDJOTDByczhCV0Z4DQp2T0tUcCt5dnp2aVhDeVVpSW9LMFVacHpNTWlaY05LUEdOTHgxWkM4UDJVSTNENWwwL1IvWHo5UGtSTjVveFFzDQppZz09DQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0t'; diff --git a/packages/mgt-chat/src/statefulClient/chatOperationScopes.ts b/packages/mgt-chat/src/statefulClient/chatOperationScopes.ts index d9b46cdd06..865320c75d 100644 --- a/packages/mgt-chat/src/statefulClient/chatOperationScopes.ts +++ b/packages/mgt-chat/src/statefulClient/chatOperationScopes.ts @@ -1,3 +1,10 @@ +/** + * ------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. + * See License in the project root for license information. + * ------------------------------------------------------------------------------------------- + */ + /** * Object mapping chat operations to the scopes required to perform them */ diff --git a/packages/mgt-chat/src/statefulClient/updateMessageContentWithImage.tests.ts b/packages/mgt-chat/src/statefulClient/updateMessageContentWithImage.tests.ts index eceebb59c2..e2ff2aadff 100644 --- a/packages/mgt-chat/src/statefulClient/updateMessageContentWithImage.tests.ts +++ b/packages/mgt-chat/src/statefulClient/updateMessageContentWithImage.tests.ts @@ -1,3 +1,10 @@ +/** + * ------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. + * See License in the project root for license information. + * ------------------------------------------------------------------------------------------- + */ + import { updateMessageContentWithImage } from './updateMessageContentWithImage'; describe('updateMessageContentWithImage', () => { diff --git a/packages/mgt-chat/src/statefulClient/updateMessageContentWithImage.ts b/packages/mgt-chat/src/statefulClient/updateMessageContentWithImage.ts index 2c67c129f1..8c54f8af01 100644 --- a/packages/mgt-chat/src/statefulClient/updateMessageContentWithImage.ts +++ b/packages/mgt-chat/src/statefulClient/updateMessageContentWithImage.ts @@ -1,3 +1,10 @@ +/** + * ------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. + * See License in the project root for license information. + * ------------------------------------------------------------------------------------------- + */ + export const updateMessageContentWithImage = ( content: string, index: string, diff --git a/packages/mgt-chat/src/utils/createNewChat.ts b/packages/mgt-chat/src/utils/createNewChat.ts index ccac365c7d..05672dd1e9 100644 --- a/packages/mgt-chat/src/utils/createNewChat.ts +++ b/packages/mgt-chat/src/utils/createNewChat.ts @@ -1,3 +1,10 @@ +/** + * ------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. + * See License in the project root for license information. + * ------------------------------------------------------------------------------------------- + */ + import { Chat } from '@microsoft/microsoft-graph-types'; import { createChatThread } from '../statefulClient/graph.chat'; import { graph } from './graph'; diff --git a/packages/mgt-chat/src/utils/currentUser.ts b/packages/mgt-chat/src/utils/currentUser.ts index cf35dd25b4..e4bf1134ab 100644 --- a/packages/mgt-chat/src/utils/currentUser.ts +++ b/packages/mgt-chat/src/utils/currentUser.ts @@ -1,3 +1,10 @@ +/** + * ------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. + * See License in the project root for license information. + * ------------------------------------------------------------------------------------------- + */ + import { ProviderState, Providers } from '@microsoft/mgt-element'; const getCurrentUser = () => diff --git a/packages/mgt-chat/src/utils/graph.ts b/packages/mgt-chat/src/utils/graph.ts index 4fad3e66b8..19c7eada78 100644 --- a/packages/mgt-chat/src/utils/graph.ts +++ b/packages/mgt-chat/src/utils/graph.ts @@ -1,3 +1,10 @@ +/** + * ------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. + * See License in the project root for license information. + * ------------------------------------------------------------------------------------------- + */ + import { IGraph, Providers } from '@microsoft/mgt-element'; export const graph = (component: string, version?: string): IGraph => { diff --git a/packages/mgt-chat/src/utils/reduceScopes.tests.ts b/packages/mgt-chat/src/utils/reduceScopes.tests.ts index a390111498..aa506fe375 100644 --- a/packages/mgt-chat/src/utils/reduceScopes.tests.ts +++ b/packages/mgt-chat/src/utils/reduceScopes.tests.ts @@ -1,3 +1,10 @@ +/** + * ------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. + * See License in the project root for license information. + * ------------------------------------------------------------------------------------------- + */ + import { chatOperationScopes } from '../statefulClient/chatOperationScopes'; import { reduceScopes } from './reduceScopes'; diff --git a/packages/mgt-chat/src/utils/reduceScopes.ts b/packages/mgt-chat/src/utils/reduceScopes.ts index e00248063f..f2a6c182e6 100644 --- a/packages/mgt-chat/src/utils/reduceScopes.ts +++ b/packages/mgt-chat/src/utils/reduceScopes.ts @@ -1,3 +1,10 @@ +/** + * ------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. + * See License in the project root for license information. + * ------------------------------------------------------------------------------------------- + */ + /** * A function to calculate minimal permissions to request for a given set of operations. * In some circumstances this may result in requesting more scopes that are necessary diff --git a/packages/mgt-components/src/components/preview/index.ts b/packages/mgt-components/src/components/preview/index.ts index 2e7b75dd36..dbbad797d9 100644 --- a/packages/mgt-components/src/components/preview/index.ts +++ b/packages/mgt-components/src/components/preview/index.ts @@ -1,2 +1,9 @@ +/** + * ------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. + * See License in the project root for license information. + * ------------------------------------------------------------------------------------------- + */ + export * from './mgt-search-box/mgt-search-box'; export * from './mgt-search-results/mgt-search-results'; diff --git a/packages/mgt-components/src/components/preview/mgt-search-box/mgt-search-box.scss b/packages/mgt-components/src/components/preview/mgt-search-box/mgt-search-box.scss index 58f433622e..460703a0b6 100644 --- a/packages/mgt-components/src/components/preview/mgt-search-box/mgt-search-box.scss +++ b/packages/mgt-components/src/components/preview/mgt-search-box/mgt-search-box.scss @@ -1,3 +1,10 @@ +/** + * ------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. + * See License in the project root for license information. + * ------------------------------------------------------------------------------------------- + */ + @import '../../../styles/shared-styles'; :host fluent-search { diff --git a/packages/mgt-components/src/graph/isGraphError.ts b/packages/mgt-components/src/graph/isGraphError.ts index 0886cf2a6c..57d51e4f59 100644 --- a/packages/mgt-components/src/graph/isGraphError.ts +++ b/packages/mgt-components/src/graph/isGraphError.ts @@ -1,3 +1,10 @@ +/** + * ------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. + * See License in the project root for license information. + * ------------------------------------------------------------------------------------------- + */ + import { GraphError } from '@microsoft/microsoft-graph-client'; export const isGraphError = (e: unknown): e is GraphError => { diff --git a/packages/mgt-element/src/utils/Logging.ts b/packages/mgt-element/src/utils/Logging.ts index ad2f330268..6bef576c44 100644 --- a/packages/mgt-element/src/utils/Logging.ts +++ b/packages/mgt-element/src/utils/Logging.ts @@ -1,3 +1,10 @@ +/** + * ------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. + * See License in the project root for license information. + * ------------------------------------------------------------------------------------------- + */ + /* eslint-disable no-console */ const prependInfo = (message?: unknown, ...optionalParams: unknown[]) => [ new Date().toISOString(), diff --git a/packages/mgt/src/preview-bundle.ts b/packages/mgt/src/preview-bundle.ts index 0b782eeb19..f9399e815b 100644 --- a/packages/mgt/src/preview-bundle.ts +++ b/packages/mgt/src/preview-bundle.ts @@ -1,2 +1,9 @@ +/** + * ------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. + * See License in the project root for license information. + * ------------------------------------------------------------------------------------------- + */ + export * from './index'; export * from './preview'; diff --git a/packages/mgt/src/preview.ts b/packages/mgt/src/preview.ts index 1f27788613..a2b6a75d26 100644 --- a/packages/mgt/src/preview.ts +++ b/packages/mgt/src/preview.ts @@ -1 +1,8 @@ +/** + * ------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. + * See License in the project root for license information. + * ------------------------------------------------------------------------------------------- + */ + export * from '@microsoft/mgt-components/dist/es6/components/preview';