<?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"
           xmlns:ov="http://schemas.microsoft.com/office/taskpaneappversionoverrides"
           xsi:type="TaskPaneApp">
  <Id>e1cbf362-911b-4bd9-9e1a-adbac1c284e3</Id>
  <Version>1.0.0.0</Version>
  <ProviderName>Technology Learning Company</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="JET (JOLT Execution Tool)"/>
  <Description DefaultValue="JET, the JOLT Execution Tool: run the HTML, CSS and JavaScript apps built with JOLT that live inside your Office documents."/>
  <IconUrl DefaultValue="https://jolt.technologylearningcompany.com/assets/app-32.png"/>
  <HighResolutionIconUrl DefaultValue="https://jolt.technologylearningcompany.com/assets/app-64.png"/>
  <SupportUrl DefaultValue="https://jolt.technologylearningcompany.com/support/"/>
  <AppDomains>
    <AppDomain>https://jolt.technologylearningcompany.com</AppDomain>
  </AppDomains>
  <Hosts>
    <Host Name="Workbook"/>
    <Host Name="Document"/>
    <Host Name="Presentation"/>
  </Hosts>
  <DefaultSettings>
    <SourceLocation DefaultValue="https://jolt.technologylearningcompany.com/app.html"/>
  </DefaultSettings>
  <Permissions>ReadWriteDocument</Permissions>

  <VersionOverrides xmlns="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="VersionOverridesV1_0">
    <Hosts>
      <Host xsi:type="Workbook">
        <!-- Excel only: a shared runtime, so the custom function RUN (src/functions/runtime.js) runs in JET's
             own page, also while the pane is closed. Namespace: JOLTDEV here, JOLT in production. -->
        <Runtimes>
          <Runtime resid="Run.Url" lifetime="long"/>
        </Runtimes>
        <AllFormFactors>
          <ExtensionPoint xsi:type="CustomFunctions">
            <Script>
              <SourceLocation resid="Functions.Script.Url"/>
            </Script>
            <Page>
              <SourceLocation resid="Run.Url"/>
            </Page>
            <Metadata>
              <SourceLocation resid="Functions.Metadata.Url"/>
            </Metadata>
            <Namespace resid="Functions.Namespace"/>
          </ExtensionPoint>
        </AllFormFactors>
        <DesktopFormFactor>
          <FunctionFile resid="Run.Url"/>
          <ExtensionPoint xsi:type="PrimaryCommandSurface">
            <OfficeTab id="TabHome">
              <Group id="JoltRunner.Group">
                <Label resid="Group.Label"/>
                <Icon>
                  <bt:Image size="16" resid="Run.Icon16"/>
                  <bt:Image size="32" resid="Run.Icon32"/>
                  <bt:Image size="80" resid="Run.Icon80"/>
                </Icon>
                <Control xsi:type="Button" id="JoltRunner.RunButton">
                  <Label resid="Run.Label"/>
                  <Supertip><Title resid="Run.Label"/><Description resid="Run.Tip"/></Supertip>
                  <Icon>
                    <bt:Image size="16" resid="Run.Icon16"/>
                    <bt:Image size="32" resid="Run.Icon32"/>
                    <bt:Image size="80" resid="Run.Icon80"/>
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <TaskpaneId>Office.AutoShowTaskpaneWithDocument</TaskpaneId>
                    <SourceLocation resid="Run.Url"/>
                    <Title resid="Pane.Title"/>
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>

      <Host xsi:type="Document">
        <DesktopFormFactor>
          <FunctionFile resid="Commands.Url"/>
          <ExtensionPoint xsi:type="PrimaryCommandSurface">
            <OfficeTab id="TabHome">
              <Group id="JoltRunner.Group">
                <Label resid="Group.Label"/>
                <Icon>
                  <bt:Image size="16" resid="Run.Icon16"/>
                  <bt:Image size="32" resid="Run.Icon32"/>
                  <bt:Image size="80" resid="Run.Icon80"/>
                </Icon>
                <Control xsi:type="Button" id="JoltRunner.RunButton">
                  <Label resid="Run.Label"/>
                  <Supertip><Title resid="Run.Label"/><Description resid="Run.Tip"/></Supertip>
                  <Icon>
                    <bt:Image size="16" resid="Run.Icon16"/>
                    <bt:Image size="32" resid="Run.Icon32"/>
                    <bt:Image size="80" resid="Run.Icon80"/>
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <TaskpaneId>Office.AutoShowTaskpaneWithDocument</TaskpaneId>
                    <SourceLocation resid="Run.Url"/>
                    <Title resid="Pane.Title"/>
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>

      <Host xsi:type="Presentation">
        <DesktopFormFactor>
          <FunctionFile resid="Commands.Url"/>
          <ExtensionPoint xsi:type="PrimaryCommandSurface">
            <OfficeTab id="TabHome">
              <Group id="JoltRunner.Group">
                <Label resid="Group.Label"/>
                <Icon>
                  <bt:Image size="16" resid="Run.Icon16"/>
                  <bt:Image size="32" resid="Run.Icon32"/>
                  <bt:Image size="80" resid="Run.Icon80"/>
                </Icon>
                <Control xsi:type="Button" id="JoltRunner.RunButton">
                  <Label resid="Run.Label"/>
                  <Supertip><Title resid="Run.Label"/><Description resid="Run.Tip"/></Supertip>
                  <Icon>
                    <bt:Image size="16" resid="Run.Icon16"/>
                    <bt:Image size="32" resid="Run.Icon32"/>
                    <bt:Image size="80" resid="Run.Icon80"/>
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <TaskpaneId>Office.AutoShowTaskpaneWithDocument</TaskpaneId>
                    <SourceLocation resid="Run.Url"/>
                    <Title resid="Pane.Title"/>
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
    </Hosts>

    <Resources>
      <bt:Images>
        <bt:Image id="Run.Icon16" DefaultValue="https://jolt.technologylearningcompany.com/assets/app-16.png"/>
        <bt:Image id="Run.Icon32" DefaultValue="https://jolt.technologylearningcompany.com/assets/app-32.png"/>
        <bt:Image id="Run.Icon80" DefaultValue="https://jolt.technologylearningcompany.com/assets/app-80.png"/>
      </bt:Images>
      <bt:Urls>
        <bt:Url id="Commands.Url" DefaultValue="https://jolt.technologylearningcompany.com/commands.html"/>
        <bt:Url id="Run.Url" DefaultValue="https://jolt.technologylearningcompany.com/app.html"/>
        <bt:Url id="Functions.Script.Url" DefaultValue="https://jolt.technologylearningcompany.com/functions.js"/>
        <bt:Url id="Functions.Metadata.Url" DefaultValue="https://jolt.technologylearningcompany.com/functions.json"/>
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="Functions.Namespace" DefaultValue="JOLT"/>
        <bt:String id="Group.Label" DefaultValue="Jolt"/>
        <bt:String id="Run.Label" DefaultValue="Run Apps"/>
        <bt:String id="Pane.Title" DefaultValue="Run Apps"/>
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="Run.Tip" DefaultValue="Open JET to run the app stored in this document, or run an app or script from a URL."/>
      </bt:LongStrings>
    </Resources>
  </VersionOverrides>
</OfficeApp>
