@xwiki/cristal-electron-authentication-nextcloud-preload 0.21.1 → 0.23.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/CHANGELOG.md CHANGED
@@ -1,12 +1,26 @@
1
1
  # @xwiki/cristal-electron-authentication-nextcloud-preload
2
2
 
3
- ## 0.21.1
3
+ ## 0.23.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Cristal 0.23 Release
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies
12
+ - @xwiki/cristal-authentication-api@0.23.0
13
+
14
+ ## 0.22.0
15
+
16
+ ### Minor Changes
17
+
18
+ - Cristal 0.22 Release
4
19
 
5
20
  ### Patch Changes
6
21
 
7
- - Cristal 0.21.1 Release
8
22
  - Updated dependencies
9
- - @xwiki/cristal-authentication-api@0.21.1
23
+ - @xwiki/cristal-authentication-api@0.22.0
10
24
 
11
25
  ## 0.21.0
12
26
 
@@ -0,0 +1,4 @@
1
+ {
2
+ "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3
+ "extends": "../../../../api-extractor.json"
4
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"index.es.js","sources":["../src/index.ts"],"sourcesContent":["/**\n * See the LICENSE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This is free software; you can redistribute it and/or modify it\n * under the terms of the GNU Lesser General Public License as\n * published by the Free Software Foundation; either version 2.1 of\n * the License, or (at your option) any later version.\n *\n * This software is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with this software; if not, write to the Free\n * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n * 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n */\n\nimport { UserDetails } from \"@xwiki/cristal-authentication-api\";\nimport { contextBridge, ipcRenderer } from \"electron\";\n\nlet loggedInUserId: string | undefined = undefined;\n\ncontextBridge.exposeInMainWorld(\"authenticationNextcloud\", {\n async loginOauth2(\n baseUrl: string,\n authenticationBaseUrl: string,\n ): Promise<void> {\n return ipcRenderer.invoke(\"authentication:nextcloud:loginOauth2\", {\n baseUrl,\n authenticationBaseUrl,\n });\n },\n\n async loginBasic(username: string, password: string): Promise<void> {\n return ipcRenderer.invoke(\"authentication:nextcloud:loginBasic\", {\n username,\n password,\n });\n },\n\n async loginFlow(baseUrl: string): Promise<void> {\n return ipcRenderer.invoke(\"authentication:nextcloud:loginFlow\", {\n baseUrl,\n });\n },\n\n async isLoggedIn(mode: string): Promise<boolean> {\n return ipcRenderer.invoke(\"authentication:nextcloud:isLoggedIn\", {\n mode,\n });\n },\n\n async getUserDetails(baseUrl: string, mode: string): Promise<UserDetails> {\n const userDetails: UserDetails = await ipcRenderer.invoke(\n \"authentication:nextcloud:userDetails\",\n {\n baseUrl,\n mode,\n },\n );\n\n loggedInUserId = userDetails.username;\n return userDetails;\n },\n\n async getAuthorizationValue(\n mode: string,\n ): Promise<{ tokenType: string; accessToken: string }> {\n return ipcRenderer.invoke(\"authentication:nextcloud:authorizationValue\", {\n mode,\n });\n },\n\n async logout(mode: string): Promise<void> {\n await ipcRenderer.invoke(\"authentication:nextcloud:logout\", {\n mode,\n });\n },\n\n async refreshToken(\n baseUrl: string,\n authenticationBaseUrl: string,\n ): Promise<void> {\n await ipcRenderer.invoke(\"authentication:nextcloud:refreshToken\", {\n baseUrl,\n authenticationBaseUrl,\n });\n },\n\n getUserId(): string | undefined {\n return loggedInUserId;\n },\n});\n"],"names":["loggedInUserId","contextBridge","baseUrl","authenticationBaseUrl","ipcRenderer","username","password","mode","userDetails"],"mappings":";AAuBA,IAAIA;AAEJC,EAAc,kBAAkB,2BAA2B;AAAA,EACzD,MAAM,YACJC,GACAC,GACe;AACf,WAAOC,EAAY,OAAO,wCAAwC;AAAA,MAChE,SAAAF;AAAA,MACA,uBAAAC;AAAA,IAAA,CACD;AAAA,EACH;AAAA,EAEA,MAAM,WAAWE,GAAkBC,GAAiC;AAClE,WAAOF,EAAY,OAAO,uCAAuC;AAAA,MAC/D,UAAAC;AAAA,MACA,UAAAC;AAAA,IAAA,CACD;AAAA,EACH;AAAA,EAEA,MAAM,UAAUJ,GAAgC;AAC9C,WAAOE,EAAY,OAAO,sCAAsC;AAAA,MAC9D,SAAAF;AAAA,IAAA,CACD;AAAA,EACH;AAAA,EAEA,MAAM,WAAWK,GAAgC;AAC/C,WAAOH,EAAY,OAAO,uCAAuC;AAAA,MAC/D,MAAAG;AAAA,IAAA,CACD;AAAA,EACH;AAAA,EAEA,MAAM,eAAeL,GAAiBK,GAAoC;AACxE,UAAMC,IAA2B,MAAMJ,EAAY;AAAA,MACjD;AAAA,MACA;AAAA,QACE,SAAAF;AAAA,QACA,MAAAK;AAAA,MAAA;AAAA,IACF;AAGF,WAAAP,IAAiBQ,EAAY,UACtBA;AAAA,EACT;AAAA,EAEA,MAAM,sBACJD,GACqD;AACrD,WAAOH,EAAY,OAAO,+CAA+C;AAAA,MACvE,MAAAG;AAAA,IAAA,CACD;AAAA,EACH;AAAA,EAEA,MAAM,OAAOA,GAA6B;AACxC,UAAMH,EAAY,OAAO,mCAAmC;AAAA,MAC1D,MAAAG;AAAA,IAAA,CACD;AAAA,EACH;AAAA,EAEA,MAAM,aACJL,GACAC,GACe;AACf,UAAMC,EAAY,OAAO,yCAAyC;AAAA,MAChE,SAAAF;AAAA,MACA,uBAAAC;AAAA,IAAA,CACD;AAAA,EACH;AAAA,EAEA,YAAgC;AAC9B,WAAOH;AAAA,EACT;AACF,CAAC;"}
1
+ {"version":3,"file":"index.es.js","sources":["../src/index.ts"],"sourcesContent":["/**\n * See the LICENSE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This is free software; you can redistribute it and/or modify it\n * under the terms of the GNU Lesser General Public License as\n * published by the Free Software Foundation; either version 2.1 of\n * the License, or (at your option) any later version.\n *\n * This software is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with this software; if not, write to the Free\n * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n * 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n */\n\nimport { contextBridge, ipcRenderer } from \"electron\";\nimport type { UserDetails } from \"@xwiki/cristal-authentication-api\";\n\nlet loggedInUserId: string | undefined = undefined;\n\ncontextBridge.exposeInMainWorld(\"authenticationNextcloud\", {\n async loginOauth2(\n baseUrl: string,\n authenticationBaseUrl: string,\n ): Promise<void> {\n return ipcRenderer.invoke(\"authentication:nextcloud:loginOauth2\", {\n baseUrl,\n authenticationBaseUrl,\n });\n },\n\n async loginBasic(username: string, password: string): Promise<void> {\n return ipcRenderer.invoke(\"authentication:nextcloud:loginBasic\", {\n username,\n password,\n });\n },\n\n async loginFlow(baseUrl: string): Promise<void> {\n return ipcRenderer.invoke(\"authentication:nextcloud:loginFlow\", {\n baseUrl,\n });\n },\n\n async isLoggedIn(mode: string): Promise<boolean> {\n return ipcRenderer.invoke(\"authentication:nextcloud:isLoggedIn\", {\n mode,\n });\n },\n\n async getUserDetails(baseUrl: string, mode: string): Promise<UserDetails> {\n const userDetails: UserDetails = await ipcRenderer.invoke(\n \"authentication:nextcloud:userDetails\",\n {\n baseUrl,\n mode,\n },\n );\n\n loggedInUserId = userDetails.username;\n return userDetails;\n },\n\n async getAuthorizationValue(\n mode: string,\n ): Promise<{ tokenType: string; accessToken: string }> {\n return ipcRenderer.invoke(\"authentication:nextcloud:authorizationValue\", {\n mode,\n });\n },\n\n async logout(mode: string): Promise<void> {\n await ipcRenderer.invoke(\"authentication:nextcloud:logout\", {\n mode,\n });\n },\n\n async refreshToken(\n baseUrl: string,\n authenticationBaseUrl: string,\n ): Promise<void> {\n await ipcRenderer.invoke(\"authentication:nextcloud:refreshToken\", {\n baseUrl,\n authenticationBaseUrl,\n });\n },\n\n getUserId(): string | undefined {\n return loggedInUserId;\n },\n});\n"],"names":["loggedInUserId","contextBridge","baseUrl","authenticationBaseUrl","ipcRenderer","username","password","mode","userDetails"],"mappings":";AAuBA,IAAIA;AAEJC,EAAc,kBAAkB,2BAA2B;AAAA,EACzD,MAAM,YACJC,GACAC,GACe;AACf,WAAOC,EAAY,OAAO,wCAAwC;AAAA,MAChE,SAAAF;AAAA,MACA,uBAAAC;AAAA,IAAA,CACD;AAAA,EACH;AAAA,EAEA,MAAM,WAAWE,GAAkBC,GAAiC;AAClE,WAAOF,EAAY,OAAO,uCAAuC;AAAA,MAC/D,UAAAC;AAAA,MACA,UAAAC;AAAA,IAAA,CACD;AAAA,EACH;AAAA,EAEA,MAAM,UAAUJ,GAAgC;AAC9C,WAAOE,EAAY,OAAO,sCAAsC;AAAA,MAC9D,SAAAF;AAAA,IAAA,CACD;AAAA,EACH;AAAA,EAEA,MAAM,WAAWK,GAAgC;AAC/C,WAAOH,EAAY,OAAO,uCAAuC;AAAA,MAC/D,MAAAG;AAAA,IAAA,CACD;AAAA,EACH;AAAA,EAEA,MAAM,eAAeL,GAAiBK,GAAoC;AACxE,UAAMC,IAA2B,MAAMJ,EAAY;AAAA,MACjD;AAAA,MACA;AAAA,QACE,SAAAF;AAAA,QACA,MAAAK;AAAA,MAAA;AAAA,IACF;AAGF,WAAAP,IAAiBQ,EAAY,UACtBA;AAAA,EACT;AAAA,EAEA,MAAM,sBACJD,GACqD;AACrD,WAAOH,EAAY,OAAO,+CAA+C;AAAA,MACvE,MAAAG;AAAA,IAAA,CACD;AAAA,EACH;AAAA,EAEA,MAAM,OAAOA,GAA6B;AACxC,UAAMH,EAAY,OAAO,mCAAmC;AAAA,MAC1D,MAAAG;AAAA,IAAA,CACD;AAAA,EACH;AAAA,EAEA,MAAM,aACJL,GACAC,GACe;AACf,UAAMC,EAAY,OAAO,yCAAyC;AAAA,MAChE,SAAAF;AAAA,MACA,uBAAAC;AAAA,IAAA,CACD;AAAA,EACH;AAAA,EAEA,YAAgC;AAC9B,WAAOH;AAAA,EACT;AACF,CAAC;"}
package/dist/index.umd.js CHANGED
@@ -1,2 +1,2 @@
1
- (function(n,t){typeof exports=="object"&&typeof module<"u"?t(require("electron")):typeof define=="function"&&define.amd?define(["electron"],t):(n=typeof globalThis<"u"?globalThis:n||self,t(n.electron))})(this,function(n){"use strict";let t;n.contextBridge.exposeInMainWorld("authenticationNextcloud",{async loginOauth2(e,i){return n.ipcRenderer.invoke("authentication:nextcloud:loginOauth2",{baseUrl:e,authenticationBaseUrl:i})},async loginBasic(e,i){return n.ipcRenderer.invoke("authentication:nextcloud:loginBasic",{username:e,password:i})},async loginFlow(e){return n.ipcRenderer.invoke("authentication:nextcloud:loginFlow",{baseUrl:e})},async isLoggedIn(e){return n.ipcRenderer.invoke("authentication:nextcloud:isLoggedIn",{mode:e})},async getUserDetails(e,i){const o=await n.ipcRenderer.invoke("authentication:nextcloud:userDetails",{baseUrl:e,mode:i});return t=o.username,o},async getAuthorizationValue(e){return n.ipcRenderer.invoke("authentication:nextcloud:authorizationValue",{mode:e})},async logout(e){await n.ipcRenderer.invoke("authentication:nextcloud:logout",{mode:e})},async refreshToken(e,i){await n.ipcRenderer.invoke("authentication:nextcloud:refreshToken",{baseUrl:e,authenticationBaseUrl:i})},getUserId(){return t}})});
1
+ (function(n,t){typeof exports=="object"&&typeof module<"u"?t(require("electron")):typeof define=="function"&&define.amd?define(["electron"],t):(n=typeof globalThis<"u"?globalThis:n||self,t(n.electron))})(this,(function(n){"use strict";let t;n.contextBridge.exposeInMainWorld("authenticationNextcloud",{async loginOauth2(e,i){return n.ipcRenderer.invoke("authentication:nextcloud:loginOauth2",{baseUrl:e,authenticationBaseUrl:i})},async loginBasic(e,i){return n.ipcRenderer.invoke("authentication:nextcloud:loginBasic",{username:e,password:i})},async loginFlow(e){return n.ipcRenderer.invoke("authentication:nextcloud:loginFlow",{baseUrl:e})},async isLoggedIn(e){return n.ipcRenderer.invoke("authentication:nextcloud:isLoggedIn",{mode:e})},async getUserDetails(e,i){const o=await n.ipcRenderer.invoke("authentication:nextcloud:userDetails",{baseUrl:e,mode:i});return t=o.username,o},async getAuthorizationValue(e){return n.ipcRenderer.invoke("authentication:nextcloud:authorizationValue",{mode:e})},async logout(e){await n.ipcRenderer.invoke("authentication:nextcloud:logout",{mode:e})},async refreshToken(e,i){await n.ipcRenderer.invoke("authentication:nextcloud:refreshToken",{baseUrl:e,authenticationBaseUrl:i})},getUserId(){return t}})}));
2
2
  //# sourceMappingURL=index.umd.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.umd.js","sources":["../src/index.ts"],"sourcesContent":["/**\n * See the LICENSE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This is free software; you can redistribute it and/or modify it\n * under the terms of the GNU Lesser General Public License as\n * published by the Free Software Foundation; either version 2.1 of\n * the License, or (at your option) any later version.\n *\n * This software is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with this software; if not, write to the Free\n * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n * 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n */\n\nimport { UserDetails } from \"@xwiki/cristal-authentication-api\";\nimport { contextBridge, ipcRenderer } from \"electron\";\n\nlet loggedInUserId: string | undefined = undefined;\n\ncontextBridge.exposeInMainWorld(\"authenticationNextcloud\", {\n async loginOauth2(\n baseUrl: string,\n authenticationBaseUrl: string,\n ): Promise<void> {\n return ipcRenderer.invoke(\"authentication:nextcloud:loginOauth2\", {\n baseUrl,\n authenticationBaseUrl,\n });\n },\n\n async loginBasic(username: string, password: string): Promise<void> {\n return ipcRenderer.invoke(\"authentication:nextcloud:loginBasic\", {\n username,\n password,\n });\n },\n\n async loginFlow(baseUrl: string): Promise<void> {\n return ipcRenderer.invoke(\"authentication:nextcloud:loginFlow\", {\n baseUrl,\n });\n },\n\n async isLoggedIn(mode: string): Promise<boolean> {\n return ipcRenderer.invoke(\"authentication:nextcloud:isLoggedIn\", {\n mode,\n });\n },\n\n async getUserDetails(baseUrl: string, mode: string): Promise<UserDetails> {\n const userDetails: UserDetails = await ipcRenderer.invoke(\n \"authentication:nextcloud:userDetails\",\n {\n baseUrl,\n mode,\n },\n );\n\n loggedInUserId = userDetails.username;\n return userDetails;\n },\n\n async getAuthorizationValue(\n mode: string,\n ): Promise<{ tokenType: string; accessToken: string }> {\n return ipcRenderer.invoke(\"authentication:nextcloud:authorizationValue\", {\n mode,\n });\n },\n\n async logout(mode: string): Promise<void> {\n await ipcRenderer.invoke(\"authentication:nextcloud:logout\", {\n mode,\n });\n },\n\n async refreshToken(\n baseUrl: string,\n authenticationBaseUrl: string,\n ): Promise<void> {\n await ipcRenderer.invoke(\"authentication:nextcloud:refreshToken\", {\n baseUrl,\n authenticationBaseUrl,\n });\n },\n\n getUserId(): string | undefined {\n return loggedInUserId;\n },\n});\n"],"names":["loggedInUserId","contextBridge","baseUrl","authenticationBaseUrl","ipcRenderer","username","password","mode","userDetails"],"mappings":"0OAuBA,IAAIA,EAEJC,EAAAA,cAAc,kBAAkB,0BAA2B,CACzD,MAAM,YACJC,EACAC,EACe,CACf,OAAOC,EAAAA,YAAY,OAAO,uCAAwC,CAChE,QAAAF,EACA,sBAAAC,CAAA,CACD,CACH,EAEA,MAAM,WAAWE,EAAkBC,EAAiC,CAClE,OAAOF,EAAAA,YAAY,OAAO,sCAAuC,CAC/D,SAAAC,EACA,SAAAC,CAAA,CACD,CACH,EAEA,MAAM,UAAUJ,EAAgC,CAC9C,OAAOE,EAAAA,YAAY,OAAO,qCAAsC,CAC9D,QAAAF,CAAA,CACD,CACH,EAEA,MAAM,WAAWK,EAAgC,CAC/C,OAAOH,EAAAA,YAAY,OAAO,sCAAuC,CAC/D,KAAAG,CAAA,CACD,CACH,EAEA,MAAM,eAAeL,EAAiBK,EAAoC,CACxE,MAAMC,EAA2B,MAAMJ,EAAAA,YAAY,OACjD,uCACA,CACE,QAAAF,EACA,KAAAK,CAAA,CACF,EAGF,OAAAP,EAAiBQ,EAAY,SACtBA,CACT,EAEA,MAAM,sBACJD,EACqD,CACrD,OAAOH,EAAAA,YAAY,OAAO,8CAA+C,CACvE,KAAAG,CAAA,CACD,CACH,EAEA,MAAM,OAAOA,EAA6B,CACxC,MAAMH,EAAAA,YAAY,OAAO,kCAAmC,CAC1D,KAAAG,CAAA,CACD,CACH,EAEA,MAAM,aACJL,EACAC,EACe,CACf,MAAMC,EAAAA,YAAY,OAAO,wCAAyC,CAChE,QAAAF,EACA,sBAAAC,CAAA,CACD,CACH,EAEA,WAAgC,CAC9B,OAAOH,CACT,CACF,CAAC"}
