@vixt/react 0.11.1 → 0.11.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.
- package/dist/client/entry.d.ts +1 -2
- package/dist/client/index.d.ts +1 -1
- package/dist/node/{components-DgaASyfT.mjs → components-Dsb3rw2n.mjs} +166 -54
- package/dist/node/{detect-acorn-Du_gcr4-.mjs → detect-acorn-CKsvmz2e.mjs} +2 -2
- package/dist/node/{dist-OcbwbyG4.mjs → dist-CoEoJGXV.mjs} +1 -1
- package/dist/node/index.d.mts +2 -4
- package/dist/node/index.mjs +4 -4
- package/dist/node/{lib-ByhivYXf.mjs → lib-BJ7U9lm_.mjs} +1 -1
- package/dist/node/modules/components.d.mts +1 -3
- package/dist/node/modules/components.mjs +1 -1
- package/dist/node/modules/preset-react.d.mts +1 -2
- package/dist/node/modules/preset-react.mjs +1 -1
- package/dist/node/modules/route-block.mjs +2 -2
- package/dist/node/modules/virtual-root-component.d.mts +1 -3
- package/dist/node/modules/virtual-root-component.mjs +3 -3
- package/dist/node/modules/virtual-setup-layouts.d.mts +1 -3
- package/dist/node/{preset-react-DWJpAlWQ.mjs → preset-react-BTKKeG54.mjs} +1 -1
- package/package.json +10 -7
- /package/dist/node/{chunk-e9Ob2GDo.mjs → chunk-DnnnRqeS.mjs} +0 -0
package/dist/client/entry.d.ts
CHANGED
package/dist/client/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ReactVixtApp, ReactVixtAppConfig } from "./client.js";
|
|
2
|
-
export { ReactVixtApp, ReactVixtAppConfig };
|
|
2
|
+
export type { ReactVixtApp, ReactVixtAppConfig };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as __require$1, r as __toESM, t as __commonJSMin } from "./chunk-
|
|
2
|
-
import { _ as resolve$3, a as parseStaticImport, c as resolvePathSync, d as dirname$2, f as isAbsolute$2, g as relative$2, h as parse$3, i as findTypeExports, m as normalize$2, n as findExports, o as resolve$4, p as join$1, r as findStaticImports, s as resolveModuleExportNames, t as detectSyntax, u as basename$2, v as Parser } from "./dist-
|
|
1
|
+
import { n as __require$1, r as __toESM, t as __commonJSMin } from "./chunk-DnnnRqeS.mjs";
|
|
2
|
+
import { _ as resolve$3, a as parseStaticImport, c as resolvePathSync, d as dirname$2, f as isAbsolute$2, g as relative$2, h as parse$3, i as findTypeExports, m as normalize$2, n as findExports, o as resolve$4, p as join$1, r as findStaticImports, s as resolveModuleExportNames, t as detectSyntax, u as basename$2, v as Parser } from "./dist-CoEoJGXV.mjs";
|
|
3
3
|
import { createRequire } from "node:module";
|
|
4
4
|
import { defineVitePlugin } from "@vixt/core";
|
|
5
5
|
import * as nativeFs from "fs";
|
|
@@ -108,11 +108,11 @@ quansync$1({
|
|
|
108
108
|
const quansync = quansync$1;
|
|
109
109
|
//#endregion
|
|
110
110
|
//#region ../../node_modules/.pnpm/local-pkg@1.1.2/node_modules/local-pkg/dist/index.mjs
|
|
111
|
-
const toPath = (urlOrPath) => urlOrPath instanceof URL ? fileURLToPath(urlOrPath) : urlOrPath;
|
|
112
|
-
async function findUp$1(name, { cwd = process$1.cwd(), type = "file", stopAt } = {}) {
|
|
113
|
-
let directory = path.resolve(toPath(cwd) ?? "");
|
|
111
|
+
const toPath$1 = (urlOrPath) => urlOrPath instanceof URL ? fileURLToPath(urlOrPath) : urlOrPath;
|
|
112
|
+
async function findUp$1$1(name, { cwd = process$1.cwd(), type = "file", stopAt } = {}) {
|
|
113
|
+
let directory = path.resolve(toPath$1(cwd) ?? "");
|
|
114
114
|
const { root } = path.parse(directory);
|
|
115
|
-
stopAt = path.resolve(directory, toPath(stopAt ?? root));
|
|
115
|
+
stopAt = path.resolve(directory, toPath$1(stopAt ?? root));
|
|
116
116
|
const isAbsoluteName = path.isAbsolute(name);
|
|
117
117
|
while (directory) {
|
|
118
118
|
const filePath = isAbsoluteName ? name : path.join(directory, name);
|
|
@@ -124,10 +124,10 @@ async function findUp$1(name, { cwd = process$1.cwd(), type = "file", stopAt } =
|
|
|
124
124
|
directory = path.dirname(directory);
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
|
-
function findUpSync(name, { cwd = process$1.cwd(), type = "file", stopAt } = {}) {
|
|
128
|
-
let directory = path.resolve(toPath(cwd) ?? "");
|
|
127
|
+
function findUpSync$1(name, { cwd = process$1.cwd(), type = "file", stopAt } = {}) {
|
|
128
|
+
let directory = path.resolve(toPath$1(cwd) ?? "");
|
|
129
129
|
const { root } = path.parse(directory);
|
|
130
|
-
stopAt = path.resolve(directory, toPath(stopAt) ?? root);
|
|
130
|
+
stopAt = path.resolve(directory, toPath$1(stopAt) ?? root);
|
|
131
131
|
const isAbsoluteName = path.isAbsolute(name);
|
|
132
132
|
while (directory) {
|
|
133
133
|
const filePath = isAbsoluteName ? name : path.join(directory, name);
|
|
@@ -139,7 +139,7 @@ function findUpSync(name, { cwd = process$1.cwd(), type = "file", stopAt } = {})
|
|
|
139
139
|
directory = path.dirname(directory);
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
|
-
function _resolve(path, options = {}) {
|
|
142
|
+
function _resolve$1(path, options = {}) {
|
|
143
143
|
if (options.platform === "auto" || !options.platform) options.platform = process$1.platform === "win32" ? "win32" : "posix";
|
|
144
144
|
if (process$1.versions.pnp) {
|
|
145
145
|
const paths = options.paths || [];
|
|
@@ -153,29 +153,29 @@ function _resolve(path, options = {}) {
|
|
|
153
153
|
if (options.platform === "win32") return win32.normalize(modulePath);
|
|
154
154
|
return modulePath;
|
|
155
155
|
}
|
|
156
|
-
function resolveModule(name, options = {}) {
|
|
156
|
+
function resolveModule$1(name, options = {}) {
|
|
157
157
|
try {
|
|
158
|
-
return _resolve(name, options);
|
|
158
|
+
return _resolve$1(name, options);
|
|
159
159
|
} catch {
|
|
160
160
|
return;
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
163
|
function isPackageExists(name, options = {}) {
|
|
164
|
-
return !!resolvePackage(name, options);
|
|
164
|
+
return !!resolvePackage$1(name, options);
|
|
165
165
|
}
|
|
166
|
-
function getPackageJsonPath(name, options = {}) {
|
|
167
|
-
const entry = resolvePackage(name, options);
|
|
166
|
+
function getPackageJsonPath$1(name, options = {}) {
|
|
167
|
+
const entry = resolvePackage$1(name, options);
|
|
168
168
|
if (!entry) return;
|
|
169
|
-
return searchPackageJSON(entry);
|
|
169
|
+
return searchPackageJSON$1(entry);
|
|
170
170
|
}
|
|
171
|
-
const readFile$
|
|
171
|
+
const readFile$2 = quansync({
|
|
172
172
|
async: (id) => fs.promises.readFile(id, "utf8"),
|
|
173
173
|
sync: (id) => fs.readFileSync(id, "utf8")
|
|
174
174
|
});
|
|
175
175
|
quansync(function* (name, options = {}) {
|
|
176
|
-
const packageJsonPath = getPackageJsonPath(name, options);
|
|
176
|
+
const packageJsonPath = getPackageJsonPath$1(name, options);
|
|
177
177
|
if (!packageJsonPath) return;
|
|
178
|
-
const packageJson = JSON.parse(yield readFile$
|
|
178
|
+
const packageJson = JSON.parse(yield readFile$2(packageJsonPath));
|
|
179
179
|
return {
|
|
180
180
|
name,
|
|
181
181
|
version: packageJson.version,
|
|
@@ -184,18 +184,18 @@ quansync(function* (name, options = {}) {
|
|
|
184
184
|
packageJson
|
|
185
185
|
};
|
|
186
186
|
}).sync;
|
|
187
|
-
function resolvePackage(name, options = {}) {
|
|
187
|
+
function resolvePackage$1(name, options = {}) {
|
|
188
188
|
try {
|
|
189
|
-
return _resolve(`${name}/package.json`, options);
|
|
189
|
+
return _resolve$1(`${name}/package.json`, options);
|
|
190
190
|
} catch {}
|
|
191
191
|
try {
|
|
192
|
-
return _resolve(name, options);
|
|
192
|
+
return _resolve$1(name, options);
|
|
193
193
|
} catch (e) {
|
|
194
194
|
if (e.code !== "MODULE_NOT_FOUND" && e.code !== "ERR_MODULE_NOT_FOUND") console.error(e);
|
|
195
195
|
return false;
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
|
-
function searchPackageJSON(dir) {
|
|
198
|
+
function searchPackageJSON$1(dir) {
|
|
199
199
|
let packageJsonPath;
|
|
200
200
|
while (true) {
|
|
201
201
|
if (!dir) return;
|
|
@@ -207,18 +207,18 @@ function searchPackageJSON(dir) {
|
|
|
207
207
|
}
|
|
208
208
|
return packageJsonPath;
|
|
209
209
|
}
|
|
210
|
-
const findUp = quansync({
|
|
211
|
-
sync: findUpSync,
|
|
212
|
-
async: findUp$1
|
|
210
|
+
const findUp$2 = quansync({
|
|
211
|
+
sync: findUpSync$1,
|
|
212
|
+
async: findUp$1$1
|
|
213
213
|
});
|
|
214
|
-
const loadPackageJSON = quansync(function* (cwd = process$1.cwd()) {
|
|
215
|
-
const path = yield findUp("package.json", { cwd });
|
|
214
|
+
const loadPackageJSON$1 = quansync(function* (cwd = process$1.cwd()) {
|
|
215
|
+
const path = yield findUp$2("package.json", { cwd });
|
|
216
216
|
if (!path || !fs.existsSync(path)) return null;
|
|
217
|
-
return JSON.parse(yield readFile$
|
|
217
|
+
return JSON.parse(yield readFile$2(path));
|
|
218
218
|
});
|
|
219
|
-
loadPackageJSON.sync;
|
|
219
|
+
loadPackageJSON$1.sync;
|
|
220
220
|
quansync(function* (name, cwd) {
|
|
221
|
-
const pkg = (yield loadPackageJSON(cwd)) || {};
|
|
221
|
+
const pkg = (yield loadPackageJSON$1(cwd)) || {};
|
|
222
222
|
return name in (pkg.dependencies || {}) || name in (pkg.devDependencies || {});
|
|
223
223
|
}).sync;
|
|
224
224
|
//#endregion
|
|
@@ -4422,7 +4422,7 @@ function getBtoa() {
|
|
|
4422
4422
|
throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.");
|
|
4423
4423
|
};
|
|
4424
4424
|
}
|
|
4425
|
-
const btoa =
|
|
4425
|
+
const btoa = /*#__PURE__*/ getBtoa();
|
|
4426
4426
|
var SourceMap = class {
|
|
4427
4427
|
constructor(properties) {
|
|
4428
4428
|
this.version = 3;
|
|
@@ -6945,6 +6945,12 @@ function a$1(e, n, r) {
|
|
|
6945
6945
|
});
|
|
6946
6946
|
}
|
|
6947
6947
|
//#endregion
|
|
6948
|
+
//#region ../../node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/json.mjs
|
|
6949
|
+
function n$1(t, n) {
|
|
6950
|
+
let r = JSON.parse(t, n?.reviver);
|
|
6951
|
+
return a$1(t, r, n), r;
|
|
6952
|
+
}
|
|
6953
|
+
//#endregion
|
|
6948
6954
|
//#region ../../node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/jsonc-parser.mjs
|
|
6949
6955
|
function e(e, i = !1) {
|
|
6950
6956
|
let a = e.length, o = 0, s = ``, c = 0, l = 16, u = 0, d = 0, f = 0, p = 0, m = 0;
|
|
@@ -7028,7 +7034,7 @@ function e(e, i = !1) {
|
|
|
7028
7034
|
r = o;
|
|
7029
7035
|
continue;
|
|
7030
7036
|
}
|
|
7031
|
-
if (i >= 0 && i <= 31) if (n
|
|
7037
|
+
if (i >= 0 && i <= 31) if (n(i)) {
|
|
7032
7038
|
t += e.substring(r, o), m = 2;
|
|
7033
7039
|
break;
|
|
7034
7040
|
} else m = 6;
|
|
@@ -7045,7 +7051,7 @@ function e(e, i = !1) {
|
|
|
7045
7051
|
while (t(i));
|
|
7046
7052
|
return l = 15;
|
|
7047
7053
|
}
|
|
7048
|
-
if (n
|
|
7054
|
+
if (n(i)) return o++, s += String.fromCharCode(i), i === 13 && e.charCodeAt(o) === 10 && (o++, s += `
|
|
7049
7055
|
`), u++, f = o, l = 14;
|
|
7050
7056
|
switch (i) {
|
|
7051
7057
|
case 123: return o++, l = 1;
|
|
@@ -7058,7 +7064,7 @@ function e(e, i = !1) {
|
|
|
7058
7064
|
case 47:
|
|
7059
7065
|
let t = o - 1;
|
|
7060
7066
|
if (e.charCodeAt(o + 1) === 47) {
|
|
7061
|
-
for (o += 2; o < a && !n
|
|
7067
|
+
for (o += 2; o < a && !n(e.charCodeAt(o));) o++;
|
|
7062
7068
|
return s = e.substring(t, o), l = 12;
|
|
7063
7069
|
}
|
|
7064
7070
|
if (e.charCodeAt(o + 1) === 42) {
|
|
@@ -7070,7 +7076,7 @@ function e(e, i = !1) {
|
|
|
7070
7076
|
o += 2, i = !0;
|
|
7071
7077
|
break;
|
|
7072
7078
|
}
|
|
7073
|
-
o++, n
|
|
7079
|
+
o++, n(t) && (t === 13 && e.charCodeAt(o) === 10 && o++, u++, f = o);
|
|
7074
7080
|
}
|
|
7075
7081
|
return i || (o++, m = 1), s = e.substring(t, o), l = 13;
|
|
7076
7082
|
}
|
|
@@ -7100,7 +7106,7 @@ function e(e, i = !1) {
|
|
|
7100
7106
|
}
|
|
7101
7107
|
}
|
|
7102
7108
|
function b(e) {
|
|
7103
|
-
if (t(e) || n
|
|
7109
|
+
if (t(e) || n(e)) return !1;
|
|
7104
7110
|
switch (e) {
|
|
7105
7111
|
case 125:
|
|
7106
7112
|
case 93:
|
|
@@ -7136,7 +7142,7 @@ function e(e, i = !1) {
|
|
|
7136
7142
|
function t(e) {
|
|
7137
7143
|
return e === 32 || e === 9;
|
|
7138
7144
|
}
|
|
7139
|
-
function n
|
|
7145
|
+
function n(e) {
|
|
7140
7146
|
return e === 10 || e === 13;
|
|
7141
7147
|
}
|
|
7142
7148
|
function r$1(e) {
|
|
@@ -7330,12 +7336,6 @@ var h;
|
|
|
7330
7336
|
e[e.InvalidSymbol = 1] = `InvalidSymbol`, e[e.InvalidNumberFormat = 2] = `InvalidNumberFormat`, e[e.PropertyNameExpected = 3] = `PropertyNameExpected`, e[e.ValueExpected = 4] = `ValueExpected`, e[e.ColonExpected = 5] = `ColonExpected`, e[e.CommaExpected = 6] = `CommaExpected`, e[e.CloseBraceExpected = 7] = `CloseBraceExpected`, e[e.CloseBracketExpected = 8] = `CloseBracketExpected`, e[e.EndOfFileExpected = 9] = `EndOfFileExpected`, e[e.InvalidCommentToken = 10] = `InvalidCommentToken`, e[e.UnexpectedEndOfComment = 11] = `UnexpectedEndOfComment`, e[e.UnexpectedEndOfString = 12] = `UnexpectedEndOfString`, e[e.UnexpectedEndOfNumber = 13] = `UnexpectedEndOfNumber`, e[e.InvalidUnicode = 14] = `InvalidUnicode`, e[e.InvalidEscapeCharacter = 15] = `InvalidEscapeCharacter`, e[e.InvalidCharacter = 16] = `InvalidCharacter`;
|
|
7331
7337
|
})(h ||= {});
|
|
7332
7338
|
//#endregion
|
|
7333
|
-
//#region ../../node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/json.mjs
|
|
7334
|
-
function n(t, n) {
|
|
7335
|
-
let r = JSON.parse(t, n?.reviver);
|
|
7336
|
-
return a$1(t, r, n), r;
|
|
7337
|
-
}
|
|
7338
|
-
//#endregion
|
|
7339
7339
|
//#region ../../node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/jsonc.mjs
|
|
7340
7340
|
function r(n, r) {
|
|
7341
7341
|
let i = m(n, r?.errors, r);
|
|
@@ -8175,8 +8175,8 @@ function moduleResolve(specifier, base, conditions, preserveSymlinks) {
|
|
|
8175
8175
|
return finalizeResolution(resolved, base, preserveSymlinks);
|
|
8176
8176
|
}
|
|
8177
8177
|
const DEFAULT_CONDITIONS_SET = /* @__PURE__ */ new Set(["node", "import"]);
|
|
8178
|
-
const isWindows = process.platform === "win32";
|
|
8179
|
-
const globalCache = globalThis["__EXSOLVE_CACHE__"] ||= /* @__PURE__ */ new Map();
|
|
8178
|
+
const isWindows = /* @__PURE__ */ (() => process.platform === "win32")();
|
|
8179
|
+
const globalCache = /* @__PURE__ */ (() => globalThis["__EXSOLVE_CACHE__"] ||= /* @__PURE__ */ new Map())();
|
|
8180
8180
|
/**
|
|
8181
8181
|
* Synchronously resolves a module url based on the options provided.
|
|
8182
8182
|
*
|
|
@@ -8392,7 +8392,7 @@ async function readPackageJSON(id, options = {}) {
|
|
|
8392
8392
|
const blob = await promises.readFile(resolvedPath, "utf8");
|
|
8393
8393
|
let parsed;
|
|
8394
8394
|
try {
|
|
8395
|
-
parsed = n(blob);
|
|
8395
|
+
parsed = n$1(blob);
|
|
8396
8396
|
} catch {
|
|
8397
8397
|
parsed = r(blob);
|
|
8398
8398
|
}
|
|
@@ -8406,6 +8406,118 @@ async function resolvePackageJSON(id = process.cwd(), options = {}) {
|
|
|
8406
8406
|
});
|
|
8407
8407
|
}
|
|
8408
8408
|
//#endregion
|
|
8409
|
+
//#region ../../node_modules/.pnpm/local-pkg@1.2.1/node_modules/local-pkg/dist/index.mjs
|
|
8410
|
+
const toPath = (urlOrPath) => urlOrPath instanceof URL ? fileURLToPath(urlOrPath) : urlOrPath;
|
|
8411
|
+
async function findUp$1(name, { cwd = process$1.cwd(), type = "file", stopAt } = {}) {
|
|
8412
|
+
let directory = path.resolve(toPath(cwd) ?? "");
|
|
8413
|
+
const { root } = path.parse(directory);
|
|
8414
|
+
stopAt = path.resolve(directory, toPath(stopAt ?? root));
|
|
8415
|
+
const isAbsoluteName = path.isAbsolute(name);
|
|
8416
|
+
while (directory) {
|
|
8417
|
+
const filePath = isAbsoluteName ? name : path.join(directory, name);
|
|
8418
|
+
try {
|
|
8419
|
+
const stats = await fsPromises.stat(filePath);
|
|
8420
|
+
if (type === "file" && stats.isFile() || type === "directory" && stats.isDirectory()) return filePath;
|
|
8421
|
+
} catch {}
|
|
8422
|
+
if (directory === stopAt || directory === root) break;
|
|
8423
|
+
directory = path.dirname(directory);
|
|
8424
|
+
}
|
|
8425
|
+
}
|
|
8426
|
+
function findUpSync(name, { cwd = process$1.cwd(), type = "file", stopAt } = {}) {
|
|
8427
|
+
let directory = path.resolve(toPath(cwd) ?? "");
|
|
8428
|
+
const { root } = path.parse(directory);
|
|
8429
|
+
stopAt = path.resolve(directory, toPath(stopAt) ?? root);
|
|
8430
|
+
const isAbsoluteName = path.isAbsolute(name);
|
|
8431
|
+
while (directory) {
|
|
8432
|
+
const filePath = isAbsoluteName ? name : path.join(directory, name);
|
|
8433
|
+
try {
|
|
8434
|
+
const stats = fs.statSync(filePath, { throwIfNoEntry: false });
|
|
8435
|
+
if (type === "file" && stats?.isFile() || type === "directory" && stats?.isDirectory()) return filePath;
|
|
8436
|
+
} catch {}
|
|
8437
|
+
if (directory === stopAt || directory === root) break;
|
|
8438
|
+
directory = path.dirname(directory);
|
|
8439
|
+
}
|
|
8440
|
+
}
|
|
8441
|
+
function _resolve(path, options = {}) {
|
|
8442
|
+
if (options.platform === "auto" || !options.platform) options.platform = process$1.platform === "win32" ? "win32" : "posix";
|
|
8443
|
+
if (process$1.versions.pnp) {
|
|
8444
|
+
const paths = options.paths || [];
|
|
8445
|
+
if (paths.length === 0) paths.push(process$1.cwd());
|
|
8446
|
+
const targetRequire = createRequire(import.meta.url);
|
|
8447
|
+
try {
|
|
8448
|
+
return targetRequire.resolve(path, { paths });
|
|
8449
|
+
} catch {}
|
|
8450
|
+
}
|
|
8451
|
+
const modulePath = resolvePathSync(path, { url: options.paths });
|
|
8452
|
+
if (options.platform === "win32") return win32.normalize(modulePath);
|
|
8453
|
+
return modulePath;
|
|
8454
|
+
}
|
|
8455
|
+
function resolveModule(name, options = {}) {
|
|
8456
|
+
try {
|
|
8457
|
+
return _resolve(name, options);
|
|
8458
|
+
} catch {
|
|
8459
|
+
return;
|
|
8460
|
+
}
|
|
8461
|
+
}
|
|
8462
|
+
function getPackageJsonPath(name, options = {}) {
|
|
8463
|
+
const entry = resolvePackage(name, options);
|
|
8464
|
+
if (!entry) return;
|
|
8465
|
+
return searchPackageJSON(entry);
|
|
8466
|
+
}
|
|
8467
|
+
const readFile$1 = quansync({
|
|
8468
|
+
async: (id) => fs.promises.readFile(id, "utf8"),
|
|
8469
|
+
sync: (id) => fs.readFileSync(id, "utf8")
|
|
8470
|
+
});
|
|
8471
|
+
quansync(function* (name, options = {}) {
|
|
8472
|
+
const packageJsonPath = getPackageJsonPath(name, options);
|
|
8473
|
+
if (!packageJsonPath) return;
|
|
8474
|
+
const packageJson = JSON.parse(yield readFile$1(packageJsonPath));
|
|
8475
|
+
return {
|
|
8476
|
+
name,
|
|
8477
|
+
version: packageJson.version,
|
|
8478
|
+
rootPath: dirname$1(packageJsonPath),
|
|
8479
|
+
packageJsonPath,
|
|
8480
|
+
packageJson
|
|
8481
|
+
};
|
|
8482
|
+
}).sync;
|
|
8483
|
+
function resolvePackage(name, options = {}) {
|
|
8484
|
+
try {
|
|
8485
|
+
return _resolve(`${name}/package.json`, options);
|
|
8486
|
+
} catch {}
|
|
8487
|
+
try {
|
|
8488
|
+
return _resolve(name, options);
|
|
8489
|
+
} catch (e) {
|
|
8490
|
+
if (e.code !== "MODULE_NOT_FOUND" && e.code !== "ERR_MODULE_NOT_FOUND") console.error(e);
|
|
8491
|
+
return false;
|
|
8492
|
+
}
|
|
8493
|
+
}
|
|
8494
|
+
function searchPackageJSON(dir) {
|
|
8495
|
+
let packageJsonPath;
|
|
8496
|
+
while (true) {
|
|
8497
|
+
if (!dir) return;
|
|
8498
|
+
const newDir = dirname$1(dir);
|
|
8499
|
+
if (newDir === dir) return;
|
|
8500
|
+
dir = newDir;
|
|
8501
|
+
packageJsonPath = join(dir, "package.json");
|
|
8502
|
+
if (fs.existsSync(packageJsonPath)) break;
|
|
8503
|
+
}
|
|
8504
|
+
return packageJsonPath;
|
|
8505
|
+
}
|
|
8506
|
+
const findUp = quansync({
|
|
8507
|
+
sync: findUpSync,
|
|
8508
|
+
async: findUp$1
|
|
8509
|
+
});
|
|
8510
|
+
const loadPackageJSON = quansync(function* (cwd = process$1.cwd()) {
|
|
8511
|
+
const path = yield findUp("package.json", { cwd });
|
|
8512
|
+
if (!path || !fs.existsSync(path)) return null;
|
|
8513
|
+
return JSON.parse(yield readFile$1(path));
|
|
8514
|
+
});
|
|
8515
|
+
loadPackageJSON.sync;
|
|
8516
|
+
quansync(function* (name, cwd) {
|
|
8517
|
+
const pkg = (yield loadPackageJSON(cwd)) || {};
|
|
8518
|
+
return name in (pkg.dependencies || {}) || name in (pkg.devDependencies || {});
|
|
8519
|
+
}).sync;
|
|
8520
|
+
//#endregion
|
|
8409
8521
|
//#region ../../node_modules/.pnpm/unimport@5.6.0/node_modules/unimport/dist/shared/unimport.u_OYhQoS.mjs
|
|
8410
8522
|
const version = "5.6.0";
|
|
8411
8523
|
function configureAddons(opts) {
|
|
@@ -8502,7 +8614,7 @@ function parseVirtualImportsRegex(strippedCode, importMap, virtualImports) {
|
|
|
8502
8614
|
};
|
|
8503
8615
|
}
|
|
8504
8616
|
async function detectImports(code, ctx, options) {
|
|
8505
|
-
if (options?.parser === "acorn") return import("./detect-acorn-
|
|
8617
|
+
if (options?.parser === "acorn") return import("./detect-acorn-CKsvmz2e.mjs").then((r) => r.detectImportsAcorn(code, ctx, options));
|
|
8506
8618
|
return detectImportsRegex(code, ctx, options);
|
|
8507
8619
|
}
|
|
8508
8620
|
const FileExtensionLookup = [
|
|
@@ -9763,7 +9875,7 @@ function createFilter(include, exclude, options) {
|
|
|
9763
9875
|
};
|
|
9764
9876
|
}
|
|
9765
9877
|
//#endregion
|
|
9766
|
-
//#region ../../node_modules/.pnpm/unplugin-auto-import@21.0.0_@nuxt+kit@4.4.
|
|
9878
|
+
//#region ../../node_modules/.pnpm/unplugin-auto-import@21.0.0_@nuxt+kit@4.4.7_magicast@0.5.3__@vueuse+core@14.3.0_vue@3.5.35_typescript@6.0.3__/node_modules/unplugin-auto-import/dist/src-VZF9ZhCb.mjs
|
|
9767
9879
|
function toArray(array) {
|
|
9768
9880
|
array = array ?? [];
|
|
9769
9881
|
return Array.isArray(array) ? array : [array];
|
|
@@ -9837,7 +9949,7 @@ var ahooks_default = () => {
|
|
|
9837
9949
|
if (!_cache$2) {
|
|
9838
9950
|
let indexesJson;
|
|
9839
9951
|
try {
|
|
9840
|
-
const path = resolveModule("ahooks/metadata.json");
|
|
9952
|
+
const path = resolveModule$1("ahooks/metadata.json");
|
|
9841
9953
|
indexesJson = JSON.parse(readFileSync(path, "utf-8"));
|
|
9842
9954
|
} catch (error) {
|
|
9843
9955
|
console.error(error);
|
|
@@ -10233,8 +10345,8 @@ var vueuse_core_default = () => {
|
|
|
10233
10345
|
if (!_cache$1) {
|
|
10234
10346
|
let indexesJson;
|
|
10235
10347
|
try {
|
|
10236
|
-
const corePath = resolveModule("@vueuse/core") || process$1.cwd();
|
|
10237
|
-
const path = resolveModule("@vueuse/core/indexes.json") || resolveModule("@vueuse/metadata/index.json") || resolveModule("@vueuse/metadata/index.json", { paths: [corePath] });
|
|
10348
|
+
const corePath = resolveModule$1("@vueuse/core") || process$1.cwd();
|
|
10349
|
+
const path = resolveModule$1("@vueuse/core/indexes.json") || resolveModule$1("@vueuse/metadata/index.json") || resolveModule$1("@vueuse/metadata/index.json", { paths: [corePath] });
|
|
10238
10350
|
indexesJson = JSON.parse(readFileSync(path, "utf-8"));
|
|
10239
10351
|
} catch (error) {
|
|
10240
10352
|
console.error(error);
|
|
@@ -10250,8 +10362,8 @@ var vueuse_math_default = () => {
|
|
|
10250
10362
|
if (!_cache) {
|
|
10251
10363
|
let indexesJson;
|
|
10252
10364
|
try {
|
|
10253
|
-
const corePath = resolveModule("@vueuse/core") || process$1.cwd();
|
|
10254
|
-
const path = resolveModule("@vueuse/metadata/index.json") || resolveModule("@vueuse/metadata/index.json", { paths: [corePath] });
|
|
10365
|
+
const corePath = resolveModule$1("@vueuse/core") || process$1.cwd();
|
|
10366
|
+
const path = resolveModule$1("@vueuse/metadata/index.json") || resolveModule$1("@vueuse/metadata/index.json", { paths: [corePath] });
|
|
10255
10367
|
indexesJson = JSON.parse(readFileSync(path, "utf-8"));
|
|
10256
10368
|
} catch (error) {
|
|
10257
10369
|
console.error(error);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { y as parse$1 } from "./dist-
|
|
2
|
-
import { n as getMagicString } from "./components-
|
|
1
|
+
import { y as parse$1 } from "./dist-CoEoJGXV.mjs";
|
|
2
|
+
import { n as getMagicString } from "./components-Dsb3rw2n.mjs";
|
|
3
3
|
//#region ../../node_modules/.pnpm/estree-walker@3.0.3/node_modules/estree-walker/src/walker.js
|
|
4
4
|
/**
|
|
5
5
|
* @typedef { import('estree').Node} Node
|
|
@@ -5553,7 +5553,7 @@ const _path = {
|
|
|
5553
5553
|
};
|
|
5554
5554
|
//#endregion
|
|
5555
5555
|
//#region ../../node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/index.mjs
|
|
5556
|
-
const delimiter = globalThis.process?.platform === "win32" ? ";" : ":";
|
|
5556
|
+
const delimiter = /* @__PURE__ */ (() => globalThis.process?.platform === "win32" ? ";" : ":")();
|
|
5557
5557
|
const _platforms = {
|
|
5558
5558
|
posix: void 0,
|
|
5559
5559
|
win32: void 0
|
package/dist/node/index.d.mts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { ReactVixtOptions } from "./node.mjs";
|
|
2
|
-
import * as _$_vixt_core0 from "@vixt/core";
|
|
3
|
-
import * as _$vite from "vite";
|
|
4
2
|
|
|
5
3
|
//#region src/node/index.d.ts
|
|
6
4
|
/** @hidden */
|
|
7
|
-
declare const _default: (options?:
|
|
5
|
+
declare const _default: (options?: import("@vixt/core").VixtOptions | undefined) => import("vite").PluginOption;
|
|
8
6
|
//#endregion
|
|
9
|
-
export { ReactVixtOptions, _default as default };
|
|
7
|
+
export { type ReactVixtOptions, _default as default };
|
package/dist/node/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as __toESM } from "./chunk-
|
|
2
|
-
import { t as require_lib } from "./lib-
|
|
3
|
-
import { c as resolvePathSync } from "./dist-
|
|
4
|
-
import { t as preset_react_default } from "./preset-react-
|
|
1
|
+
import { r as __toESM } from "./chunk-DnnnRqeS.mjs";
|
|
2
|
+
import { t as require_lib } from "./lib-BJ7U9lm_.mjs";
|
|
3
|
+
import { c as resolvePathSync } from "./dist-CoEoJGXV.mjs";
|
|
4
|
+
import { t as preset_react_default } from "./preset-react-BTKKeG54.mjs";
|
|
5
5
|
import virtual_root_component_default from "./modules/virtual-root-component.mjs";
|
|
6
6
|
import virtual_setup_layouts_default from "./modules/virtual-setup-layouts.mjs";
|
|
7
7
|
import { createVixtPlugin } from "@vixt/core";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __require, t as __commonJSMin } from "./chunk-
|
|
1
|
+
import { n as __require, t as __commonJSMin } from "./chunk-DnnnRqeS.mjs";
|
|
2
2
|
//#region ../../node_modules/.pnpm/universalify@2.0.1/node_modules/universalify/index.js
|
|
3
3
|
var require_universalify = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4
4
|
exports.fromCallback = function(fn) {
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import * as _$vite from "vite";
|
|
2
|
-
|
|
3
1
|
//#region src/node/modules/components.d.ts
|
|
4
2
|
interface ComponentResolverOptions {
|
|
5
3
|
dirs?: string[];
|
|
6
4
|
dts?: string | boolean;
|
|
7
5
|
}
|
|
8
|
-
declare const _default: (options?: ComponentResolverOptions | undefined) =>
|
|
6
|
+
declare const _default: (options?: ComponentResolverOptions | undefined) => import("vite").PluginOption;
|
|
9
7
|
//#endregion
|
|
10
8
|
export { ComponentResolverOptions, _default as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as components_default } from "../components-
|
|
1
|
+
import { t as components_default } from "../components-Dsb3rw2n.mjs";
|
|
2
2
|
export { components_default as default };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import * as _$_vixt_core0 from "@vixt/core";
|
|
2
1
|
import { VixtOptions } from "@vixt/core";
|
|
3
2
|
|
|
4
3
|
//#region src/node/modules/preset-react.d.ts
|
|
5
|
-
declare const _default:
|
|
4
|
+
declare const _default: import("@vixt/core").VixtModule<VixtOptions>;
|
|
6
5
|
//#endregion
|
|
7
6
|
export { _default as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as preset_react_default } from "../preset-react-
|
|
1
|
+
import { t as preset_react_default } from "../preset-react-BTKKeG54.mjs";
|
|
2
2
|
export { preset_react_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as __toESM } from "../chunk-
|
|
2
|
-
import { t as require_lib } from "../lib-
|
|
1
|
+
import { r as __toESM } from "../chunk-DnnnRqeS.mjs";
|
|
2
|
+
import { t as require_lib } from "../lib-BJ7U9lm_.mjs";
|
|
3
3
|
import extractComments from "extract-comments";
|
|
4
4
|
import { parse } from "yaml";
|
|
5
5
|
//#region src/node/modules/route-block.ts
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import * as _$_vixt_core0 from "@vixt/core";
|
|
2
|
-
|
|
3
1
|
//#region src/node/modules/virtual-root-component.d.ts
|
|
4
2
|
declare function isEmptyCode(code?: string): boolean;
|
|
5
|
-
declare const _default:
|
|
3
|
+
declare const _default: import("@vixt/core").VixtModule<import("@vixt/core").ModuleOptions>;
|
|
6
4
|
//#endregion
|
|
7
5
|
export { _default as default, isEmptyCode };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as __toESM } from "../chunk-
|
|
2
|
-
import { t as require_lib } from "../lib-
|
|
3
|
-
import { c as resolvePathSync, l as posix } from "../dist-
|
|
1
|
+
import { r as __toESM } from "../chunk-DnnnRqeS.mjs";
|
|
2
|
+
import { t as require_lib } from "../lib-BJ7U9lm_.mjs";
|
|
3
|
+
import { c as resolvePathSync, l as posix } from "../dist-CoEoJGXV.mjs";
|
|
4
4
|
import { defineVixtModule } from "@vixt/core";
|
|
5
5
|
import { parseAst } from "vite";
|
|
6
6
|
//#region src/node/modules/virtual-root-component.ts
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import * as _$_vixt_core0 from "@vixt/core";
|
|
2
|
-
|
|
3
1
|
//#region src/node/modules/virtual-setup-layouts.d.ts
|
|
4
|
-
declare const _default:
|
|
2
|
+
declare const _default: import("@vixt/core").VixtModule<import("@vixt/core").ModuleOptions>;
|
|
5
3
|
//#endregion
|
|
6
4
|
export { _default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as components_default } from "./components-
|
|
1
|
+
import { t as components_default } from "./components-Dsb3rw2n.mjs";
|
|
2
2
|
import { extendRoute } from "./modules/route-block.mjs";
|
|
3
3
|
import { defineVixtModule, resolveLayersDirs } from "@vixt/core";
|
|
4
4
|
import React from "@vitejs/plugin-react";
|
package/package.json
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vixt/react",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.11.
|
|
4
|
+
"version": "0.11.2",
|
|
5
5
|
"author": "SoulLyoko<https://github.com/SoulLyoko>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://soullyoko.github.io/vixt/",
|
|
8
|
-
"repository":
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/SoulLyoko/vixt.git"
|
|
11
|
+
},
|
|
9
12
|
"keywords": [
|
|
10
13
|
"vixt",
|
|
11
14
|
"vite",
|
|
@@ -24,20 +27,20 @@
|
|
|
24
27
|
"dist"
|
|
25
28
|
],
|
|
26
29
|
"dependencies": {
|
|
27
|
-
"@types/react": "^19.2.
|
|
30
|
+
"@types/react": "^19.2.17",
|
|
28
31
|
"@types/react-dom": "^19.2.3",
|
|
29
32
|
"@vitejs/plugin-react": "^6.0.2",
|
|
30
33
|
"ahooks": "^3.9.7",
|
|
31
34
|
"extract-comments": "^1.1.0",
|
|
32
35
|
"fast-glob": "^3.3.3",
|
|
33
|
-
"react": "^19.2.
|
|
34
|
-
"react-dom": "^19.2.
|
|
35
|
-
"react-router": "^7.
|
|
36
|
+
"react": "^19.2.7",
|
|
37
|
+
"react-dom": "^19.2.7",
|
|
38
|
+
"react-router": "^7.17.0",
|
|
36
39
|
"unocss": "^66.7.0",
|
|
37
40
|
"unplugin-vue-components": "28.0.0",
|
|
38
41
|
"vite-plugin-pages": "^0.33.3",
|
|
39
42
|
"vite-plugin-vue-layouts": "^0.11.0",
|
|
40
43
|
"yaml": "^2.9.0",
|
|
41
|
-
"@vixt/core": "0.11.
|
|
44
|
+
"@vixt/core": "0.11.2"
|
|
42
45
|
}
|
|
43
46
|
}
|
|
File without changes
|