{
  "$schema": "../../../../extension.schema.json",
  "$id": "9a635542-d87a-4558-ae64-ffa199d1a364",
  "$version": "0.0.10",
  "$name": "Edit in Office",
  "$description": "Extension that provides Office Edit Online Action",
  "$vendor": "Hyland Software, Inc. and its affiliates",
  "$license": "LGPL-3.0",

  "actions": [
    {
      "id": "aos.openWith.office",
      "type": "AOS_ACTION",
      "payload": "$(context.selection.first.entry)"
    }
  ],

  "features": {
    "toolbar": [
      {
        "id": "app.toolbar.more",
        "children": [
          {
            "id": "aos.toolbar.openWith.office",
            "order": 90,
            "icon": "edit",
            "title": "AOS.ACTION_TITLE",
            "actions": {
              "click": "aos.openWith.office"
            },
            "rules": {
              "visible": [
                "aos.canOpenWithOffice"
              ]
            }
          }
        ]
      }
    ],
    "contextMenu": [
      {
        "id": "aos.context.openWith.office",
        "order": 450,
        "icon": "edit",
        "title": "AOS.ACTION_TITLE",
        "actions": {
          "click": "aos.openWith.office"
        },
        "rules": {
          "visible": [
            "aos.canOpenWithOffice"
          ]
        }
      }
    ],
    "viewer": {
      "toolbarActions": [
        {
            "id": "app.viewer.toolbar.more",
            "children": [
              {
                "id": "aos.viewer.openWith.office",
                "order": 1,
                "icon": "edit",
                "title": "AOS.ACTION_TITLE",
                "actions": {
                  "click": "aos.openWith.office"
                },
                "rules": {
                  "visible": [
                    "aos.canOpenWithOffice"
                  ]
                }
            }
          ]
        }
      ]
    }
  }
}
