@witchcraft/nuxt-electron 0.0.2 → 0.0.4
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/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/components/ElectronWindowControls.d.vue.ts +1 -1
- package/dist/runtime/components/ElectronWindowControls.vue.d.ts +1 -1
- package/dist/runtime/components/WindowControls/PinButton.vue +2 -1
- package/dist/runtime/electron/createWindowControlsApi.d.ts +1 -1
- package/dist/runtime/electron/index.d.ts +16 -16
- package/package.json +4 -4
- package/src/runtime/components/WindowControls/PinButton.vue +2 -1
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -10,7 +10,7 @@ import { notBundle } from 'vite-plugin-electron/plugin';
|
|
|
10
10
|
import { externalizeDeps } from 'vite-plugin-externalize-deps';
|
|
11
11
|
|
|
12
12
|
const dependencies = {
|
|
13
|
-
"@witchcraft/ui": "^0.3.
|
|
13
|
+
"@witchcraft/ui": "^0.3.2"};
|
|
14
14
|
const pkg = {
|
|
15
15
|
dependencies: dependencies};
|
|
16
16
|
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
)
|
|
34
34
|
"
|
|
35
35
|
>
|
|
36
|
-
<
|
|
36
|
+
<iOcticonPin16/>
|
|
37
37
|
</WIcon>
|
|
38
38
|
</slot>
|
|
39
39
|
</WButton>
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
|
|
42
42
|
<script setup>
|
|
43
43
|
import { twMerge } from "#imports";
|
|
44
|
+
import iOcticonPin16 from "~icons/octicon/pin-16";
|
|
44
45
|
const emit = defineEmits(["action"]);
|
|
45
46
|
const alwaysOnTop = defineModel({ type: Boolean, ...{ default: false } });
|
|
46
47
|
if (import.meta.client && window?.electron?.on) {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export * from "./types
|
|
2
|
-
export { getPaths } from "./getPaths
|
|
3
|
-
export { createNuxtFileProtocolHandler } from "./createNuxtFileProtocolHandler
|
|
4
|
-
export { createWindowControlsApi } from "./createWindowControlsApi
|
|
5
|
-
export { createWindowControlsApiHandler } from "./createWindowControlsApiHandler
|
|
6
|
-
export { useNuxtRuntimeConfig } from "./useNuxtRuntimeConfig
|
|
7
|
-
export { STATIC } from "./static
|
|
8
|
-
export { apiBuilder } from "./apiBuilder
|
|
9
|
-
export { useDevDataDir } from "./useDevDataDir
|
|
10
|
-
export { registerDevtoolsShortcuts } from "./registerDevtoolsShortcuts
|
|
11
|
-
export { promisifyApi } from "./promisifyApi
|
|
12
|
-
export { getPreloadMeta } from "./getPreloadMeta
|
|
13
|
-
export { getEventWindow } from "./getEventWindow
|
|
14
|
-
export { promisifyReply } from "./promisifyReply
|
|
15
|
-
export { createBroadcaster } from "./createBroadcaster
|
|
16
|
-
export { createBroadcastHandlers } from "./createBroadcastHandlers
|
|
1
|
+
export * from "./types";
|
|
2
|
+
export { getPaths } from "./getPaths";
|
|
3
|
+
export { createNuxtFileProtocolHandler } from "./createNuxtFileProtocolHandler";
|
|
4
|
+
export { createWindowControlsApi } from "./createWindowControlsApi";
|
|
5
|
+
export { createWindowControlsApiHandler } from "./createWindowControlsApiHandler";
|
|
6
|
+
export { useNuxtRuntimeConfig } from "./useNuxtRuntimeConfig";
|
|
7
|
+
export { STATIC } from "./static";
|
|
8
|
+
export { apiBuilder } from "./apiBuilder";
|
|
9
|
+
export { useDevDataDir } from "./useDevDataDir";
|
|
10
|
+
export { registerDevtoolsShortcuts } from "./registerDevtoolsShortcuts";
|
|
11
|
+
export { promisifyApi } from "./promisifyApi";
|
|
12
|
+
export { getPreloadMeta } from "./getPreloadMeta";
|
|
13
|
+
export { getEventWindow } from "./getEventWindow";
|
|
14
|
+
export { promisifyReply } from "./promisifyReply";
|
|
15
|
+
export { createBroadcaster } from "./createBroadcaster";
|
|
16
|
+
export { createBroadcastHandlers } from "./createBroadcastHandlers";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@witchcraft/nuxt-electron",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"description": "Nuxt module for working with electron.",
|
|
5
5
|
"repository": "witchcraftjs/nuxt-electron",
|
|
6
6
|
"license": "MIT",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"genDevDesktop.js"
|
|
26
26
|
],
|
|
27
27
|
"scripts": {
|
|
28
|
-
"prepare": "husky && cd playground && pnpm i",
|
|
28
|
+
"prepare": "husky && pnpm nuxt-module-build prepare && pnpm build:only && cd playground && pnpm i --ignore-scripts --ignore-workspace",
|
|
29
29
|
"build": "nuxt-module-build prepare && nuxt-module-build build && nuxi build playground",
|
|
30
30
|
"build:only": "nuxt-module-build build",
|
|
31
31
|
"dev": "nuxi dev playground",
|
|
@@ -39,14 +39,14 @@
|
|
|
39
39
|
"@alanscodelog/utils": "^6.0.2",
|
|
40
40
|
"@nuxt/kit": "^4.0.3",
|
|
41
41
|
"@witchcraft/nuxt-utils": "^0.3.2",
|
|
42
|
-
"@witchcraft/ui": "^0.3.
|
|
42
|
+
"@witchcraft/ui": "^0.3.2",
|
|
43
43
|
"defu": "^6.1.4",
|
|
44
44
|
"es-toolkit": "^1.39.10",
|
|
45
45
|
"vite-plugin-electron": "^0.29.0",
|
|
46
46
|
"vite-plugin-externalize-deps": "^0.9.0"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"@witchcraft/ui": "^0.3.
|
|
49
|
+
"@witchcraft/ui": "^0.3.2",
|
|
50
50
|
"unplugin-icons": "^22.1.0"
|
|
51
51
|
},
|
|
52
52
|
"peerDependenciesMeta": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
)
|
|
32
32
|
"
|
|
33
33
|
>
|
|
34
|
-
<
|
|
34
|
+
<iOcticonPin16/>
|
|
35
35
|
</WIcon>
|
|
36
36
|
</slot>
|
|
37
37
|
</WButton>
|
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
|
|
40
40
|
<script lang="ts" setup>
|
|
41
41
|
import { twMerge } from "#imports"
|
|
42
|
+
import iOcticonPin16 from "~icons/octicon/pin-16"
|
|
42
43
|
|
|
43
44
|
const emit = defineEmits<{
|
|
44
45
|
(e: "action", action: "togglePin"): void
|