Skip to content

Commit d47ab24

Browse files
[Outlook] (tutorial) Add support for the unified manifest (#1046)
* Clarify known issue in README * Add unified manifest support * Update date * Apply suggestions from review Co-authored-by: Rick Kirkham <[email protected]> * Apply suggestions from review and update date * Update IDs and labels --------- Co-authored-by: Rick Kirkham <[email protected]>
1 parent 1764306 commit d47ab24

File tree

11 files changed

+31505
-23
lines changed

11 files changed

+31505
-23
lines changed

Samples/tutorials/outlook-tutorial/Git the gist/assets/sample.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"The tutorial gives step-by-step instructions on how to add functionality alongside explanations as to why code is being added. Use this sample if you want to explore and try the completed code, or if you need to debug any issues you may have encountered while following the tutorial."
1111
],
1212
"creationDateTime": "2023-09-12",
13-
"updateDateTime": "2023-09-12",
13+
"updateDateTime": "2025-11-19",
1414
"products": [
1515
"Office"
1616
],
@@ -43,4 +43,4 @@
4343
}
4444
]
4545
}
46-
]
46+
]
Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2+
<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:mailappor="http://schemas.microsoft.com/office/mailappversionoverrides/1.0" xsi:type="MailApp">
3+
<Id>ee3bd144-bde6-4057-91d6-d28e1ac7faf2</Id>
4+
<Version>1.0.0.0</Version>
5+
<ProviderName>Contoso</ProviderName>
6+
<DefaultLocale>en-US</DefaultLocale>
7+
<DisplayName DefaultValue="Git the gist"/>
8+
<Description DefaultValue="Allows users to access their GitHub gists."/>
9+
<IconUrl DefaultValue="https://localhost:3000/assets/icon-64.png"/>
10+
<HighResolutionIconUrl DefaultValue="https://localhost:3000/assets/icon-128.png"/>
11+
<SupportUrl DefaultValue="https://www.contoso.com/help"/>
12+
<AppDomains>
13+
<AppDomain>https://www.contoso.com</AppDomain>
14+
</AppDomains>
15+
<Hosts>
16+
<Host Name="Mailbox"/>
17+
</Hosts>
18+
<Requirements>
19+
<Sets>
20+
<Set Name="Mailbox" MinVersion="1.3"/>
21+
</Sets>
22+
</Requirements>
23+
<FormSettings>
24+
<Form xsi:type="ItemRead">
25+
<DesktopSettings>
26+
<SourceLocation DefaultValue="https://localhost:3000/taskpane.html"/>
27+
<RequestedHeight>250</RequestedHeight>
28+
</DesktopSettings>
29+
</Form>
30+
</FormSettings>
31+
<Permissions>ReadWriteItem</Permissions>
32+
<Rule xsi:type="RuleCollection" Mode="Or">
33+
<Rule xsi:type="ItemIs" ItemType="Message" FormType="Read"/>
34+
</Rule>
35+
<DisableEntityHighlighting>false</DisableEntityHighlighting>
36+
<VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides" xsi:type="VersionOverridesV1_0">
37+
<Requirements>
38+
<bt:Sets DefaultMinVersion="1.3">
39+
<bt:Set Name="Mailbox"/>
40+
</bt:Sets>
41+
</Requirements>
42+
<Hosts>
43+
<Host xsi:type="MailHost">
44+
<DesktopFormFactor>
45+
<FunctionFile resid="Commands.Url"/>
46+
<!-- Message Compose -->
47+
<ExtensionPoint xsi:type="MessageComposeCommandSurface">
48+
<OfficeTab id="TabDefault">
49+
<Group id="msgComposeCmdGroup">
50+
<Label resid="GroupLabel"/>
51+
<Control xsi:type="Button" id="msgComposeShowGistListTaskPane">
52+
<Label resid="TaskpaneButton.Label"/>
53+
<Supertip>
54+
<Title resid="TaskpaneButton.Title"/>
55+
<Description resid="TaskpaneButton.Tooltip"/>
56+
</Supertip>
57+
<Icon>
58+
<bt:Image size="16" resid="Icon.16x16"/>
59+
<bt:Image size="32" resid="Icon.32x32"/>
60+
<bt:Image size="80" resid="Icon.80x80"/>
61+
</Icon>
62+
<Action xsi:type="ShowTaskpane">
63+
<SourceLocation resid="Taskpane.Url"/>
64+
</Action>
65+
</Control>
66+
<Control xsi:type="Button" id="msgComposeInsertDefaultGist">
67+
<Label resid="FunctionButton.Label"/>
68+
<Supertip>
69+
<Title resid="FunctionButton.Title"/>
70+
<Description resid="FunctionButton.Tooltip"/>
71+
</Supertip>
72+
<Icon>
73+
<bt:Image size="16" resid="Icon.16x16"/>
74+
<bt:Image size="32" resid="Icon.32x32"/>
75+
<bt:Image size="80" resid="Icon.80x80"/>
76+
</Icon>
77+
<Action xsi:type="ExecuteFunction">
78+
<FunctionName>insertDefaultGist</FunctionName>
79+
</Action>
80+
</Control>
81+
</Group>
82+
</OfficeTab>
83+
</ExtensionPoint>
84+
</DesktopFormFactor>
85+
</Host>
86+
</Hosts>
87+
<Resources>
88+
<bt:Images>
89+
<bt:Image id="Icon.16x16" DefaultValue="https://localhost:3000/assets/icon-16.png"/>
90+
<bt:Image id="Icon.32x32" DefaultValue="https://localhost:3000/assets/icon-32.png"/>
91+
<bt:Image id="Icon.80x80" DefaultValue="https://localhost:3000/assets/icon-80.png"/>
92+
</bt:Images>
93+
<bt:Urls>
94+
<bt:Url id="Commands.Url" DefaultValue="https://localhost:3000/commands.html"/>
95+
<bt:Url id="Taskpane.Url" DefaultValue="https://localhost:3000/taskpane.html"/>
96+
</bt:Urls>
97+
<bt:ShortStrings>
98+
<bt:String id="GroupLabel" DefaultValue="Git the gist"/>
99+
<bt:String id="TaskpaneButton.Label" DefaultValue="Display gist list"/>
100+
<bt:String id="TaskpaneButton.Title" DefaultValue="Display gist list"/>
101+
<bt:String id="FunctionButton.Label" DefaultValue="Insert default gist"/>
102+
<bt:String id="FunctionButton.Title" DefaultValue="Insert default gist"/>
103+
</bt:ShortStrings>
104+
<bt:LongStrings>
105+
<bt:String id="TaskpaneButton.Tooltip" DefaultValue="Displays a list of your gists and allows you to insert their contents into the current message."/>
106+
<bt:String id="FunctionButton.Tooltip" DefaultValue="Inserts the content of the gist you mark as default into the current message."/>
107+
</bt:LongStrings>
108+
</Resources>
109+
</VersionOverrides>
110+
</OfficeApp>

0 commit comments

Comments
 (0)