Skip to content

Commit cba65cf

Browse files
Greg JosephCopilot
andcommitted
chore: deprecate @microsoft/sharepointembedded-copilotchat-react
The @microsoft/sharepointembedded-copilotchat-react SDK is being deprecated. This PR removes every consumer of the SDK from the samples repo so the surface no longer advertises or depends on it. Removed across three samples (boilerplate-typescript-react, project-management, legal-docs): - Copilot chat components, hooks, providers, and services - The vendored SDK copy and tarball in legal-docs - The SDK dependency entry in each package.json (lockfiles regenerated) - Copilot-only config (sharePointHostname, COPILOT_CONFIG, SharePoint container scopes, copilotTheme), the SharePoint token acquisition helpers that only existed to bootstrap the SDK, and the dead Vite alias/dedupe blocks added to load the SDK shim - UI affordances that opened the chat panel (toolbar buttons, flyout entries, resizable panels) and their dead CSS - The AI prompt recipes that targeted this SDK (contoso-audit-agent, contoso-legal-agent) Documentation: - Root README and Custom Apps README no longer advertise "Copilot SDK" / "AI-assisted document review" for legal-docs - legal-docs README drops the Copilot integration bullet Verification: - npm install + npm run build pass for all three samples Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent f9c5663 commit cba65cf

49 files changed

Lines changed: 21 additions & 4094 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

AI/prompts/contoso-audit-agent.md

Lines changed: 0 additions & 145 deletions
This file was deleted.

AI/prompts/contoso-legal-agent.md

Lines changed: 0 additions & 145 deletions
This file was deleted.

Custom Apps/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Runnable sample applications demonstrating SharePoint Embedded integration patte
77
| [boilerplate-react-azurefunction](./boilerplate-react-azurefunction) | React + Azure Functions | Reference boilerplate: SPA with an Azure Functions OBO proxy |
88
| [boilerplate-aspnet-webservice](./boilerplate-aspnet-webservice) | C# / ASP.NET Core | Reference boilerplate: server-side MVC app with tenant onboarding |
99
| [boilerplate-typescript-react](./boilerplate-typescript-react) | TypeScript + React + Azure Functions | TypeScript variant of the React boilerplate |
10-
| [legal-docs](./legal-docs) | React + Fluent UI + Copilot SDK | Legal case management with AI-assisted document review |
10+
| [legal-docs](./legal-docs) | React + Fluent UI | Legal case management sample |
1111
| [project-management](./project-management) | React + Vite + Tailwind + shadcn-ui | Project collaboration app |
1212
| [webhook](./webhook) | Node.js | Minimal Graph API change notification listener |
1313

Custom Apps/boilerplate-typescript-react/react-client/package-lock.json

Lines changed: 0 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Custom Apps/boilerplate-typescript-react/react-client/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
"@microsoft/mgt-msal2-provider": "^4.2.1",
1313
"@microsoft/mgt-react": "^4.2.1",
1414
"@microsoft/microsoft-graph-client": "^3.0.7",
15-
"@microsoft/sharepointembedded-copilotchat-react": "https://download.microsoft.com/download/970802a5-2a7e-44ed-b17d-ad7dc99be312/microsoft-sharepointembedded-copilotchat-react-1.0.9.tgz",
1615
"@types/node": "^20.12.7",
1716
"@types/react": "^18.2.79",
1817
"@types/react-dom": "^18.2.25",

Custom Apps/boilerplate-typescript-react/react-client/src/common/Scopes.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,3 @@ export const SAMPLE_API_SCOPES = SAMPLE_API_CONTAINER_MANAGE
3131
? [SAMPLE_API_CONTAINER_MANAGE]
3232
: undefined;
3333

34-
// sharepoint scopes
35-
export const SP_CONTAINER_SELECTED = `${Constants.SP_ROOT_SITE_URL}/Container.Selected`;
36-
37-
// embedded chat scopes
38-
export const CHAT_SCOPES = [
39-
SP_CONTAINER_SELECTED
40-
];

Custom Apps/boilerplate-typescript-react/react-client/src/components/ChatSidebar.tsx

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)