<?xml version="1.0" encoding="UTF-8"?>
<!--
  Word task pane manifest.

  Classic XML rather than the unified JSON manifest on purpose: JSON manifest
  support on Word for Mac has lagged, and law firms are heavily Mac-mixed.
  Revisit after the MVP ships.

  The GUID below is a placeholder for local sideloading. Generate a stable one
  per environment before centralized deployment — reusing an id across
  environments makes Office cache the wrong bundle.
-->
<OfficeApp
  xmlns="http://schemas.microsoft.com/office/appforoffice/1.1"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0"
  xmlns:ov="http://schemas.microsoft.com/office/taskpaneappversionoverrides"
  xsi:type="TaskPaneApp">

  <Id>3f5a1c60-0f1e-4a5e-9d2a-000000000001</Id>
  <Version>1.0.0.0</Version>
  <ProviderName>Sapphire Legal</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="Sapphire Legal" />
  <Description DefaultValue="Contract review and matter filing, inside Word." />
  <IconUrl DefaultValue="https://app.sapphirelegal.ai/addins/assets/icon-32.png" />
  <HighResolutionIconUrl DefaultValue="https://app.sapphirelegal.ai/addins/assets/icon-80.png" />
  <SupportUrl DefaultValue="https://www.sapphirelegal.ai/support" />

  <AppDomains>
    <AppDomain>https://app.sapphirelegal.ai</AppDomain>
  </AppDomains>

  <Hosts>
    <Host Name="Document" />
  </Hosts>

  <DefaultSettings>
    <SourceLocation DefaultValue="https://app.sapphirelegal.ai/addins/word.html" />
  </DefaultSettings>

  <Permissions>ReadWriteDocument</Permissions>

  <VersionOverrides xmlns="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="VersionOverridesV1_0">
    <Hosts>
      <Host xsi:type="Document">
        <DesktopFormFactor>
          <GetStarted>
            <Title resid="GetStarted.Title" />
            <Description resid="GetStarted.Description" />
            <LearnMoreUrl resid="GetStarted.LearnMoreUrl" />
          </GetStarted>
          <ExtensionPoint xsi:type="PrimaryCommandSurface">
            <OfficeTab id="TabHome">
              <Group id="Sapphire.Group">
                <Label resid="Sapphire.Group.Label" />
                <Icon>
                  <bt:Image size="16" resid="Icon.16x16" />
                  <bt:Image size="32" resid="Icon.32x32" />
                  <bt:Image size="80" resid="Icon.80x80" />
                </Icon>
                <Control xsi:type="Button" id="Sapphire.OpenPane">
                  <Label resid="Sapphire.OpenPane.Label" />
                  <Supertip>
                    <Title resid="Sapphire.OpenPane.Label" />
                    <Description resid="Sapphire.OpenPane.Tooltip" />
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="Icon.16x16" />
                    <bt:Image size="32" resid="Icon.32x32" />
                    <bt:Image size="80" resid="Icon.80x80" />
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <TaskpaneId>Sapphire.Taskpane</TaskpaneId>
                    <SourceLocation resid="Taskpane.Url" />
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
    </Hosts>

    <Resources>
      <bt:Images>
        <bt:Image id="Icon.16x16" DefaultValue="https://app.sapphirelegal.ai/addins/assets/icon-16.png" />
        <bt:Image id="Icon.32x32" DefaultValue="https://app.sapphirelegal.ai/addins/assets/icon-32.png" />
        <bt:Image id="Icon.80x80" DefaultValue="https://app.sapphirelegal.ai/addins/assets/icon-80.png" />
      </bt:Images>
      <bt:Urls>
        <bt:Url id="Taskpane.Url" DefaultValue="https://app.sapphirelegal.ai/addins/word.html" />
        <bt:Url id="GetStarted.LearnMoreUrl" DefaultValue="https://app.sapphirelegal.ai/support" />
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="Sapphire.Group.Label" DefaultValue="Sapphire Legal" />
        <bt:String id="Sapphire.OpenPane.Label" DefaultValue="Open Sapphire" />
        <bt:String id="GetStarted.Title" DefaultValue="Sapphire Legal is ready." />
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="Sapphire.OpenPane.Tooltip" DefaultValue="Review this contract against your firm's positions." />
        <bt:String id="GetStarted.Description" DefaultValue="Open the Sapphire pane from the Home tab to review the open document." />
      </bt:LongStrings>
    </Resources>
  </VersionOverrides>
</OfficeApp>
