<?xml version="1.0" encoding="UTF-8"?>
<!--
  Plinth for Excel. The Id is this add-in's identity for Office: storage (the saved API key) and
  AppSource both key on it, so it never changes. The URLs are where the built files are served
  (addins/build.mjs --publish → public/addins/excel/); the shared runtime (SharedRuntime 1.1) is
  what lets the function read the key the task pane saved.
-->
<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>ed1183ad-7cca-4711-adb3-597e848793eb</Id>
  <Version>0.1.0</Version>
  <ProviderName>Plinth</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="Plinth"/>
  <Description DefaultValue="IRS Form 990 grant data as a spreadsheet function: =PLINTH.GET(range, field)."/>
  <IconUrl DefaultValue="https://data.useplinth.com/addins/icon-32.png"/>
  <HighResolutionIconUrl DefaultValue="https://data.useplinth.com/addins/icon-64.png"/>
  <SupportUrl DefaultValue="https://data.useplinth.com/developers"/>
  <AppDomains>
    <AppDomain>https://data.useplinth.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://data.useplinth.com/addins/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>
          <Runtime resid="Shared.Url" lifetime="long"/>
        </Runtimes>
        <AllFormFactors>
          <ExtensionPoint xsi:type="CustomFunctions">
            <Script><SourceLocation resid="Functions.Script.Url"/></Script>
            <Page><SourceLocation resid="Shared.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>
          <FunctionFile resid="Shared.Url"/>
          <ExtensionPoint xsi:type="PrimaryCommandSurface">
            <OfficeTab id="TabHome">
              <Group id="Plinth.Group">
                <Label resid="Group.Label"/>
                <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="Plinth.Open">
                  <Label resid="Open.Label"/>
                  <Supertip>
                    <Title resid="Open.Label"/>
                    <Description resid="Open.Tip"/>
                  </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>Plinth.Pane</TaskpaneId>
                    <SourceLocation resid="Shared.Url"/>
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
    </Hosts>
    <Resources>
      <bt:Images>
        <bt:Image id="Icon.16" DefaultValue="https://data.useplinth.com/addins/icon-16.png"/>
        <bt:Image id="Icon.32" DefaultValue="https://data.useplinth.com/addins/icon-32.png"/>
        <bt:Image id="Icon.80" DefaultValue="https://data.useplinth.com/addins/icon-80.png"/>
      </bt:Images>
      <bt:Urls>
        <bt:Url id="Shared.Url" DefaultValue="https://data.useplinth.com/addins/excel/taskpane.html"/>
        <bt:Url id="Functions.Script.Url" DefaultValue="https://data.useplinth.com/addins/excel/dist/functions.js"/>
        <bt:Url id="Functions.Metadata.Url" DefaultValue="https://data.useplinth.com/addins/excel/functions.json"/>
        <bt:Url id="GetStarted.LearnMoreUrl" DefaultValue="https://data.useplinth.com/developers#batch"/>
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="Functions.Namespace" DefaultValue="PLINTH"/>
        <bt:String id="Group.Label" DefaultValue="Plinth"/>
        <bt:String id="Open.Label" DefaultValue="Open Plinth"/>
        <bt:String id="GetStarted.Title" DefaultValue="Plinth is ready"/>
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="Open.Tip" DefaultValue="Sign in, pick a field, fill a column from your selection."/>
        <bt:String id="GetStarted.Description" DefaultValue="Type =PLINTH.GET(A2:A50, &quot;grants_made_total&quot;) in a cell, or open the pane from the Home tab."/>
      </bt:LongStrings>
    </Resources>
  </VersionOverrides>
</OfficeApp>
