@microsoft/teams-js 2.24.1-beta.1 → 2.25.0
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.
package/README.md
CHANGED
@@ -24,7 +24,7 @@ To install the stable [version](https://learn.microsoft.com/javascript/api/overv
|
|
24
24
|
|
25
25
|
### Production
|
26
26
|
|
27
|
-
You can reference these files directly [from here](https://res.cdn.office.net/teams-js/2.
|
27
|
+
You can reference these files directly [from here](https://res.cdn.office.net/teams-js/2.25.0/js/MicrosoftTeams.min.js) or point your package manager at them.
|
28
28
|
|
29
29
|
## Usage
|
30
30
|
|
@@ -45,13 +45,13 @@ Reference the library inside of your `.html` page using:
|
|
45
45
|
```html
|
46
46
|
<!-- Microsoft Teams JavaScript API (via CDN) -->
|
47
47
|
<script
|
48
|
-
src="https://res.cdn.office.net/teams-js/2.
|
49
|
-
integrity="sha384-
|
48
|
+
src="https://res.cdn.office.net/teams-js/2.25.0/js/MicrosoftTeams.min.js"
|
49
|
+
integrity="sha384-6royw0i5cEmf/8pzbTX9dVy1pjjJA8PQOaQbGvoL/m39OdjrlcWluhQZxqy5KbJA"
|
50
50
|
crossorigin="anonymous"
|
51
51
|
></script>
|
52
52
|
|
53
53
|
<!-- Microsoft Teams JavaScript API (via npm) -->
|
54
|
-
<script src="node_modules/@microsoft/teams-js@2.
|
54
|
+
<script src="node_modules/@microsoft/teams-js@2.25.0/dist/MicrosoftTeams.min.js"></script>
|
55
55
|
|
56
56
|
<!-- Microsoft Teams JavaScript API (via local) -->
|
57
57
|
<script src="MicrosoftTeams.min.js"></script>
|
package/dist/MicrosoftTeams.d.ts
CHANGED
@@ -3688,7 +3688,7 @@ export enum FileOpenPreference {
|
|
3688
3688
|
Web = "web"
|
3689
3689
|
}
|
3690
3690
|
/**
|
3691
|
-
*
|
3691
|
+
* Types of Action Objects
|
3692
3692
|
*
|
3693
3693
|
* @beta
|
3694
3694
|
*/
|
@@ -3708,8 +3708,7 @@ export interface BaseActionObject<T extends ActionObjectType> {
|
|
3708
3708
|
type: T;
|
3709
3709
|
}
|
3710
3710
|
/**
|
3711
|
-
* Stores information needed to represent
|
3712
|
-
* in OneDrive or Sharepoint
|
3711
|
+
* Stores information needed to represent content stored in OneDrive or Sharepoint
|
3713
3712
|
*
|
3714
3713
|
* @beta
|
3715
3714
|
*/
|
@@ -3723,7 +3722,7 @@ export interface M365ContentAction extends BaseActionObject<ActionObjectType.M36
|
|
3723
3722
|
secondaryId?: SecondaryId;
|
3724
3723
|
}
|
3725
3724
|
/**
|
3726
|
-
* Contains
|
3725
|
+
* Contains additional IDs of the content that the action is triggered from. Maps to ids used in the Graph.
|
3727
3726
|
*
|
3728
3727
|
* @beta
|
3729
3728
|
*/
|
@@ -3749,13 +3748,15 @@ export enum SecondaryM365ContentIdName {
|
|
3749
3748
|
UserId = "userId"
|
3750
3749
|
}
|
3751
3750
|
/**
|
3752
|
-
* Information
|
3751
|
+
* Information about an Action.
|
3753
3752
|
*
|
3753
|
+
* @remarks
|
3754
|
+
* This contains Id of the action, and the information about the object that triggered the action.
|
3754
3755
|
* @beta
|
3755
3756
|
*/
|
3756
3757
|
export interface ActionInfo {
|
3757
3758
|
/**
|
3758
|
-
* Maps to the action id supplied inside the manifest
|
3759
|
+
* Id of the action. Maps to the action id supplied inside the manifest
|
3759
3760
|
*/
|
3760
3761
|
actionId: string;
|
3761
3762
|
/**
|
package/dist/MicrosoftTeams.js
CHANGED
@@ -2278,7 +2278,7 @@ var FileOpenPreference;
|
|
2278
2278
|
FileOpenPreference["Web"] = "web";
|
2279
2279
|
})(FileOpenPreference || (FileOpenPreference = {}));
|
2280
2280
|
/**
|
2281
|
-
*
|
2281
|
+
* Types of Action Objects
|
2282
2282
|
*
|
2283
2283
|
* @beta
|
2284
2284
|
*/
|
@@ -3395,7 +3395,7 @@ const _minRuntimeConfigToUninitialize = {
|
|
3395
3395
|
* @hidden
|
3396
3396
|
* Package version.
|
3397
3397
|
*/
|
3398
|
-
const version = "2.
|
3398
|
+
const version = "2.25.0";
|
3399
3399
|
|
3400
3400
|
;// CONCATENATED MODULE: ./src/internal/internalAPIs.ts
|
3401
3401
|
|
@@ -4266,10 +4266,7 @@ function botUrlOpenHelper(apiVersionTag, urlDialogInfo, submitHandler, messageFr
|
|
4266
4266
|
});
|
4267
4267
|
}
|
4268
4268
|
function urlSubmitHelper(apiVersionTag, result, appIds) {
|
4269
|
-
|
4270
|
-
// but it's here because Teams mobile incorrectly returns FrameContext.content when calling app.getFrameContext().
|
4271
|
-
// FrameContexts.content will be removed once the bug is fixed.
|
4272
|
-
ensureInitialized(runtime, FrameContexts.content, FrameContexts.task);
|
4269
|
+
ensureInitialized(runtime, FrameContexts.task);
|
4273
4270
|
if (!dialog.url.isSupported()) {
|
4274
4271
|
throw errorNotSupportedOnPlatform;
|
4275
4272
|
}
|