@vixt/react 0.10.1 → 0.11.0
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.
- package/dist/client/client.d.ts +17 -0
- package/dist/client/entry.d.ts +0 -1
- package/dist/client/entry.js +1 -2
- package/dist/client/index.d.ts +2 -0
- package/dist/client/index.js +2 -0
- package/dist/node/chunk-e9Ob2GDo.mjs +26 -0
- package/dist/node/components-DgaASyfT.mjs +10683 -0
- package/dist/node/detect-acorn-Du_gcr4-.mjs +370 -0
- package/dist/{index.mjs → node/dist-OcbwbyG4.mjs} +283 -2214
- package/dist/{index.d.mts → node/index.d.mts} +4 -2
- package/dist/node/index.mjs +38 -0
- package/dist/node/lib-ByhivYXf.mjs +1930 -0
- package/dist/node/modules/components.d.mts +10 -0
- package/dist/node/modules/components.mjs +2 -0
- package/dist/node/modules/preset-react.d.mts +7 -0
- package/dist/node/modules/preset-react.mjs +2 -0
- package/dist/node/modules/route-block.d.mts +13 -0
- package/dist/node/modules/route-block.mjs +38 -0
- package/dist/node/modules/virtual-root-component.d.mts +7 -0
- package/dist/node/modules/virtual-root-component.mjs +51 -0
- package/dist/node/modules/virtual-setup-layouts.d.mts +6 -0
- package/dist/node/modules/virtual-setup-layouts.mjs +41 -0
- package/dist/node/node.d.mts +18 -0
- package/dist/node/preset-react-DWJpAlWQ.mjs +65 -0
- package/dist/types/index.d.ts +2 -2
- package/package.json +11 -12
- package/dist/types/client.d.ts +0 -12
- package/dist/types/node.d.ts +0 -20
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Root } from "react-dom/client";
|
|
2
|
+
import { RouteObject } from "react-router";
|
|
3
|
+
|
|
4
|
+
//#region src/client/client.d.ts
|
|
5
|
+
interface ReactVixtAppConfig {}
|
|
6
|
+
interface ReactVixtApp {
|
|
7
|
+
/** React app root */
|
|
8
|
+
app: Root;
|
|
9
|
+
/** Router routes */
|
|
10
|
+
routes: RouteObject[];
|
|
11
|
+
}
|
|
12
|
+
declare module '@vixt/core/client' {
|
|
13
|
+
interface VixtAppConfig extends ReactVixtAppConfig {}
|
|
14
|
+
interface VixtApp extends ReactVixtApp {}
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
export { ReactVixtApp, ReactVixtAppConfig };
|
package/dist/client/entry.d.ts
CHANGED
package/dist/client/entry.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
+
import { createRoot } from "react-dom/client";
|
|
1
2
|
import "virtual:vixt:css";
|
|
2
|
-
import "virtual:uno.css";
|
|
3
3
|
import { applyPlugins, createVixtApp } from "@vixt/core/client";
|
|
4
4
|
import { createElement } from "react";
|
|
5
|
-
import { createRoot } from "react-dom/client";
|
|
6
5
|
import appConfig from "virtual:vixt:app-config";
|
|
7
6
|
import plugins from "virtual:vixt:plugins";
|
|
8
7
|
import RootComponent from "virtual:vixt:root-component.tsx";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { createRequire } from "node:module";
|
|
2
|
+
//#region \0rolldown/runtime.js
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
12
|
+
key = keys[i];
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
+
get: ((k) => from[k]).bind(null, key),
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
21
|
+
value: mod,
|
|
22
|
+
enumerable: true
|
|
23
|
+
}) : target, mod));
|
|
24
|
+
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
25
|
+
//#endregion
|
|
26
|
+
export { __require as n, __toESM as r, __commonJSMin as t };
|