@xwiki/cristal-electron-authentication-github-preload 0.24.0 → 0.25.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.
@@ -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 { contextBridge, ipcRenderer } from \"electron\";\nimport type { UserDetails } from \"@xwiki/cristal-authentication-api\";\n\ncontextBridge.exposeInMainWorld(\"authenticationGitHub\", {\n login: async (\n baseUrl: string,\n deviceCode: string,\n interval: string,\n expiresIn: string,\n ): Promise<void> => {\n await ipcRenderer.invoke(\"authentication:github:login\", {\n baseUrl,\n deviceCode,\n interval,\n expiresIn,\n });\n },\n isLoggedIn(): Promise<boolean> {\n return ipcRenderer.invoke(\"authentication:github:isLoggedIn\");\n },\n\n getUserDetails(): Promise<UserDetails> {\n return ipcRenderer.invoke(\"authentication:github:userDetails\");\n },\n\n getAuthorizationValue(): Promise<{ tokenType: string; accessToken: string }> {\n return ipcRenderer.invoke(\"authentication:github:authorizationValue\");\n },\n\n async logout(): Promise<void> {\n await ipcRenderer.invoke(\"authentication:github:logout\");\n },\n});\n"],"names":["contextBridge","baseUrl","deviceCode","interval","expiresIn","ipcRenderer"],"mappings":";AAuBAA,EAAc,kBAAkB,wBAAwB;AAAA,EACtD,OAAO,OACLC,GACAC,GACAC,GACAC,MACkB;AAClB,UAAMC,EAAY,OAAO,+BAA+B;AAAA,MACtD,SAAAJ;AAAA,MACA,YAAAC;AAAA,MACA,UAAAC;AAAA,MACA,WAAAC;AAAA,IAAA,CACD;AAAA,EACH;AAAA,EACA,aAA+B;AAC7B,WAAOC,EAAY,OAAO,kCAAkC;AAAA,EAC9D;AAAA,EAEA,iBAAuC;AACrC,WAAOA,EAAY,OAAO,mCAAmC;AAAA,EAC/D;AAAA,EAEA,wBAA6E;AAC3E,WAAOA,EAAY,OAAO,0CAA0C;AAAA,EACtE;AAAA,EAEA,MAAM,SAAwB;AAC5B,UAAMA,EAAY,OAAO,8BAA8B;AAAA,EACzD;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/platform-authentication-api\";\n\ncontextBridge.exposeInMainWorld(\"authenticationGitHub\", {\n login: async (\n baseUrl: string,\n deviceCode: string,\n interval: string,\n expiresIn: string,\n ): Promise<void> => {\n await ipcRenderer.invoke(\"authentication:github:login\", {\n baseUrl,\n deviceCode,\n interval,\n expiresIn,\n });\n },\n isLoggedIn(): Promise<boolean> {\n return ipcRenderer.invoke(\"authentication:github:isLoggedIn\");\n },\n\n getUserDetails(): Promise<UserDetails> {\n return ipcRenderer.invoke(\"authentication:github:userDetails\");\n },\n\n getAuthorizationValue(): Promise<{ tokenType: string; accessToken: string }> {\n return ipcRenderer.invoke(\"authentication:github:authorizationValue\");\n },\n\n async logout(): Promise<void> {\n await ipcRenderer.invoke(\"authentication:github:logout\");\n },\n});\n"],"names":["contextBridge","baseUrl","deviceCode","interval","expiresIn","ipcRenderer"],"mappings":";AAuBAA,EAAc,kBAAkB,wBAAwB;AAAA,EACtD,OAAO,OACLC,GACAC,GACAC,GACAC,MACkB;AAClB,UAAMC,EAAY,OAAO,+BAA+B;AAAA,MACtD,SAAAJ;AAAA,MACA,YAAAC;AAAA,MACA,UAAAC;AAAA,MACA,WAAAC;AAAA,IAAA,CACD;AAAA,EACH;AAAA,EACA,aAA+B;AAC7B,WAAOC,EAAY,OAAO,kCAAkC;AAAA,EAC9D;AAAA,EAEA,iBAAuC;AACrC,WAAOA,EAAY,OAAO,mCAAmC;AAAA,EAC/D;AAAA,EAEA,wBAA6E;AAC3E,WAAOA,EAAY,OAAO,0CAA0C;AAAA,EACtE;AAAA,EAEA,MAAM,SAAwB;AAC5B,UAAMA,EAAY,OAAO,8BAA8B;AAAA,EACzD;AACF,CAAC;"}
@@ -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 { contextBridge, ipcRenderer } from \"electron\";\nimport type { UserDetails } from \"@xwiki/cristal-authentication-api\";\n\ncontextBridge.exposeInMainWorld(\"authenticationGitHub\", {\n login: async (\n baseUrl: string,\n deviceCode: string,\n interval: string,\n expiresIn: string,\n ): Promise<void> => {\n await ipcRenderer.invoke(\"authentication:github:login\", {\n baseUrl,\n deviceCode,\n interval,\n expiresIn,\n });\n },\n isLoggedIn(): Promise<boolean> {\n return ipcRenderer.invoke(\"authentication:github:isLoggedIn\");\n },\n\n getUserDetails(): Promise<UserDetails> {\n return ipcRenderer.invoke(\"authentication:github:userDetails\");\n },\n\n getAuthorizationValue(): Promise<{ tokenType: string; accessToken: string }> {\n return ipcRenderer.invoke(\"authentication:github:authorizationValue\");\n },\n\n async logout(): Promise<void> {\n await ipcRenderer.invoke(\"authentication:github:logout\");\n },\n});\n"],"names":["contextBridge","baseUrl","deviceCode","interval","expiresIn","ipcRenderer"],"mappings":"2OAuBAA,EAAAA,cAAc,kBAAkB,uBAAwB,CACtD,MAAO,MACLC,EACAC,EACAC,EACAC,IACkB,CAClB,MAAMC,EAAAA,YAAY,OAAO,8BAA+B,CACtD,QAAAJ,EACA,WAAAC,EACA,SAAAC,EACA,UAAAC,CAAA,CACD,CACH,EACA,YAA+B,CAC7B,OAAOC,EAAAA,YAAY,OAAO,kCAAkC,CAC9D,EAEA,gBAAuC,CACrC,OAAOA,EAAAA,YAAY,OAAO,mCAAmC,CAC/D,EAEA,uBAA6E,CAC3E,OAAOA,EAAAA,YAAY,OAAO,0CAA0C,CACtE,EAEA,MAAM,QAAwB,CAC5B,MAAMA,EAAAA,YAAY,OAAO,8BAA8B,CACzD,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/platform-authentication-api\";\n\ncontextBridge.exposeInMainWorld(\"authenticationGitHub\", {\n login: async (\n baseUrl: string,\n deviceCode: string,\n interval: string,\n expiresIn: string,\n ): Promise<void> => {\n await ipcRenderer.invoke(\"authentication:github:login\", {\n baseUrl,\n deviceCode,\n interval,\n expiresIn,\n });\n },\n isLoggedIn(): Promise<boolean> {\n return ipcRenderer.invoke(\"authentication:github:isLoggedIn\");\n },\n\n getUserDetails(): Promise<UserDetails> {\n return ipcRenderer.invoke(\"authentication:github:userDetails\");\n },\n\n getAuthorizationValue(): Promise<{ tokenType: string; accessToken: string }> {\n return ipcRenderer.invoke(\"authentication:github:authorizationValue\");\n },\n\n async logout(): Promise<void> {\n await ipcRenderer.invoke(\"authentication:github:logout\");\n },\n});\n"],"names":["contextBridge","baseUrl","deviceCode","interval","expiresIn","ipcRenderer"],"mappings":"2OAuBAA,EAAAA,cAAc,kBAAkB,uBAAwB,CACtD,MAAO,MACLC,EACAC,EACAC,EACAC,IACkB,CAClB,MAAMC,EAAAA,YAAY,OAAO,8BAA+B,CACtD,QAAAJ,EACA,WAAAC,EACA,SAAAC,EACA,UAAAC,CAAA,CACD,CACH,EACA,YAA+B,CAC7B,OAAOC,EAAAA,YAAY,OAAO,kCAAkC,CAC9D,EAEA,gBAAuC,CACrC,OAAOA,EAAAA,YAAY,OAAO,mCAAmC,CAC/D,EAEA,uBAA6E,CAC3E,OAAOA,EAAAA,YAAY,OAAO,0CAA0C,CACtE,EAEA,MAAM,QAAwB,CAC5B,MAAMA,EAAAA,YAAY,OAAO,8BAA8B,CACzD,CACF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xwiki/cristal-electron-authentication-github-preload",
3
- "version": "0.24.0",
3
+ "version": "0.25.0",
4
4
  "license": "LGPL 2.1",
