@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.
@@ -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 };
@@ -1,5 +1,4 @@
1
1
  import * as _$react_dom_client0 from "react-dom/client";
2
-
3
2
  //#region src/client/entry.d.ts
4
3
  declare function entry(): _$react_dom_client0.Root;
5
4
  //#endregion
@@ -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,2 @@
1
+ import { ReactVixtApp, ReactVixtAppConfig } from "./client.js";
2
+ export { ReactVixtApp, ReactVixtAppConfig };
@@ -0,0 +1,2 @@
1
+ import { ReactVixtApp, ReactVixtAppConfig } from "./client.d.ts";
2
+ export { ReactVixtApp, ReactVixtAppConfig };
@@ -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 };