Phase 10D.2: Word Companion Manifest Permission Fix

This commit is contained in:
Nick Beckley 2026-06-13 17:21:45 +01:00
parent 234176b3ae
commit 07da6ff8b5
3 changed files with 9 additions and 6 deletions

View File

@ -2,12 +2,12 @@
This project contains the Microsoft Word task pane add-in shell for PlotDirector.
Phase 10B keeps the add-in deliberately small:
The add-in is deliberately small:
- The manifest adds one ribbon button: **Open PlotDirector Companion**.
- The task pane opens the PlotDirector-hosted `/word-companion` route.
- The PlotDirector page initialises Office.js only.
- No Word document APIs are called in this phase.
- The manifest requests `ReadDocument` so the companion can read Word paragraphs, selection context, and document body content for the manual document-structure scan.
- The companion does not request document write permissions.
## Development
@ -18,4 +18,3 @@ npm install
npm run build
npm run validate
```

View File

@ -22,7 +22,9 @@
<DefaultSettings>
<SourceLocation DefaultValue="{{taskpaneUrl}}"/>
</DefaultSettings>
<Permissions>Restricted</Permissions>
<!-- ReadDocument is required for the companion to read Word paragraphs, selection context,
and document body content. It does not grant document write access. -->
<Permissions>ReadDocument</Permissions>
<VersionOverrides xmlns="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="VersionOverridesV1_0">
<Hosts>
<Host xsi:type="Document">

View File

@ -22,7 +22,9 @@
<DefaultSettings>
<SourceLocation DefaultValue="https://localhost:7296/word-companion"/>
</DefaultSettings>
<Permissions>Restricted</Permissions>
<!-- ReadDocument is required for the companion to read Word paragraphs, selection context,
and document body content. It does not grant document write access. -->
<Permissions>ReadDocument</Permissions>
<VersionOverrides xmlns="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="VersionOverridesV1_0">
<Hosts>
<Host xsi:type="Document">