@jevelin/bridge 2.53.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/LICENSE +12 -0
- package/README.md +78 -0
- package/dist/esm/_virtual/_polyfill-node.buffer.js +1 -0
- package/dist/esm/_virtual/_polyfill-node.global.js +1 -0
- package/dist/esm/_virtual/browser.js +1 -0
- package/dist/esm/node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.55.1_tslib@2.8.1_typescript@4.9.5/node_modules/tslib/tslib.es6.js +1 -0
- package/dist/esm/node_modules/.pnpm/debug@4.3.5/node_modules/debug/src/browser.js +1 -0
- package/dist/esm/node_modules/.pnpm/debug@4.3.5/node_modules/debug/src/common.js +1 -0
- package/dist/esm/node_modules/.pnpm/ms@2.1.2/node_modules/ms/index.js +1 -0
- package/dist/esm/node_modules/.pnpm/uuid@11.1.1/node_modules/uuid/dist/esm-browser/native.js +1 -0
- package/dist/esm/node_modules/.pnpm/uuid@11.1.1/node_modules/uuid/dist/esm-browser/regex.js +1 -0
- package/dist/esm/node_modules/.pnpm/uuid@11.1.1/node_modules/uuid/dist/esm-browser/rng.js +1 -0
- package/dist/esm/node_modules/.pnpm/uuid@11.1.1/node_modules/uuid/dist/esm-browser/stringify.js +1 -0
- package/dist/esm/node_modules/.pnpm/uuid@11.1.1/node_modules/uuid/dist/esm-browser/v4.js +1 -0
- package/dist/esm/node_modules/.pnpm/uuid@11.1.1/node_modules/uuid/dist/esm-browser/validate.js +1 -0
- package/dist/esm/packages/teams-js/dts/index.d.ts +2 -0
- package/dist/esm/packages/teams-js/dts/internal/VideoFrameTypes.d.ts +78 -0
- package/dist/esm/packages/teams-js/dts/internal/appHelpers.d.ts +19 -0
- package/dist/esm/packages/teams-js/dts/internal/childCommunication.d.ts +38 -0
- package/dist/esm/packages/teams-js/dts/internal/communication.d.ts +151 -0
- package/dist/esm/packages/teams-js/dts/internal/communicationUtils.d.ts +20 -0
- package/dist/esm/packages/teams-js/dts/internal/constants.d.ts +146 -0
- package/dist/esm/packages/teams-js/dts/internal/deepLinkConstants.d.ts +26 -0
- package/dist/esm/packages/teams-js/dts/internal/deepLinkUtilities.d.ts +4 -0
- package/dist/esm/packages/teams-js/dts/internal/dialogHelpers.d.ts +32 -0
- package/dist/esm/packages/teams-js/dts/internal/emailAddressValidation.d.ts +1 -0
- package/dist/esm/packages/teams-js/dts/internal/globalVars.d.ts +13 -0
- package/dist/esm/packages/teams-js/dts/internal/handlers.d.ts +101 -0
- package/dist/esm/packages/teams-js/dts/internal/hostToAppTelemetry.d.ts +51 -0
- package/dist/esm/packages/teams-js/dts/internal/idValidation.d.ts +37 -0
- package/dist/esm/packages/teams-js/dts/internal/interfaces.d.ts +58 -0
- package/dist/esm/packages/teams-js/dts/internal/internalAPIs.d.ts +61 -0
- package/dist/esm/packages/teams-js/dts/internal/marketplaceUtils.d.ts +94 -0
- package/dist/esm/packages/teams-js/dts/internal/mediaUtil.d.ts +95 -0
- package/dist/esm/packages/teams-js/dts/internal/messageObjects.d.ts +80 -0
- package/dist/esm/packages/teams-js/dts/internal/nestedAppAuthUtils.d.ts +107 -0
- package/dist/esm/packages/teams-js/dts/internal/pagesHelpers.d.ts +27 -0
- package/dist/esm/packages/teams-js/dts/internal/profileUtil.d.ts +33 -0
- package/dist/esm/packages/teams-js/dts/internal/responseHandler.d.ts +32 -0
- package/dist/esm/packages/teams-js/dts/internal/telemetry.d.ts +411 -0
- package/dist/esm/packages/teams-js/dts/internal/typeCheckUtilities.d.ts +1 -0
- package/dist/esm/packages/teams-js/dts/internal/urlPattern.d.ts +50 -0
- package/dist/esm/packages/teams-js/dts/internal/utils.d.ts +226 -0
- package/dist/esm/packages/teams-js/dts/internal/validOrigins.d.ts +13 -0
- package/dist/esm/packages/teams-js/dts/internal/videoEffectsUtils.d.ts +31 -0
- package/dist/esm/packages/teams-js/dts/internal/videoFrameTick.d.ts +10 -0
- package/dist/esm/packages/teams-js/dts/internal/videoPerformanceMonitor.d.ts +54 -0
- package/dist/esm/packages/teams-js/dts/internal/videoPerformanceStatistics.d.ts +49 -0
- package/dist/esm/packages/teams-js/dts/internal/visualMediaHelpers.d.ts +14 -0
- package/dist/esm/packages/teams-js/dts/internal/webStorageHelpers.d.ts +4 -0
- package/dist/esm/packages/teams-js/dts/private/appEntity.d.ts +89 -0
- package/dist/esm/packages/teams-js/dts/private/constants.d.ts +9 -0
- package/dist/esm/packages/teams-js/dts/private/conversations.d.ts +152 -0
- package/dist/esm/packages/teams-js/dts/private/copilot/copilot.d.ts +5 -0
- package/dist/esm/packages/teams-js/dts/private/copilot/customTelemetry.d.ts +33 -0
- package/dist/esm/packages/teams-js/dts/private/copilot/eligibility.d.ts +31 -0
- package/dist/esm/packages/teams-js/dts/private/copilot/sidePanel.d.ts +75 -0
- package/dist/esm/packages/teams-js/dts/private/copilot/sidePanelInterfaces.d.ts +522 -0
- package/dist/esm/packages/teams-js/dts/private/copilot/view.d.ts +21 -0
- package/dist/esm/packages/teams-js/dts/private/externalAppAuthentication.d.ts +472 -0
- package/dist/esm/packages/teams-js/dts/private/externalAppAuthenticationForCEA.d.ts +93 -0
- package/dist/esm/packages/teams-js/dts/private/externalAppCardActions.d.ts +111 -0
- package/dist/esm/packages/teams-js/dts/private/externalAppCardActionsForCEA.d.ts +48 -0
- package/dist/esm/packages/teams-js/dts/private/externalAppCardActionsForDA.d.ts +75 -0
- package/dist/esm/packages/teams-js/dts/private/externalAppCommands.d.ts +122 -0
- package/dist/esm/packages/teams-js/dts/private/externalAppErrorHandling.d.ts +19 -0
- package/dist/esm/packages/teams-js/dts/private/files.d.ts +766 -0
- package/dist/esm/packages/teams-js/dts/private/hostEntity/hostEntity.d.ts +50 -0
- package/dist/esm/packages/teams-js/dts/private/hostEntity/tab.d.ts +134 -0
- package/dist/esm/packages/teams-js/dts/private/index.d.ts +29 -0
- package/dist/esm/packages/teams-js/dts/private/interfaces.d.ts +290 -0
- package/dist/esm/packages/teams-js/dts/private/logs.d.ts +31 -0
- package/dist/esm/packages/teams-js/dts/private/meetingRoom.d.ts +208 -0
- package/dist/esm/packages/teams-js/dts/private/messageChannels/dataLayer.d.ts +39 -0
- package/dist/esm/packages/teams-js/dts/private/messageChannels/messageChannels.d.ts +28 -0
- package/dist/esm/packages/teams-js/dts/private/messageChannels/telemetry.d.ts +39 -0
- package/dist/esm/packages/teams-js/dts/private/nestedAppAuth/nestedAppAuthBridge.d.ts +32 -0
- package/dist/esm/packages/teams-js/dts/private/notifications.d.ts +32 -0
- package/dist/esm/packages/teams-js/dts/private/otherAppStateChange.d.ts +94 -0
- package/dist/esm/packages/teams-js/dts/private/plugins.d.ts +94 -0
- package/dist/esm/packages/teams-js/dts/private/privateAPIs.d.ts +94 -0
- package/dist/esm/packages/teams-js/dts/private/remoteCamera.d.ts +303 -0
- package/dist/esm/packages/teams-js/dts/private/store.d.ts +128 -0
- package/dist/esm/packages/teams-js/dts/private/teams/fullTrust/fullTrust.d.ts +31 -0
- package/dist/esm/packages/teams-js/dts/private/teams/fullTrust/joinedTeams.d.ts +30 -0
- package/dist/esm/packages/teams-js/dts/private/teams/teams.d.ts +63 -0
- package/dist/esm/packages/teams-js/dts/private/videoEffectsEx.d.ts +250 -0
- package/dist/esm/packages/teams-js/dts/private/widgetHosting/widgetContext.d.ts +121 -0
- package/dist/esm/packages/teams-js/dts/private/widgetHosting/widgetHosting.d.ts +101 -0
- package/dist/esm/packages/teams-js/dts/public/adaptiveCards.d.ts +6 -0
- package/dist/esm/packages/teams-js/dts/public/app/app.d.ts +648 -0
- package/dist/esm/packages/teams-js/dts/public/app/lifecycle.d.ts +41 -0
- package/dist/esm/packages/teams-js/dts/public/appId.d.ts +28 -0
- package/dist/esm/packages/teams-js/dts/public/appInitialization.d.ts +57 -0
- package/dist/esm/packages/teams-js/dts/public/appInstallDialog.d.ts +18 -0
- package/dist/esm/packages/teams-js/dts/public/appPerformanceMetrics.d.ts +24 -0
- package/dist/esm/packages/teams-js/dts/public/appWindow.d.ts +66 -0
- package/dist/esm/packages/teams-js/dts/public/authentication.d.ts +417 -0
- package/dist/esm/packages/teams-js/dts/public/badge.d.ts +42 -0
- package/dist/esm/packages/teams-js/dts/public/barCode.d.ts +54 -0
- package/dist/esm/packages/teams-js/dts/public/calendar.d.ts +41 -0
- package/dist/esm/packages/teams-js/dts/public/call.d.ts +54 -0
- package/dist/esm/packages/teams-js/dts/public/chat.d.ts +68 -0
- package/dist/esm/packages/teams-js/dts/public/clipboard.d.ts +35 -0
- package/dist/esm/packages/teams-js/dts/public/connectivity.d.ts +52 -0
- package/dist/esm/packages/teams-js/dts/public/constants.d.ts +203 -0
- package/dist/esm/packages/teams-js/dts/public/dialog/adaptiveCard/adaptiveCard.d.ts +22 -0
- package/dist/esm/packages/teams-js/dts/public/dialog/adaptiveCard/bot.d.ts +22 -0
- package/dist/esm/packages/teams-js/dts/public/dialog/dialog.d.ts +49 -0
- package/dist/esm/packages/teams-js/dts/public/dialog/update.d.ts +19 -0
- package/dist/esm/packages/teams-js/dts/public/dialog/url/bot.d.ts +25 -0
- package/dist/esm/packages/teams-js/dts/public/dialog/url/parentCommunication.d.ts +41 -0
- package/dist/esm/packages/teams-js/dts/public/dialog/url/url.d.ts +54 -0
- package/dist/esm/packages/teams-js/dts/public/emailAddress.d.ts +12 -0
- package/dist/esm/packages/teams-js/dts/public/externalApp.d.ts +130 -0
- package/dist/esm/packages/teams-js/dts/public/featureFlags.d.ts +44 -0
- package/dist/esm/packages/teams-js/dts/public/geoLocation/geoLocation.d.ts +68 -0
- package/dist/esm/packages/teams-js/dts/public/geoLocation/map.d.ts +33 -0
- package/dist/esm/packages/teams-js/dts/public/haptics.d.ts +42 -0
- package/dist/esm/packages/teams-js/dts/public/index.d.ts +57 -0
- package/dist/esm/packages/teams-js/dts/public/interfaces.d.ts +1321 -0
- package/dist/esm/packages/teams-js/dts/public/liveShareHost.d.ts +220 -0
- package/dist/esm/packages/teams-js/dts/public/location.d.ts +85 -0
- package/dist/esm/packages/teams-js/dts/public/mail/handoff.d.ts +48 -0
- package/dist/esm/packages/teams-js/dts/public/mail/mail.d.ts +97 -0
- package/dist/esm/packages/teams-js/dts/public/marketplace.d.ts +320 -0
- package/dist/esm/packages/teams-js/dts/public/media.d.ts +435 -0
- package/dist/esm/packages/teams-js/dts/public/meeting/appShareButton.d.ts +51 -0
- package/dist/esm/packages/teams-js/dts/public/meeting/meeting.d.ts +854 -0
- package/dist/esm/packages/teams-js/dts/public/menus.d.ts +187 -0
- package/dist/esm/packages/teams-js/dts/public/monetization.d.ts +64 -0
- package/dist/esm/packages/teams-js/dts/public/navigation.d.ts +46 -0
- package/dist/esm/packages/teams-js/dts/public/nestedAppAuth.d.ts +64 -0
- package/dist/esm/packages/teams-js/dts/public/offlineStorage/drafts.d.ts +104 -0
- package/dist/esm/packages/teams-js/dts/public/offlineStorage/inbox.d.ts +86 -0
- package/dist/esm/packages/teams-js/dts/public/offlineStorage/offlineStorage.d.ts +258 -0
- package/dist/esm/packages/teams-js/dts/public/offlineStorage/outbox.d.ts +112 -0
- package/dist/esm/packages/teams-js/dts/public/offlineStorage/sent.d.ts +69 -0
- package/dist/esm/packages/teams-js/dts/public/offlineStorage/sync.d.ts +183 -0
- package/dist/esm/packages/teams-js/dts/public/pages/appButton.d.ts +30 -0
- package/dist/esm/packages/teams-js/dts/public/pages/backStack.d.ts +44 -0
- package/dist/esm/packages/teams-js/dts/public/pages/config.d.ts +123 -0
- package/dist/esm/packages/teams-js/dts/public/pages/currentApp.d.ts +46 -0
- package/dist/esm/packages/teams-js/dts/public/pages/fullTrust.d.ts +33 -0
- package/dist/esm/packages/teams-js/dts/public/pages/pages.d.ts +253 -0
- package/dist/esm/packages/teams-js/dts/public/pages/tabs.d.ts +32 -0
- package/dist/esm/packages/teams-js/dts/public/people.d.ts +73 -0
- package/dist/esm/packages/teams-js/dts/public/profile.d.ts +105 -0
- package/dist/esm/packages/teams-js/dts/public/publicAPIs.d.ts +218 -0
- package/dist/esm/packages/teams-js/dts/public/runtime.d.ts +240 -0
- package/dist/esm/packages/teams-js/dts/public/search.d.ts +90 -0
- package/dist/esm/packages/teams-js/dts/public/secondaryBrowser.d.ts +31 -0
- package/dist/esm/packages/teams-js/dts/public/security.d.ts +83 -0
- package/dist/esm/packages/teams-js/dts/public/serializable.interface.d.ts +17 -0
- package/dist/esm/packages/teams-js/dts/public/settings.d.ts +102 -0
- package/dist/esm/packages/teams-js/dts/public/sharing/history.d.ts +47 -0
- package/dist/esm/packages/teams-js/dts/public/sharing/sharing.d.ts +93 -0
- package/dist/esm/packages/teams-js/dts/public/shortcutRelay.d.ts +53 -0
- package/dist/esm/packages/teams-js/dts/public/stageView/self.d.ts +23 -0
- package/dist/esm/packages/teams-js/dts/public/stageView/stageView.d.ts +81 -0
- package/dist/esm/packages/teams-js/dts/public/tasks.d.ts +52 -0
- package/dist/esm/packages/teams-js/dts/public/teamsAPIs.d.ts +79 -0
- package/dist/esm/packages/teams-js/dts/public/thirdPartyCloudStorage.d.ts +118 -0
- package/dist/esm/packages/teams-js/dts/public/uuidObject.d.ts +38 -0
- package/dist/esm/packages/teams-js/dts/public/validatedSafeString.d.ts +25 -0
- package/dist/esm/packages/teams-js/dts/public/version.d.ts +5 -0
- package/dist/esm/packages/teams-js/dts/public/videoEffects.d.ts +212 -0
- package/dist/esm/packages/teams-js/dts/public/visualMedia/image.d.ts +64 -0
- package/dist/esm/packages/teams-js/dts/public/visualMedia/visualMedia.d.ts +116 -0
- package/dist/esm/packages/teams-js/dts/public/webStorage.d.ts +25 -0
- package/dist/esm/packages/teams-js/src/artifactsForCDN/validDomains.json.js +1 -0
- package/dist/esm/packages/teams-js/src/index.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/appHelpers.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/childCommunication.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/communication.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/communicationUtils.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/constants.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/deepLinkConstants.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/deepLinkUtilities.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/dialogHelpers.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/emailAddressValidation.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/globalVars.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/handlers.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/hostToAppTelemetry.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/idValidation.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/internalAPIs.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/marketplaceUtils.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/mediaUtil.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/messageObjects.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/nestedAppAuthUtils.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/pagesHelpers.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/profileUtil.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/responseHandler.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/telemetry.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/typeCheckUtilities.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/urlPattern.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/utils.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/validOrigins.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/videoEffectsUtils.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/videoFrameTick.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/videoPerformanceMonitor.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/videoPerformanceStatistics.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/visualMediaHelpers.js +1 -0
- package/dist/esm/packages/teams-js/src/internal/webStorageHelpers.js +1 -0
- package/dist/esm/packages/teams-js/src/private/appEntity.js +1 -0
- package/dist/esm/packages/teams-js/src/private/constants.js +1 -0
- package/dist/esm/packages/teams-js/src/private/conversations.js +1 -0
- package/dist/esm/packages/teams-js/src/private/copilot/copilot.js +1 -0
- package/dist/esm/packages/teams-js/src/private/copilot/customTelemetry.js +1 -0
- package/dist/esm/packages/teams-js/src/private/copilot/eligibility.js +1 -0
- package/dist/esm/packages/teams-js/src/private/copilot/sidePanel.js +1 -0
- package/dist/esm/packages/teams-js/src/private/copilot/sidePanelInterfaces.js +1 -0
- package/dist/esm/packages/teams-js/src/private/copilot/view.js +1 -0
- package/dist/esm/packages/teams-js/src/private/externalAppAuthentication.js +1 -0
- package/dist/esm/packages/teams-js/src/private/externalAppAuthenticationForCEA.js +1 -0
- package/dist/esm/packages/teams-js/src/private/externalAppCardActions.js +1 -0
- package/dist/esm/packages/teams-js/src/private/externalAppCardActionsForCEA.js +1 -0
- package/dist/esm/packages/teams-js/src/private/externalAppCardActionsForDA.js +1 -0
- package/dist/esm/packages/teams-js/src/private/externalAppCommands.js +1 -0
- package/dist/esm/packages/teams-js/src/private/externalAppErrorHandling.js +1 -0
- package/dist/esm/packages/teams-js/src/private/files.js +1 -0
- package/dist/esm/packages/teams-js/src/private/hostEntity/hostEntity.js +1 -0
- package/dist/esm/packages/teams-js/src/private/hostEntity/tab.js +1 -0
- package/dist/esm/packages/teams-js/src/private/interfaces.js +1 -0
- package/dist/esm/packages/teams-js/src/private/logs.js +1 -0
- package/dist/esm/packages/teams-js/src/private/meetingRoom.js +1 -0
- package/dist/esm/packages/teams-js/src/private/messageChannels/dataLayer.js +1 -0
- package/dist/esm/packages/teams-js/src/private/messageChannels/messageChannels.js +1 -0
- package/dist/esm/packages/teams-js/src/private/messageChannels/telemetry.js +1 -0
- package/dist/esm/packages/teams-js/src/private/nestedAppAuth/nestedAppAuthBridge.js +1 -0
- package/dist/esm/packages/teams-js/src/private/notifications.js +1 -0
- package/dist/esm/packages/teams-js/src/private/otherAppStateChange.js +1 -0
- package/dist/esm/packages/teams-js/src/private/plugins.js +1 -0
- package/dist/esm/packages/teams-js/src/private/privateAPIs.js +1 -0
- package/dist/esm/packages/teams-js/src/private/remoteCamera.js +1 -0
- package/dist/esm/packages/teams-js/src/private/store.js +1 -0
- package/dist/esm/packages/teams-js/src/private/teams/fullTrust/fullTrust.js +1 -0
- package/dist/esm/packages/teams-js/src/private/teams/fullTrust/joinedTeams.js +1 -0
- package/dist/esm/packages/teams-js/src/private/teams/teams.js +1 -0
- package/dist/esm/packages/teams-js/src/private/videoEffectsEx.js +1 -0
- package/dist/esm/packages/teams-js/src/private/widgetHosting/widgetHosting.js +1 -0
- package/dist/esm/packages/teams-js/src/public/adaptiveCards.js +1 -0
- package/dist/esm/packages/teams-js/src/public/app/app.js +1 -0
- package/dist/esm/packages/teams-js/src/public/app/lifecycle.js +1 -0
- package/dist/esm/packages/teams-js/src/public/appId.js +1 -0
- package/dist/esm/packages/teams-js/src/public/appInitialization.js +1 -0
- package/dist/esm/packages/teams-js/src/public/appInstallDialog.js +1 -0
- package/dist/esm/packages/teams-js/src/public/appPerformanceMetrics.js +1 -0
- package/dist/esm/packages/teams-js/src/public/appWindow.js +1 -0
- package/dist/esm/packages/teams-js/src/public/authentication.js +1 -0
- package/dist/esm/packages/teams-js/src/public/badge.js +1 -0
- package/dist/esm/packages/teams-js/src/public/barCode.js +1 -0
- package/dist/esm/packages/teams-js/src/public/calendar.js +1 -0
- package/dist/esm/packages/teams-js/src/public/call.js +1 -0
- package/dist/esm/packages/teams-js/src/public/chat.js +1 -0
- package/dist/esm/packages/teams-js/src/public/clipboard.js +1 -0
- package/dist/esm/packages/teams-js/src/public/connectivity.js +1 -0
- package/dist/esm/packages/teams-js/src/public/constants.js +1 -0
- package/dist/esm/packages/teams-js/src/public/dialog/adaptiveCard/adaptiveCard.js +1 -0
- package/dist/esm/packages/teams-js/src/public/dialog/adaptiveCard/bot.js +1 -0
- package/dist/esm/packages/teams-js/src/public/dialog/dialog.js +1 -0
- package/dist/esm/packages/teams-js/src/public/dialog/update.js +1 -0
- package/dist/esm/packages/teams-js/src/public/dialog/url/bot.js +1 -0
- package/dist/esm/packages/teams-js/src/public/dialog/url/parentCommunication.js +1 -0
- package/dist/esm/packages/teams-js/src/public/dialog/url/url.js +1 -0
- package/dist/esm/packages/teams-js/src/public/emailAddress.js +1 -0
- package/dist/esm/packages/teams-js/src/public/externalApp.js +1 -0
- package/dist/esm/packages/teams-js/src/public/featureFlags.js +1 -0
- package/dist/esm/packages/teams-js/src/public/geoLocation/geoLocation.js +1 -0
- package/dist/esm/packages/teams-js/src/public/geoLocation/map.js +1 -0
- package/dist/esm/packages/teams-js/src/public/haptics.js +1 -0
- package/dist/esm/packages/teams-js/src/public/interfaces.js +1 -0
- package/dist/esm/packages/teams-js/src/public/liveShareHost.js +1 -0
- package/dist/esm/packages/teams-js/src/public/location.js +1 -0
- package/dist/esm/packages/teams-js/src/public/mail/handoff.js +1 -0
- package/dist/esm/packages/teams-js/src/public/mail/mail.js +1 -0
- package/dist/esm/packages/teams-js/src/public/marketplace.js +1 -0
- package/dist/esm/packages/teams-js/src/public/media.js +1 -0
- package/dist/esm/packages/teams-js/src/public/meeting/appShareButton.js +1 -0
- package/dist/esm/packages/teams-js/src/public/meeting/meeting.js +1 -0
- package/dist/esm/packages/teams-js/src/public/menus.js +1 -0
- package/dist/esm/packages/teams-js/src/public/monetization.js +1 -0
- package/dist/esm/packages/teams-js/src/public/navigation.js +1 -0
- package/dist/esm/packages/teams-js/src/public/nestedAppAuth.js +1 -0
- package/dist/esm/packages/teams-js/src/public/offlineStorage/drafts.js +1 -0
- package/dist/esm/packages/teams-js/src/public/offlineStorage/inbox.js +1 -0
- package/dist/esm/packages/teams-js/src/public/offlineStorage/offlineStorage.js +1 -0
- package/dist/esm/packages/teams-js/src/public/offlineStorage/outbox.js +1 -0
- package/dist/esm/packages/teams-js/src/public/offlineStorage/sent.js +1 -0
- package/dist/esm/packages/teams-js/src/public/offlineStorage/sync.js +1 -0
- package/dist/esm/packages/teams-js/src/public/pages/appButton.js +1 -0
- package/dist/esm/packages/teams-js/src/public/pages/backStack.js +1 -0
- package/dist/esm/packages/teams-js/src/public/pages/config.js +1 -0
- package/dist/esm/packages/teams-js/src/public/pages/currentApp.js +1 -0
- package/dist/esm/packages/teams-js/src/public/pages/fullTrust.js +1 -0
- package/dist/esm/packages/teams-js/src/public/pages/pages.js +1 -0
- package/dist/esm/packages/teams-js/src/public/pages/tabs.js +1 -0
- package/dist/esm/packages/teams-js/src/public/people.js +1 -0
- package/dist/esm/packages/teams-js/src/public/profile.js +1 -0
- package/dist/esm/packages/teams-js/src/public/publicAPIs.js +1 -0
- package/dist/esm/packages/teams-js/src/public/runtime.js +1 -0
- package/dist/esm/packages/teams-js/src/public/search.js +1 -0
- package/dist/esm/packages/teams-js/src/public/secondaryBrowser.js +1 -0
- package/dist/esm/packages/teams-js/src/public/security.js +1 -0
- package/dist/esm/packages/teams-js/src/public/serializable.interface.js +1 -0
- package/dist/esm/packages/teams-js/src/public/settings.js +1 -0
- package/dist/esm/packages/teams-js/src/public/sharing/history.js +1 -0
- package/dist/esm/packages/teams-js/src/public/sharing/sharing.js +1 -0
- package/dist/esm/packages/teams-js/src/public/shortcutRelay.js +1 -0
- package/dist/esm/packages/teams-js/src/public/stageView/self.js +1 -0
- package/dist/esm/packages/teams-js/src/public/stageView/stageView.js +1 -0
- package/dist/esm/packages/teams-js/src/public/tasks.js +1 -0
- package/dist/esm/packages/teams-js/src/public/teamsAPIs.js +1 -0
- package/dist/esm/packages/teams-js/src/public/thirdPartyCloudStorage.js +1 -0
- package/dist/esm/packages/teams-js/src/public/uuidObject.js +1 -0
- package/dist/esm/packages/teams-js/src/public/validatedSafeString.js +1 -0
- package/dist/esm/packages/teams-js/src/public/version.js +1 -0
- package/dist/esm/packages/teams-js/src/public/videoEffects.js +1 -0
- package/dist/esm/packages/teams-js/src/public/visualMedia/image.js +1 -0
- package/dist/esm/packages/teams-js/src/public/visualMedia/visualMedia.js +1 -0
- package/dist/esm/packages/teams-js/src/public/webStorage.js +1 -0
- package/dist/umd/JevelinBridge-manifest.json +642 -0
- package/dist/umd/JevelinBridge.js +23119 -0
- package/dist/umd/JevelinBridge.js.map +1 -0
- package/dist/umd/JevelinBridge.min.js +3 -0
- package/dist/umd/JevelinBridge.min.js.LICENSE.txt +8 -0
- package/dist/umd/JevelinBridge.min.js.map +1 -0
- package/package.json +53 -0
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @hidden
|
|
3
|
+
*
|
|
4
|
+
* @internal
|
|
5
|
+
* Limited to Microsoft-internal use
|
|
6
|
+
* @module
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*
|
|
11
|
+
* Data structure to represent a meeting room.
|
|
12
|
+
*
|
|
13
|
+
* @internal
|
|
14
|
+
* Limited to Microsoft-internal use
|
|
15
|
+
*/
|
|
16
|
+
export interface MeetingRoomInfo {
|
|
17
|
+
/**
|
|
18
|
+
* @hidden
|
|
19
|
+
* Endpoint id of the meeting room.
|
|
20
|
+
*
|
|
21
|
+
* @internal
|
|
22
|
+
* Limited to Microsoft-internal use
|
|
23
|
+
*/
|
|
24
|
+
endpointId: string;
|
|
25
|
+
/**
|
|
26
|
+
* @hidden
|
|
27
|
+
* Device name of the meeting room.
|
|
28
|
+
*
|
|
29
|
+
* @internal
|
|
30
|
+
* Limited to Microsoft-internal use
|
|
31
|
+
*/
|
|
32
|
+
deviceName: string;
|
|
33
|
+
/**
|
|
34
|
+
* @hidden
|
|
35
|
+
* Client type of the meeting room.
|
|
36
|
+
*
|
|
37
|
+
* @internal
|
|
38
|
+
* Limited to Microsoft-internal use
|
|
39
|
+
*/
|
|
40
|
+
clientType: string;
|
|
41
|
+
/**
|
|
42
|
+
* @hidden
|
|
43
|
+
* Client version of the meeting room.
|
|
44
|
+
*
|
|
45
|
+
* @internal
|
|
46
|
+
* Limited to Microsoft-internal use
|
|
47
|
+
*/
|
|
48
|
+
clientVersion: string;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* @hidden
|
|
52
|
+
* Type of Media control capabilities of a meeting room.
|
|
53
|
+
*/
|
|
54
|
+
type MediaControls = 'toggleMute' | 'toggleCamera' | 'toggleCaptions' | 'volume';
|
|
55
|
+
/**
|
|
56
|
+
* @hidden
|
|
57
|
+
* Types of Stage Layout control capabilities of a meeting room.
|
|
58
|
+
*/
|
|
59
|
+
type StageLayoutControls = 'showVideoGallery' | 'showContent' | 'showVideoGalleryAndContent' | 'showLargeGallery' | 'showTogether';
|
|
60
|
+
/**
|
|
61
|
+
* @hidden
|
|
62
|
+
* Types of Meeting Control capabilities of a meeting room.
|
|
63
|
+
*/
|
|
64
|
+
type MeetingControls = 'leaveMeeting';
|
|
65
|
+
/**
|
|
66
|
+
* @hidden
|
|
67
|
+
* Types of Stage Layout State of a meeting room.
|
|
68
|
+
*/
|
|
69
|
+
type StageLayoutStates = 'Gallery' | 'Content + gallery' | 'Content' | 'Large gallery' | 'Together mode';
|
|
70
|
+
/**
|
|
71
|
+
* @hidden
|
|
72
|
+
* Data structure to represent capabilities of a meeting room.
|
|
73
|
+
*
|
|
74
|
+
* @internal
|
|
75
|
+
* Limited to Microsoft-internal use
|
|
76
|
+
*/
|
|
77
|
+
export interface MeetingRoomCapability {
|
|
78
|
+
/**
|
|
79
|
+
* @hidden
|
|
80
|
+
* Media control capabilities, value can be "toggleMute", "toggleCamera", "toggleCaptions", "volume".
|
|
81
|
+
*
|
|
82
|
+
* @internal
|
|
83
|
+
* Limited to Microsoft-internal use
|
|
84
|
+
*/
|
|
85
|
+
mediaControls: MediaControls[];
|
|
86
|
+
/**
|
|
87
|
+
* @hidden
|
|
88
|
+
* Main stage layout control capabilities, value can be "showVideoGallery", "showContent", "showVideoGalleryAndContent", "showLargeGallery", "showTogether".
|
|
89
|
+
*
|
|
90
|
+
* @internal
|
|
91
|
+
* Limited to Microsoft-internal use
|
|
92
|
+
*/
|
|
93
|
+
stageLayoutControls: StageLayoutControls[];
|
|
94
|
+
/**
|
|
95
|
+
* @hidden
|
|
96
|
+
* Meeting control capabilities, value can be "leaveMeeting".
|
|
97
|
+
*
|
|
98
|
+
* @internal
|
|
99
|
+
* Limited to Microsoft-internal use
|
|
100
|
+
*/
|
|
101
|
+
meetingControls: MeetingControls[];
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* @hidden
|
|
105
|
+
* Data structure to represent states of a meeting room.
|
|
106
|
+
*
|
|
107
|
+
* @internal
|
|
108
|
+
* Limited to Microsoft-internal use
|
|
109
|
+
*/
|
|
110
|
+
export interface MeetingRoomState {
|
|
111
|
+
/**
|
|
112
|
+
* @hidden
|
|
113
|
+
* Current mute state, true: mute, false: unmute.
|
|
114
|
+
*
|
|
115
|
+
* @internal
|
|
116
|
+
* Limited to Microsoft-internal use
|
|
117
|
+
*/
|
|
118
|
+
toggleMute: boolean;
|
|
119
|
+
/**
|
|
120
|
+
* @hidden
|
|
121
|
+
* Current camera state, true: camera on, false: camera off.
|
|
122
|
+
*
|
|
123
|
+
* @internal
|
|
124
|
+
* Limited to Microsoft-internal use
|
|
125
|
+
*/
|
|
126
|
+
toggleCamera: boolean;
|
|
127
|
+
/**
|
|
128
|
+
* @hidden
|
|
129
|
+
* Current captions state, true: captions on, false: captions off.
|
|
130
|
+
*
|
|
131
|
+
* @internal
|
|
132
|
+
* Limited to Microsoft-internal use
|
|
133
|
+
*/
|
|
134
|
+
toggleCaptions: boolean;
|
|
135
|
+
/**
|
|
136
|
+
* @hidden
|
|
137
|
+
* Current main stage layout state, value can be one of "Gallery", "Content + gallery", "Content", "Large gallery" and "Together mode".
|
|
138
|
+
*
|
|
139
|
+
* @internal
|
|
140
|
+
* Limited to Microsoft-internal use
|
|
141
|
+
*/
|
|
142
|
+
stageLayout: StageLayoutStates;
|
|
143
|
+
/**
|
|
144
|
+
* @hidden
|
|
145
|
+
* Current leaveMeeting state, true: leave, false: no-op.
|
|
146
|
+
*
|
|
147
|
+
* @internal
|
|
148
|
+
* Limited to Microsoft-internal use
|
|
149
|
+
*/
|
|
150
|
+
leaveMeeting: boolean;
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* @hidden
|
|
154
|
+
* Fetch the meeting room info that paired with current client.
|
|
155
|
+
*
|
|
156
|
+
* @returns Promise resolved with meeting room info or rejected with SdkError value
|
|
157
|
+
*
|
|
158
|
+
* @internal
|
|
159
|
+
* Limited to Microsoft-internal use
|
|
160
|
+
*/
|
|
161
|
+
export declare function getPairedMeetingRoomInfo(): Promise<MeetingRoomInfo>;
|
|
162
|
+
/**
|
|
163
|
+
* @hidden
|
|
164
|
+
* Send a command to paired meeting room.
|
|
165
|
+
*
|
|
166
|
+
* @param commandName The command name.
|
|
167
|
+
* @returns Promise resolved upon completion or rejected with SdkError value
|
|
168
|
+
*
|
|
169
|
+
* @internal
|
|
170
|
+
* Limited to Microsoft-internal use
|
|
171
|
+
*/
|
|
172
|
+
export declare function sendCommandToPairedMeetingRoom(commandName: string): Promise<void>;
|
|
173
|
+
/**
|
|
174
|
+
* @hidden
|
|
175
|
+
* Registers a handler for meeting room capabilities update.
|
|
176
|
+
* Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
|
|
177
|
+
*
|
|
178
|
+
* @param handler The handler to invoke when the capabilities of meeting room update.
|
|
179
|
+
*
|
|
180
|
+
* @internal
|
|
181
|
+
* Limited to Microsoft-internal use
|
|
182
|
+
*/
|
|
183
|
+
export declare function registerMeetingRoomCapabilitiesUpdateHandler(handler: (capabilities: MeetingRoomCapability) => void): void;
|
|
184
|
+
/**
|
|
185
|
+
* @hidden
|
|
186
|
+
* Hide from docs
|
|
187
|
+
* Registers a handler for meeting room states update.
|
|
188
|
+
* Only one handler can be registered at a time. A subsequent registration replaces an existing registration.
|
|
189
|
+
*
|
|
190
|
+
* @param handler The handler to invoke when the states of meeting room update.
|
|
191
|
+
*
|
|
192
|
+
* @internal
|
|
193
|
+
* Limited to Microsoft-internal use
|
|
194
|
+
*/
|
|
195
|
+
export declare function registerMeetingRoomStatesUpdateHandler(handler: (states: MeetingRoomState) => void): void;
|
|
196
|
+
/**
|
|
197
|
+
* @hidden
|
|
198
|
+
*
|
|
199
|
+
* Checks if the meetingRoom capability is supported by the host
|
|
200
|
+
* @returns boolean to represent whether the meetingRoom capability is supported
|
|
201
|
+
*
|
|
202
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
|
203
|
+
*
|
|
204
|
+
* @internal
|
|
205
|
+
* Limited to Microsoft-internal use
|
|
206
|
+
*/
|
|
207
|
+
export declare function isSupported(): boolean;
|
|
208
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @hidden
|
|
3
|
+
* @beta
|
|
4
|
+
*
|
|
5
|
+
* Fetches a MessagePort to allow access to the host's data layer worker.
|
|
6
|
+
* The port is cached once received, so subsequent calls return the same port.
|
|
7
|
+
* @returns MessagePort.
|
|
8
|
+
*
|
|
9
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed,
|
|
10
|
+
* if the host does not support the feature, or if the port request is rejected.
|
|
11
|
+
*
|
|
12
|
+
* @internal
|
|
13
|
+
* Limited to Microsoft-internal use
|
|
14
|
+
*/
|
|
15
|
+
export declare function getDataLayerPort(): Promise<MessagePort>;
|
|
16
|
+
/**
|
|
17
|
+
* @hidden
|
|
18
|
+
*
|
|
19
|
+
* @beta
|
|
20
|
+
*
|
|
21
|
+
* Checks if the messageChannels.dataLayer capability is supported by the host
|
|
22
|
+
* @returns boolean to represent whether the messageChannels.dataLayer capability is supported
|
|
23
|
+
*
|
|
24
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
|
25
|
+
*
|
|
26
|
+
* @internal
|
|
27
|
+
* Limited to Microsoft-internal use
|
|
28
|
+
*/
|
|
29
|
+
export declare function isSupported(): boolean;
|
|
30
|
+
/**
|
|
31
|
+
* @hidden
|
|
32
|
+
* Undocumented function used to clear state between unit tests
|
|
33
|
+
*
|
|
34
|
+
* @beta
|
|
35
|
+
*
|
|
36
|
+
* @internal
|
|
37
|
+
* Limited to Microsoft-internal use
|
|
38
|
+
*/
|
|
39
|
+
export declare function _clearDataLayerPort(): void;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @hidden
|
|
3
|
+
* Module to request message ports from the host application.
|
|
4
|
+
*
|
|
5
|
+
* @beta
|
|
6
|
+
*
|
|
7
|
+
* @internal
|
|
8
|
+
* Limited to Microsoft-internal use
|
|
9
|
+
*
|
|
10
|
+
* @module
|
|
11
|
+
*/
|
|
12
|
+
import * as dataLayer from './dataLayer';
|
|
13
|
+
import * as telemetry from './telemetry';
|
|
14
|
+
/**
|
|
15
|
+
* @hidden
|
|
16
|
+
*
|
|
17
|
+
* @beta
|
|
18
|
+
*
|
|
19
|
+
* Checks if the messageChannels capability is supported by the host
|
|
20
|
+
* @returns boolean to represent whether the messageChannels capability is supported
|
|
21
|
+
*
|
|
22
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
|
23
|
+
*
|
|
24
|
+
* @internal
|
|
25
|
+
* Limited to Microsoft-internal use
|
|
26
|
+
*/
|
|
27
|
+
export declare function isSupported(): boolean;
|
|
28
|
+
export { dataLayer, telemetry };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @hidden
|
|
3
|
+
* @beta
|
|
4
|
+
*
|
|
5
|
+
* Fetches a MessagePort to batch telemetry through the host's telemetry worker.
|
|
6
|
+
* The port is cached once received, so subsequent calls return the same port.
|
|
7
|
+
* @returns MessagePort.
|
|
8
|
+
*
|
|
9
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed,
|
|
10
|
+
* if the host does not support the feature, or if the port request is rejected.
|
|
11
|
+
*
|
|
12
|
+
* @internal
|
|
13
|
+
* Limited to Microsoft-internal use
|
|
14
|
+
*/
|
|
15
|
+
export declare function getTelemetryPort(): Promise<MessagePort>;
|
|
16
|
+
/**
|
|
17
|
+
* @hidden
|
|
18
|
+
*
|
|
19
|
+
* @beta
|
|
20
|
+
*
|
|
21
|
+
* Checks if the messageChannels.telemetry capability is supported by the host
|
|
22
|
+
* @returns boolean to represent whether the messageChannels.telemetry capability is supported
|
|
23
|
+
*
|
|
24
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
|
25
|
+
*
|
|
26
|
+
* @internal
|
|
27
|
+
* Limited to Microsoft-internal use
|
|
28
|
+
*/
|
|
29
|
+
export declare function isSupported(): boolean;
|
|
30
|
+
/**
|
|
31
|
+
* @hidden
|
|
32
|
+
* Undocumented function used to clear state between unit tests
|
|
33
|
+
*
|
|
34
|
+
* @beta
|
|
35
|
+
*
|
|
36
|
+
* @internal
|
|
37
|
+
* Limited to Microsoft-internal use
|
|
38
|
+
*/
|
|
39
|
+
export declare function _clearTelemetryPort(): void;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @beta
|
|
3
|
+
* @hidden
|
|
4
|
+
* Local version of the Nested App Auth Bridge module.
|
|
5
|
+
*
|
|
6
|
+
* This version is specific to this standalone module and is not tied to the overall TeamsJS SDK version.
|
|
7
|
+
* It allows developers to track changes within this module and handle version-based compatibility if needed.
|
|
8
|
+
*
|
|
9
|
+
* While not strictly required today, having a version provides flexibility for future updates,
|
|
10
|
+
* especially if breaking changes are introduced later.
|
|
11
|
+
*
|
|
12
|
+
* Example:
|
|
13
|
+
* if (nestedAppAuthBridge.version.startsWith('1.')) {
|
|
14
|
+
* // Safe to use with current logic
|
|
15
|
+
* }
|
|
16
|
+
*
|
|
17
|
+
* @internal
|
|
18
|
+
* Limited to Microsoft-internal use
|
|
19
|
+
*/
|
|
20
|
+
export declare const version = "1.0.1";
|
|
21
|
+
/**
|
|
22
|
+
* @beta
|
|
23
|
+
* @hidden
|
|
24
|
+
* Initializes the Nested App Auth Bridge.
|
|
25
|
+
* @param window The window object where the bridge will be attached.
|
|
26
|
+
* @param topOrigin The origin of the top-level frame.
|
|
27
|
+
* @param enableLogging - Optional flag to enable internal debug and error logging. Defaults to false.
|
|
28
|
+
*
|
|
29
|
+
* @internal
|
|
30
|
+
* Limited to Microsoft-internal use
|
|
31
|
+
*/
|
|
32
|
+
export declare function initialize(window: Window | null, topOrigin: string, enableLogging?: boolean): void;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @hidden
|
|
3
|
+
* Hidden from Docs
|
|
4
|
+
*
|
|
5
|
+
* @internal
|
|
6
|
+
* Limited to Microsoft-internal use
|
|
7
|
+
* @module
|
|
8
|
+
*/
|
|
9
|
+
import { ShowNotificationParameters } from './interfaces';
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
* display notification API.
|
|
13
|
+
*
|
|
14
|
+
* @param message - Notification message.
|
|
15
|
+
* @param notificationType - Notification type
|
|
16
|
+
*
|
|
17
|
+
* @internal
|
|
18
|
+
* Limited to Microsoft-internal use
|
|
19
|
+
*/
|
|
20
|
+
export declare function showNotification(showNotificationParameters: ShowNotificationParameters): void;
|
|
21
|
+
/**
|
|
22
|
+
* @hidden
|
|
23
|
+
*
|
|
24
|
+
* Checks if the notifications capability is supported by the host
|
|
25
|
+
* @returns boolean to represent whether the notifications capability is supported
|
|
26
|
+
*
|
|
27
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
|
28
|
+
*
|
|
29
|
+
* @internal
|
|
30
|
+
* Limited to Microsoft-internal use
|
|
31
|
+
*/
|
|
32
|
+
export declare function isSupported(): boolean;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module
|
|
3
|
+
* @hidden
|
|
4
|
+
* @internal
|
|
5
|
+
* @beta
|
|
6
|
+
* Limited to Microsoft-internal use
|
|
7
|
+
*
|
|
8
|
+
* This capability contains the APIs for handling events that happen to other applications on the host
|
|
9
|
+
* *while* the developer's application is running. For example, if the developer wants to be notified
|
|
10
|
+
* when another application has been installed.
|
|
11
|
+
*/
|
|
12
|
+
import { AppId } from '../public/appId';
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
* @beta
|
|
16
|
+
* @internal
|
|
17
|
+
* Limited to Microsoft-internal use
|
|
18
|
+
*
|
|
19
|
+
* Represent an event that has happened with other number of applications installed on this host.
|
|
20
|
+
* (e.g. a new app has been installed)
|
|
21
|
+
*/
|
|
22
|
+
export interface OtherAppStateChangeEvent {
|
|
23
|
+
/** An array of app ids that this event applies to */
|
|
24
|
+
appIds: string[];
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* @hidden
|
|
28
|
+
* @beta
|
|
29
|
+
* @internal
|
|
30
|
+
* Limited to Microsoft-internal use
|
|
31
|
+
*
|
|
32
|
+
* A function handler that will be called whenever an event happens with some number of applications installed on this host.
|
|
33
|
+
*/
|
|
34
|
+
export type OtherAppStateChangeEventHandler = (event: OtherAppStateChangeEvent) => void;
|
|
35
|
+
/**
|
|
36
|
+
* @hidden
|
|
37
|
+
* @beta
|
|
38
|
+
* @internal
|
|
39
|
+
* Limited to Microsoft-internal use
|
|
40
|
+
*
|
|
41
|
+
* This function allows an app to register a handler that will receive whenever other applications are installed
|
|
42
|
+
* on the host while the developer's application is running.
|
|
43
|
+
*
|
|
44
|
+
* @param appInstallHandler - This handler will be called whenever apps are installed on the host.
|
|
45
|
+
*
|
|
46
|
+
* @throws Error if {@link app.initialize} has not successfully completed, if the platform
|
|
47
|
+
* does not support the otherAppStateChange capability, or if a valid handler is not passed to the function.
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* ``` ts
|
|
51
|
+
* if (otherAppStateChange.isSupported()) {
|
|
52
|
+
* otherAppStateChange.registerAppInstallationHandler((event: otherAppStateChange.OtherAppStateChangeEvent) => {
|
|
53
|
+
* // code to handle the event goes here
|
|
54
|
+
* });
|
|
55
|
+
* }
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
export declare function registerAppInstallationHandler(appInstallHandler: OtherAppStateChangeEventHandler): void;
|
|
59
|
+
/**
|
|
60
|
+
* @hidden
|
|
61
|
+
* @beta
|
|
62
|
+
* @internal
|
|
63
|
+
* Limited to Microsoft-internal use
|
|
64
|
+
*
|
|
65
|
+
* This function can be called so that the handler passed to {@link registerAppInstallationHandler}
|
|
66
|
+
* will no longer receive app installation events. If this is called before registering a handler
|
|
67
|
+
* it will have no effect.
|
|
68
|
+
*
|
|
69
|
+
* @throws Error if {@link app.initialize} has not successfully completed or if the platform
|
|
70
|
+
* does not support the otherAppStateChange capability.
|
|
71
|
+
*/
|
|
72
|
+
export declare function unregisterAppInstallationHandler(): void;
|
|
73
|
+
/**
|
|
74
|
+
* @hidden
|
|
75
|
+
* @beta
|
|
76
|
+
* @internal
|
|
77
|
+
* Limited to Microsoft-internal use
|
|
78
|
+
*
|
|
79
|
+
* This function should be called by the Store App to notify the host that the
|
|
80
|
+
* app with the given appId has been installed.
|
|
81
|
+
*
|
|
82
|
+
* @throws Error if {@link app.initialize} has not successfully completed or if the platform
|
|
83
|
+
* does not support the otherAppStateChange capability.
|
|
84
|
+
*/
|
|
85
|
+
export declare function notifyInstallCompleted(appId: AppId): Promise<void>;
|
|
86
|
+
/**
|
|
87
|
+
* Checks if the otherAppStateChange capability is supported by the host
|
|
88
|
+
* @returns boolean to represent whether the otherAppStateChange capability is supported
|
|
89
|
+
*
|
|
90
|
+
* @throws Error if {@link app.initialize} has not successfully completed
|
|
91
|
+
*
|
|
92
|
+
* @beta
|
|
93
|
+
*/
|
|
94
|
+
export declare function isSupported(): boolean;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { SimpleType } from '../internal/responseHandler';
|
|
2
|
+
/**
|
|
3
|
+
* The type of arguments that can be passed in a {@link PluginMessage}.
|
|
4
|
+
*
|
|
5
|
+
* @hidden
|
|
6
|
+
* @internal
|
|
7
|
+
* Limited to Microsoft-internal use
|
|
8
|
+
* @beta
|
|
9
|
+
*/
|
|
10
|
+
export type PluginMessageArg = SimpleType;
|
|
11
|
+
/**
|
|
12
|
+
* Indicates whether the plugin capability is available in the current host.
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* This API validates SDK initialization and then checks runtime capability flags
|
|
16
|
+
* for `supports.plugins`.
|
|
17
|
+
*
|
|
18
|
+
* @returns `true` if the host reports plugin support; otherwise `false`.
|
|
19
|
+
*
|
|
20
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed.
|
|
21
|
+
*
|
|
22
|
+
* @hidden
|
|
23
|
+
* @internal
|
|
24
|
+
* Limited to Microsoft-internal use
|
|
25
|
+
* @beta
|
|
26
|
+
*/
|
|
27
|
+
export declare function isSupported(): boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Canonical message envelope used for plugin send/receive operations.
|
|
30
|
+
*
|
|
31
|
+
* @remarks
|
|
32
|
+
* Messages are used to communicate between plugin and host.
|
|
33
|
+
*
|
|
34
|
+
* @property func - Function/event name for the message.
|
|
35
|
+
* @property args - Optional JSON payload.
|
|
36
|
+
* @property correlationId - Optional ID for request/response correlation.
|
|
37
|
+
*
|
|
38
|
+
* @hidden
|
|
39
|
+
* @internal
|
|
40
|
+
* Limited to Microsoft-internal use
|
|
41
|
+
* @beta
|
|
42
|
+
*/
|
|
43
|
+
export type PluginMessage = {
|
|
44
|
+
func: string;
|
|
45
|
+
args?: PluginMessageArg;
|
|
46
|
+
correlationId?: string;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* Sends a plugin message to the host.
|
|
50
|
+
*
|
|
51
|
+
* @remarks
|
|
52
|
+
* The message payload is serialized before transmission to the host.
|
|
53
|
+
* All payload data must be JSON-safe (see {@link JsonValue}).
|
|
54
|
+
*
|
|
55
|
+
* @returns A promise that resolves when the host acknowledges the message.
|
|
56
|
+
*
|
|
57
|
+
* @throws Error if SDK initialization has not completed, if the host returns
|
|
58
|
+
* an error response, or if `func` is missing.
|
|
59
|
+
*
|
|
60
|
+
* @hidden
|
|
61
|
+
* @internal
|
|
62
|
+
* Limited to Microsoft-internal use
|
|
63
|
+
* @beta
|
|
64
|
+
*/
|
|
65
|
+
export declare function sendPluginMessage(message: PluginMessage): Promise<void>;
|
|
66
|
+
/**
|
|
67
|
+
* Handler signature for incoming plugin messages.
|
|
68
|
+
*
|
|
69
|
+
* @param message - Normalized plugin message envelope.
|
|
70
|
+
*
|
|
71
|
+
* @hidden
|
|
72
|
+
* @internal
|
|
73
|
+
* Limited to Microsoft-internal use
|
|
74
|
+
* @beta
|
|
75
|
+
*/
|
|
76
|
+
export type ReceiveMessageHandler = (message: PluginMessage) => void;
|
|
77
|
+
/**
|
|
78
|
+
* Registers a handler to receive plugin messages from the host.
|
|
79
|
+
*
|
|
80
|
+
* @remarks
|
|
81
|
+
* This API registers the callback under the `plugin.receiveMessage` handler name.
|
|
82
|
+
* When the host dispatches a plugin message, the supplied handler is invoked with
|
|
83
|
+
* the received JSON payload.
|
|
84
|
+
*
|
|
85
|
+
* @param handler - Callback invoked for each incoming plugin message payload.
|
|
86
|
+
*
|
|
87
|
+
* @throws Error if plugin messaging is not supported by the current host.
|
|
88
|
+
*
|
|
89
|
+
* @hidden
|
|
90
|
+
* @internal
|
|
91
|
+
* Limited to Microsoft-internal use
|
|
92
|
+
* @beta
|
|
93
|
+
*/
|
|
94
|
+
export declare function registerPluginMessage(handler: ReceiveMessageHandler): void;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { FilePreviewParameters, UserSettingTypes } from './interfaces';
|
|
2
|
+
export declare function uploadCustomApp(manifestBlob: Blob, onComplete?: (status: boolean, reason?: string) => void): void;
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated Use {@link plugins.sendPluginMessage} with {@link plugins.registerPluginMessage} and a correlationId-based response pattern.
|
|
5
|
+
*
|
|
6
|
+
* @hidden
|
|
7
|
+
* Sends a custom action MessageRequest to host or parent window
|
|
8
|
+
*
|
|
9
|
+
* @param actionName - Specifies name of the custom action to be sent
|
|
10
|
+
* @param args - Specifies additional arguments passed to the action
|
|
11
|
+
* @param callback - Optionally specify a callback to receive response parameters from the parent
|
|
12
|
+
* @returns id of sent message
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* Prefer the plugin event model for new development. In that model, send a request message
|
|
16
|
+
* with a unique `correlationId` and listen for a response event with the same `correlationId`.
|
|
17
|
+
*
|
|
18
|
+
* Example:
|
|
19
|
+
* ```ts
|
|
20
|
+
* // Request side
|
|
21
|
+
* const correlationId = crypto.randomUUID();
|
|
22
|
+
*
|
|
23
|
+
* plugins.registerPluginMessage((message) => {
|
|
24
|
+
* if (message.func !== 'example.customAction.response') {
|
|
25
|
+
* return;
|
|
26
|
+
* }
|
|
27
|
+
* if (message.correlationId !== correlationId) {
|
|
28
|
+
* return;
|
|
29
|
+
* }
|
|
30
|
+
*
|
|
31
|
+
* // This is the response for the request above.
|
|
32
|
+
* const response = message.args;
|
|
33
|
+
* console.log('Received response', response);
|
|
34
|
+
* });
|
|
35
|
+
*
|
|
36
|
+
* await plugins.sendPluginMessage({
|
|
37
|
+
* func: 'example.customAction.request',
|
|
38
|
+
* args: { itemId: '12345' },
|
|
39
|
+
* correlationId,
|
|
40
|
+
* });
|
|
41
|
+
*
|
|
42
|
+
* // Host side contract example (conceptual):
|
|
43
|
+
* // On receiving example.customAction.request, send back
|
|
44
|
+
* // example.customAction.response with the same correlationId.
|
|
45
|
+
* ```
|
|
46
|
+
*
|
|
47
|
+
* @internal
|
|
48
|
+
* Limited to Microsoft-internal use
|
|
49
|
+
*/
|
|
50
|
+
export declare function sendCustomMessage(actionName: string, args?: any[], callback?: (...args: any[]) => void): void;
|
|
51
|
+
/**
|
|
52
|
+
* @hidden
|
|
53
|
+
* Sends a custom action MessageEvent to a child iframe/window.
|
|
54
|
+
*
|
|
55
|
+
* @param actionName - Specifies name of the custom action to be sent
|
|
56
|
+
* @param args - Specifies additional arguments passed to the action
|
|
57
|
+
* @returns id of sent message
|
|
58
|
+
*
|
|
59
|
+
* @internal
|
|
60
|
+
* Limited to Microsoft-internal use
|
|
61
|
+
*/
|
|
62
|
+
export declare function sendCustomEvent(actionName: string, args?: any[]): void;
|
|
63
|
+
/**
|
|
64
|
+
* @hidden
|
|
65
|
+
* Adds a handler for an action sent by a child window or parent window
|
|
66
|
+
*
|
|
67
|
+
* @param actionName - Specifies name of the action message to handle
|
|
68
|
+
* @param customHandler - The callback to invoke when the action message is received. The return value is sent to the child
|
|
69
|
+
*
|
|
70
|
+
* @internal
|
|
71
|
+
* Limited to Microsoft-internal use
|
|
72
|
+
*/
|
|
73
|
+
export declare function registerCustomHandler(actionName: string, customHandler: (...args: any[]) => any[]): void;
|
|
74
|
+
/**
|
|
75
|
+
* @hidden
|
|
76
|
+
* register a handler to be called when a user setting changes. The changed setting type & value is provided in the callback.
|
|
77
|
+
*
|
|
78
|
+
* @param settingTypes - List of user setting changes to subscribe
|
|
79
|
+
* @param handler - When a subscribed setting is updated this handler is called
|
|
80
|
+
*
|
|
81
|
+
* @internal
|
|
82
|
+
* Limited to Microsoft-internal use
|
|
83
|
+
*/
|
|
84
|
+
export declare function registerUserSettingsChangeHandler(settingTypes: UserSettingTypes[], handler: (settingType: UserSettingTypes, value: any) => void): void;
|
|
85
|
+
/**
|
|
86
|
+
* @hidden
|
|
87
|
+
* Opens a client-friendly preview of the specified file.
|
|
88
|
+
*
|
|
89
|
+
* @param file - The file to preview.
|
|
90
|
+
*
|
|
91
|
+
* @internal
|
|
92
|
+
* Limited to Microsoft-internal use
|
|
93
|
+
*/
|
|
94
|
+
export declare function openFilePreview(filePreviewParameters: FilePreviewParameters): void;
|