@xwiki/cristal-electron-main 0.21.0 → 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 +16 -0
- package/dist/index.cjs +143 -144
- package/package.json +13 -12
- package/src/index.ts +1 -1
- package/src/menu.ts +2 -0
- package/tsconfig.json +0 -1
- package/vite.config.mjs +1 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xwiki/cristal-electron-main",
|
|
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/",
|
|
@@ -13,23 +13,24 @@
|
|
|
13
13
|
"url": "https://jira.xwiki.org/projects/CRISTAL/"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"electron": "37.
|
|
16
|
+
"electron": "37.4.0",
|
|
17
17
|
"reflect-metadata": "0.2.2",
|
|
18
|
-
"@xwiki/cristal-browser-electron": "0.
|
|
19
|
-
"@xwiki/cristal-electron-
|
|
20
|
-
"@xwiki/cristal-electron-
|
|
21
|
-
"@xwiki/cristal-electron-authentication-
|
|
22
|
-
"@xwiki/cristal-electron-
|
|
23
|
-
"@xwiki/cristal-electron-
|
|
18
|
+
"@xwiki/cristal-browser-electron": "0.22.0",
|
|
19
|
+
"@xwiki/cristal-electron-authentication-github-main": "0.22.0",
|
|
20
|
+
"@xwiki/cristal-electron-authentication-xwiki-main": "0.22.0",
|
|
21
|
+
"@xwiki/cristal-electron-authentication-nextcloud-main": "0.22.0",
|
|
22
|
+
"@xwiki/cristal-electron-settings-main": "0.22.0",
|
|
23
|
+
"@xwiki/cristal-electron-storage": "0.22.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@types/node": "22.
|
|
26
|
+
"@types/node": "22.18.0",
|
|
27
27
|
"typescript": "5.9.2",
|
|
28
|
-
"vite": "7.
|
|
28
|
+
"vite": "7.1.5"
|
|
29
29
|
},
|
|
30
30
|
"scripts": {
|
|
31
|
-
"build": "
|
|
31
|
+
"build": "vite build",
|
|
32
32
|
"clean": "rimraf dist",
|
|
33
|
-
"lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0"
|
|
33
|
+
"lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0",
|
|
34
|
+
"typecheck": "tsc"
|
|
34
35
|
}
|
|
35
36
|
}
|
package/src/index.ts
CHANGED
|
@@ -23,7 +23,7 @@ import { restoreOrCreateWindow } from "./mainWindow";
|
|
|
23
23
|
import { loadFile } from "./reload";
|
|
24
24
|
import "./security-restrictions";
|
|
25
25
|
// @ts-expect-error shouldn't happen, but we need to generate the types for the whole project once.
|
|
26
|
-
import loadBrowser from "@xwiki/cristal-browser-electron/main";
|
|
26
|
+
import { default as loadBrowser } from "@xwiki/cristal-browser-electron/main";
|
|
27
27
|
import { load as loadGitHubAuthentication } from "@xwiki/cristal-electron-authentication-github-main";
|
|
28
28
|
import { load as loadNextcloudAuthentication } from "@xwiki/cristal-electron-authentication-nextcloud-main";
|
|
29
29
|
import { load as loadXWikiAuthentication } from "@xwiki/cristal-electron-authentication-xwiki-main";
|
package/src/menu.ts
CHANGED
|
@@ -28,6 +28,7 @@ import type { MenuItem } from "electron";
|
|
|
28
28
|
* @param actions - the action we are interested to keep
|
|
29
29
|
* @param newMenu - the new menu built from interesting actions
|
|
30
30
|
* @since 0.13
|
|
31
|
+
* @beta
|
|
31
32
|
*/
|
|
32
33
|
function scan(items: MenuItem[], actions: string[], newMenu: Menu): void {
|
|
33
34
|
for (const item of items) {
|
|
@@ -46,6 +47,7 @@ function scan(items: MenuItem[], actions: string[], newMenu: Menu): void {
|
|
|
46
47
|
* keyboard shortcuts.
|
|
47
48
|
* @param browserWindow - the provided browser window.
|
|
48
49
|
* @since 0.13
|
|
50
|
+
* @beta
|
|
49
51
|
*/
|
|
50
52
|
function initializeMenu(browserWindow: BrowserWindow) {
|
|
51
53
|
const menu = Menu.getApplicationMenu();
|
package/tsconfig.json
CHANGED
package/vite.config.mjs
CHANGED
|
@@ -18,7 +18,6 @@
|
|
|
18
18
|
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
|
-
import { node } from "../.electron-vendors.cache.json";
|
|
22
21
|
import { injectAppVersion } from "../version/inject-app-version-plugin.mjs";
|
|
23
22
|
import { join } from "node:path";
|
|
24
23
|
|
|
@@ -40,8 +39,7 @@ const config = {
|
|
|
40
39
|
},
|
|
41
40
|
build: {
|
|
42
41
|
ssr: true,
|
|
43
|
-
|
|
44
|
-
target: `node${node}`,
|
|
42
|
+
target: `node22`,
|
|
45
43
|
outDir: "dist",
|
|
46
44
|
assetsDir: ".",
|
|
47
45
|
minify: process.env.MODE !== "development",
|