<?xml version="1.0" encoding="UTF-8"?>
<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"
           xsi:type="MailApp">
  <Id>6571524E-3592-4081-8E6D-438B21B19A4A</Id>
  <Version>1.0.17.0</Version>
  <ProviderName>Margin for Outlook</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="Margin for Outlook" />
  <Description DefaultValue="Shared notes, comments, and discussion for email conversations" />
  <IconUrl DefaultValue="https://www.marginforoutlook.com/assets/logo-64.png" />
  <HighResolutionIconUrl DefaultValue="https://www.marginforoutlook.com/assets/logo-128.png" />
  <SupportUrl DefaultValue="https://www.marginforoutlook.com" />
  
  <Hosts>
    <Host Name="Mailbox" />
  </Hosts>
  
  <!-- Mailbox 1.8: supports Classic Outlook on Mac, Outlook 2021 on Windows, SSO (Identity API 1.3). Progressive: shared folders (1.8), pinnable (1.5), shared mailbox (1.13), Office theme (1.14) where supported. -->
  <Requirements>
    <Sets>
      <Set Name="Mailbox" MinVersion="1.8" />
    </Sets>
  </Requirements>
  
  <FormSettings>
    <Form xsi:type="ItemRead">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://www.marginforoutlook.com/taskpane.html" />
        <RequestedHeight>450</RequestedHeight>
      </DesktopSettings>
      <TabletSettings>
        <SourceLocation DefaultValue="https://www.marginforoutlook.com/taskpane.html" />
        <RequestedHeight>450</RequestedHeight>
      </TabletSettings>
      <PhoneSettings>
        <SourceLocation DefaultValue="https://www.marginforoutlook.com/taskpane.html" />
      </PhoneSettings>
    </Form>
  </FormSettings>
  
  <Permissions>ReadItem</Permissions>
  <Rule xsi:type="RuleCollection" Mode="Or">
    <Rule xsi:type="ItemIs" ItemType="Message" FormType="Read" />
  </Rule>
  
  <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides" xsi:type="VersionOverridesV1_0">
    <Requirements>
      <bt:Sets DefaultMinVersion="1.8">
        <bt:Set Name="Mailbox" />
      </bt:Sets>
    </Requirements>
    <Hosts>
        <Host xsi:type="MailHost">
          <DesktopFormFactor>
            <ExtensionPoint xsi:type="MessageReadCommandSurface">
            <OfficeTab id="TabDefault">
              <Group id="msgReadGroup">
                <Label resid="GroupLabel" />
                <Control xsi:type="Button" id="msgReadOpenPaneButton">
                  <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="20" resid="Icon.20x20" />
                    <bt:Image size="24" resid="Icon.24x24" />
                    <bt:Image size="32" resid="Icon.32x32" />
                    <bt:Image size="40" resid="Icon.40x40" />
                    <bt:Image size="48" resid="Icon.48x48" />
                    <bt:Image size="64" resid="Icon.64x64" />
                    <bt:Image size="80" resid="Icon.80x80" />
                    <bt:Image size="96" resid="Icon.96x96" />
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <SourceLocation resid="TaskPane.Url" />
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
    </Hosts>
    <Resources>
      <bt:Images>
        <bt:Image id="Icon.16x16" DefaultValue="https://www.marginforoutlook.com/assets/logo-16.png" />
        <bt:Image id="Icon.20x20" DefaultValue="https://www.marginforoutlook.com/assets/logo-20.png" />
        <bt:Image id="Icon.24x24" DefaultValue="https://www.marginforoutlook.com/assets/logo-24.png" />
        <bt:Image id="Icon.32x32" DefaultValue="https://www.marginforoutlook.com/assets/logo-32.png" />
        <bt:Image id="Icon.40x40" DefaultValue="https://www.marginforoutlook.com/assets/logo-40.png" />
        <bt:Image id="Icon.48x48" DefaultValue="https://www.marginforoutlook.com/assets/logo-48.png" />
        <bt:Image id="Icon.64x64" DefaultValue="https://www.marginforoutlook.com/assets/logo-64.png" />
        <bt:Image id="Icon.80x80" DefaultValue="https://www.marginforoutlook.com/assets/logo-80.png" />
        <bt:Image id="Icon.96x96" DefaultValue="https://www.marginforoutlook.com/assets/logo-96.png" />
      </bt:Images>
      <bt:Urls>
        <bt:Url id="GetStarted.LearnMoreUrl" DefaultValue="https://www.marginforoutlook.com" />
        <bt:Url id="TaskPane.Url" DefaultValue="https://www.marginforoutlook.com/taskpane.html" />
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="GetStarted.Title" DefaultValue="Get started with Margin for Outlook!" />
        <bt:String id="GroupLabel" DefaultValue="Margin for Outlook" />
        <bt:String id="TaskPaneButton.Label" DefaultValue="Open Margin for Outlook" />
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="GetStarted.Description" DefaultValue="Your sample add-in loaded successfully. Go to the HOME tab and click the 'Show Taskpane' button to get started." />
        <bt:String id="TaskPaneButton.Tooltip" DefaultValue="Click to open Margin for Outlook task pane" />
      </bt:LongStrings>
    </Resources>
    
    <!-- Nested VersionOverridesV1_1 for shared folders/mailboxes and SSO support -->
    <!-- Note: Resources must be explicitly defined in V1_1 (not inherited) -->
    <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides/1.1" xsi:type="VersionOverridesV1_1">
      <Requirements>
        <bt:Sets DefaultMinVersion="1.8">
          <bt:Set Name="Mailbox" />
        </bt:Sets>
      </Requirements>
      <Hosts>
        <Host xsi:type="MailHost">
          <DesktopFormFactor>
            <!-- Enable support for shared mailboxes and delegate access -->
            <SupportsSharedFolders>true</SupportsSharedFolders>
            <ExtensionPoint xsi:type="MessageReadCommandSurface">
              <OfficeTab id="TabDefault">
                <Group id="msgReadGroup">
                  <Label resid="GroupLabel" />
                  <Control xsi:type="Button" id="msgReadOpenPaneButton">
                    <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="20" resid="Icon.20x20" />
                      <bt:Image size="24" resid="Icon.24x24" />
                      <bt:Image size="32" resid="Icon.32x32" />
                      <bt:Image size="40" resid="Icon.40x40" />
                      <bt:Image size="48" resid="Icon.48x48" />
                      <bt:Image size="64" resid="Icon.64x64" />
                      <bt:Image size="80" resid="Icon.80x80" />
                      <bt:Image size="96" resid="Icon.96x96" />
                    </Icon>
                    <Action xsi:type="ShowTaskpane">
                      <SourceLocation resid="TaskPane.Url" />
                      <SupportsPinning>true</SupportsPinning>
                    </Action>
                  </Control>
                </Group>
              </OfficeTab>
            </ExtensionPoint>
          </DesktopFormFactor>
        </Host>
      </Hosts>
      <Resources>
        <bt:Images>
          <bt:Image id="Icon.16x16" DefaultValue="https://www.marginforoutlook.com/assets/logo-16.png" />
          <bt:Image id="Icon.20x20" DefaultValue="https://www.marginforoutlook.com/assets/logo-20.png" />
          <bt:Image id="Icon.24x24" DefaultValue="https://www.marginforoutlook.com/assets/logo-24.png" />
          <bt:Image id="Icon.32x32" DefaultValue="https://www.marginforoutlook.com/assets/logo-32.png" />
          <bt:Image id="Icon.40x40" DefaultValue="https://www.marginforoutlook.com/assets/logo-40.png" />
          <bt:Image id="Icon.48x48" DefaultValue="https://www.marginforoutlook.com/assets/logo-48.png" />
          <bt:Image id="Icon.64x64" DefaultValue="https://www.marginforoutlook.com/assets/logo-64.png" />
          <bt:Image id="Icon.80x80" DefaultValue="https://www.marginforoutlook.com/assets/logo-80.png" />
          <bt:Image id="Icon.96x96" DefaultValue="https://www.marginforoutlook.com/assets/logo-96.png" />
        </bt:Images>
        <bt:Urls>
          <bt:Url id="GetStarted.LearnMoreUrl" DefaultValue="https://www.marginforoutlook.com" />
          <bt:Url id="TaskPane.Url" DefaultValue="https://www.marginforoutlook.com/taskpane.html" />
        </bt:Urls>
        <bt:ShortStrings>
          <bt:String id="GetStarted.Title" DefaultValue="Get started with Margin for Outlook!" />
          <bt:String id="GroupLabel" DefaultValue="Margin for Outlook" />
          <bt:String id="TaskPaneButton.Label" DefaultValue="Open Margin for Outlook" />
        </bt:ShortStrings>
        <bt:LongStrings>
          <bt:String id="GetStarted.Description" DefaultValue="Your sample add-in loaded successfully. Go to the HOME tab and click the 'Show Taskpane' button to get started." />
          <bt:String id="TaskPaneButton.Tooltip" DefaultValue="Click to open Margin for Outlook task pane" />
        </bt:LongStrings>
      </Resources>
      <!-- WebApplicationInfo must be the last child element of VersionOverrides -->
      <WebApplicationInfo>
        <Id>f70852cc-07a8-4a73-b463-1df1a44eecf9</Id>
        <Resource>api://www.marginforoutlook.com/f70852cc-07a8-4a73-b463-1df1a44eecf9</Resource>
        <Scopes>
          <Scope>access_as_user</Scope>
          <Scope>openid</Scope>
          <Scope>profile</Scope>
          <Scope>email</Scope>
          <Scope>User.ReadBasic.All</Scope>
        </Scopes>
      </WebApplicationInfo>
    </VersionOverrides>
  </VersionOverrides>
</OfficeApp>
