@nuxt/devtools-nightly 4.0.0-beta.4-29854537.03ea993 → 4.0.0-beta.4-29856066.b4d46d3

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.
@@ -0,0 +1,23 @@
1
+ import { createAssetsDevframe } from '@devframes/plugin-assets';
2
+ import { onDevtoolsReady, NUXT_DEVTOOLS_GROUP_ID } from '@nuxt/devtools-kit';
3
+ import { resolve } from 'pathe';
4
+ import { d as defaultAllowedExtensions } from '../shared/devtools-nightly.C3s9ubDZ.mjs';
5
+ import '@nuxt/kit';
6
+
7
+ function setup({ nuxt, options }) {
8
+ const definition = createAssetsDevframe({
9
+ dir: resolve(nuxt.options.srcDir, nuxt.options.dir.public),
10
+ baseURL: nuxt.options.app.baseURL,
11
+ uploadExtensions: options.assets?.uploadExtensions || defaultAllowedExtensions
12
+ });
13
+ onDevtoolsReady((kit) => {
14
+ return kit.install(definition, {
15
+ dock: {
16
+ groupId: NUXT_DEVTOOLS_GROUP_ID,
17
+ category: "analyze"
18
+ }
19
+ });
20
+ }, nuxt);
21
+ }
22
+
23
+ export { setup };
@@ -31,9 +31,9 @@ import { createRequire } from 'node:module';
31
31
  import { DEVTOOLS_TERMINALS_DOCK_ID } from '@vitejs/devtools-kit/constants';
32
32
  import { normalizeBaseKey, normalizeKey, createStorage, builtinDrivers } from 'unstorage';
33
33
 
