<?xml version="1.0" encoding="UTF-8"?>
<!-- The Outlook add-in's manifest (docs/notes/outlook.md), written for each stack's hosts when the web container
     starts. The add-in-only manifest, because it is the kind Outlook on a Mac takes. It asks to read and write only the
     email being written (ReadWriteItem), and shows only while writing one. -->
<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>6809f285-4f8d-4a9b-b9e1-e349bad46b39</Id>
  <Version>1.0.0.0</Version>
  <ProviderName>DeltaBreen Limited</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="Share"/>
  <Description DefaultValue="Send files encrypted end to end, and ask people for theirs, with a link in the email you are writing."/>
  <IconUrl DefaultValue="https://share-outlook.deltabreen.eu/outlook-icons/icon-64.png"/>
  <HighResolutionIconUrl DefaultValue="https://share-outlook.deltabreen.eu/outlook-icons/icon-128.png"/>
  <SupportUrl DefaultValue="https://share.deltabreen.eu/docs/outlook"/>
  <AppDomains>
    <AppDomain>https://share.deltabreen.eu</AppDomain>
  </AppDomains>
  <Hosts>
    <Host Name="Mailbox"/>
  </Hosts>
  <Requirements>
    <Sets>
      <Set Name="Mailbox" MinVersion="1.5"/>
    </Sets>
  </Requirements>
  <FormSettings>
    <Form xsi:type="ItemEdit">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://share-outlook.deltabreen.eu/"/>
      </DesktopSettings>
    </Form>
  </FormSettings>
  <Permissions>ReadWriteItem</Permissions>
  <Rule xsi:type="RuleCollection" Mode="Or">
    <Rule xsi:type="ItemIs" ItemType="Message" FormType="Edit"/>
  </Rule>
  <DisableEntityHighlighting>false</DisableEntityHighlighting>
  <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides" xsi:type="VersionOverridesV1_0">
    <Requirements>
      <bt:Sets DefaultMinVersion="1.5">
        <bt:Set Name="Mailbox"/>
      </bt:Sets>
    </Requirements>
    <Hosts>
      <Host xsi:type="MailHost">
        <DesktopFormFactor>
          <ExtensionPoint xsi:type="MessageComposeCommandSurface">
            <OfficeTab id="TabDefault">
              <Group id="shareGroup">
                <Label resid="groupLabel"/>
                <Control xsi:type="Button" id="shareButton">
                  <Label resid="buttonLabel"/>
                  <Supertip>
                    <Title resid="buttonLabel"/>
                    <Description resid="buttonTip"/>
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="button16"/>
                    <bt:Image size="32" resid="button32"/>
                    <bt:Image size="80" resid="button80"/>
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <SourceLocation resid="paneUrl"/>
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
    </Hosts>
    <Resources>
      <bt:Images>
        <bt:Image id="button16" DefaultValue="https://share-outlook.deltabreen.eu/outlook-icons/button-16.png"/>
        <bt:Image id="button32" DefaultValue="https://share-outlook.deltabreen.eu/outlook-icons/button-32.png"/>
        <bt:Image id="button80" DefaultValue="https://share-outlook.deltabreen.eu/outlook-icons/button-80.png"/>
      </bt:Images>
      <bt:Urls>
        <bt:Url id="paneUrl" DefaultValue="https://share-outlook.deltabreen.eu/"/>
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="groupLabel" DefaultValue="Share"/>
        <bt:String id="buttonLabel" DefaultValue="Share files"/>
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="buttonTip" DefaultValue="Send files encrypted, or ask for files, with a link in this email."/>
      </bt:LongStrings>
    </Resources>
    <!-- Outlook versions that know 1.1 read this one: the same button, with a pane that stays open between emails. -->
    <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides/1.1" xsi:type="VersionOverridesV1_1">
      <Requirements>
        <bt:Sets DefaultMinVersion="1.5">
          <bt:Set Name="Mailbox"/>
        </bt:Sets>
      </Requirements>
      <Hosts>
        <Host xsi:type="MailHost">
          <DesktopFormFactor>
            <ExtensionPoint xsi:type="MessageComposeCommandSurface">
              <OfficeTab id="TabDefault">
                <Group id="shareGroup">
                  <Label resid="groupLabel"/>
                  <Control xsi:type="Button" id="shareButton">
                    <Label resid="buttonLabel"/>
                    <Supertip>
                      <Title resid="buttonLabel"/>
                      <Description resid="buttonTip"/>
                    </Supertip>
                    <Icon>
                      <bt:Image size="16" resid="button16"/>
                      <bt:Image size="32" resid="button32"/>
                      <bt:Image size="80" resid="button80"/>
                    </Icon>
                    <Action xsi:type="ShowTaskpane">
                      <SourceLocation resid="paneUrl"/>
                      <SupportsPinning>true</SupportsPinning>
                    </Action>
                  </Control>
                </Group>
              </OfficeTab>
            </ExtensionPoint>
          </DesktopFormFactor>
        </Host>
      </Hosts>
      <Resources>
        <bt:Images>
          <bt:Image id="button16" DefaultValue="https://share-outlook.deltabreen.eu/outlook-icons/button-16.png"/>
          <bt:Image id="button32" DefaultValue="https://share-outlook.deltabreen.eu/outlook-icons/button-32.png"/>
          <bt:Image id="button80" DefaultValue="https://share-outlook.deltabreen.eu/outlook-icons/button-80.png"/>
        </bt:Images>
        <bt:Urls>
          <bt:Url id="paneUrl" DefaultValue="https://share-outlook.deltabreen.eu/"/>
        </bt:Urls>
        <bt:ShortStrings>
          <bt:String id="groupLabel" DefaultValue="Share"/>
          <bt:String id="buttonLabel" DefaultValue="Share files"/>
        </bt:ShortStrings>
        <bt:LongStrings>
          <bt:String id="buttonTip" DefaultValue="Send files encrypted, or ask for files, with a link in this email."/>
        </bt:LongStrings>
      </Resources>
    </VersionOverrides>
  </VersionOverrides>
</OfficeApp>
