@witchcraft/nuxt-electron 0.2.5 → 0.2.6
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/WindowControls/CloseButton.vue +1 -0
- package/dist/runtime/components/WindowControls/MaximizeButton.vue +1 -0
- package/dist/runtime/components/WindowControls/MinimizeButton.vue +1 -0
- package/dist/runtime/components/WindowControls/PinButton.vue +2 -2
- package/package.json +3 -3
- package/src/module.ts +1 -1
- package/src/runtime/components/WindowControls/CloseButton.vue +2 -0
- package/src/runtime/components/WindowControls/MaximizeButton.vue +2 -0
- package/src/runtime/components/WindowControls/MinimizeButton.vue +2 -0
- package/src/runtime/components/WindowControls/PinButton.vue +3 -2
- package/src/runtime/electron/types.ts +1 -0
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<WButton
|
|
3
3
|
aria-label="Toggle Always On Top"
|
|
4
|
-
auto-title-from-aria
|
|
5
4
|
:border="false"
|
|
6
5
|
:class="twMerge(
|
|
7
6
|
`
|
|
@@ -40,7 +39,8 @@
|
|
|
40
39
|
</template>
|
|
41
40
|
|
|
42
41
|
<script setup>
|
|
43
|
-
import
|
|
42
|
+
import WButton from "@witchcraft/ui/components/WButton";
|
|
43
|
+
import { twMerge } from "@witchcraft/ui/utils/twMerge";
|
|
44
44
|
import iOcticonPin16 from "~icons/octicon/pin-16";
|
|
45
45
|
const emit = defineEmits(["action"]);
|
|
46
46
|
const alwaysOnTop = defineModel({ type: Boolean, ...{ default: false } });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@witchcraft/nuxt-electron",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.6",
|
|
4
4
|
"description": "Nuxt module for working with electron.",
|
|
5
5
|
"repository": "https://github.com/witchcraftjs/nuxt-electron",
|
|
6
6
|
"license": "MIT",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@alanscodelog/utils": "^6.2.0",
|
|
29
29
|
"@nuxt/kit": "^4.3.1",
|
|
30
30
|
"@witchcraft/nuxt-utils": "^0.3.6",
|
|
31
|
-
"@witchcraft/ui": "
|
|
31
|
+
"@witchcraft/ui": "0.4.0-beta.11",
|
|
32
32
|
"defu": "^6.1.4",
|
|
33
33
|
"electron": "^37.10.3",
|
|
34
34
|
"es-toolkit": "^1.44.0",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"vite-plugin-externalize-deps": "^0.9.0"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@witchcraft/ui": "
|
|
39
|
+
"@witchcraft/ui": "0.4.0-beta.11",
|
|
40
40
|
"unplugin-icons": "^22.5.0"
|
|
41
41
|
},
|
|
42
42
|
"peerDependenciesMeta": {
|
package/src/module.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<WButton
|
|
3
3
|
aria-label="Toggle Always On Top"
|
|
4
|
-
auto-title-from-aria
|
|
5
4
|
:border="false"
|
|
6
5
|
:class="twMerge(`
|
|
7
6
|
p-0
|
|
@@ -38,7 +37,9 @@
|
|
|
38
37
|
</template>
|
|
39
38
|
|
|
40
39
|
<script lang="ts" setup>
|
|
41
|
-
import
|
|
40
|
+
import WButton from "@witchcraft/ui/components/WButton"
|
|
41
|
+
import { twMerge } from "@witchcraft/ui/utils/twMerge"
|
|
42
|
+
|
|
42
43
|
import iOcticonPin16 from "~icons/octicon/pin-16"
|
|
43
44
|
|
|
44
45
|
const emit = defineEmits<{
|
|
@@ -18,6 +18,7 @@ export type ElectronIpcMessages = Flatten<OrToAnd<{
|
|
|
18
18
|
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
19
19
|
}[keyof Register & `ElectronIpc${string}`] | {}>>
|
|
20
20
|
|
|
21
|
+
// todo extract to util
|
|
21
22
|
export type PathToObject<TPath extends string, TValue>
|
|
22
23
|
= TPath extends `${infer Head}.${infer Tail}`
|
|
23
24
|
? { [K in Head]: PathToObject<Tail, TValue> }
|