5
5
  "author": "XWiki Org Community <contact@xwiki.org>",
6
6
  "homepage": "https://cristal.xwiki.org/",
@@ -22,15 +22,15 @@
22
22
  "main": "./dist/index.umd.js",
23
23
  "types": "./dist/index.d.ts",
24
24
  "dependencies": {
25
- "@xwiki/cristal-authentication-api": "0.24.0"
25
+ "@xwiki/platform-authentication-api": "18.0.0-1766398944"
26
26
  },
27
27
  "peerDependencies": {
28
- "electron": "39.0.0"
28
+ "electron": "39.2.6"
29
29
  },
30
30
  "devDependencies": {
31
31
  "typescript": "5.9.3",
32
- "vite": "7.1.12",
33
- "@xwiki/cristal-dev-config": "0.24.0"
32
+ "vite": "7.2.7",
33
+ "@xwiki/cristal-dev-config": "0.25.0"
34
34
  },
35
35
  "scripts": {
36
36
  "api-extractor:local": "api-extractor run --local",
package/src/index.ts CHANGED
@@ -19,7 +19,7 @@
19
19
  */
20
20
 
21
21
  import { contextBridge, ipcRenderer } from "electron";
22
- import type { UserDetails } from "@xwiki/cristal-authentication-api";
22
+ import type { UserDetails } from "@xwiki/platform-authentication-api";
23
23
 
24
24
  contextBridge.exposeInMainWorld("authenticationGitHub", {
25
25
  login: async (
package/CHANGELOG.md DELETED
@@ -1,111 +0,0 @@
1
- # @xwiki/cristal-electron-authentication-github-preload
2
-
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
19
-
20
- ### Patch Changes
21
-
22
- - Updated dependencies
23
- - @xwiki/cristal-authentication-api@0.22.0
24
-
25
- ## 0.21.0
26
-
27
- ### Minor Changes
28
-
29
- - Cristal 0.21 Release
30
-
31
- ### Patch Changes
32
-
33
- - Updated dependencies
34
- - @xwiki/cristal-authentication-api@0.21.0
35
-
36
- ## 0.20.0
37
-
38
- ### Minor Changes
39
-
40
- - Cristal 0.20 Release
41
-
42
- ### Patch Changes
43
-
44
- - Updated dependencies
45
- - @xwiki/cristal-authentication-api@0.20.0
46
-
47
- ## 0.20.0-rc.0
48
-
49
- ### Minor Changes
50
-
51
- - Cristal 0.20-rc-1 Release
52
-
53
- ### Patch Changes
54
-
55
- - Updated dependencies
56
- - @xwiki/cristal-authentication-api@0.20.0-rc.0
57
-
58
- ## 0.19.0
59
-
60
- ### Minor Changes
61
-
62
- - 3eea53e: Cristal 0.19 Release
63
-
64
- ### Patch Changes
65
-
66
- - Updated dependencies [3eea53e]
67
- - @xwiki/cristal-authentication-api@0.19.0
68
-
69
- ## 0.18.0
70
-
71
- ### Minor Changes
72
-
73
- - Cristal 0.18 Release
74
-
75
- ### Patch Changes
76
-
77
- - Updated dependencies
78
- - @xwiki/cristal-authentication-api@0.18.0
79
-
80
- ## 0.17.0
81
-
82
- ### Minor Changes
83
-
84
- - Cristal 0.17 Release
85
-
86
- ### Patch Changes
87
-
88
- - Updated dependencies
89
- - @xwiki/cristal-authentication-api@0.17.0
90
-
91
- ## 0.16.0
92
-
93
- ### Minor Changes
94
-
95
- - Cristal 0.16 Release
96
-
97
- ### Patch Changes
98
-
99
- - Updated dependencies
100
- - @xwiki/cristal-authentication-api@0.16.0
101
-
102
- ## 0.15.0
103
-
104
- ### Minor Changes
105
-
106
- - Cristal 0.15 Release
107
-
108
- ### Patch Changes
109
-
110
- - Updated dependencies
111
- - @xwiki/cristal-authentication-api@0.15.0