@altafusion/fugue-devtools 0.6.0 → 0.6.1

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 CHANGED
@@ -1,5 +1,14 @@
1
1
  # @altafusion/fugue-devtools
2
2
 
3
+ ## 0.6.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 1c6cc70: Fix a typecheck error in consuming sites: the plugin passed the runtime-config `defaultPosition` (typed `string`) to `panelPosition`, which only accepts `'left' | 'right' | 'top' | 'bottom'`.
8
+
9
+ The layer now also ships its type augmentations (`$fugueDevtools`, runtime config) to sites that extend it, and the fugue-ui playground's devtools plugin is left out of the type-check of other apps, so `pnpm typecheck` is green.
10
+ - @altafusion/fugue-ui@0.6.1
11
+
3
12
  ## 0.6.0
4
13
 
5
14
  ### Minor Changes
package/nuxt.config.ts CHANGED
@@ -18,6 +18,15 @@ export default defineNuxtConfig({
18
18
  '#devtools': layerRoot,
19
19
  },
20
20
 
21
+ // Ship the type augmentations (`$fugueDevtools`, runtime config) to every site that extends this layer.
22
+ hooks: {
23
+ 'prepare:types': ({ references }) => {
24
+ references.push({
25
+ path: fileURLToPath(new URL('./types/nuxt-fugue-devtools.d.ts', import.meta.url)),
26
+ })
27
+ },
28
+ },
29
+
21
30
  css: [
22
31
  fileURLToPath(new URL('./assets/css/devtools-panel.css', import.meta.url)),
23
32
  ],
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@altafusion/fugue-devtools",
3
3
  "type": "module",
4
- "version": "0.6.0",
4
+ "version": "0.6.1",
5
5
  "description": "Generic non-modal dev tools drawer for Nuxt apps — Fugue family",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/altafusion/fugue/tree/main/packages-fugue/fugue-devtools#readme",
@@ -36,11 +36,11 @@
36
36
  "vue-router": "^5.0.0"
37
37
  },
38
38
  "dependencies": {
39
- "@altafusion/fugue-ui": "0.6.0"
39
+ "@altafusion/fugue-ui": "0.6.1"
40
40
  },
41
41
  "devDependencies": {
42
- "@altafusion/eslint-config": "0.6.0",
43
- "@altafusion/nuxt-base": "0.6.0",
42
+ "@altafusion/eslint-config": "0.6.1",
43
+ "@altafusion/nuxt-base": "0.6.1",
44
44
  "@types/node": "^26.6.11",
45
45
  "eslint": "^10.15.0",
46
46
  "nuxt": "^4.7.0",
@@ -1,3 +1,4 @@
1
+ import type { DevToolsPanelPosition } from '#devtools/composables/devtoolsTypes'
1
2
  import Diagnostics from '#devtools/components/DevTools/Diagnostics.vue'
2
3
  import { DEVTOOLS_INJECTION_KEY } from '#devtools/composables/devtoolsTypes'
3
4
  import { createDevToolsApi } from '#devtools/composables/useDevTools'
@@ -14,7 +15,8 @@ export default defineNuxtPlugin((nuxtApp) => {
14
15
  const api = createDevToolsApi({
15
16
  router,
16
17
  initialChrome: devtoolsConfig.defaultPosition
17
- ? { panelPosition: devtoolsConfig.defaultPosition }
18
+ // Nuxt types the layer's `defaultPosition` as `string` in runtime-config.d.ts; the layer config only allows the union.
19
+ ? { panelPosition: devtoolsConfig.defaultPosition as DevToolsPanelPosition }
18
20
  : undefined,
19
21
  isDev: import.meta.dev,
20
22
  urlConfig: {
@@ -15,7 +15,7 @@ declare module 'nuxt/schema' {
15
15
 
16
16
  declare module '#app' {
17
17
  interface NuxtApp {
18
- $fugueDevtools?: import('#devtools/composables/devtoolsTypes').DevToolsApi
18
+ $fugueDevtools?: import('../composables/devtoolsTypes').DevToolsApi
19
19
  }
20
20
  }
21
21