Skip to content

Commit ebfb53b

Browse files
authored
Merge pull request #224 from OfficeDev/match-json-version
make XML and JSON versions match
2 parents 3892778 + 63f3d98 commit ebfb53b

File tree

5 files changed

+7
-8
lines changed

5 files changed

+7
-8
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
},
1414
"engines": {
1515
"node": ">=16 <19",
16-
"npm": ">=7 <10"
16+
"npm": ">=7 <11"
1717
},
1818
"scripts": {
1919
"build": "webpack --mode production",

src/commands/commands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function action(event: Office.AddinCommands.Event) {
2222
};
2323

2424
// Show a notification message.
25-
Office.context.mailbox.item.notificationMessages.replaceAsync("action", message);
25+
Office.context.mailbox.item.notificationMessages.replaceAsync("ActionPerformanceNotification", message);
2626

2727
// Be sure to indicate when the add-in command function is complete.
2828
event.completed();

src/taskpane/outlook.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,7 @@ export async function run() {
1717
/**
1818
* Insert your Outlook code here
1919
*/
20+
21+
const item = Office.context.mailbox.item;
22+
document.getElementById("item-subject").innerHTML = "<b>Subject:</b> <br/>" + item.subject;
2023
}

src/taskpane/taskpane.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ <h2 class="ms-font-xl"> Discover what Office Add-ins can do for you today! </h2>
4848
<div role="button" id="run" class="ms-welcome__action ms-Button ms-Button--hero ms-font-xl">
4949
<span class="ms-Button-label">Run</span>
5050
</div>
51+
<p><label id="item-subject"></label></p>
5152
</main>
5253
</body>
5354

webpack.config.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ module.exports = async (env, options) => {
2525
clean: true,
2626
},
2727
resolve: {
28-
extensions: [".ts", ".tsx", ".html", ".js"],
28+
extensions: [".ts", ".html", ".js"],
2929
},
3030
module: {
3131
rules: [
@@ -39,11 +39,6 @@ module.exports = async (env, options) => {
3939
},
4040
},
4141
},
42-
{
43-
test: /\.tsx?$/,
44-
exclude: /node_modules/,
45-
use: "ts-loader",
46-
},
4742
{
4843
test: /\.html$/,
4944
exclude: /node_modules/,

0 commit comments

Comments
 (0)