nuxt-nightly 4.2.0-29333825.6cbfa2c8 → 4.2.0-29333853.4751a6ac

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.
@@ -96,6 +96,6 @@ type NuxtLinkDefaultSlotProps<CustomProp extends boolean = false> = CustomProp e
96
96
  type NuxtLinkSlots<CustomProp extends boolean = false> = {
97
97
  default?: (props: NuxtLinkDefaultSlotProps<CustomProp>) => VNode[];
98
98
  };
99
- export declare function defineNuxtLink(options: NuxtLinkOptions): (new <CustomProp extends boolean = false>(props: NuxtLinkProps<CustomProp> & VNodeProps & AllowedComponentProps & AnchorHTMLAttributes) => InstanceType<DefineSetupFnComponent<NuxtLinkProps<CustomProp> & VNodeProps & AllowedComponentProps & Omit<AnchorHTMLAttributes, "href">, [], SlotsType<NuxtLinkSlots<CustomProp>>>>) & Record<string, any>;
100
- declare const _default: (new <CustomProp extends boolean = false>(props: NuxtLinkProps<CustomProp> & VNodeProps & AllowedComponentProps & AnchorHTMLAttributes) => InstanceType<DefineSetupFnComponent<NuxtLinkProps<CustomProp> & VNodeProps & AllowedComponentProps & Omit<AnchorHTMLAttributes, "href">, [], SlotsType<NuxtLinkSlots<CustomProp>>>>) & Record<string, any>;
99
+ export declare function defineNuxtLink(options: NuxtLinkOptions): (new <CustomProp extends boolean = false>(props: NuxtLinkProps<CustomProp> & VNodeProps & AllowedComponentProps & Omit<AnchorHTMLAttributes, keyof NuxtLinkProps<CustomProp>>) => InstanceType<DefineSetupFnComponent<NuxtLinkProps<CustomProp> & VNodeProps & AllowedComponentProps & Omit<AnchorHTMLAttributes, keyof NuxtLinkProps<CustomProp>>, [], SlotsType<NuxtLinkSlots<CustomProp>>>>) & Record<string, any>;
100
+ declare const _default: (new <CustomProp extends boolean = false>(props: NuxtLinkProps<CustomProp> & VNodeProps & AllowedComponentProps & Omit<AnchorHTMLAttributes, keyof NuxtLinkProps<CustomProp>>) => InstanceType<DefineSetupFnComponent<NuxtLinkProps<CustomProp> & VNodeProps & AllowedComponentProps & Omit<AnchorHTMLAttributes, keyof NuxtLinkProps<CustomProp>>, [], SlotsType<NuxtLinkSlots<CustomProp>>>>) & Record<string, any>;
101
101
  export default _default;
package/dist/index.mjs CHANGED
@@ -2281,7 +2281,7 @@ const ISLAND_RE = /\.island(?:\.global)?$/;
2281
2281
  const GLOBAL_RE = /\.global(?:\.island)?$/;
2282
2282
  const COMPONENT_MODE_RE = /(?<=\.)(client|server)(?:\.global|\.island)*$/;
2283
2283
  const MODE_REPLACEMENT_RE = /(?:\.(?:client|server))?(?:\.global|\.island)*$/;
2284
- async function scanComponents(dirs) {
2284
+ async function scanComponents(dirs, srcDir) {
2285
2285
  const components = [];
2286
2286
  const filePaths = /* @__PURE__ */ new Set();
2287
2287
  const scannedPaths = [];
@@ -2337,6 +2337,7 @@ async function scanComponents(dirs) {
2337
2337
  }
2338
2338
  resolvedNames.set(pascalName + suffix, filePath);
2339
2339
  const kebabName = kebabCase(componentNameSegments);
2340
+ const shortPath = relative(srcDir, filePath);
2340
2341
  const chunkName = "components/" + kebabName + suffix;
2341
2342
  let component = {
2342
2343
  // inheritable from directory configuration
@@ -2352,6 +2353,7 @@ async function scanComponents(dirs) {
2352
2353
  pascalName,
2353
2354
  kebabName,
2354
2355
  chunkName,
2356
+ shortPath,
2355
2357
  export: "default",
2356
2358
  // by default, give priority to scanned components
2357
2359
  priority: dir.priority ?? 1,
@@ -3483,7 +3485,7 @@ const componentsModule = defineNuxtModule({
3483
3485
  });
3484
3486
  const serverPlaceholderPath = await findPath(join(distDir, "app/components/server-placeholder")) ?? join(distDir, "app/components/server-placeholder");
3485
3487
  nuxt.hook("app:templates", async (app) => {
3486
- const newComponents = await scanComponents(componentDirs);
3488
+ const newComponents = await scanComponents(componentDirs, nuxt.options.srcDir);
3487
3489
  await nuxt.callHook("components:extend", newComponents);
3488
3490
  for (const component of newComponents) {
3489
3491
  if (!component._scanned && !(component.filePath in nuxt.vfs) && isAbsolute(component.filePath) && !existsSync(component.filePath)) {
@@ -3830,7 +3832,7 @@ function addDeclarationTemplates(ctx, options) {
3830
3832
  });
3831
3833
  }
3832
3834
 
3833
- const version = "4.2.0-29333825.6cbfa2c8";
3835
+ const version = "4.2.0-29333853.4751a6ac";
3834
3836
 
3835
3837
  const createImportProtectionPatterns = (nuxt, options) => {
3836
3838
  const patterns = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-nightly",
3
- "version": "4.2.0-29333825.6cbfa2c8",
3
+ "version": "4.2.0-29333853.4751a6ac",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/nuxt.git",
@@ -68,10 +68,10 @@
68
68
  "@nuxt/cli": "npm:@nuxt/cli-nightly@latest",
69
69
  "@nuxt/devalue": "^2.0.2",
70
70
  "@nuxt/devtools": "^2.6.5",
71
- "@nuxt/kit": "npm:@nuxt/kit-nightly@4.2.0-29333825.6cbfa2c8",
72
- "@nuxt/schema": "npm:@nuxt/schema-nightly@4.2.0-29333825.6cbfa2c8",
71
+ "@nuxt/kit": "npm:@nuxt/kit-nightly@4.2.0-29333853.4751a6ac",
72
+ "@nuxt/schema": "npm:@nuxt/schema-nightly@4.2.0-29333853.4751a6ac",
73
73
  "@nuxt/telemetry": "^2.6.6",
74
- "@nuxt/vite-builder": "npm:@nuxt/vite-builder-nightly@4.2.0-29333825.6cbfa2c8",
74
+ "@nuxt/vite-builder": "npm:@nuxt/vite-builder-nightly@4.2.0-29333853.4751a6ac",
75
75
  "@unhead/vue": "^2.0.14",
76
76
  "@vue/shared": "^3.5.22",
77
77
  "c12": "^3.3.0",