<?xml version="1.0" encoding="UTF-8"?>
<!--
  CompsDesk Excel Add-in manifest.

  Sideload for development:
    Excel -> Insert -> My Add-ins -> Upload My Add-in -> select this file
  The add-in is a web add-in: taskpane.html and functions.html are served over HTTPS (Cloudflare
  Pages in production, https://localhost:3000 in dev). No install, no COM, works on Windows/Mac/web.

  Replace the GUID before publishing to AppSource.
-->
<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>7c2f1a94-6b3e-4d58-9f21-3ac0d5e8b711</Id>
  <Version>2.0.0.0</Version>
  <ProviderName>CompsDesk</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="CompsDesk" />
  <Description DefaultValue="Audited public-company fundamentals in Excel. Every figure computed from SEC filings and cited to its source." />
  <IconUrl DefaultValue="https://compsdesk.com/assets/icon-32.png" />
  <HighResolutionIconUrl DefaultValue="https://compsdesk.com/assets/icon-80.png" />
  <!-- .html, not an extensionless /support: nginx serves this site with try_files $uri $uri/ =404
       and every other page is pricing.html, api.html, build.html. An extensionless URL here 404s,
       and it is the link Excel puts behind "Get support" on a broken add-in — the one moment a
       subscriber is already frustrated. -->
  <SupportUrl DefaultValue="https://compsdesk.com/support.html" />

  <AppDomains>
    <AppDomain>https://compsdesk.com</AppDomain>
    <AppDomain>https://api.compsdesk.com</AppDomain>
  </AppDomains>

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

  <Requirements>
    <Sets DefaultMinVersion="1.1">
      <Set Name="SharedRuntime" MinVersion="1.1" />
    </Sets>
  </Requirements>

  <DefaultSettings>
    <SourceLocation DefaultValue="https://compsdesk.com/excel/taskpane.html" />
  </DefaultSettings>

  <Permissions>ReadWriteDocument</Permissions>

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

        <Runtimes>
          <!-- Shared runtime: the taskpane and the custom functions run in ONE JS context, so a token
               saved in the taskpane is immediately visible to =CD.GET without a reload. -->
          <Runtime resid="Shared.Url" lifetime="long" />
        </Runtimes>

        <AllFormFactors>
          <ExtensionPoint xsi:type="CustomFunctions">
            <Script><SourceLocation resid="Functions.Script.Url" /></Script>
            <Page><SourceLocation resid="Functions.Page.Url" /></Page>
            <Metadata><SourceLocation resid="Functions.Metadata.Url" /></Metadata>
            <Namespace resid="Functions.Namespace" />
          </ExtensionPoint>
        </AllFormFactors>

        <DesktopFormFactor>
          <GetStarted>
            <Title resid="GetStarted.Title" />
            <Description resid="GetStarted.Description" />
            <LearnMoreUrl resid="GetStarted.LearnMoreUrl" />
          </GetStarted>

          <ExtensionPoint xsi:type="PrimaryCommandSurface">
            <OfficeTab id="TabHome">
              <Group id="CompsDesk.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="CompsDesk.TaskpaneButton">
                  <Label resid="TaskpaneButton.Label" />
                  <Supertip>
                    <Title resid="TaskpaneButton.Label" />
                    <Description resid="TaskpaneButton.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>CompsDesk.Taskpane</TaskpaneId>
                    <SourceLocation resid="Shared.Url" />
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
    </Hosts>

    <Resources>
      <bt:Images>
        <bt:Image id="Icon.16x16" DefaultValue="https://compsdesk.com/assets/icon-16.png" />
        <bt:Image id="Icon.32x32" DefaultValue="https://compsdesk.com/assets/icon-32.png" />
        <bt:Image id="Icon.80x80" DefaultValue="https://compsdesk.com/assets/icon-80.png" />
      </bt:Images>
      <bt:Urls>
        <bt:Url id="Shared.Url" DefaultValue="https://compsdesk.com/excel/taskpane.html" />
        <bt:Url id="Functions.Script.Url" DefaultValue="https://compsdesk.com/excel/functions.js" />
        <bt:Url id="Functions.Page.Url" DefaultValue="https://compsdesk.com/excel/functions.html" />
        <bt:Url id="Functions.Metadata.Url" DefaultValue="https://compsdesk.com/excel/functions.json" />
        <bt:Url id="GetStarted.LearnMoreUrl" DefaultValue="https://compsdesk.com/excel" />
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="Functions.Namespace" DefaultValue="CD" />
        <bt:String id="Group.Label" DefaultValue="CompsDesk" />
        <bt:String id="TaskpaneButton.Label" DefaultValue="CompsDesk" />
        <bt:String id="GetStarted.Title" DefaultValue="CompsDesk is ready" />
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="TaskpaneButton.Tooltip" DefaultValue="Enter your API token and use =CD.GET, =CD.PEERS, =CD.SOURCE and =CD.QUERY." />
        <bt:String id="GetStarted.Description" DefaultValue="Open the CompsDesk pane, paste your API token, then use =CD.GET(&quot;AAPL&quot;,&quot;Revenues&quot;,&quot;FY2024&quot;)." />
      </bt:LongStrings>
    </Resources>
  </VersionOverrides>
</OfficeApp>
