@microsoft/teams-js 2.10.1 → 2.11.0-beta.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/dist/MicrosoftTeams.d.ts
CHANGED
@@ -7673,6 +7673,19 @@ export interface IFluidTenantInfo {
|
|
7673
7673
|
serviceEndpoint: string;
|
7674
7674
|
}
|
7675
7675
|
/**
|
7676
|
+
* @hidden
|
7677
|
+
* Returned from `LiveShareHost.getClientInfo()` to specify the client info for a
|
7678
|
+
* particular client in a Live Share session.
|
7679
|
+
*
|
7680
|
+
* @beta
|
7681
|
+
*/
|
7682
|
+
export interface IClientInfo {
|
7683
|
+
userId: string;
|
7684
|
+
roles: UserMeetingRole[];
|
7685
|
+
displayName?: string;
|
7686
|
+
}
|
7687
|
+
/**
|
7688
|
+
* @hidden
|
7676
7689
|
* Live Share host implementation for O365 and Teams clients.
|
7677
7690
|
*
|
7678
7691
|
* @beta
|
@@ -7742,6 +7755,16 @@ export class LiveShareHost {
|
|
7742
7755
|
* @beta
|
7743
7756
|
*/
|
7744
7757
|
getClientRoles(clientId: string): Promise<UserMeetingRole[] | undefined>;
|
7758
|
+
/**
|
7759
|
+
* @hidden
|
7760
|
+
* Returns the `IClientInfo` associated with a client ID.
|
7761
|
+
*
|
7762
|
+
* @param clientId The Client ID the message was received from.
|
7763
|
+
* @returns The info for a given client. Returns `undefined` if the client ID hasn't been registered yet.
|
7764
|
+
*
|
7765
|
+
* @beta
|
7766
|
+
*/
|
7767
|
+
getClientInfo(clientId: string): Promise<IClientInfo | undefined>;
|
7745
7768
|
/**
|
7746
7769
|
* Returns a host instance for the client that can be passed to the `LiveShareClient` class.
|
7747
7770
|
*
|
@@ -7752,4 +7775,16 @@ export class LiveShareHost {
|
|
7752
7775
|
*/
|
7753
7776
|
static create(): LiveShareHost;
|
7754
7777
|
}
|
7778
|
+
/**
|
7779
|
+
* @hidden
|
7780
|
+
*
|
7781
|
+
* Checks if the interactive capability is supported by the host
|
7782
|
+
* @returns boolean to represent whether the interactive capability is supported
|
7783
|
+
*
|
7784
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
7785
|
+
*
|
7786
|
+
* @internal
|
7787
|
+
* Limited to Microsoft-internal use
|
7788
|
+
*/
|
7789
|
+
export function isSupported(): boolean;
|
7755
7790
|
|
package/dist/MicrosoftTeams.js
CHANGED
@@ -843,6 +843,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
843
843
|
"getTabInstances": () => (/* reexport */ getTabInstances),
|
844
844
|
"initialize": () => (/* reexport */ initialize),
|
845
845
|
"initializeWithFrameContext": () => (/* reexport */ initializeWithFrameContext),
|
846
|
+
"isSupported": () => (/* reexport */ isSupported),
|
846
847
|
"location": () => (/* reexport */ location_location),
|
847
848
|
"logs": () => (/* reexport */ logs),
|
848
849
|
"mail": () => (/* reexport */ mail),
|
@@ -1797,6 +1798,7 @@ var teamsRuntimeConfig = {
|
|
1797
1798
|
},
|
1798
1799
|
update: {},
|
1799
1800
|
},
|
1801
|
+
interactive: {},
|
1800
1802
|
logs: {},
|
1801
1803
|
meetingRoom: {},
|
1802
1804
|
menus: {},
|
@@ -1999,7 +2001,7 @@ var _minRuntimeConfigToUninitialize = {
|
|
1999
2001
|
};
|
2000
2002
|
|
2001
2003
|
;// CONCATENATED MODULE: ./src/public/version.ts
|
2002
|
-
var version = "2.
|
2004
|
+
var version = "2.11.0-beta.0";
|
2003
2005
|
|
2004
2006
|
;// CONCATENATED MODULE: ./src/internal/internalAPIs.ts
|
2005
2007
|
|
@@ -8843,6 +8845,7 @@ var ContainerState;
|
|
8843
8845
|
ContainerState["notFound"] = "NotFound";
|
8844
8846
|
})(ContainerState || (ContainerState = {}));
|
8845
8847
|
/**
|
8848
|
+
* @hidden
|
8846
8849
|
* Live Share host implementation for O365 and Teams clients.
|
8847
8850
|
*
|
8848
8851
|
* @beta
|
@@ -8857,8 +8860,8 @@ var LiveShareHost = /** @class */ (function () {
|
|
8857
8860
|
* @beta
|
8858
8861
|
*/
|
8859
8862
|
LiveShareHost.prototype.getFluidTenantInfo = function () {
|
8863
|
+
ensureSupported();
|
8860
8864
|
return new Promise(function (resolve) {
|
8861
|
-
ensureInitialized(runtime, FrameContexts.meetingStage, FrameContexts.sidePanel);
|
8862
8865
|
resolve(sendAndHandleSdkError('interactive.getFluidTenantInfo'));
|
8863
8866
|
});
|
8864
8867
|
};
|
@@ -8872,8 +8875,8 @@ var LiveShareHost = /** @class */ (function () {
|
|
8872
8875
|
* @beta
|
8873
8876
|
*/
|
8874
8877
|
LiveShareHost.prototype.getFluidToken = function (containerId) {
|
8878
|
+
ensureSupported();
|
8875
8879
|
return new Promise(function (resolve) {
|
8876
|
-
ensureInitialized(runtime, FrameContexts.meetingStage, FrameContexts.sidePanel);
|
8877
8880
|
// eslint-disable-next-line strict-null-checks/all
|
8878
8881
|
resolve(sendAndHandleSdkError('interactive.getFluidToken', containerId));
|
8879
8882
|
});
|
@@ -8885,8 +8888,8 @@ var LiveShareHost = /** @class */ (function () {
|
|
8885
8888
|
* @beta
|
8886
8889
|
*/
|
8887
8890
|
LiveShareHost.prototype.getFluidContainerId = function () {
|
8891
|
+
ensureSupported();
|
8888
8892
|
return new Promise(function (resolve) {
|
8889
|
-
ensureInitialized(runtime, FrameContexts.meetingStage, FrameContexts.sidePanel);
|
8890
8893
|
resolve(sendAndHandleSdkError('interactive.getFluidContainerId'));
|
8891
8894
|
});
|
8892
8895
|
};
|
@@ -8903,8 +8906,8 @@ var LiveShareHost = /** @class */ (function () {
|
|
8903
8906
|
* @beta
|
8904
8907
|
*/
|
8905
8908
|
LiveShareHost.prototype.setFluidContainerId = function (containerId) {
|
8909
|
+
ensureSupported();
|
8906
8910
|
return new Promise(function (resolve) {
|
8907
|
-
ensureInitialized(runtime, FrameContexts.meetingStage, FrameContexts.sidePanel);
|
8908
8911
|
resolve(sendAndHandleSdkError('interactive.setFluidContainerId', containerId));
|
8909
8912
|
});
|
8910
8913
|
};
|
@@ -8915,8 +8918,8 @@ var LiveShareHost = /** @class */ (function () {
|
|
8915
8918
|
* @beta
|
8916
8919
|
*/
|
8917
8920
|
LiveShareHost.prototype.getNtpTime = function () {
|
8921
|
+
ensureSupported();
|
8918
8922
|
return new Promise(function (resolve) {
|
8919
|
-
ensureInitialized(runtime, FrameContexts.meetingStage, FrameContexts.sidePanel);
|
8920
8923
|
resolve(sendAndHandleSdkError('interactive.getNtpTime'));
|
8921
8924
|
});
|
8922
8925
|
};
|
@@ -8930,8 +8933,8 @@ var LiveShareHost = /** @class */ (function () {
|
|
8930
8933
|
* @beta
|
8931
8934
|
*/
|
8932
8935
|
LiveShareHost.prototype.registerClientId = function (clientId) {
|
8936
|
+
ensureSupported();
|
8933
8937
|
return new Promise(function (resolve) {
|
8934
|
-
ensureInitialized(runtime, FrameContexts.meetingStage, FrameContexts.sidePanel);
|
8935
8938
|
resolve(sendAndHandleSdkError('interactive.registerClientId', clientId));
|
8936
8939
|
});
|
8937
8940
|
};
|
@@ -8945,11 +8948,26 @@ var LiveShareHost = /** @class */ (function () {
|
|
8945
8948
|
* @beta
|
8946
8949
|
*/
|
8947
8950
|
LiveShareHost.prototype.getClientRoles = function (clientId) {
|
8951
|
+
ensureSupported();
|
8948
8952
|
return new Promise(function (resolve) {
|
8949
|
-
ensureInitialized(runtime, FrameContexts.meetingStage, FrameContexts.sidePanel);
|
8950
8953
|
resolve(sendAndHandleSdkError('interactive.getClientRoles', clientId));
|
8951
8954
|
});
|
8952
8955
|
};
|
8956
|
+
/**
|
8957
|
+
* @hidden
|
8958
|
+
* Returns the `IClientInfo` associated with a client ID.
|
8959
|
+
*
|
8960
|
+
* @param clientId The Client ID the message was received from.
|
8961
|
+
* @returns The info for a given client. Returns `undefined` if the client ID hasn't been registered yet.
|
8962
|
+
*
|
8963
|
+
* @beta
|
8964
|
+
*/
|
8965
|
+
LiveShareHost.prototype.getClientInfo = function (clientId) {
|
8966
|
+
ensureSupported();
|
8967
|
+
return new Promise(function (resolve) {
|
8968
|
+
resolve(sendAndHandleSdkError('interactive.getClientInfo', clientId));
|
8969
|
+
});
|
8970
|
+
};
|
8953
8971
|
/**
|
8954
8972
|
* Returns a host instance for the client that can be passed to the `LiveShareClient` class.
|
8955
8973
|
*
|
@@ -8959,12 +8977,33 @@ var LiveShareHost = /** @class */ (function () {
|
|
8959
8977
|
* @beta
|
8960
8978
|
*/
|
8961
8979
|
LiveShareHost.create = function () {
|
8962
|
-
|
8980
|
+
ensureSupported();
|
8963
8981
|
return new LiveShareHost();
|
8964
8982
|
};
|
8965
8983
|
return LiveShareHost;
|
8966
8984
|
}());
|
8967
8985
|
|
8986
|
+
/**
|
8987
|
+
* @hidden
|
8988
|
+
*
|
8989
|
+
* Checks if the interactive capability is supported by the host
|
8990
|
+
* @returns boolean to represent whether the interactive capability is supported
|
8991
|
+
*
|
8992
|
+
* @throws Error if {@linkcode app.initialize} has not successfully completed
|
8993
|
+
*
|
8994
|
+
* @internal
|
8995
|
+
* Limited to Microsoft-internal use
|
8996
|
+
*/
|
8997
|
+
function isSupported() {
|
8998
|
+
return ensureInitialized(runtime, FrameContexts.meetingStage, FrameContexts.sidePanel) && runtime.supports.interactive
|
8999
|
+
? true
|
9000
|
+
: false;
|
9001
|
+
}
|
9002
|
+
function ensureSupported() {
|
9003
|
+
if (!isSupported()) {
|
9004
|
+
throw new Error('LiveShareHost Not supported');
|
9005
|
+
}
|
9006
|
+
}
|
8968
9007
|
|
8969
9008
|
;// CONCATENATED MODULE: ./src/public/index.ts
|
8970
9009
|
|