<?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">

  <!-- App identity -->
  <Id>d4e5f6a7-b8c9-4012-aaaa-bb1234567891</Id>
  <Version>1.0.0.0</Version>
  <ProviderName>LexEdge</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="LexEdge for Word (Staging)"/>
  <Description DefaultValue="AI-powered legal drafting — Staging build pointing to staging.lexedge.ai"/>

  <IconUrl DefaultValue="https://word-staging.lexedge.ai/assets/icon-80.png"/>
  <HighResolutionIconUrl DefaultValue="https://word-staging.lexedge.ai/assets/icon-80.png"/>
  <SupportUrl DefaultValue="https://lexedge.ai/support"/>

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

  <Requirements>
    <Sets DefaultMinVersion="1.3">
      <Set Name="WordApi" MinVersion="1.3"/>
    </Sets>
  </Requirements>

  <DefaultSettings>
    <SourceLocation DefaultValue="https://word-staging.lexedge.ai/taskpane.html"/>
  </DefaultSettings>

  <Permissions>ReadWriteDocument</Permissions>

  <VersionOverrides xmlns="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="VersionOverridesV1_0">

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

          <FunctionFile resid="Commands.Url"/>

          <ExtensionPoint xsi:type="PrimaryCommandSurface">
            <OfficeTab id="TabHome">
              <Group id="LexEdge.Group">
                <Label resid="LexEdge.GroupLabel"/>
                <Icon>
                  <bt:Image size="16" resid="Icon.16"/>
                  <bt:Image size="32" resid="Icon.32"/>
                  <bt:Image size="80" resid="Icon.80"/>
                </Icon>

                <Control xsi:type="Button" id="LexEdge.OpenPane">
                  <Label resid="LexEdge.OpenPaneLabel"/>
                  <Supertip>
                    <Title resid="LexEdge.OpenPaneLabel"/>
                    <Description resid="LexEdge.OpenPaneDesc"/>
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="Icon.16"/>
                    <bt:Image size="32" resid="Icon.32"/>
                    <bt:Image size="80" resid="Icon.80"/>
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <TaskpaneId>LexEdge.Taskpane</TaskpaneId>
                    <SourceLocation resid="Taskpane.Url"/>
                  </Action>
                </Control>

                <Control xsi:type="Button" id="LexEdge.QuickRewrite">
                  <Label resid="LexEdge.QuickRewriteLabel"/>
                  <Supertip>
                    <Title resid="LexEdge.QuickRewriteLabel"/>
                    <Description resid="LexEdge.QuickRewriteDesc"/>
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="Icon.16"/>
                    <bt:Image size="32" resid="Icon.32"/>
                    <bt:Image size="80" resid="Icon.80"/>
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <TaskpaneId>LexEdge.Taskpane</TaskpaneId>
                    <SourceLocation resid="Taskpane.Url"/>
                  </Action>
                </Control>

              </Group>
            </OfficeTab>
          </ExtensionPoint>

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

    <Resources>
      <bt:Images>
        <bt:Image id="Icon.16" DefaultValue="https://word-staging.lexedge.ai/assets/icon-16.png"/>
        <bt:Image id="Icon.32" DefaultValue="https://word-staging.lexedge.ai/assets/icon-32.png"/>
        <bt:Image id="Icon.80" DefaultValue="https://word-staging.lexedge.ai/assets/icon-80.png"/>
      </bt:Images>
      <bt:Urls>
        <bt:Url id="Taskpane.Url" DefaultValue="https://word-staging.lexedge.ai/taskpane.html"/>
        <bt:Url id="Commands.Url" DefaultValue="https://word-staging.lexedge.ai/commands.html"/>
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="LexEdge.GroupLabel" DefaultValue="LexEdge AI"/>
        <bt:String id="LexEdge.OpenPaneLabel" DefaultValue="Open LexEdge"/>
        <bt:String id="LexEdge.QuickRewriteLabel" DefaultValue="AI Rewrite"/>
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="LexEdge.OpenPaneDesc" DefaultValue="Open the LexEdge AI drafting assistant panel"/>
        <bt:String id="LexEdge.QuickRewriteDesc" DefaultValue="Rewrite selected clause with AI"/>
      </bt:LongStrings>
    </Resources>

  </VersionOverrides>
</OfficeApp>
