@spacinbox/sdk 2.2.0 → 2.3.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/index.cjs +13 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +13 -0
- package/dist/index.js.map +1 -1
- package/dist/widget.global.js +13 -0
- package/dist/widget.global.js.map +1 -1
- package/package.json +1 -1
package/dist/widget.global.js
CHANGED
|
@@ -5963,6 +5963,16 @@
|
|
|
5963
5963
|
setMetadata(data) {
|
|
5964
5964
|
metadata.value = { ...metadata.value, ...data };
|
|
5965
5965
|
},
|
|
5966
|
+
async logout() {
|
|
5967
|
+
isOpen.value = false;
|
|
5968
|
+
currentUser.value = null;
|
|
5969
|
+
metadata.value = {};
|
|
5970
|
+
resetRouter();
|
|
5971
|
+
SocketService.disconnect();
|
|
5972
|
+
VisitorService.clear();
|
|
5973
|
+
await VisitorService.init();
|
|
5974
|
+
await SocketService.connect();
|
|
5975
|
+
},
|
|
5966
5976
|
shutdown() {
|
|
5967
5977
|
J(null, mountPoint);
|
|
5968
5978
|
host.remove();
|
|
@@ -6001,6 +6011,9 @@
|
|
|
6001
6011
|
}
|
|
6002
6012
|
return controller.identify(user);
|
|
6003
6013
|
},
|
|
6014
|
+
async logout() {
|
|
6015
|
+
return controller?.logout();
|
|
6016
|
+
},
|
|
6004
6017
|
setMetadata(data) {
|
|
6005
6018
|
controller?.setMetadata(data);
|
|
6006
6019
|
},
|