1
+ {"version":3,"file":"index.umd.js","sources":["../src/index.ts"],"sourcesContent":["/**\n * See the LICENSE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This is free software; you can redistribute it and/or modify it\n * under the terms of the GNU Lesser General Public License as\n * published by the Free Software Foundation; either version 2.1 of\n * the License, or (at your option) any later version.\n *\n * This software is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with this software; if not, write to the Free\n * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n * 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n */\n\nimport { contextBridge, ipcRenderer } from \"electron\";\nimport type { UserDetails } from \"@xwiki/cristal-authentication-api\";\n\nlet loggedInUserId: string | undefined = undefined;\n\ncontextBridge.exposeInMainWorld(\"authenticationNextcloud\", {\n async loginOauth2(\n baseUrl: string,\n authenticationBaseUrl: string,\n ): Promise<void> {\n return ipcRenderer.invoke(\"authentication:nextcloud:loginOauth2\", {\n baseUrl,\n authenticationBaseUrl,\n });\n },\n\n async loginBasic(username: string, password: string): Promise<void> {\n return ipcRenderer.invoke(\"authentication:nextcloud:loginBasic\", {\n username,\n password,\n });\n },\n\n async loginFlow(baseUrl: string): Promise<void> {\n return ipcRenderer.invoke(\"authentication:nextcloud:loginFlow\", {\n baseUrl,\n });\n },\n\n async isLoggedIn(mode: string): Promise<boolean> {\n return ipcRenderer.invoke(\"authentication:nextcloud:isLoggedIn\", {\n mode,\n });\n },\n\n async getUserDetails(baseUrl: string, mode: string): Promise<UserDetails> {\n const userDetails: UserDetails = await ipcRenderer.invoke(\n \"authentication:nextcloud:userDetails\",\n {\n baseUrl,\n mode,\n },\n );\n\n loggedInUserId = userDetails.username;\n return userDetails;\n },\n\n async getAuthorizationValue(\n mode: string,\n ): Promise<{ tokenType: string; accessToken: string }> {\n return ipcRenderer.invoke(\"authentication:nextcloud:authorizationValue\", {\n mode,\n });\n },\n\n async logout(mode: string): Promise<void> {\n await ipcRenderer.invoke(\"authentication:nextcloud:logout\", {\n mode,\n });\n },\n\n async refreshToken(\n baseUrl: string,\n authenticationBaseUrl: string,\n ): Promise<void> {\n await ipcRenderer.invoke(\"authentication:nextcloud:refreshToken\", {\n baseUrl,\n authenticationBaseUrl,\n });\n },\n\n getUserId(): string | undefined {\n return loggedInUserId;\n },\n});\n"],"names":["loggedInUserId","contextBridge","baseUrl","authenticationBaseUrl","ipcRenderer","username","password","mode","userDetails"],"mappings":"2OAuBA,IAAIA,EAEJC,EAAAA,cAAc,kBAAkB,0BAA2B,CACzD,MAAM,YACJC,EACAC,EACe,CACf,OAAOC,EAAAA,YAAY,OAAO,uCAAwC,CAChE,QAAAF,EACA,sBAAAC,CAAA,CACD,CACH,EAEA,MAAM,WAAWE,EAAkBC,EAAiC,CAClE,OAAOF,EAAAA,YAAY,OAAO,sCAAuC,CAC/D,SAAAC,EACA,SAAAC,CAAA,CACD,CACH,EAEA,MAAM,UAAUJ,EAAgC,CAC9C,OAAOE,EAAAA,YAAY,OAAO,qCAAsC,CAC9D,QAAAF,CAAA,CACD,CACH,EAEA,MAAM,WAAWK,EAAgC,CAC/C,OAAOH,EAAAA,YAAY,OAAO,sCAAuC,CAC/D,KAAAG,CAAA,CACD,CACH,EAEA,MAAM,eAAeL,EAAiBK,EAAoC,CACxE,MAAMC,EAA2B,MAAMJ,EAAAA,YAAY,OACjD,uCACA,CACE,QAAAF,EACA,KAAAK,CAAA,CACF,EAGF,OAAAP,EAAiBQ,EAAY,SACtBA,CACT,EAEA,MAAM,sBACJD,EACqD,CACrD,OAAOH,EAAAA,YAAY,OAAO,8CAA+C,CACvE,KAAAG,CAAA,CACD,CACH,EAEA,MAAM,OAAOA,EAA6B,CACxC,MAAMH,EAAAA,YAAY,OAAO,kCAAmC,CAC1D,KAAAG,CAAA,CACD,CACH,EAEA,MAAM,aACJL,EACAC,EACe,CACf,MAAMC,EAAAA,YAAY,OAAO,wCAAyC,CAChE,QAAAF,EACA,sBAAAC,CAAA,CACD,CACH,EAEA,WAAgC,CAC9B,OAAOH,CACT,CACF,CAAC"}
@@ -0,0 +1,9 @@
1
+ ## API Report File for "@xwiki/cristal-electron-authentication-nextcloud-preload"
2
+
3
+ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ ```ts
6
+
7
+ // (No @packageDocumentation comment for this package)
8
+
9
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xwiki/cristal-electron-authentication-nextcloud-preload",
3
- "version": "0.21.1",
3
+ "version": "0.23.0",
4
4
  "license": "LGPL 2.1",
5
5
  "author": "XWiki Org Community <contact@xwiki.org>",
6
6
  "homepage": "https://cristal.xwiki.org/",
@@ -20,22 +20,24 @@
20
20
  }
21
21
  },
22
22
  "main": "./dist/index.umd.js",
23
+ "types": "./dist/index.d.ts",
23
24
  "dependencies": {
24
- "@xwiki/cristal-authentication-api": "0.21.1"
25
+ "@xwiki/cristal-authentication-api": "0.23.0"
25
26
  },
26
27
  "peerDependencies": {
27
- "electron": "37.2.5"
28
+ "electron": "38.2.1"
28
29
  },
29
30
  "devDependencies": {
30
- "typescript": "5.9.2",
31
- "vite": "7.0.6",
32
- "@xwiki/cristal-dev-config": "0.21.1"
31
+ "typescript": "5.9.3",
32
+ "vite": "7.1.9",
33
+ "@xwiki/cristal-dev-config": "0.23.0"
33
34
  },
34
35
  "scripts": {
35
- "build": "tsc --project tsconfig.json && vite build",
36
+ "api-extractor:local": "api-extractor run --local",
37
+ "build": "vite build",
36
38
  "clean": "rimraf dist",
37
39
  "lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0",
38
- "test": "vitest --run"
39
- },
40
- "types": "./dist/index.d.ts"
40
+ "test": "vitest --run",
41
+ "typecheck": "tsc"
42
+ }
41
43
  }
package/src/index.ts CHANGED
@@ -18,8 +18,8 @@
18
18
  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
19
19
  */
20
20
 
21
- import { UserDetails } from "@xwiki/cristal-authentication-api";
22
21
  import { contextBridge, ipcRenderer } from "electron";
22
+ import type { UserDetails } from "@xwiki/cristal-authentication-api";
23
23
 
24
24
  let loggedInUserId: string | undefined = undefined;
25
25
 
package/vitest.config.ts CHANGED
@@ -19,7 +19,7 @@
19
19
  */
20
20
 
21
21
  import localConfig from "./vite.config";
22
+ import { vitestVue as defaultConfig } from "@xwiki/cristal-dev-config";
22
23
  import { mergeConfig } from "vitest/config";
23
- import defaultConfig from "@xwiki/cristal-dev-config/vitest-vue.config";
24
24
 
25
25
  export default mergeConfig(defaultConfig, localConfig);