@vixt/react 0.12.0 → 0.12.2

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.
@@ -1,6 +1,5 @@
1
1
  import { Root } from "react-dom/client";
2
2
  import { RouteObject } from "react-router";
3
-
4
3
  //#region src/client/client.d.ts
5
4
  interface ReactVixtAppConfig {}
6
5
  interface ReactVixtApp {
@@ -1,3 +1,4 @@
1
+ import "virtual:vixt:css";
1
2
  //#region src/client/entry.d.ts
2
3
  declare function entry(): import("react-dom/client").Root;
3
4
  //#endregion
@@ -1,5 +1,4 @@
1
1
  import { ReactVixtOptions } from "./node.mjs";
2
-
3
2
  //#region src/node/index.d.ts
4
3
  /** @hidden */
5
4
  declare const _default: (options?: import("@vixt/core").VixtOptions | undefined) => import("vite").PluginOption;
@@ -28,7 +28,8 @@ var components_default = defineVitePlugin((options) => {
28
28
  });
29
29
  const imports = {};
30
30
  files.forEach((componentPath) => {
31
- imports[componentPath] = [["default", pascalCase(getNameFromFilePath(componentPath, dirs))]];
31
+ const componentName = pascalCase(getNameFromFilePath(componentPath, dirs));
32
+ imports[componentPath] = [["default", componentName]];
32
33
  });
33
34
  return AutoImport({
34
35
  imports,
@@ -1,5 +1,4 @@
1
1
  import { VixtOptions } from "@vixt/core";
2
-
3
2
  //#region src/node/modules/preset-react.d.ts
4
3
  declare const _default: import("@vixt/core").VixtModule<VixtOptions>;
5
4
  //#endregion
@@ -1,5 +1,4 @@
1
1
  import { ReactRoute } from "vite-plugin-pages";
2
-
3
2
  //#region src/node/modules/route-block.d.ts
4
3
  declare function extendRoute(route: ReactRoute): {
5
4
  children?: ReactRoute[];
@@ -2,7 +2,6 @@ import { ExtractPluginOptions } from "@vixt/core";
2
2
  import React from "@vitejs/plugin-react";
3
3
  import Pages from "vite-plugin-pages";
4
4
  import Layouts from "vite-plugin-vue-layouts";
5
-
6
5
  //#region src/node/node.d.ts
7
6
  interface ReactVixtOptions {
8
7
  react?: ExtractPluginOptions<typeof React>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vixt/react",
3
3
  "type": "module",
4
- "version": "0.12.0",
4
+ "version": "0.12.2",
5
5
  "author": "SoulLyoko<https://github.com/SoulLyoko>",
6
6
  "license": "MIT",
7
7
  "homepage": "https://soullyoko.github.io/vixt/",
@@ -38,13 +38,13 @@
38
38
  "pathe": "^2.0.3",
39
39
  "react": "^19.2.7",
40
40
  "react-dom": "^19.2.7",
41
- "react-router": "^8.1.0",
41
+ "react-router": "^8.2.0",
42
42
  "unplugin-auto-import": "^21.0.0",
43
43
  "unplugin-vue-components": "28.0.0",
44
- "vite": "^8.1.2",
44
+ "vite": "^8.1.5",
45
45
  "vite-plugin-pages": "^0.33.3",
46
46
  "vite-plugin-vue-layouts": "^0.11.0",
47
47
  "yaml": "^2.9.0",
48
- "@vixt/core": "0.12.0"
48
+ "@vixt/core": "0.12.2"
49
49
  }
50
50
  }