<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<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">

  <!-- ==== Identity ==== -->
  <Id>f6becf37-239f-44b9-9387-48540eb67b5d</Id>
  <Version>1.0.0.0</Version>
  <ProviderName>Usable</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="Usable Word" />
  <Description DefaultValue="AI-powered Word assistant — talk to Usable Chat and let AI read, write, and manipulate your document." />

  <!-- ==== Icons (place 32×32 and 80×80 PNGs in /assets/) ==== -->
  <IconUrl DefaultValue="https://msoffice.usable.dev/word/assets/icon-32.png" />
  <HighResolutionIconUrl DefaultValue="https://msoffice.usable.dev/word/assets/icon-80.png" />
  <SupportUrl DefaultValue="https://usable.dev" />

  <!-- ==== Allowed external domains ==== -->
  <AppDomains>
    <AppDomain>https://chat.usable.dev</AppDomain>
    <AppDomain>https://api.usable.dev</AppDomain>
  </AppDomains>

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

  <!-- ==== Default settings ==== -->
  <DefaultSettings>
    <SourceLocation DefaultValue="https://msoffice.usable.dev/word/taskpane.html" />
  </DefaultSettings>

  <!-- ==== Permissions ==== -->
  <Permissions>ReadWriteDocument</Permissions>

  <!-- ==== Version overrides (ribbon button + modern task pane) ==== -->
  <VersionOverrides xmlns="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="VersionOverridesV1_0">

    <Hosts>
      <Host xsi:type="Document">

        <DesktopFormFactor>

          <!-- Commands page (ribbon handlers) -->
          <GetStarted>
            <Title resid="GetStarted.Title" />
            <Description resid="GetStarted.Description" />
            <LearnMoreUrl resid="GetStarted.LearnMoreUrl" />
          </GetStarted>

          <!-- Ribbon extension -->
          <ExtensionPoint xsi:type="PrimaryCommandSurface">
            <OfficeTab id="TabHome">
              <Group id="Usable.Group">
                <Label resid="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="Usable.OpenTaskPane">
                  <Label resid="OpenTaskPane.Label" />
                  <Supertip>
                    <Title resid="OpenTaskPane.Label" />
                    <Description resid="OpenTaskPane.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">
                    <SourceLocation resid="Taskpane.Url" />
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>

        </DesktopFormFactor>
      </Host>
    </Hosts>

    <Resources>
      <!-- Icons -->
      <bt:Images>
        <bt:Image id="Icon.16x16" DefaultValue="https://msoffice.usable.dev/word/assets/icon-16.png" />
        <bt:Image id="Icon.32x32" DefaultValue="https://msoffice.usable.dev/word/assets/icon-32.png" />
        <bt:Image id="Icon.80x80" DefaultValue="https://msoffice.usable.dev/word/assets/icon-80.png" />
      </bt:Images>

      <!-- URLs -->
      <bt:Urls>
        <bt:Url id="GetStarted.LearnMoreUrl" DefaultValue="https://usable.dev" />
        <bt:Url id="Taskpane.Url" DefaultValue="https://msoffice.usable.dev/word/taskpane.html" />
        <bt:Url id="Commands.Url" DefaultValue="https://msoffice.usable.dev/word/commands.html" />
      </bt:Urls>

      <!-- Strings -->
      <bt:ShortStrings>
        <bt:String id="GetStarted.Title" DefaultValue="Get started with Usable Word" />
        <bt:String id="Group.Label" DefaultValue="Usable" />
        <bt:String id="OpenTaskPane.Label" DefaultValue="Usable Chat" />
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="GetStarted.Description" DefaultValue="Open the Usable Chat panel to start working with AI in Word." />
        <bt:String id="OpenTaskPane.Tooltip" DefaultValue="Open the Usable AI chat panel to read, write, and edit your document with AI." />
      </bt:LongStrings>

    </Resources>

  </VersionOverrides>

</OfficeApp>
