@xwiki/cristal-electron-authentication-github-preload 0.21.1 → 0.22.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 +6 -3
- package/api-extractor.json +4 -0
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/etc/cristal-electron-authentication-github-preload.api.md +9 -0
- package/package.json +11 -9
- package/src/index.ts +1 -1
- package/vitest.config.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
# @xwiki/cristal-electron-authentication-github-preload
|
|
2
2
|
|
|
3
|
-
## 0.
|
|
3
|
+
## 0.22.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Cristal 0.22 Release
|
|
4
8
|
|
|
5
9
|
### Patch Changes
|
|
6
10
|
|
|
7
|
-
- Cristal 0.21.1 Release
|
|
8
11
|
- Updated dependencies
|
|
9
|
-
- @xwiki/cristal-authentication-api@0.
|
|
12
|
+
- @xwiki/cristal-authentication-api@0.22.0
|
|
10
13
|
|
|
11
14
|
## 0.21.0
|
|
12
15
|
|
package/dist/index.es.js.map
CHANGED
|
@@ -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 {
|
|
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;"}
|
package/dist/index.umd.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(function(e,i){typeof exports=="object"&&typeof module<"u"?i(require("electron")):typeof define=="function"&&define.amd?define(["electron"],i):(e=typeof globalThis<"u"?globalThis:e||self,i(e.electron))})(this,function(e){"use strict";e.contextBridge.exposeInMainWorld("authenticationGitHub",{login:async(i,t,n,o)=>{await e.ipcRenderer.invoke("authentication:github:login",{baseUrl:i,deviceCode:t,interval:n,expiresIn:o})},isLoggedIn(){return e.ipcRenderer.invoke("authentication:github:isLoggedIn")},getUserDetails(){return e.ipcRenderer.invoke("authentication:github:userDetails")},getAuthorizationValue(){return e.ipcRenderer.invoke("authentication:github:authorizationValue")},async logout(){await e.ipcRenderer.invoke("authentication:github:logout")}})});
|
|
1
|
+
(function(e,i){typeof exports=="object"&&typeof module<"u"?i(require("electron")):typeof define=="function"&&define.amd?define(["electron"],i):(e=typeof globalThis<"u"?globalThis:e||self,i(e.electron))})(this,(function(e){"use strict";e.contextBridge.exposeInMainWorld("authenticationGitHub",{login:async(i,t,n,o)=>{await e.ipcRenderer.invoke("authentication:github:login",{baseUrl:i,deviceCode:t,interval:n,expiresIn:o})},isLoggedIn(){return e.ipcRenderer.invoke("authentication:github:isLoggedIn")},getUserDetails(){return e.ipcRenderer.invoke("authentication:github:userDetails")},getAuthorizationValue(){return e.ipcRenderer.invoke("authentication:github:authorizationValue")},async logout(){await e.ipcRenderer.invoke("authentication:github:logout")}})}));
|
|
2
2
|
//# sourceMappingURL=index.umd.js.map
|
package/dist/index.umd.js.map
CHANGED
|
@@ -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 {
|
|
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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xwiki/cristal-electron-authentication-github-preload",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.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.
|
|
25
|
+
"@xwiki/cristal-authentication-api": "0.22.0"
|
|
25
26
|
},
|
|
26
27
|
"peerDependencies": {
|
|
27
|
-
"electron": "37.
|
|
28
|
+
"electron": "37.4.0"
|
|
28
29
|
},
|
|
29
30
|
"devDependencies": {
|
|
30
31
|
"typescript": "5.9.2",
|
|
31
|
-
"vite": "7.
|
|
32
|
-
"@xwiki/cristal-dev-config": "0.
|
|
32
|
+
"vite": "7.1.5",
|
|
33
|
+
"@xwiki/cristal-dev-config": "0.22.0"
|
|
33
34
|
},
|
|
34
35
|
"scripts": {
|
|
35
|
-
"
|
|
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
|
-
|
|
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
|
contextBridge.exposeInMainWorld("authenticationGitHub", {
|
|
25
25
|
login: async (
|
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);
|