@microsoft/teamsfx-core 1.12.1-rc.1 → 1.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/build/common/templates-config.json +1 -1
  2. package/package.json +2 -2
  3. package/templates/fallback/bot.csharp.command-and-response.zip +0 -0
  4. package/templates/fallback/bot.csharp.default.zip +0 -0
  5. package/templates/fallback/bot.csharp.notification-function-base.zip +0 -0
  6. package/templates/fallback/bot.csharp.notification-trigger-http.zip +0 -0
  7. package/templates/fallback/bot.csharp.notification-trigger-timer.zip +0 -0
  8. package/templates/fallback/bot.csharp.notification-webapi.zip +0 -0
  9. package/templates/fallback/bot.js.command-and-response.zip +0 -0
  10. package/templates/fallback/bot.js.default.zip +0 -0
  11. package/templates/fallback/bot.js.m365.zip +0 -0
  12. package/templates/fallback/bot.js.notification-function-base.zip +0 -0
  13. package/templates/fallback/bot.js.notification-restify.zip +0 -0
  14. package/templates/fallback/bot.js.notification-trigger-http.zip +0 -0
  15. package/templates/fallback/bot.js.notification-trigger-timer.zip +0 -0
  16. package/templates/fallback/bot.ts.command-and-response.zip +0 -0
  17. package/templates/fallback/bot.ts.default.zip +0 -0
  18. package/templates/fallback/bot.ts.m365.zip +0 -0
  19. package/templates/fallback/bot.ts.notification-function-base.zip +0 -0
  20. package/templates/fallback/bot.ts.notification-restify.zip +0 -0
  21. package/templates/fallback/bot.ts.notification-trigger-http.zip +0 -0
  22. package/templates/fallback/bot.ts.notification-trigger-timer.zip +0 -0
  23. package/templates/fallback/function-base.js.default.zip +0 -0
  24. package/templates/fallback/function-base.ts.default.zip +0 -0
  25. package/templates/fallback/function-triggers.js.HTTPTrigger.zip +0 -0
  26. package/templates/fallback/function-triggers.ts.HTTPTrigger.zip +0 -0
  27. package/templates/fallback/tab.csharp.default.zip +0 -0
  28. package/templates/fallback/tab.js.default.zip +0 -0
  29. package/templates/fallback/tab.js.m365.zip +0 -0
  30. package/templates/fallback/tab.js.non-sso.zip +0 -0
  31. package/templates/fallback/tab.ts.default.zip +0 -0
  32. package/templates/fallback/tab.ts.m365.zip +0 -0
  33. package/templates/fallback/tab.ts.non-sso.zip +0 -0
  34. package/templates/plugins/resource/aad/auth/bot/README.md +8 -2
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.0.0-rc",
2
+ "version": "^1.0.0",
3
3
  "tagPrefix": "templates@",
4
4
  "tagListURL": "https://github.com/OfficeDev/TeamsFx/releases/download/template-tag-list/template-tags.txt",
5
5
  "templateDownloadBaseURL": "https://github.com/OfficeDev/TeamsFx/releases/download",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/teamsfx-core",
3
- "version": "1.12.1-rc.1",
3
+ "version": "1.12.1",
4
4
  "main": "build/index.js",
5
5
  "types": "build/index.d.ts",
6
6
  "license": "MIT",
@@ -189,7 +189,7 @@
189
189
  "resource/**/*",
190
190
  "templates/**/*"
191
191
  ],
192
- "gitHead": "50c40ad0cbb9f7808a100fd13dde78b3f3f9dbb5",
192
+ "gitHead": "f6e61602861b696e415eb0d0ec9880ac61e97f67",
193
193
  "publishConfig": {
194
194
  "access": "public"
195
195
  },
Binary file
Binary file
Binary file
Binary file
@@ -158,7 +158,7 @@ After successfully add SSO in your project, you can also add a new command.
158
158
 
159
159
  ```javascript
160
160
  // for JavaScript:
161
- export async function showUserImage(context, ssoToken, param) {
161
+ async function showUserImage(context, ssoToken, param) {
162
162
  await context.sendActivity("Retrieving user photo from Microsoft Graph ...");
163
163
 
164
164
  // Init TeamsFx instance with SSO token
@@ -171,7 +171,9 @@ After successfully add SSO in your project, you can also add a new command.
171
171
  // let photoUrl = "";
172
172
  // try {
173
173
  // const photo = await graphClient.api("/me/photo/$value").get();
174
- // photoUrl = URL.createObjectURL(photo);
174
+ // const arrayBuffer = await photo.arrayBuffer();
175
+ // const buffer=Buffer.from(arrayBuffer, 'binary');
176
+ // photoUrl = "data:image/png;base64," + buffer.toString("base64");
175
177
  // } catch {
176
178
  // // Could not fetch photo from user's profile, return empty string as placeholder.
177
179
  // }
@@ -185,6 +187,10 @@ After successfully add SSO in your project, you can also add a new command.
185
187
 
186
188
  return;
187
189
  }
190
+
191
+ module.exports = {
192
+ showUserImage,
193
+ };
188
194
  ```
189
195
 
190
196
  1. Register a new command using `addCommand` in `teamsSsoBot`: