<?xml version="1.0" encoding="UTF-8"?>
<!-- NOBS OSign add-in manifest. The build fills in https://argolite-osign.pages.dev/ (where the add-in is served, ending in /)
     and 0.9.12.0; the published manifest.xml is what goes into the admin center. -->
<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:mailappor="http://schemas.microsoft.com/office/mailappversionoverrides/1.0"
           xsi:type="MailApp">
  <Id>ad8022f2-aaca-4afe-8487-ae1531f2a57a</Id>
  <Version>0.9.12.0</Version>
  <ProviderName>monsama.ch</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="NOBS OSign"/>
  <Description DefaultValue="Inserts the company email signature in new messages, replies and forwards.">
    <Override Locale="de-DE" Value="Fügt die Firmensignatur in neue Mails, Antworten und Weiterleitungen ein."/>
  </Description>
  <IconUrl DefaultValue="https://argolite-osign.pages.dev/assets/icon-64.png"/>
  <HighResolutionIconUrl DefaultValue="https://argolite-osign.pages.dev/assets/icon-128.png"/>
  <SupportUrl DefaultValue="https://argolite-osign.pages.dev/"/>
  <AppDomains>
    <AppDomain>https://argolite-osign.pages.dev</AppDomain>
  </AppDomains>
  <Hosts>
    <Host Name="Mailbox"/>
  </Hosts>
  <Requirements>
    <Sets>
      <Set Name="Mailbox" MinVersion="1.1"/>
    </Sets>
  </Requirements>
  <FormSettings>
    <Form xsi:type="ItemEdit">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://argolite-osign.pages.dev/taskpane.html"/>
      </DesktopSettings>
    </Form>
  </FormSettings>
  <Permissions>ReadWriteItem</Permissions>
  <Rule xsi:type="RuleCollection" Mode="Or">
    <Rule xsi:type="ItemIs" ItemType="Message" FormType="Edit"/>
    <Rule xsi:type="ItemIs" ItemType="Appointment" FormType="Edit"/>
  </Rule>
  <DisableEntityHighlighting>false</DisableEntityHighlighting>

  <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides" xsi:type="VersionOverridesV1_0">
    <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides/1.1" xsi:type="VersionOverridesV1_1">
      <Requirements>
        <!-- 1.10, or 1.5 with Outlook on iOS and Android (they go no further, and enable what
             event-based activation needs on top; the code checks for each newer API itself). -->
        <bt:Sets DefaultMinVersion="1.10">
          <bt:Set Name="Mailbox"/>
        </bt:Sets>
      </Requirements>
      <Hosts>
        <Host xsi:type="MailHost">
          <Runtimes>
            <!-- The browser runtime (new Outlook, web, Mac); classic Outlook on Windows runs the
                 JavaScript file alone. -->
            <Runtime resid="Runtime.Url">
              <Override type="javascript" resid="RuntimeJs.Url"/>
            </Runtime>
          </Runtimes>
          <DesktopFormFactor>
            <FunctionFile resid="Commands.Url"/>

            <ExtensionPoint xsi:type="MessageComposeCommandSurface">
              <OfficeTab id="TabDefault">
                <Group id="msgComposeGroup">
                  <Label resid="Group.Label"/>
                  <Control xsi:type="Button" id="msgComposeOpenPane">
                    <Label resid="Pane.Label"/>
                    <Supertip>
                      <Title resid="Pane.Label"/>
                      <Description resid="Pane.Tooltip"/>
                    </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">
                      <SourceLocation resid="Taskpane.Url"/>
                    </Action>
                  </Control>
                </Group>
              </OfficeTab>
            </ExtensionPoint>

            <ExtensionPoint xsi:type="AppointmentOrganizerCommandSurface">
              <OfficeTab id="TabDefault">
                <Group id="apptComposeGroup">
                  <Label resid="Group.Label"/>
                  <Control xsi:type="Button" id="apptComposeOpenPane">
                    <Label resid="Pane.Label"/>
                    <Supertip>
                      <Title resid="Pane.Label"/>
                      <Description resid="Pane.Tooltip"/>
                    </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">
                      <SourceLocation resid="Taskpane.Url"/>
                    </Action>
                  </Control>
                </Group>
              </OfficeTab>
            </ExtensionPoint>

            <ExtensionPoint xsi:type="LaunchEvent">
              <LaunchEvents>
                <LaunchEvent Type="OnNewMessageCompose" FunctionName="onNewMessageComposeHandler"/>
                <LaunchEvent Type="OnNewAppointmentOrganizer" FunctionName="onNewAppointmentOrganizerHandler"/>
                <LaunchEvent Type="OnMessageFromChanged" FunctionName="onMessageFromChangedHandler"/>
              </LaunchEvents>
              <SourceLocation resid="Runtime.Url"/>
            </ExtensionPoint>
          </DesktopFormFactor>
        </Host>
      </Hosts>
      <Resources>
        <bt:Images>
          <bt:Image id="Icon.16" DefaultValue="https://argolite-osign.pages.dev/assets/icon-16.png"/>
          <bt:Image id="Icon.32" DefaultValue="https://argolite-osign.pages.dev/assets/icon-32.png"/>
          <bt:Image id="Icon.80" DefaultValue="https://argolite-osign.pages.dev/assets/icon-80.png"/>
        </bt:Images>
        <bt:Urls>
          <bt:Url id="Commands.Url" DefaultValue="https://argolite-osign.pages.dev/commands.html"/>
          <bt:Url id="Taskpane.Url" DefaultValue="https://argolite-osign.pages.dev/taskpane.html"/>
          <bt:Url id="Runtime.Url" DefaultValue="https://argolite-osign.pages.dev/commands.html"/>
          <bt:Url id="RuntimeJs.Url" DefaultValue="https://argolite-osign.pages.dev/launchevent.js"/>
        </bt:Urls>
        <bt:ShortStrings>
          <bt:String id="Group.Label" DefaultValue="NOBS OSign"/>
          <bt:String id="Pane.Label" DefaultValue="Signatures">
            <bt:Override Locale="de-DE" Value="Signaturen"/>
          </bt:String>
        </bt:ShortStrings>
        <bt:LongStrings>
          <bt:String id="Pane.Tooltip" DefaultValue="Pick a signature, or the one used for new mail and for replies.">
            <bt:Override Locale="de-DE" Value="Eine Signatur wählen, oder die für neue Mails und für Antworten."/>
          </bt:String>
        </bt:LongStrings>
      </Resources>
    </VersionOverrides>
  </VersionOverrides>
</OfficeApp>
