@microsoft/teams-js 2.58.0 → 2.59.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 +4 -4
- package/dist/esm/packages/teams-js/dts/internal/handlers.d.ts +3 -3
- package/dist/esm/packages/teams-js/dts/internal/telemetry.d.ts +4 -0
- package/dist/esm/packages/teams-js/dts/public/app/app.d.ts +27 -4
- package/dist/esm/packages/teams-js/dts/public/clipboard.d.ts +37 -19
- package/dist/esm/packages/teams-js/dts/public/index.d.ts +1 -0
- package/dist/esm/packages/teams-js/dts/public/interfaces.d.ts +29 -1
- package/dist/esm/packages/teams-js/dts/public/localNetworkAccess.d.ts +39 -0
- package/dist/esm/packages/teams-js/dts/public/publicAPIs.d.ts +6 -4
- package/dist/esm/packages/teams-js/dts/public/runtime.d.ts +4 -1
- package/dist/esm/packages/teams-js/src/artifactsForCDN/validDomains.json.js +1 -1
- package/dist/esm/packages/teams-js/src/index.js +1 -1
- package/dist/esm/packages/teams-js/src/internal/handlers.js +1 -1
- package/dist/esm/packages/teams-js/src/public/app/app.js +1 -1
- package/dist/esm/packages/teams-js/src/public/clipboard.js +1 -1
- package/dist/esm/packages/teams-js/src/public/interfaces.js +1 -1
- package/dist/esm/packages/teams-js/src/public/localNetworkAccess.js +1 -0
- package/dist/esm/packages/teams-js/src/public/version.js +1 -1
- package/dist/umd/MicrosoftTeams.js +164 -28
- package/dist/umd/MicrosoftTeams.js.map +1 -1
- package/dist/umd/MicrosoftTeams.min.js +1 -1
- package/dist/umd/MicrosoftTeams.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -1050,6 +1050,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
1050
1050
|
initialize: () => (/* reexport */ publicAPIs_initialize),
|
|
1051
1051
|
initializeWithFrameContext: () => (/* reexport */ publicAPIs_initializeWithFrameContext),
|
|
1052
1052
|
liveShare: () => (/* reexport */ liveShareHost_namespaceObject),
|
|
1053
|
+
localNetworkAccess: () => (/* reexport */ localNetworkAccess_namespaceObject),
|
|
1053
1054
|
location: () => (/* reexport */ location_namespaceObject),
|
|
1054
1055
|
logs: () => (/* reexport */ logs_namespaceObject),
|
|
1055
1056
|
mail: () => (/* reexport */ mail_namespaceObject),
|
|
@@ -1789,8 +1790,10 @@ __webpack_require__.d(chat_namespaceObject, {
|
|
|
1789
1790
|
var clipboard_namespaceObject = {};
|
|
1790
1791
|
__webpack_require__.r(clipboard_namespaceObject);
|
|
1791
1792
|
__webpack_require__.d(clipboard_namespaceObject, {
|
|
1793
|
+
hasPermission: () => (clipboard_hasPermission),
|
|
1792
1794
|
isSupported: () => (clipboard_isSupported),
|
|
1793
1795
|
read: () => (read),
|
|
1796
|
+
requestPermission: () => (clipboard_requestPermission),
|
|
1794
1797
|
write: () => (write)
|
|
1795
1798
|
});
|
|
1796
1799
|
|
|
@@ -1843,6 +1846,15 @@ __webpack_require__.d(location_namespaceObject, {
|
|
|
1843
1846
|
showLocation: () => (location_showLocation)
|
|
1844
1847
|
});
|
|
1845
1848
|
|
|
1849
|
+
// NAMESPACE OBJECT: ./src/public/localNetworkAccess.ts
|
|
1850
|
+
var localNetworkAccess_namespaceObject = {};
|
|
1851
|
+
__webpack_require__.r(localNetworkAccess_namespaceObject);
|
|
1852
|
+
__webpack_require__.d(localNetworkAccess_namespaceObject, {
|
|
1853
|
+
hasPermission: () => (localNetworkAccess_hasPermission),
|
|
1854
|
+
isSupported: () => (localNetworkAccess_isSupported),
|
|
1855
|
+
requestPermission: () => (localNetworkAccess_requestPermission)
|
|
1856
|
+
});
|
|
1857
|
+
|
|
1846
1858
|
// NAMESPACE OBJECT: ./src/public/meeting/appShareButton.ts
|
|
1847
1859
|
var appShareButton_namespaceObject = {};
|
|
1848
1860
|
__webpack_require__.r(appShareButton_namespaceObject);
|
|
@@ -2226,7 +2238,23 @@ var ErrorCode;
|
|
|
2226
2238
|
/** @hidden */
|
|
2227
2239
|
var DevicePermission;
|
|
2228
2240
|
(function (DevicePermission) {
|
|
2241
|
+
/**
|
|
2242
|
+
* Permission to read the contents of the system clipboard.
|
|
2243
|
+
*
|
|
2244
|
+
* @remarks
|
|
2245
|
+
* This is the app manifest and TeamsJS wire value. The browser Permissions-Policy
|
|
2246
|
+
* directive uses the separate `clipboard-read` spelling.
|
|
2247
|
+
*/
|
|
2248
|
+
DevicePermission["ClipboardRead"] = "clipboardRead";
|
|
2229
2249
|
DevicePermission["GeoLocation"] = "geolocation";
|
|
2250
|
+
/**
|
|
2251
|
+
* Permission to access devices on the user's local network.
|
|
2252
|
+
*
|
|
2253
|
+
* @remarks
|
|
2254
|
+
* This is the TeamsJS wire value. The browser Permissions-Policy directive uses the separate
|
|
2255
|
+
* `local-network-access` spelling.
|
|
2256
|
+
*/
|
|
2257
|
+
DevicePermission["LocalNetworkAccess"] = "localNetworkAccess";
|
|
2230
2258
|
DevicePermission["Media"] = "media";
|
|
2231
2259
|
})(DevicePermission || (DevicePermission = {}));
|
|
2232
2260
|
/**
|
|
@@ -2339,7 +2367,7 @@ var ClipboardSupportedMimeType;
|
|
|
2339
2367
|
})(ClipboardSupportedMimeType || (ClipboardSupportedMimeType = {}));
|
|
2340
2368
|
|
|
2341
2369
|
;// ./src/artifactsForCDN/validDomains.json
|
|
2342
|
-
const validDomains_namespaceObject = /*#__PURE__*/JSON.parse('{"validOrigins":["teams.microsoft.com","teams.microsoft.us","gov.teams.microsoft.us","dod.teams.microsoft.us","int.teams.microsoft.com","outlook.office.com","outlook-sdf.office.com","outlook.office365.com","outlook-sdf.office365.com","outlook.office365.us","outlook-dod.office365.us","webmail.apps.mil","outlook.live.com","outlook-sdf.live.com","teams.live.com","local.teams.live.com","local.teams.live.com:8080","local.teams.office.com","local.teams.office.com:8080","devspaces.skype.com","*.www.office.com","www.office.com","word.office.com","excel.office.com","powerpoint.office.com","www.officeppe.com","*.www.microsoft365.com","www.microsoft365.com","bing.com","edgeservices.bing.com","work.bing.com","www.bing.com","www.staging-bing-int.com","*.cloud.microsoft","*.m365.cloud.microsoft","*.outlook.cloud.microsoft","chatuxmanager.svc.cloud.microsoft","copilot.microsoft.com","windows.msn.com","fa000000125.resources.office.net","fa000000129.resources.office.net","fa000000124.resources.office.net","fa000000128.resources.office.net","fa000000136.resources.office.net","fa000000125.officeapps.live.com","fa000000129.officeapps.live.com","fa000000124.officeapps.live.com","fa000000128.officeapps.live.com","fa000000136.mro1cdnstorage.public.cdn.office.net","fa000000136.mro1cdnstorage.public.onecdn.static.microsoft","substrate.office.com","copilot-connectors.core.microsoft","substrate-msb-bizchatvnext-service.sdf01.substrate-msb-bingatwork.eastus2-sdf.cosmic-ppe.office.net","office-home-m365copilotapp.wus2sdf1.office-home-m365copilotapp.westus2-sdf.cosmic-ppe.office.net","office-home-m365copilotapp.wus2test1.office-home-m365copilotapp.westus2-test.cosmic-int.office.net","m365copilotapp.svc.cloud.microsoft","cr.m365copilotapp.svc.cloud.microsoft","m365copilotapp.svc.usgovcloud.microsoft","cr.m365copilotapp.svc.usgovcloud.microsoft","dod.m365copilotapp.svc.usgovcloud.microsoft","cr.dod.m365copilotapp.svc.usgovcloud.microsoft","m365copilotapp.svc.cloud.dev.microsoft","ffc-copilot.officeapps.live.com","m365.cloud.dev.microsoft","m365.cloud.dev.microsoft:3001","portal.officeppe.com","ignite.m365.admin.cloud.microsoft","ignite.admin.cloud.microsoft","sdf.m365.admin.cloud.microsoft","admin-sdf.microsoft.com","canary.m365.admin.cloud.microsoft","ring0.m365.admin.cloud.microsoft","admin.microsoft.com","m365.admin.cloud.microsoft","portal.office365.us","portal.apps.mil","www.ohome.apps.mil","www.office365.us"]}');
|
|
2370
|
+
const validDomains_namespaceObject = /*#__PURE__*/JSON.parse('{"validOrigins":["teams.microsoft.com","teams.microsoft.us","gov.teams.microsoft.us","dod.teams.microsoft.us","int.teams.microsoft.com","outlook.office.com","outlook-sdf.office.com","outlook.office365.com","outlook-sdf.office365.com","outlook.office365.us","outlook-dod.office365.us","webmail.apps.mil","outlook.live.com","outlook-sdf.live.com","teams.live.com","local.teams.live.com","local.teams.live.com:8080","local.teams.office.com","local.teams.office.com:8080","devspaces.skype.com","*.www.office.com","www.office.com","word.office.com","excel.office.com","powerpoint.office.com","www.officeppe.com","*.www.microsoft365.com","www.microsoft365.com","bing.com","edgeservices.bing.com","work.bing.com","www.bing.com","www.staging-bing-int.com","*.cloud.microsoft","*.m365.cloud.microsoft","*.outlook.cloud.microsoft","chatuxmanager.svc.cloud.microsoft","copilot.microsoft.com","windows.msn.com","fa000000125.resources.office.net","fa000000129.resources.office.net","fa000000124.resources.office.net","fa000000128.resources.office.net","fa000000136.resources.office.net","fa000000125.officeapps.live.com","fa000000129.officeapps.live.com","fa000000124.officeapps.live.com","fa000000128.officeapps.live.com","fa000000136.mro1cdnstorage.public.cdn.office.net","fa000000136.mro1cdnstorage.public.onecdn.static.microsoft","substrate.office.com","copilot-connectors.core.microsoft","copilotstudio.microsoft.com","copilotstudio.preview.microsoft.com","copilotstudio.preprod.microsoft.com","copilotstudio.test.microsoft.com","substrate-msb-bizchatvnext-service.sdf01.substrate-msb-bingatwork.eastus2-sdf.cosmic-ppe.office.net","office-home-m365copilotapp.wus2sdf1.office-home-m365copilotapp.westus2-sdf.cosmic-ppe.office.net","office-home-m365copilotapp.wus2test1.office-home-m365copilotapp.westus2-test.cosmic-int.office.net","m365copilotapp.svc.cloud.microsoft","cr.m365copilotapp.svc.cloud.microsoft","m365copilotapp.svc.usgovcloud.microsoft","cr.m365copilotapp.svc.usgovcloud.microsoft","dod.m365copilotapp.svc.usgovcloud.microsoft","cr.dod.m365copilotapp.svc.usgovcloud.microsoft","m365copilotapp.svc.cloud.dev.microsoft","ffc-copilot.officeapps.live.com","m365.cloud.dev.microsoft","m365.cloud.dev.microsoft:3001","portal.officeppe.com","ignite.m365.admin.cloud.microsoft","ignite.admin.cloud.microsoft","sdf.m365.admin.cloud.microsoft","admin-sdf.microsoft.com","canary.m365.admin.cloud.microsoft","ring0.m365.admin.cloud.microsoft","admin.microsoft.com","m365.admin.cloud.microsoft","portal.office365.us","portal.apps.mil","www.ohome.apps.mil","www.office365.us"]}');
|
|
2343
2371
|
var artifactsForCDN_validDomains_namespaceObject = /*#__PURE__*/__webpack_require__.t(validDomains_namespaceObject, 2);
|
|
2344
2372
|
;// ./src/internal/constants.ts
|
|
2345
2373
|
|
|
@@ -4708,7 +4736,7 @@ function isSerializable(arg) {
|
|
|
4708
4736
|
* @hidden
|
|
4709
4737
|
* Package version.
|
|
4710
4738
|
*/
|
|
4711
|
-
const version = "2.
|
|
4739
|
+
const version = "2.59.0";
|
|
4712
4740
|
|
|
4713
4741
|
;// ./src/public/featureFlags.ts
|
|
4714
4742
|
// All build feature flags are defined inside this object. Any build feature flag must have its own unique getter and setter function. This pattern allows for client apps to treeshake unused code and avoid including code guarded by this feature flags in the final bundle. If this property isn't desired, use the below runtime feature flags object.
|
|
@@ -5686,12 +5714,13 @@ function notifyExpectedFailure(expectedFailureRequest) {
|
|
|
5686
5714
|
notifyExpectedFailureHelper(getApiVersionTag(appTelemetryVersionNumber, "app.notifyExpectedFailure" /* ApiName.App_NotifyExpectedFailure */), expectedFailureRequest);
|
|
5687
5715
|
}
|
|
5688
5716
|
/**
|
|
5689
|
-
* Registers a handler for theme
|
|
5717
|
+
* Registers a handler for host theme or brand color palette updates.
|
|
5690
5718
|
*
|
|
5691
5719
|
* @remarks
|
|
5692
5720
|
* Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
|
|
5721
|
+
* The theme, palettes, or both may change with each update.
|
|
5693
5722
|
*
|
|
5694
|
-
* @param handler - The handler to
|
|
5723
|
+
* @param handler - The handler to call when the host sends an update.
|
|
5695
5724
|
*/
|
|
5696
5725
|
function registerOnThemeChangeHandler(handler) {
|
|
5697
5726
|
registerOnThemeChangeHandlerHelper(getApiVersionTag(appTelemetryVersionNumber, "app.registerOnThemeChangeHandler" /* ApiName.App_RegisterOnThemeChangeHandler */), handler);
|
|
@@ -5772,6 +5801,7 @@ function transformLegacyContextToAppContext(legacyContext) {
|
|
|
5772
5801
|
locale: legacyContext.locale,
|
|
5773
5802
|
sessionId: legacyContext.appSessionId ? legacyContext.appSessionId : '',
|
|
5774
5803
|
theme: legacyContext.theme ? legacyContext.theme : 'default',
|
|
5804
|
+
brandColorPalettes: legacyContext.brandColorPalettes,
|
|
5775
5805
|
iconPositionVertical: legacyContext.appIconPosition,
|
|
5776
5806
|
osLocaleInfo: legacyContext.osLocaleInfo,
|
|
5777
5807
|
messageId: legacyContext.messageId,
|
|
@@ -7953,12 +7983,13 @@ function handlers_registerOnContextChangeHandler(apiVersionTag, handler) {
|
|
|
7953
7983
|
* @internal
|
|
7954
7984
|
* Limited to Microsoft-internal use
|
|
7955
7985
|
*/
|
|
7956
|
-
function handleThemeChange(theme) {
|
|
7986
|
+
function handleThemeChange(theme, brandColorPalettes) {
|
|
7987
|
+
const hasBrandColorPalettes = !isNullOrUndefined(brandColorPalettes);
|
|
7957
7988
|
if (HandlersPrivate.themeChangeHandler) {
|
|
7958
|
-
HandlersPrivate.themeChangeHandler(theme);
|
|
7989
|
+
HandlersPrivate.themeChangeHandler(theme, hasBrandColorPalettes ? brandColorPalettes : undefined);
|
|
7959
7990
|
}
|
|
7960
7991
|
if (shouldEventBeRelayedToChild()) {
|
|
7961
|
-
sendMessageEventToChild('themeChange', [theme]);
|
|
7992
|
+
sendMessageEventToChild('themeChange', hasBrandColorPalettes ? [theme, brandColorPalettes] : [theme]);
|
|
7962
7993
|
}
|
|
7963
7994
|
}
|
|
7964
7995
|
/**
|
|
@@ -16368,17 +16399,14 @@ function chat_isSupported() {
|
|
|
16368
16399
|
|
|
16369
16400
|
;// ./src/public/clipboard.ts
|
|
16370
16401
|
/**
|
|
16371
|
-
* Interact with the system clipboard
|
|
16402
|
+
* Interact with the system clipboard.
|
|
16372
16403
|
*
|
|
16373
|
-
* @
|
|
16374
|
-
*
|
|
16375
|
-
*
|
|
16376
|
-
*
|
|
16377
|
-
*
|
|
16378
|
-
*
|
|
16379
|
-
* Note that using the browser-native Clipboard API directly within Teams hosts is not yet fully
|
|
16380
|
-
* supported; it depends on native device permission handling that is still being enabled as a
|
|
16381
|
-
* separate effort.
|
|
16404
|
+
* @remarks
|
|
16405
|
+
* The host-brokered {@link read}, {@link write}, and {@link isSupported} APIs are deprecated.
|
|
16406
|
+
* For browser-native clipboard reads, use {@link hasPermission} and {@link requestPermission}
|
|
16407
|
+
* before calling `navigator.clipboard.read()` from a user gesture.
|
|
16408
|
+
* The host must advertise `permissions.clipboardRead` in its runtime configuration to support
|
|
16409
|
+
* these permission APIs. The deprecated {@link isSupported} API checks only host-brokered clipboard support.
|
|
16382
16410
|
*
|
|
16383
16411
|
* @beta
|
|
16384
16412
|
* @module
|
|
@@ -16413,9 +16441,8 @@ const clipboardTelemetryVersionNumber = "v2" /* ApiVersionNumber.V_2 */;
|
|
|
16413
16441
|
* entirely and independently of a TeamsJS major release, so continued functionality is not
|
|
16414
16442
|
* guaranteed. The intended long-term replacement is the standardized Clipboard API provided by the
|
|
16415
16443
|
* browser ({@link https://developer.mozilla.org/docs/Web/API/Clipboard_API | Clipboard API}, `navigator.clipboard`).
|
|
16416
|
-
*
|
|
16417
|
-
*
|
|
16418
|
-
* separate effort.
|
|
16444
|
+
* For browser-native reads, use {@link hasPermission} and {@link requestPermission} before calling
|
|
16445
|
+
* `navigator.clipboard.read()` from a user gesture.
|
|
16419
16446
|
*
|
|
16420
16447
|
* @remarks
|
|
16421
16448
|
* Note: clipboard.write only supports Text, HTML, PNG, and JPEG data format.
|
|
@@ -16452,9 +16479,8 @@ function write(blob) {
|
|
|
16452
16479
|
* entirely and independently of a TeamsJS major release, so continued functionality is not
|
|
16453
16480
|
* guaranteed. The intended long-term replacement is the standardized Clipboard API provided by the
|
|
16454
16481
|
* browser ({@link https://developer.mozilla.org/docs/Web/API/Clipboard_API | Clipboard API}, `navigator.clipboard`).
|
|
16455
|
-
*
|
|
16456
|
-
*
|
|
16457
|
-
* separate effort.
|
|
16482
|
+
* For browser-native reads, use {@link hasPermission} and {@link requestPermission} before calling
|
|
16483
|
+
* `navigator.clipboard.read()` from a user gesture.
|
|
16458
16484
|
*
|
|
16459
16485
|
* @returns A promise blob which resolves to the data read from the clipboard or
|
|
16460
16486
|
* rejects stating the reason for failure.
|
|
@@ -16477,6 +16503,44 @@ function read() {
|
|
|
16477
16503
|
}
|
|
16478
16504
|
});
|
|
16479
16505
|
}
|
|
16506
|
+
/**
|
|
16507
|
+
* Checks whether the app has permission to read from the system clipboard.
|
|
16508
|
+
*
|
|
16509
|
+
* @returns A promise that resolves to `true` if clipboard-read permission has been granted,
|
|
16510
|
+
* or `false` if permission has not been granted.
|
|
16511
|
+
* @throws {@link errorNotSupportedOnPlatform} if the host does not advertise `permissions.clipboardRead`.
|
|
16512
|
+
*
|
|
16513
|
+
* @beta
|
|
16514
|
+
*/
|
|
16515
|
+
function clipboard_hasPermission() {
|
|
16516
|
+
ensureInitialized(runtime, FrameContexts.content, FrameContexts.task);
|
|
16517
|
+
if (!clipboard_isPermissionSupported()) {
|
|
16518
|
+
throw errorNotSupportedOnPlatform;
|
|
16519
|
+
}
|
|
16520
|
+
const permission = DevicePermission.ClipboardRead;
|
|
16521
|
+
return sendAndHandleSdkError(getApiVersionTag(clipboardTelemetryVersionNumber, "clipboard.hasPermission" /* ApiName.Clipboard_HasPermission */), 'permissions.has', permission);
|
|
16522
|
+
}
|
|
16523
|
+
/**
|
|
16524
|
+
* Requests permission to read from the system clipboard.
|
|
16525
|
+
*
|
|
16526
|
+
* @remarks
|
|
16527
|
+
* The host may need to reload the app frame after the permission is first granted before
|
|
16528
|
+
* `navigator.clipboard.read()` is available to the existing frame.
|
|
16529
|
+
*
|
|
16530
|
+
* @returns A promise that resolves to `true` if clipboard-read permission was granted,
|
|
16531
|
+
* or `false` if permission was not granted.
|
|
16532
|
+
* @throws {@link errorNotSupportedOnPlatform} if the host does not advertise `permissions.clipboardRead`.
|
|
16533
|
+
*
|
|
16534
|
+
* @beta
|
|
16535
|
+
*/
|
|
16536
|
+
function clipboard_requestPermission() {
|
|
16537
|
+
ensureInitialized(runtime, FrameContexts.content, FrameContexts.task);
|
|
16538
|
+
if (!clipboard_isPermissionSupported()) {
|
|
16539
|
+
throw errorNotSupportedOnPlatform;
|
|
16540
|
+
}
|
|
16541
|
+
const permission = DevicePermission.ClipboardRead;
|
|
16542
|
+
return sendAndHandleSdkError(getApiVersionTag(clipboardTelemetryVersionNumber, "clipboard.requestPermission" /* ApiName.Clipboard_RequestPermission */), 'permissions.request', permission);
|
|
16543
|
+
}
|
|
16480
16544
|
/**
|
|
16481
16545
|
* Checks if clipboard capability is supported by the host
|
|
16482
16546
|
* @returns boolean to represent whether the clipboard capability is supported
|
|
@@ -16489,9 +16553,8 @@ function read() {
|
|
|
16489
16553
|
* entirely and independently of a TeamsJS major release, so continued functionality is not
|
|
16490
16554
|
* guaranteed. The intended long-term replacement is the standardized Clipboard API provided by the
|
|
16491
16555
|
* browser ({@link https://developer.mozilla.org/docs/Web/API/Clipboard_API | Clipboard API}, `navigator.clipboard`).
|
|
16492
|
-
*
|
|
16493
|
-
*
|
|
16494
|
-
* separate effort.
|
|
16556
|
+
* For browser-native reads, use {@link hasPermission} and {@link requestPermission} before calling
|
|
16557
|
+
* `navigator.clipboard.read()` from a user gesture.
|
|
16495
16558
|
*
|
|
16496
16559
|
* @beta
|
|
16497
16560
|
*/
|
|
@@ -16503,6 +16566,10 @@ function clipboard_isSupported() {
|
|
|
16503
16566
|
return ensureInitialized(runtime) && navigator && navigator.clipboard && runtime.supports.clipboard ? true : false;
|
|
16504
16567
|
}
|
|
16505
16568
|
}
|
|
16569
|
+
function clipboard_isPermissionSupported() {
|
|
16570
|
+
var _a;
|
|
16571
|
+
return ensureInitialized(runtime) && !!((_a = runtime.supports.permissions) === null || _a === void 0 ? void 0 : _a.clipboardRead);
|
|
16572
|
+
}
|
|
16506
16573
|
|
|
16507
16574
|
;// ./src/public/nestedAppAuth.ts
|
|
16508
16575
|
var nestedAppAuth_awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
@@ -17100,6 +17167,72 @@ function location_isSupported() {
|
|
|
17100
17167
|
return ensureInitialized(runtime) && runtime.supports.location ? true : false;
|
|
17101
17168
|
}
|
|
17102
17169
|
|
|
17170
|
+
;// ./src/public/localNetworkAccess.ts
|
|
17171
|
+
/**
|
|
17172
|
+
* APIs for requesting permission to access devices on the user's local network.
|
|
17173
|
+
*
|
|
17174
|
+
* @remarks
|
|
17175
|
+
* The TeamsJS permission value is `localNetworkAccess`. The browser Permissions-Policy directive
|
|
17176
|
+
* uses the separate `local-network-access` spelling.
|
|
17177
|
+
*
|
|
17178
|
+
* @beta
|
|
17179
|
+
* @module
|
|
17180
|
+
*/
|
|
17181
|
+
|
|
17182
|
+
|
|
17183
|
+
|
|
17184
|
+
|
|
17185
|
+
|
|
17186
|
+
|
|
17187
|
+
/**
|
|
17188
|
+
* v2 APIs telemetry file: All APIs in this capability file should send API version v2 only.
|
|
17189
|
+
*/
|
|
17190
|
+
const localNetworkAccessTelemetryVersionNumber = "v2" /* ApiVersionNumber.V_2 */;
|
|
17191
|
+
/**
|
|
17192
|
+
* Checks whether the app has permission to access devices on the user's local network.
|
|
17193
|
+
*
|
|
17194
|
+
* @returns A promise that resolves to `true` if local network access permission has been granted,
|
|
17195
|
+
* or `false` otherwise.
|
|
17196
|
+
* @throws {@link errorNotSupportedOnPlatform} if the host does not support local network access permission.
|
|
17197
|
+
*
|
|
17198
|
+
* @beta
|
|
17199
|
+
*/
|
|
17200
|
+
function localNetworkAccess_hasPermission() {
|
|
17201
|
+
ensureInitialized(runtime, FrameContexts.content, FrameContexts.task);
|
|
17202
|
+
if (!localNetworkAccess_isSupported()) {
|
|
17203
|
+
throw errorNotSupportedOnPlatform;
|
|
17204
|
+
}
|
|
17205
|
+
return sendAndHandleSdkError(getApiVersionTag(localNetworkAccessTelemetryVersionNumber, "localNetworkAccess.hasPermission" /* ApiName.LocalNetworkAccess_HasPermission */), 'permissions.has', DevicePermission.LocalNetworkAccess);
|
|
17206
|
+
}
|
|
17207
|
+
/**
|
|
17208
|
+
* Requests permission to access devices on the user's local network.
|
|
17209
|
+
*
|
|
17210
|
+
* @returns A promise that resolves to `true` if local network access permission was granted,
|
|
17211
|
+
* or `false` otherwise.
|
|
17212
|
+
* @throws {@link errorNotSupportedOnPlatform} if the host does not support local network access permission.
|
|
17213
|
+
*
|
|
17214
|
+
* @beta
|
|
17215
|
+
*/
|
|
17216
|
+
function localNetworkAccess_requestPermission() {
|
|
17217
|
+
ensureInitialized(runtime, FrameContexts.content, FrameContexts.task);
|
|
17218
|
+
if (!localNetworkAccess_isSupported()) {
|
|
17219
|
+
throw errorNotSupportedOnPlatform;
|
|
17220
|
+
}
|
|
17221
|
+
return sendAndHandleSdkError(getApiVersionTag(localNetworkAccessTelemetryVersionNumber, "localNetworkAccess.requestPermission" /* ApiName.LocalNetworkAccess_RequestPermission */), 'permissions.request', DevicePermission.LocalNetworkAccess);
|
|
17222
|
+
}
|
|
17223
|
+
/**
|
|
17224
|
+
* Checks whether the host supports local network access permission.
|
|
17225
|
+
*
|
|
17226
|
+
* @returns `true` if the host advertises local network access permission support, or `false` otherwise.
|
|
17227
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed.
|
|
17228
|
+
*
|
|
17229
|
+
* @beta
|
|
17230
|
+
*/
|
|
17231
|
+
function localNetworkAccess_isSupported() {
|
|
17232
|
+
var _a;
|
|
17233
|
+
return ensureInitialized(runtime) && !!((_a = runtime.supports.permissions) === null || _a === void 0 ? void 0 : _a.localNetworkAccess);
|
|
17234
|
+
}
|
|
17235
|
+
|
|
17103
17236
|
;// ./src/public/meeting/appShareButton.ts
|
|
17104
17237
|
/**
|
|
17105
17238
|
* Module for functions to control behavior of the app share button
|
|
@@ -19524,10 +19657,11 @@ function publicAPIs_getContext(callback) {
|
|
|
19524
19657
|
* @deprecated
|
|
19525
19658
|
* As of TeamsJS v2.0.0, please use {@link app.registerOnThemeChangeHandler app.registerOnThemeChangeHandler(handler: registerOnThemeChangeHandlerFunctionType): void} instead.
|
|
19526
19659
|
*
|
|
19527
|
-
* Registers a handler for theme
|
|
19660
|
+
* Registers a handler for host theme or brand color palette updates.
|
|
19528
19661
|
* Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
|
|
19662
|
+
* The theme, palettes, or both may change with each update.
|
|
19529
19663
|
*
|
|
19530
|
-
* @param handler - The handler to
|
|
19664
|
+
* @param handler - The handler to call when the host sends an update.
|
|
19531
19665
|
*/
|
|
19532
19666
|
function publicAPIs_registerOnThemeChangeHandler(handler) {
|
|
19533
19667
|
registerOnThemeChangeHandlerHelper(getApiVersionTag(publicAPIsTelemetryVersionNumber, "registerOnThemeChangeHandlerHelper" /* ApiName.PublicAPIs_RegisterOnThemeChangeHandlerHelper */), handler);
|
|
@@ -21128,6 +21262,8 @@ const DISABLE_SHORTCUT_FORWARDING_ATTRIBUTE = 'data-disable-shortcuts-forwarding
|
|
|
21128
21262
|
|
|
21129
21263
|
|
|
21130
21264
|
|
|
21265
|
+
|
|
21266
|
+
|
|
21131
21267
|
|
|
21132
21268
|
|
|
21133
21269
|
|