@vixt/react 0.13.4 → 0.13.5

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,8 +1,8 @@
1
1
  import { Root } from "react-dom/client";
2
2
  import { RouteObject } from "react-router";
3
3
  //#region src/client/client.d.ts
4
- interface ReactVixtAppConfig {}
5
- interface ReactVixtApp {
4
+ export interface ReactVixtAppConfig {}
5
+ export interface ReactVixtApp {
6
6
  /** React app root */
7
7
  app: Root;
8
8
  /** Router routes */
@@ -12,5 +12,4 @@ declare module '@vixt/core/client' {
12
12
  interface VixtAppConfig extends ReactVixtAppConfig {}
13
13
  interface VixtApp extends ReactVixtApp {}
14
14
  }
15
- //#endregion
16
- export { ReactVixtApp, ReactVixtAppConfig };
15
+ //#endregion
@@ -1,8 +1,8 @@
1
1
  //#region src/node/modules/components.d.ts
2
- interface ComponentResolverOptions {
2
+ export interface ComponentResolverOptions {
3
3
  dirs?: string[];
4
4
  dts?: string | boolean;
5
5
  }
6
6
  declare const _default: (options?: ComponentResolverOptions | undefined) => import("vite").PluginOption;
7
7
  //#endregion
8
- export { ComponentResolverOptions, _default as default };
8
+ export { _default as default };
@@ -1,9 +1,9 @@
1
1
  import { CustomBlock, ParsedJSX, ReactRoute } from "vite-plugin-pages";
2
2
  //#region src/node/modules/route-block.d.ts
3
- declare function parseJSX(code: string): ParsedJSX[];
4
- declare function parseYamlComment(code: ParsedJSX[], path: string): CustomBlock;
5
- declare function getRouteBlock(path: string): CustomBlock | undefined;
6
- declare function extendRoute(route: ReactRoute): {
3
+ export declare function parseJSX(code: string): ParsedJSX[];
4
+ export declare function parseYamlComment(code: ParsedJSX[], path: string): CustomBlock;
5
+ export declare function getRouteBlock(path: string): CustomBlock | undefined;
6
+ export declare function extendRoute(route: ReactRoute): {
7
7
  children?: ReactRoute[];
8
8
  rawRoute?: string | undefined;
9
9
  path?: string | undefined;
@@ -11,5 +11,4 @@ declare function extendRoute(route: ReactRoute): {
11
11
  element?: string | undefined;
12
12
  index?: boolean | undefined;
13
13
  } | undefined;
14
- //#endregion
15
- export { extendRoute, getRouteBlock, parseJSX, parseYamlComment };
14
+ //#endregion
@@ -1,10 +1,10 @@
1
1
  import { Vixt } from "@vixt/core";
2
2
  //#region src/node/modules/virtual-root-component.d.ts
3
- declare function resolveRootComponent(vixt: Vixt): {
3
+ export declare function resolveRootComponent(vixt: Vixt): {
4
4
  path: string;
5
5
  code: string;
6
6
  };
7
- declare function isEmptyCode(code?: string): boolean;
7
+ export declare function isEmptyCode(code?: string): boolean;
8
8
  declare const _default: import("@vixt/core").VixtModule<import("@vixt/core").ModuleOptions>;
9
9
  //#endregion
10
- export { _default as default, isEmptyCode, resolveRootComponent };
10
+ export { _default as default };
@@ -3,7 +3,7 @@ import React from "@vitejs/plugin-react";
3
3
  import Pages from "vite-plugin-pages";
4
4
  import Layouts from "vite-plugin-vue-layouts";
5
5
  //#region src/node/node.d.ts
6
- interface ReactVixtOptions {
6
+ export interface ReactVixtOptions {
7
7
  react?: ExtractPluginOptions<typeof React>;
8
8
  /** https://github.com/hannoeru/vite-plugin-pages */
9
9
  pages?: ExtractPluginOptions<typeof Pages>;
@@ -13,5 +13,4 @@ interface ReactVixtOptions {
13
13
  declare module '@vixt/core' {
14
14
  interface VixtOptions extends ReactVixtOptions {}
15
15
  }
16
- //#endregion
17
- export { ReactVixtOptions };
16
+ //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vixt/react",
3
- "version": "0.13.4",
3
+ "version": "0.13.5",
4
4
  "keywords": [
5
5
  "react",
6
6
  "vite",
@@ -27,24 +27,24 @@
27
27
  "./package.json": "./package.json"
28
28
  },
29
29
  "dependencies": {
30
- "@types/react": "^19.2.18",
31
- "@types/react-dom": "^19.2.5",
32
- "@vitejs/plugin-react": "^6.1.1",
33
- "@vixt/core": "0.13.4",
30
+ "@types/react": "^19.3.0",
31
+ "@types/react-dom": "^19.3.0",
32
+ "@vitejs/plugin-react": "^6.1.2",
33
+ "@vixt/core": "0.13.5",
34
34
  "defu": "^6.1.7",
35
35
  "extract-comments": "^1.1.0",
36
36
  "fast-glob": "^3.3.3",
37
- "fs-extra": "^11.4.0",
37
+ "fs-extra": "^11.4.1",
38
38
  "mlly": "^1.8.2",
39
39
  "pathe": "^2.0.3",
40
- "react": "^19.2.8",
41
- "react-dom": "^19.2.8",
42
- "react-router": "^8.3.1",
40
+ "react": "^19.3.0",
41
+ "react-dom": "^19.3.0",
42
+ "react-router": "^8.4.0",
43
43
  "unplugin-auto-import": "^21.1.0",
44
44
  "unplugin-vue-components": "28.0.0",
45
- "vite": "^8.2.2",
45
+ "vite": "^8.3.4",
46
46
  "vite-plugin-pages": "^0.33.3",
47
47
  "vite-plugin-vue-layouts": "^0.11.0",
48
- "yaml": "^2.9.0"
48
+ "yaml": "^2.9.1"
49
49
  }
50
50
  }