<?xml version="1.0" encoding="UTF-8"?>
<!--
    FastLinkIt for Outlook — manifest.

    Sideload URL: https://flnk.it/outlook/manifest.xml

    Phase 1 features:
      - Insert short link
      - Insert payment link (Stripe / PayPal)
      - Insert booking link
      - Settings (API key, defaults)

    Compose-mode only. The runtime OnMessageSend hook (auto-shorten on
    send) ships in Phase 2 and uses VersionOverrides 1.1's runtimes block.

    Icons currently point at /img/logo.png at every size — Microsoft's
    validator accepts this and downsizes for the ribbon. Replace with
    properly-sized assets (16/32/64/80) before AppSource submission.
-->
<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>43039e05-2b5a-4240-af28-85cd14fbb5da</Id>
    <Version>1.0.0.0</Version>
    <ProviderName>flnk.it</ProviderName>
    <DefaultLocale>en-GB</DefaultLocale>
    <DisplayName DefaultValue="FastLinkIt for Outlook"/>
    <Description DefaultValue="Insert short links, payment links and booking pages directly from Outlook compose."/>
    <IconUrl DefaultValue="https://flnk.it/img/logo.png"/>
    <HighResolutionIconUrl DefaultValue="https://flnk.it/img/logo_1024x1024.png"/>
    <SupportUrl DefaultValue="https://flnk.it/contact"/>

    <AppDomains>
        <AppDomain>https://flnk.it</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://flnk.it/outlook/index.html"/>
            </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>
                    <FunctionFile resid="functionFileUrl"/>

                    <ExtensionPoint xsi:type="MessageComposeCommandSurface">
                        <OfficeTab id="TabDefault">
                            <Group id="flnkitGroup">
                                <Label resid="GroupLabel"/>

                                <Control xsi:type="Button" id="btnInsertLink">
                                    <Label resid="LinkLabel"/>
                                    <Supertip>
                                        <Title resid="LinkLabel"/>
                                        <Description resid="LinkTooltip"/>
                                    </Supertip>
                                    <Icon>
                                        <bt:Image size="16" resid="IconUrl16"/>
                                        <bt:Image size="32" resid="IconUrl32"/>
                                        <bt:Image size="80" resid="IconUrl80"/>
                                    </Icon>
                                    <Action xsi:type="ShowTaskpane">
                                        <SourceLocation resid="LinkUrl"/>
                                    </Action>
                                </Control>

                                <Control xsi:type="Button" id="btnInsertPayment">
                                    <Label resid="PaymentLabel"/>
                                    <Supertip>
                                        <Title resid="PaymentLabel"/>
                                        <Description resid="PaymentTooltip"/>
                                    </Supertip>
                                    <Icon>
                                        <bt:Image size="16" resid="IconUrl16"/>
                                        <bt:Image size="32" resid="IconUrl32"/>
                                        <bt:Image size="80" resid="IconUrl80"/>
                                    </Icon>
                                    <Action xsi:type="ShowTaskpane">
                                        <SourceLocation resid="PaymentUrl"/>
                                    </Action>
                                </Control>

                                <Control xsi:type="Button" id="btnInsertBooking">
                                    <Label resid="BookingLabel"/>
                                    <Supertip>
                                        <Title resid="BookingLabel"/>
                                        <Description resid="BookingTooltip"/>
                                    </Supertip>
                                    <Icon>
                                        <bt:Image size="16" resid="IconUrl16"/>
                                        <bt:Image size="32" resid="IconUrl32"/>
                                        <bt:Image size="80" resid="IconUrl80"/>
                                    </Icon>
                                    <Action xsi:type="ShowTaskpane">
                                        <SourceLocation resid="BookingUrl"/>
                                    </Action>
                                </Control>

                                <Control xsi:type="Button" id="btnSettings">
                                    <Label resid="SettingsLabel"/>
                                    <Supertip>
                                        <Title resid="SettingsLabel"/>
                                        <Description resid="SettingsTooltip"/>
                                    </Supertip>
                                    <Icon>
                                        <bt:Image size="16" resid="IconUrl16"/>
                                        <bt:Image size="32" resid="IconUrl32"/>
                                        <bt:Image size="80" resid="IconUrl80"/>
                                    </Icon>
                                    <Action xsi:type="ShowTaskpane">
                                        <SourceLocation resid="SettingsUrl"/>
                                    </Action>
                                </Control>

                            </Group>
                        </OfficeTab>
                    </ExtensionPoint>
                </DesktopFormFactor>
            </Host>
        </Hosts>

        <Resources>
            <bt:Images>
                <bt:Image id="IconUrl16" DefaultValue="https://flnk.it/img/logo.png"/>
                <bt:Image id="IconUrl32" DefaultValue="https://flnk.it/img/logo.png"/>
                <bt:Image id="IconUrl80" DefaultValue="https://flnk.it/img/logo_1024x1024.png"/>
            </bt:Images>

            <bt:Urls>
                <bt:Url id="functionFileUrl" DefaultValue="https://flnk.it/outlook/index.html"/>
                <bt:Url id="LinkUrl" DefaultValue="https://flnk.it/outlook/compose/link.html"/>
                <bt:Url id="PaymentUrl" DefaultValue="https://flnk.it/outlook/compose/payment.html"/>
                <bt:Url id="BookingUrl" DefaultValue="https://flnk.it/outlook/compose/booking.html"/>
                <bt:Url id="SettingsUrl" DefaultValue="https://flnk.it/outlook/settings.html"/>
            </bt:Urls>

            <bt:ShortStrings>
                <bt:String id="GroupLabel" DefaultValue="FastLinkIt">
                    <bt:Override Locale="it-IT" Value="FastLinkIt"/>
                    <bt:Override Locale="es-ES" Value="FastLinkIt"/>
                </bt:String>
                <bt:String id="LinkLabel" DefaultValue="Short link">
                    <bt:Override Locale="it-IT" Value="Link breve"/>
                    <bt:Override Locale="es-ES" Value="Enlace corto"/>
                </bt:String>
                <bt:String id="PaymentLabel" DefaultValue="Payment">
                    <bt:Override Locale="it-IT" Value="Pagamento"/>
                    <bt:Override Locale="es-ES" Value="Pago"/>
                </bt:String>
                <bt:String id="BookingLabel" DefaultValue="Booking">
                    <bt:Override Locale="it-IT" Value="Prenotazione"/>
                    <bt:Override Locale="es-ES" Value="Reserva"/>
                </bt:String>
                <bt:String id="SettingsLabel" DefaultValue="Settings">
                    <bt:Override Locale="it-IT" Value="Impostazioni"/>
                    <bt:Override Locale="es-ES" Value="Ajustes"/>
                </bt:String>
            </bt:ShortStrings>

            <bt:LongStrings>
                <bt:String id="LinkTooltip" DefaultValue="Insert a tracked short link into the message body.">
                    <bt:Override Locale="it-IT" Value="Inserisci un link breve tracciato nel corpo del messaggio."/>
                    <bt:Override Locale="es-ES" Value="Inserta un enlace corto rastreado en el cuerpo del mensaje."/>
                </bt:String>
                <bt:String id="PaymentTooltip" DefaultValue="Pick a product or create a quick checkout and insert it as a button.">
                    <bt:Override Locale="it-IT" Value="Scegli un prodotto o crea un checkout rapido e inseriscilo come pulsante."/>
                    <bt:Override Locale="es-ES" Value="Elige un producto o crea un checkout rápido e insértalo como botón."/>
                </bt:String>
                <bt:String id="BookingTooltip" DefaultValue="Insert a link to one of your booking planners.">
                    <bt:Override Locale="it-IT" Value="Inserisci un link a uno dei tuoi planner di prenotazione."/>
                    <bt:Override Locale="es-ES" Value="Inserta un enlace a uno de tus planners de reservas."/>
                </bt:String>
                <bt:String id="SettingsTooltip" DefaultValue="Connect this add-in to your FastLinkIt account.">
                    <bt:Override Locale="it-IT" Value="Collega questo componente aggiuntivo al tuo account FastLinkIt."/>
                    <bt:Override Locale="es-ES" Value="Conecta este complemento con tu cuenta FastLinkIt."/>
                </bt:String>
            </bt:LongStrings>
        </Resources>
    </VersionOverrides>
</OfficeApp>
