<?xml version="1.0" encoding="UTF-8"?>
<!--
  本番配布用マニフェスト（手動サイドロード配布向け）。
  開発用の manifest.xml（https://localhost:3001 のまま）とは別ファイルとして維持している
  - ローカル開発サーバーを壊さないため。

  デプロイ手順（docs/EXCEL_HANDOFF.md参照）:
  1. apps/excel-addin を Vercel 等にデプロイし、本番ドメインを取得する
  2. このファイル内の "https://app.koredefo.com" を実際のドメインに一括置換する
  3. apps/homepage/koredefo-excel-add-in.xml にこのファイルをコピーする（ダウンロードリンクの実体）
-->
<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">

  <!-- Production id. Deliberately different from the dev manifest (manifest.xml)
       so both can be installed side by side without Office confusing them. -->
  <Id>4e623e00-6da3-4944-b5e1-32df57c4a1f2</Id>
  <Version>1.0.1.0</Version>
  <ProviderName>KoreDefo</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <!-- AppSource certification (2026-11-01, policy 100.7.1 Microsoft IP):
       "the only acceptable format is 'KoreDefo for Excel'" - a title may not
       start with a Microsoft product name. Same in every language. -->
  <DisplayName DefaultValue="KoreDefo for Excel" />
  <Description DefaultValue="Checks and fixes Excel formatting (cell structure, fonts, color coding, workbook structure and more) from the ribbon.">
    <Override Locale="ja-JP" Value="Excelの形式チェック（セル構造/フォント/色分け/ブック構造など）をリボンから実行します。" />
  </Description>
  <IconUrl DefaultValue="https://app.koredefo.com/assets/icon-32.png" />
  <HighResolutionIconUrl DefaultValue="https://app.koredefo.com/assets/icon-64.png" />
  <SupportUrl DefaultValue="https://koredefo.com/en/contact">
    <Override Locale="ja-JP" Value="https://koredefo.com/contact" />
  </SupportUrl>

  <AppDomains>
    <AppDomain>https://app.koredefo.com</AppDomain>
  </AppDomains>

  <Hosts>
    <Host Name="Workbook" />
  </Hosts>

  <!-- Supported environment: Microsoft 365 Excel only (decided 2026-09-24).
       ExcelApi 1.18 is the newest API set the add-in calls (Excel.Note), so
       older perpetual versions (Excel 2016/2019, which stop at 1.8 and cannot
       run Scan at all) refuse to install it with a clear message instead of
       failing half-way through a scan. -->
  <Requirements>
    <Sets DefaultMinVersion="1.1">
      <Set Name="ExcelApi" MinVersion="1.18" />
    </Sets>
  </Requirements>

  <DefaultSettings>
    <SourceLocation DefaultValue="https://app.koredefo.com/src/taskpane/taskpane.html" />
  </DefaultSettings>

  <Permissions>ReadWriteDocument</Permissions>

  <VersionOverrides xmlns="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="VersionOverridesV1_0">
    <Hosts>
      <Host xsi:type="Workbook">
        <DesktopFormFactor>
          <GetStarted>
            <Title resid="GetStarted.Title" />
            <Description resid="GetStarted.Description" />
            <LearnMoreUrl resid="GetStarted.LearnMoreUrl" />
          </GetStarted>

          <FunctionFile resid="Commands.Url" />

          <ExtensionPoint xsi:type="PrimaryCommandSurface">
            <OfficeTab id="TabHome">
              <Group id="ExcelQA.Group">
                <Label resid="ExcelQA.Group.Label" />
                <Icon>
                  <bt:Image size="16" resid="Icon.16x16" />
                  <bt:Image size="32" resid="Icon.32x32" />
                  <bt:Image size="80" resid="Icon.80x80" />
                </Icon>

                <Control xsi:type="Button" id="ExcelQA.TaskpaneButton">
                  <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="32" resid="Icon.32x32" />
                    <bt:Image size="80" resid="Icon.80x80" />
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <TaskpaneId>ExcelQA.Taskpane</TaskpaneId>
                    <SourceLocation resid="Taskpane.Url" />
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
    </Hosts>

    <Resources>
      <bt:Images>
        <bt:Image id="Icon.16x16" DefaultValue="https://app.koredefo.com/assets/icon-16.png" />
        <bt:Image id="Icon.32x32" DefaultValue="https://app.koredefo.com/assets/icon-32.png" />
        <bt:Image id="Icon.80x80" DefaultValue="https://app.koredefo.com/assets/icon-80.png" />
      </bt:Images>
      <bt:Urls>
        <bt:Url id="Commands.Url" DefaultValue="https://app.koredefo.com/src/commands/commands.html" />
        <bt:Url id="Taskpane.Url" DefaultValue="https://app.koredefo.com/src/taskpane/taskpane.html" />
        <bt:Url id="GetStarted.LearnMoreUrl" DefaultValue="https://koredefo.com" />
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="GetStarted.Title" DefaultValue="KoreDefo has been added">
          <bt:Override Locale="ja-JP" Value="KoreDefo が追加されました" />
        </bt:String>
        <bt:String id="ExcelQA.Group.Label" DefaultValue="KoreDefo" />
        <bt:String id="TaskpaneButton.Label" DefaultValue="Scan" />
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="GetStarted.Description" DefaultValue="Run Excel formatting checks (fonts, cells, sheet structure, color coding and more) from the ribbon.">
          <bt:Override Locale="ja-JP" Value="Excelの形式チェック（フォント/セル/シート構造/色分けなど）をリボンから実行できます。" />
        </bt:String>
        <bt:String id="TaskpaneButton.Tooltip" DefaultValue="Opens the task pane to check fonts, cells, sheet structure, color coding and more.">
          <bt:Override Locale="ja-JP" Value="タスクペインを開き、フォント/セル/シート構造/色分け等の形式チェックを実行します。" />
        </bt:String>
      </bt:LongStrings>
    </Resources>
  </VersionOverrides>
</OfficeApp>