34
- const version = "4.0.0-beta.4-29854537.03ea993";
34
+ const version = "4.0.0-beta.4-29856066.b4d46d3";
35
35
  const peerDependencies = {
36
- "@nuxt/devtools-assets": "npm:@nuxt/devtools-assets-nightly@4.0.0-beta.4-29854537.03ea993",
36
+ "@nuxt/devtools-assets": "npm:@nuxt/devtools-assets-nightly@4.0.0-beta.4-29856066.b4d46d3",
37
37
  "@nuxt/kit": "^4.0.0-0 || ^5.0.0-0",
38
38
  nitro: "*",
39
39
  nitropack: "^2.0.0",
@@ -3663,6 +3663,8 @@ window.__NUXT_DEVTOOLS_TIME_METRIC__.appInit = Date.now()
3663
3663
  await import('./plugin-metrics.mjs').then(({ setup }) => setup(ctx));
3664
3664
  if (options.dataInspector !== false)
3665
3665
  await import('./data-inspector.mjs').then(({ setup }) => setup(ctx));
3666
+ await import('./assets.mjs').then(({ setup }) => setup(ctx));
3667
+ await import('./og.mjs').then(({ setup }) => setup(ctx));
3666
3668
  if (options.viteInspect !== false)
3667
3669
  await import('./vite-inspect.mjs').then(({ setup }) => setup(ctx));
3668
3670
  if (options.componentInspector !== false)
@@ -0,0 +1,16 @@
1
+ import { createOgDevframe } from '@devframes/plugin-og';
2
+ import { onDevtoolsReady, NUXT_DEVTOOLS_GROUP_ID } from '@nuxt/devtools-kit';
3
+
4
+ function setup({ nuxt }) {
5
+ const definition = createOgDevframe({ defaultUrl: nuxt.options.devServer?.url });
6
+ onDevtoolsReady((kit) => {
7
+ return kit.install(definition, {
8
+ dock: {
9
+ groupId: NUXT_DEVTOOLS_GROUP_ID,
10
+ category: "analyze"
11
+ }
12
+ });
13
+ }, nuxt);
14
+ }
15
+
16
+ export { setup };
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nuxt/devtools",
3
3
  "configKey": "devtools",
4
- "version": "4.0.0-beta.4-29854537.03ea993",
4
+ "version": "4.0.0-beta.4-29856066.b4d46d3",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.3",
7
7
  "unbuild": "3.6.1"
package/dist/types.d.mts CHANGED
@@ -2,31 +2,6 @@ import './shared/devtools-nightly.DIKI0iiX.mjs';
2
2
  import { ModuleStaticInfo } from '@nuxt/devtools-kit/types';
3
3
  export * from '@nuxt/devtools-kit/types';
4
4
 
5
- interface SocialPreviewResolved {
6
- url?: string;
7
- title?: string;
8
- description?: string;
9
- favicon?: string;
10
- image?: string;
11
- imageAlt?: string;
12
- }
13
- interface SocialPreviewCard {
14
- url?: SocialPreviewCardItem[];
15
- title?: SocialPreviewCardItem[];
16
- description?: SocialPreviewCardItem[];
17
- favicon?: SocialPreviewCardItem[];
18
- image?: SocialPreviewCardItem[];
19
- imageAlt?: SocialPreviewCardItem[];
20
- }
21
- interface SocialPreviewCardItem {
22
- tag: string;
23
- name?: string;
24
- }
25
- interface NormalizedHeadTag {
26
- tag: string;
27
- name: string;
28
- value: string;
29
- }
30
5
  interface InstallingModulestate {
31
6
  name: string;
32
7
  info: ModuleStaticInfo;
@@ -34,4 +9,4 @@ interface InstallingModulestate {
34
9
  }
35
10
  type ModuleActionType = 'install' | 'uninstall';
36
11
 
37
- export type { InstallingModulestate, ModuleActionType, NormalizedHeadTag, SocialPreviewCard, SocialPreviewResolved };
12
+ export type { InstallingModulestate, ModuleActionType };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nuxt/devtools-nightly",
3
3
  "type": "module",
4
- "version": "4.0.0-beta.4-29854537.03ea993",
4
+ "version": "4.0.0-beta.4-29856066.b4d46d3",
5
5
  "description": "The Nuxt DevTools gives you insights and transparency about your Nuxt App.",
6
6
  "license": "MIT",
7
7
  "homepage": "https://devtools.nuxt.com",
@@ -21,7 +21,7 @@
21
21
  "dist"
22
22
  ],
23
23
  "peerDependencies": {
24
- "@nuxt/devtools-assets": "npm:@nuxt/devtools-assets-nightly@4.0.0-beta.4-29854537.03ea993",
24
+ "@nuxt/devtools-assets": "npm:@nuxt/devtools-assets-nightly@4.0.0-beta.4-29856066.b4d46d3",
25
25
  "@nuxt/kit": "^4.0.0-0 || ^5.0.0-0",
26
26
  "nitro": "*",
27
27
  "nitropack": "^2.0.0",
@@ -44,9 +44,11 @@
44
44
  },
45
45
  "dependencies": {
46
46
  "@devframes/hub": "^1.2.0",
47
+ "@devframes/plugin-assets": "^1.2.0",
47
48
  "@devframes/plugin-code-server": "^1.2.0",
48
49
  "@devframes/plugin-data-inspector": "^1.2.0",
49
- "@nuxt/devtools-kit": "npm:@nuxt/devtools-kit-nightly@4.0.0-beta.4-29854537.03ea993",
50
+ "@devframes/plugin-og": "^1.2.0",
51
+ "@nuxt/devtools-kit": "npm:@nuxt/devtools-kit-nightly@4.0.0-beta.4-29856066.b4d46d3",
50
52
  "@vitejs/devtools": "^0.7.6",
51
53
  "@vitejs/devtools-kit": "^0.7.6",
52
54
  "consola": "^3.4.2",
@@ -80,12 +82,11 @@
80
82
  "@iconify-json/ri": "^1.2.10",
81
83
  "@iconify-json/simple-icons": "^1.2.98",
82
84
  "@iconify-json/tabler": "^1.2.41",
83
- "@nuxt/devtools-assets": "npm:@nuxt/devtools-assets-nightly@4.0.0-beta.4-29854537.03ea993",
85
+ "@nuxt/devtools-assets": "npm:@nuxt/devtools-assets-nightly@4.0.0-beta.4-29856066.b4d46d3",
84
86
  "@nuxt/kit": "npm:@nuxt/kit-nightly@5.0.0-2610052343-36eafab",
85
87
  "@nuxt/schema": "npm:@nuxt/schema-nightly@5.0.0-2610052343-36eafab",
86
88
  "@parcel/watcher": "^2.6.0",
87
89
  "@types/markdown-it-link-attributes": "^3.0.5",
88
- "@unhead/schema": "^3.4.2",
89
90
  "@unocss/nuxt": "^66.10.5",
90
91
  "@unocss/preset-icons": "^66.10.5",
91
92
  "@unocss/preset-uno": "^66.10.5",