nuxt-nightly 4.2.0-29331654.df559ad9 → 4.2.0-29331656.27fe4652

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