@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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "electron",
3
3
  "configKey": "electron",
4
- "version": "0.2.5",
4
+ "version": "0.2.6",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
package/dist/module.mjs CHANGED
@@ -47,7 +47,7 @@ const module$1 = defineNuxtModule({
47
47
  },
48
48
  moduleDependencies: {
49
49
  "@witchcraft/ui/nuxt": {
50
- version: "^0.3.2"
50
+ version: "^0.4.0"
51
51
  }
52
52
  },
53
53
  async setup(options, nuxt) {
@@ -50,5 +50,6 @@
50
50
  </template>
51
51
 
52
52
  <script setup>
53
+ import WButton from "@witchcraft/ui/components/WButton";
53
54
  const emit = defineEmits(["action"]);
54
55
  </script>
@@ -29,5 +29,6 @@
29
29
  </template>
30
30
 
31
31
  <script setup>
32
+ import WButton from "@witchcraft/ui/components/WButton";
32
33
  const emit = defineEmits(["action"]);
33
34
  </script>
@@ -36,5 +36,6 @@
36
36
  </template>
37
37
 
38
38
  <script setup>
39
+ import WButton from "@witchcraft/ui/components/WButton";
39
40
  const emit = defineEmits(["action"]);
40
41
  </script>
@@ -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 { twMerge } from "#imports";
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.5",
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": "^0.3.24",
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": "^0.3.24",
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
@@ -174,7 +174,7 @@ export default defineNuxtModule<ModuleOptions>({
174
174
  },
175
175
  moduleDependencies: {
176
176
  "@witchcraft/ui/nuxt": {
177
- version: "^0.3.2"
177
+ version: "^0.4.0"
178
178
  }
179
179
  },
180
180
  async setup(options, nuxt) {
@@ -50,6 +50,8 @@
50
50
  </template>
51
51
 
52
52
  <script lang="ts" setup>
53
+ import WButton from "@witchcraft/ui/components/WButton"
54
+
53
55
  const emit = defineEmits<{
54
56
  (e: "action", action: "close"): void
55
57
  }>()
@@ -29,6 +29,8 @@
29
29
  </template>
30
30
 
31
31
  <script lang="ts" setup>
32
+ import WButton from "@witchcraft/ui/components/WButton"
33
+
32
34
  const emit = defineEmits<{
33
35
  (e: "action", action: "toggleMaximize"): void
34
36
  }>()
@@ -36,6 +36,8 @@
36
36
  </template>
37
37
 
38
38
  <script lang="ts" setup>
39
+ import WButton from "@witchcraft/ui/components/WButton"
40
+
39
41
  const emit = defineEmits<{
40
42
  (e: "action", action: "minimize"): void
41
43
  }>()
@@ -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 { twMerge } from "#imports"
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> }