@microsoft/teams-js 2.15.0-beta.1 → 2.15.0-beta.3
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/dist/MicrosoftTeams.d.ts +56 -92
- package/dist/MicrosoftTeams.js +249 -146
- package/dist/MicrosoftTeams.js.map +1 -1
- package/dist/MicrosoftTeams.min.js +1 -1
- package/dist/MicrosoftTeams.min.js.map +1 -1
- package/package.json +1 -1
package/dist/MicrosoftTeams.d.ts
CHANGED
@@ -3748,6 +3748,24 @@ export interface AdaptiveCardVersion {
|
|
3748
3748
|
/** Represents the minor version number. */
|
3749
3749
|
minorVersion: number;
|
3750
3750
|
}
|
3751
|
+
/**
|
3752
|
+
* Currently supported Mime type
|
3753
|
+
*/
|
3754
|
+
export enum ClipboardSupportedMimeType {
|
3755
|
+
TextPlain = "text/plain",
|
3756
|
+
TextHtml = "text/html",
|
3757
|
+
ImagePNG = "image/png",
|
3758
|
+
ImageJPEG = "image/jpeg"
|
3759
|
+
}
|
3760
|
+
/**
|
3761
|
+
* Clipboard write parameters
|
3762
|
+
*/
|
3763
|
+
export interface ClipboardParams {
|
3764
|
+
/** Mime Type of data to be copied to Clipboard */
|
3765
|
+
mimeType: ClipboardSupportedMimeType;
|
3766
|
+
/** Blob content in Base64 string format */
|
3767
|
+
content: string;
|
3768
|
+
}
|
3751
3769
|
|
3752
3770
|
/**
|
3753
3771
|
* Namespace to interact with app initialization and lifecycle.
|
@@ -4287,97 +4305,6 @@ export namespace appInstallDialog {
|
|
4287
4305
|
function isSupported(): boolean;
|
4288
4306
|
}
|
4289
4307
|
|
4290
|
-
/**
|
4291
|
-
* Namespace to interact with the appNotification specific part of the SDK
|
4292
|
-
* @beta
|
4293
|
-
*/
|
4294
|
-
export namespace appNotification {
|
4295
|
-
/**
|
4296
|
-
* Data structure to represent appNotification information
|
4297
|
-
*
|
4298
|
-
* @beta
|
4299
|
-
*/
|
4300
|
-
interface NotificationDisplayParam {
|
4301
|
-
/**
|
4302
|
-
* Notification title(maximum length: 75 characters)
|
4303
|
-
*/
|
4304
|
-
title: string;
|
4305
|
-
/**
|
4306
|
-
* Notification content (maximum length: 1500 characters)
|
4307
|
-
*/
|
4308
|
-
content: string;
|
4309
|
-
/**
|
4310
|
-
* This would represent an optional icon that can be displayed on the notification. It should have a max size of 49 pixels by 49 pixels
|
4311
|
-
* If no icon is provided, the notification card would be displayed without an icon
|
4312
|
-
* The url link to where the icon is stored should be provided as the input string
|
4313
|
-
*/
|
4314
|
-
icon?: URL;
|
4315
|
-
/**
|
4316
|
-
* This would specify how long a notification would be displayed on the screen for (unit: seconds)
|
4317
|
-
*
|
4318
|
-
*/
|
4319
|
-
displayDurationInSeconds: number;
|
4320
|
-
/**
|
4321
|
-
* A url link to the page in which the notification would direct the user to.
|
4322
|
-
*/
|
4323
|
-
notificationActionUrl: URL;
|
4324
|
-
}
|
4325
|
-
/**
|
4326
|
-
* @internal
|
4327
|
-
*
|
4328
|
-
* @hidden
|
4329
|
-
*
|
4330
|
-
* @beta
|
4331
|
-
*
|
4332
|
-
* Data structure to represent appNotification information that would be sent to the host SDK
|
4333
|
-
*/
|
4334
|
-
interface NotificationDisplayParamForAppHost {
|
4335
|
-
/**
|
4336
|
-
* Notification title(maximum length: 75 characters)
|
4337
|
-
*/
|
4338
|
-
title: string;
|
4339
|
-
/**
|
4340
|
-
* Notification content (maximum length: 1500 characters)
|
4341
|
-
*/
|
4342
|
-
content: string;
|
4343
|
-
/**
|
4344
|
-
* This would represent an optional icon that can be displayed on the notification. It should have a max size of 49 pixels by 49 pixels
|
4345
|
-
* If no icon is provided, the notification card would be displayed without an icon
|
4346
|
-
* The url link to where the icon is stored should be provided as the input string
|
4347
|
-
*/
|
4348
|
-
notificationIconAsString?: string;
|
4349
|
-
/**
|
4350
|
-
* This would specify how long a notification would be displayed on the screen for (unit: seconds)
|
4351
|
-
*
|
4352
|
-
*/
|
4353
|
-
displayDurationInSeconds: number;
|
4354
|
-
/**
|
4355
|
-
* A url string type to the page in which the notification would direct the user to.
|
4356
|
-
*/
|
4357
|
-
notificationActionUrlAsString: string;
|
4358
|
-
}
|
4359
|
-
/**
|
4360
|
-
* Displays appNotification after making a validiity check on all of the required parameters, by calling the validateNotificationDisplayParams helper function
|
4361
|
-
* An interface object containing all the required parameters to be displayed on the notification would be passed in here
|
4362
|
-
* The notificationDisplayParam would be serialized before passing across to the message handler to ensure all objects passed contain simple parameters that would properly pass across the Iframe
|
4363
|
-
* @param notificationdisplayparam - Interface object with all the parameters required to display an appNotificiation
|
4364
|
-
* @returns a promise resolution upon conclusion
|
4365
|
-
* @throws Error if appNotification capability is not supported
|
4366
|
-
* @throws Error if notficationDisplayParam was not validated successfully
|
4367
|
-
*
|
4368
|
-
* @beta
|
4369
|
-
*/
|
4370
|
-
function displayInAppNotification(notificationDisplayParam: NotificationDisplayParam): Promise<void>;
|
4371
|
-
/**
|
4372
|
-
* Checks if appNotification is supported by the host
|
4373
|
-
* @returns boolean to represent whether the appNotification capability is supported
|
4374
|
-
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
4375
|
-
*
|
4376
|
-
* @beta
|
4377
|
-
*/
|
4378
|
-
function isSupported(): boolean;
|
4379
|
-
}
|
4380
|
-
|
4381
4308
|
/**
|
4382
4309
|
* Namespace to interact with the barcode scanning-specific part of the SDK.
|
4383
4310
|
*
|
@@ -4516,6 +4443,43 @@ export namespace chat {
|
|
4516
4443
|
}
|
4517
4444
|
export {};
|
4518
4445
|
|
4446
|
+
/**
|
4447
|
+
* Interact with the system clipboard
|
4448
|
+
*
|
4449
|
+
* @beta
|
4450
|
+
*/
|
4451
|
+
export namespace clipboard {
|
4452
|
+
/**
|
4453
|
+
* Function to copy data to clipboard.
|
4454
|
+
* @remarks
|
4455
|
+
* Note: clipboard.write only supports Text, HTML, PNG, and JPEG data format.
|
4456
|
+
* MIME type for Text -> `text/plain`, HTML -> `text/html`, PNG/JPEG -> `image/(png | jpeg)`
|
4457
|
+
* Also, JPEG will be converted to PNG image when copying to clipboard.
|
4458
|
+
*
|
4459
|
+
* @param blob - A Blob object representing the data to be copied to clipboard.
|
4460
|
+
* @returns A string promise which resolves to success message from the clipboard or
|
4461
|
+
* rejects with error stating the reason for failure.
|
4462
|
+
*/
|
4463
|
+
function write(blob: Blob): Promise<void>;
|
4464
|
+
/**
|
4465
|
+
* Function to read data from clipboard.
|
4466
|
+
*
|
4467
|
+
* @returns A promise blob which resolves to the data read from the clipboard or
|
4468
|
+
* rejects stating the reason for failure.
|
4469
|
+
* Note: Returned blob type will contain one of the MIME type `image/png`, `text/plain` or `text/html`.
|
4470
|
+
*/
|
4471
|
+
function read(): Promise<Blob>;
|
4472
|
+
/**
|
4473
|
+
* Checks if clipboard capability is supported by the host
|
4474
|
+
* @returns boolean to represent whether the clipboard capability is supported
|
4475
|
+
*
|
4476
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
4477
|
+
*
|
4478
|
+
* @beta
|
4479
|
+
*/
|
4480
|
+
function isSupported(): boolean;
|
4481
|
+
}
|
4482
|
+
|
4519
4483
|
/**
|
4520
4484
|
* This group of capabilities enables apps to show modal dialogs. There are two primary types of dialogs: URL-based dialogs and [Adaptive Card](https://learn.microsoft.com/adaptive-cards/) dialogs.
|
4521
4485
|
* Both types of dialogs are shown on top of your app, preventing interaction with your app while they are displayed.
|
@@ -4990,7 +4954,7 @@ export namespace pages {
|
|
4990
4954
|
export function navigateToApp(params: NavigateToAppParams): Promise<void>;
|
4991
4955
|
/**
|
4992
4956
|
* Shares a deep link that a user can use to navigate back to a specific state in this page.
|
4993
|
-
* Please note that this method does yet work on mobile hosts.
|
4957
|
+
* Please note that this method does not yet work on mobile hosts.
|
4994
4958
|
*
|
4995
4959
|
* @param deepLinkParameters - ID and label for the link and fallback URL.
|
4996
4960
|
*/
|