@zthun/romulator-web 1.3.2 → 1.3.3
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/CHANGELOG.md +8 -0
- package/dist/assets/{index-Dl0pX58K.js → index-BQrf1M1b.js} +126 -111
- package/dist/index.html +1 -1
- package/package.json +20 -22
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.3.3](https://github.com/zthun/romulator/compare/v1.3.2...v1.3.3) (2025-09-06)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @zthun/romulator-web
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [1.3.2](https://github.com/zthun/romulator/compare/v1.3.1...v1.3.2) (2025-07-18)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @zthun/romulator-web
|
|
@@ -1412,7 +1412,7 @@ function _defineProperties$6$2(target, props) {
|
|
|
1412
1412
|
}
|
|
1413
1413
|
}
|
|
1414
1414
|
function _create_class$6$2(Constructor, protoProps, staticProps) {
|
|
1415
|
-
_defineProperties$6$2(Constructor.prototype, protoProps);
|
|
1415
|
+
if (protoProps) _defineProperties$6$2(Constructor.prototype, protoProps);
|
|
1416
1416
|
return Constructor;
|
|
1417
1417
|
}
|
|
1418
1418
|
function _define_property$5$3(obj, key, value) {
|
|
@@ -1658,7 +1658,7 @@ function _defineProperties$5$2(target, props) {
|
|
|
1658
1658
|
}
|
|
1659
1659
|
}
|
|
1660
1660
|
function _create_class$5$2(Constructor, protoProps, staticProps) {
|
|
1661
|
-
_defineProperties$5$2(Constructor.prototype, protoProps);
|
|
1661
|
+
if (protoProps) _defineProperties$5$2(Constructor.prototype, protoProps);
|
|
1662
1662
|
return Constructor;
|
|
1663
1663
|
}
|
|
1664
1664
|
function _define_property$4$4(obj, key, value) {
|
|
@@ -2011,7 +2011,7 @@ function _defineProperties$3$3(target, props) {
|
|
|
2011
2011
|
}
|
|
2012
2012
|
}
|
|
2013
2013
|
function _create_class$3$3(Constructor, protoProps, staticProps) {
|
|
2014
|
-
_defineProperties$3$3(Constructor.prototype, protoProps);
|
|
2014
|
+
if (protoProps) _defineProperties$3$3(Constructor.prototype, protoProps);
|
|
2015
2015
|
return Constructor;
|
|
2016
2016
|
}
|
|
2017
2017
|
function _define_property$2$6(obj, key, value) {
|
|
@@ -9063,7 +9063,7 @@ function requireReact_production () {
|
|
|
9063
9063
|
react_production.useTransition = function () {
|
|
9064
9064
|
return ReactSharedInternals.H.useTransition();
|
|
9065
9065
|
};
|
|
9066
|
-
react_production.version = "19.1.
|
|
9066
|
+
react_production.version = "19.1.1";
|
|
9067
9067
|
return react_production;
|
|
9068
9068
|
}
|
|
9069
9069
|
|
|
@@ -11785,7 +11785,7 @@ function _defineProperties$j$1(target, props) {
|
|
|
11785
11785
|
}
|
|
11786
11786
|
}
|
|
11787
11787
|
function _create_class$j$1(Constructor, protoProps, staticProps) {
|
|
11788
|
-
_defineProperties$j$1(Constructor.prototype, protoProps);
|
|
11788
|
+
if (protoProps) _defineProperties$j$1(Constructor.prototype, protoProps);
|
|
11789
11789
|
return Constructor;
|
|
11790
11790
|
}
|
|
11791
11791
|
function _define_property$c$1(obj, key, value) {
|
|
@@ -12018,7 +12018,7 @@ function _defineProperties$i$1(target, props) {
|
|
|
12018
12018
|
}
|
|
12019
12019
|
}
|
|
12020
12020
|
function _create_class$i$1(Constructor, protoProps, staticProps) {
|
|
12021
|
-
_defineProperties$i$1(Constructor.prototype, protoProps);
|
|
12021
|
+
if (protoProps) _defineProperties$i$1(Constructor.prototype, protoProps);
|
|
12022
12022
|
return Constructor;
|
|
12023
12023
|
}
|
|
12024
12024
|
function _define_property$b$1(obj, key, value) {
|
|
@@ -12196,7 +12196,7 @@ function _defineProperties$h$1(target, props) {
|
|
|
12196
12196
|
}
|
|
12197
12197
|
}
|
|
12198
12198
|
function _create_class$h$1(Constructor, protoProps, staticProps) {
|
|
12199
|
-
_defineProperties$h$1(Constructor.prototype, protoProps);
|
|
12199
|
+
if (protoProps) _defineProperties$h$1(Constructor.prototype, protoProps);
|
|
12200
12200
|
return Constructor;
|
|
12201
12201
|
}
|
|
12202
12202
|
function _define_property$a$1(obj, key, value) {
|
|
@@ -12365,7 +12365,7 @@ function _defineProperties$g$1(target, props) {
|
|
|
12365
12365
|
}
|
|
12366
12366
|
}
|
|
12367
12367
|
function _create_class$g$1(Constructor, protoProps, staticProps) {
|
|
12368
|
-
_defineProperties$g$1(Constructor.prototype, protoProps);
|
|
12368
|
+
if (protoProps) _defineProperties$g$1(Constructor.prototype, protoProps);
|
|
12369
12369
|
return Constructor;
|
|
12370
12370
|
}
|
|
12371
12371
|
function _define_property$9$1(obj, key, value) {
|
|
@@ -12527,7 +12527,7 @@ function _defineProperties$f$1(target, props) {
|
|
|
12527
12527
|
}
|
|
12528
12528
|
}
|
|
12529
12529
|
function _create_class$f$1(Constructor, protoProps, staticProps) {
|
|
12530
|
-
_defineProperties$f$1(Constructor.prototype, protoProps);
|
|
12530
|
+
if (protoProps) _defineProperties$f$1(Constructor.prototype, protoProps);
|
|
12531
12531
|
return Constructor;
|
|
12532
12532
|
}
|
|
12533
12533
|
/**
|
|
@@ -12608,7 +12608,7 @@ function _defineProperties$e$1(target, props) {
|
|
|
12608
12608
|
}
|
|
12609
12609
|
}
|
|
12610
12610
|
function _create_class$e$1(Constructor, protoProps, staticProps) {
|
|
12611
|
-
_defineProperties$e$1(Constructor.prototype, protoProps);
|
|
12611
|
+
if (protoProps) _defineProperties$e$1(Constructor.prototype, protoProps);
|
|
12612
12612
|
return Constructor;
|
|
12613
12613
|
}
|
|
12614
12614
|
function _iterable_to_array_limit$2(arr, i) {
|
|
@@ -12812,7 +12812,7 @@ function _defineProperties$d$1(target, props) {
|
|
|
12812
12812
|
}
|
|
12813
12813
|
}
|
|
12814
12814
|
function _create_class$d$1(Constructor, protoProps, staticProps) {
|
|
12815
|
-
_defineProperties$d$1(Constructor.prototype, protoProps);
|
|
12815
|
+
if (protoProps) _defineProperties$d$1(Constructor.prototype, protoProps);
|
|
12816
12816
|
return Constructor;
|
|
12817
12817
|
}
|
|
12818
12818
|
/**
|
|
@@ -12864,7 +12864,7 @@ function _defineProperties$c$1(target, props) {
|
|
|
12864
12864
|
}
|
|
12865
12865
|
}
|
|
12866
12866
|
function _create_class$c$1(Constructor, protoProps, staticProps) {
|
|
12867
|
-
_defineProperties$c$1(Constructor.prototype, protoProps);
|
|
12867
|
+
if (protoProps) _defineProperties$c$1(Constructor.prototype, protoProps);
|
|
12868
12868
|
return Constructor;
|
|
12869
12869
|
}
|
|
12870
12870
|
/**
|
|
@@ -12904,7 +12904,7 @@ function _defineProperties$b$1(target, props) {
|
|
|
12904
12904
|
}
|
|
12905
12905
|
}
|
|
12906
12906
|
function _create_class$b$1(Constructor, protoProps, staticProps) {
|
|
12907
|
-
_defineProperties$b$1(Constructor.prototype, protoProps);
|
|
12907
|
+
if (protoProps) _defineProperties$b$1(Constructor.prototype, protoProps);
|
|
12908
12908
|
return Constructor;
|
|
12909
12909
|
}
|
|
12910
12910
|
function _define_property$8$1(obj, key, value) {
|
|
@@ -13018,7 +13018,7 @@ function _defineProperties$6$1(target, props) {
|
|
|
13018
13018
|
}
|
|
13019
13019
|
}
|
|
13020
13020
|
function _create_class$6$1(Constructor, protoProps, staticProps) {
|
|
13021
|
-
_defineProperties$6$1(Constructor.prototype, protoProps);
|
|
13021
|
+
if (protoProps) _defineProperties$6$1(Constructor.prototype, protoProps);
|
|
13022
13022
|
return Constructor;
|
|
13023
13023
|
}
|
|
13024
13024
|
function _define_property$4$2(obj, key, value) {
|
|
@@ -13159,7 +13159,7 @@ function _defineProperties$5$1(target, props) {
|
|
|
13159
13159
|
}
|
|
13160
13160
|
}
|
|
13161
13161
|
function _create_class$5$1(Constructor, protoProps, staticProps) {
|
|
13162
|
-
_defineProperties$5$1(Constructor.prototype, protoProps);
|
|
13162
|
+
if (protoProps) _defineProperties$5$1(Constructor.prototype, protoProps);
|
|
13163
13163
|
return Constructor;
|
|
13164
13164
|
}
|
|
13165
13165
|
function _iterable_to_array_limit$1$2(arr, i) {
|
|
@@ -13272,7 +13272,7 @@ function _defineProperties$4$1(target, props) {
|
|
|
13272
13272
|
}
|
|
13273
13273
|
}
|
|
13274
13274
|
function _create_class$4$1(Constructor, protoProps, staticProps) {
|
|
13275
|
-
_defineProperties$4$1(Constructor.prototype, protoProps);
|
|
13275
|
+
if (protoProps) _defineProperties$4$1(Constructor.prototype, protoProps);
|
|
13276
13276
|
return Constructor;
|
|
13277
13277
|
}
|
|
13278
13278
|
/**
|
|
@@ -13322,7 +13322,7 @@ function _defineProperties$2$2(target, props) {
|
|
|
13322
13322
|
}
|
|
13323
13323
|
}
|
|
13324
13324
|
function _create_class$2$2(Constructor, protoProps, staticProps) {
|
|
13325
|
-
_defineProperties$2$2(Constructor.prototype, protoProps);
|
|
13325
|
+
if (protoProps) _defineProperties$2$2(Constructor.prototype, protoProps);
|
|
13326
13326
|
return Constructor;
|
|
13327
13327
|
}
|
|
13328
13328
|
function _define_property$2$3(obj, key, value) {
|
|
@@ -13526,7 +13526,7 @@ function _defineProperties$1$3(target, props) {
|
|
|
13526
13526
|
}
|
|
13527
13527
|
}
|
|
13528
13528
|
function _create_class$1$3(Constructor, protoProps, staticProps) {
|
|
13529
|
-
_defineProperties$1$3(Constructor.prototype, protoProps);
|
|
13529
|
+
if (protoProps) _defineProperties$1$3(Constructor.prototype, protoProps);
|
|
13530
13530
|
return Constructor;
|
|
13531
13531
|
}
|
|
13532
13532
|
function _define_property$1$3(obj, key, value) {
|
|
@@ -13768,7 +13768,7 @@ function _defineProperties$E(target, props) {
|
|
|
13768
13768
|
}
|
|
13769
13769
|
}
|
|
13770
13770
|
function _create_class$E(Constructor, protoProps, staticProps) {
|
|
13771
|
-
_defineProperties$E(Constructor.prototype, protoProps);
|
|
13771
|
+
if (protoProps) _defineProperties$E(Constructor.prototype, protoProps);
|
|
13772
13772
|
return Constructor;
|
|
13773
13773
|
}
|
|
13774
13774
|
function _define_property$w(obj, key, value) {
|
|
@@ -14582,7 +14582,7 @@ function _defineProperties$D(target, props) {
|
|
|
14582
14582
|
}
|
|
14583
14583
|
}
|
|
14584
14584
|
function _create_class$D(Constructor, protoProps, staticProps) {
|
|
14585
|
-
_defineProperties$D(Constructor.prototype, protoProps);
|
|
14585
|
+
if (protoProps) _defineProperties$D(Constructor.prototype, protoProps);
|
|
14586
14586
|
return Constructor;
|
|
14587
14587
|
}
|
|
14588
14588
|
function _define_property$s(obj, key, value) {
|
|
@@ -15445,7 +15445,7 @@ function rulesheet (callback) {
|
|
|
15445
15445
|
}
|
|
15446
15446
|
|
|
15447
15447
|
/**
|
|
15448
|
-
* react-router v7.
|
|
15448
|
+
* react-router v7.8.2
|
|
15449
15449
|
*
|
|
15450
15450
|
* Copyright (c) Remix Software Inc.
|
|
15451
15451
|
*
|
|
@@ -15697,8 +15697,8 @@ function matchRoutesImpl(routes, locationArg, basename, allowPartial) {
|
|
|
15697
15697
|
}
|
|
15698
15698
|
return matches;
|
|
15699
15699
|
}
|
|
15700
|
-
function flattenRoutes(routes, branches = [], parentsMeta = [], parentPath = "") {
|
|
15701
|
-
let flattenRoute = (route, index, relativePath) => {
|
|
15700
|
+
function flattenRoutes(routes, branches = [], parentsMeta = [], parentPath = "", _hasParentOptionalSegments = false) {
|
|
15701
|
+
let flattenRoute = (route, index, hasParentOptionalSegments = _hasParentOptionalSegments, relativePath) => {
|
|
15702
15702
|
let meta = {
|
|
15703
15703
|
relativePath: relativePath === void 0 ? route.path || "" : relativePath,
|
|
15704
15704
|
caseSensitive: route.caseSensitive === true,
|
|
@@ -15706,6 +15706,9 @@ function flattenRoutes(routes, branches = [], parentsMeta = [], parentPath = "")
|
|
|
15706
15706
|
route
|
|
15707
15707
|
};
|
|
15708
15708
|
if (meta.relativePath.startsWith("/")) {
|
|
15709
|
+
if (!meta.relativePath.startsWith(parentPath) && hasParentOptionalSegments) {
|
|
15710
|
+
return;
|
|
15711
|
+
}
|
|
15709
15712
|
invariant(
|
|
15710
15713
|
meta.relativePath.startsWith(parentPath),
|
|
15711
15714
|
`Absolute route path "${meta.relativePath}" nested under path "${parentPath}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`
|
|
@@ -15721,7 +15724,13 @@ function flattenRoutes(routes, branches = [], parentsMeta = [], parentPath = "")
|
|
|
15721
15724
|
route.index !== true,
|
|
15722
15725
|
`Index routes must not have child routes. Please remove all child routes from route path "${path}".`
|
|
15723
15726
|
);
|
|
15724
|
-
flattenRoutes(
|
|
15727
|
+
flattenRoutes(
|
|
15728
|
+
route.children,
|
|
15729
|
+
branches,
|
|
15730
|
+
routesMeta,
|
|
15731
|
+
path,
|
|
15732
|
+
hasParentOptionalSegments
|
|
15733
|
+
);
|
|
15725
15734
|
}
|
|
15726
15735
|
if (route.path == null && !route.index) {
|
|
15727
15736
|
return;
|
|
@@ -15737,7 +15746,7 @@ function flattenRoutes(routes, branches = [], parentsMeta = [], parentPath = "")
|
|
|
15737
15746
|
flattenRoute(route, index);
|
|
15738
15747
|
} else {
|
|
15739
15748
|
for (let exploded of explodeOptionalSegments(route.path)) {
|
|
15740
|
-
flattenRoute(route, index, exploded);
|
|
15749
|
+
flattenRoute(route, index, true, exploded);
|
|
15741
15750
|
}
|
|
15742
15751
|
}
|
|
15743
15752
|
});
|
|
@@ -15901,7 +15910,7 @@ function compilePath(path, caseSensitive = false, end = true) {
|
|
|
15901
15910
|
params.push({ paramName, isOptional: isOptional != null });
|
|
15902
15911
|
return isOptional ? "/?([^\\/]+)?" : "/([^\\/]+)";
|
|
15903
15912
|
}
|
|
15904
|
-
);
|
|
15913
|
+
).replace(/\/([\w-]+)\?(\/|$)/g, "(/$1)?$2");
|
|
15905
15914
|
if (path.endsWith("*")) {
|
|
15906
15915
|
params.push({ paramName: "*" });
|
|
15907
15916
|
regexpSource += path === "*" || path === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$";
|
|
@@ -16183,7 +16192,7 @@ function useResolvedPath(to, { relative } = {}) {
|
|
|
16183
16192
|
function useRoutes(routes, locationArg) {
|
|
16184
16193
|
return useRoutesImpl(routes, locationArg);
|
|
16185
16194
|
}
|
|
16186
|
-
function useRoutesImpl(routes, locationArg, dataRouterState, future) {
|
|
16195
|
+
function useRoutesImpl(routes, locationArg, dataRouterState, unstable_onError, future) {
|
|
16187
16196
|
invariant(
|
|
16188
16197
|
useInRouterContext(),
|
|
16189
16198
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
@@ -16255,6 +16264,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
16255
16264
|
),
|
|
16256
16265
|
parentMatches,
|
|
16257
16266
|
dataRouterState,
|
|
16267
|
+
unstable_onError,
|
|
16258
16268
|
future
|
|
16259
16269
|
);
|
|
16260
16270
|
if (locationArg && renderedMatches) {
|
|
@@ -16324,11 +16334,14 @@ var RenderErrorBoundary = class extends reactExports.Component {
|
|
|
16324
16334
|
};
|
|
16325
16335
|
}
|
|
16326
16336
|
componentDidCatch(error, errorInfo) {
|
|
16327
|
-
|
|
16328
|
-
|
|
16329
|
-
|
|
16330
|
-
|
|
16331
|
-
|
|
16337
|
+
if (this.props.unstable_onError) {
|
|
16338
|
+
this.props.unstable_onError(error, errorInfo);
|
|
16339
|
+
} else {
|
|
16340
|
+
console.error(
|
|
16341
|
+
"React Router caught the following error during render",
|
|
16342
|
+
error
|
|
16343
|
+
);
|
|
16344
|
+
}
|
|
16332
16345
|
}
|
|
16333
16346
|
render() {
|
|
16334
16347
|
return this.state.error !== void 0 ? /* @__PURE__ */ reactExports.createElement(RouteContext.Provider, { value: this.props.routeContext }, /* @__PURE__ */ reactExports.createElement(
|
|
@@ -16347,7 +16360,7 @@ function RenderedRoute({ routeContext, match, children }) {
|
|
|
16347
16360
|
}
|
|
16348
16361
|
return /* @__PURE__ */ reactExports.createElement(RouteContext.Provider, { value: routeContext }, children);
|
|
16349
16362
|
}
|
|
16350
|
-
function _renderMatches(matches, parentMatches = [], dataRouterState = null, future = null) {
|
|
16363
|
+
function _renderMatches(matches, parentMatches = [], dataRouterState = null, unstable_onError = null, future = null) {
|
|
16351
16364
|
if (matches == null) {
|
|
16352
16365
|
if (!dataRouterState) {
|
|
16353
16366
|
return null;
|
|
@@ -16400,68 +16413,72 @@ function _renderMatches(matches, parentMatches = [], dataRouterState = null, fut
|
|
|
16400
16413
|
}
|
|
16401
16414
|
}
|
|
16402
16415
|
}
|
|
16403
|
-
return renderedMatches.reduceRight(
|
|
16404
|
-
|
|
16405
|
-
|
|
16406
|
-
|
|
16407
|
-
|
|
16408
|
-
|
|
16409
|
-
|
|
16410
|
-
|
|
16411
|
-
|
|
16412
|
-
if (
|
|
16413
|
-
|
|
16414
|
-
|
|
16415
|
-
|
|
16416
|
-
|
|
16417
|
-
|
|
16418
|
-
|
|
16419
|
-
|
|
16420
|
-
|
|
16421
|
-
|
|
16422
|
-
|
|
16423
|
-
|
|
16424
|
-
|
|
16425
|
-
}
|
|
16426
|
-
let matches2 = parentMatches.concat(renderedMatches.slice(0, index + 1));
|
|
16427
|
-
let getChildren = () => {
|
|
16428
|
-
let children;
|
|
16429
|
-
if (error) {
|
|
16430
|
-
children = errorElement;
|
|
16431
|
-
} else if (shouldRenderHydrateFallback) {
|
|
16432
|
-
children = hydrateFallbackElement;
|
|
16433
|
-
} else if (match.route.Component) {
|
|
16434
|
-
children = /* @__PURE__ */ reactExports.createElement(match.route.Component, null);
|
|
16435
|
-
} else if (match.route.element) {
|
|
16436
|
-
children = match.route.element;
|
|
16437
|
-
} else {
|
|
16438
|
-
children = outlet;
|
|
16439
|
-
}
|
|
16440
|
-
return /* @__PURE__ */ reactExports.createElement(
|
|
16441
|
-
RenderedRoute,
|
|
16442
|
-
{
|
|
16443
|
-
match,
|
|
16444
|
-
routeContext: {
|
|
16445
|
-
outlet,
|
|
16446
|
-
matches: matches2,
|
|
16447
|
-
isDataRoute: dataRouterState != null
|
|
16448
|
-
},
|
|
16449
|
-
children
|
|
16416
|
+
return renderedMatches.reduceRight(
|
|
16417
|
+
(outlet, match, index) => {
|
|
16418
|
+
let error;
|
|
16419
|
+
let shouldRenderHydrateFallback = false;
|
|
16420
|
+
let errorElement = null;
|
|
16421
|
+
let hydrateFallbackElement = null;
|
|
16422
|
+
if (dataRouterState) {
|
|
16423
|
+
error = errors && match.route.id ? errors[match.route.id] : void 0;
|
|
16424
|
+
errorElement = match.route.errorElement || defaultErrorElement;
|
|
16425
|
+
if (renderFallback) {
|
|
16426
|
+
if (fallbackIndex < 0 && index === 0) {
|
|
16427
|
+
warningOnce(
|
|
16428
|
+
"route-fallback",
|
|
16429
|
+
false,
|
|
16430
|
+
"No `HydrateFallback` element provided to render during initial hydration"
|
|
16431
|
+
);
|
|
16432
|
+
shouldRenderHydrateFallback = true;
|
|
16433
|
+
hydrateFallbackElement = null;
|
|
16434
|
+
} else if (fallbackIndex === index) {
|
|
16435
|
+
shouldRenderHydrateFallback = true;
|
|
16436
|
+
hydrateFallbackElement = match.route.hydrateFallbackElement || null;
|
|
16437
|
+
}
|
|
16450
16438
|
}
|
|
16451
|
-
);
|
|
16452
|
-
};
|
|
16453
|
-
return dataRouterState && (match.route.ErrorBoundary || match.route.errorElement || index === 0) ? /* @__PURE__ */ reactExports.createElement(
|
|
16454
|
-
RenderErrorBoundary,
|
|
16455
|
-
{
|
|
16456
|
-
location: dataRouterState.location,
|
|
16457
|
-
revalidation: dataRouterState.revalidation,
|
|
16458
|
-
component: errorElement,
|
|
16459
|
-
error,
|
|
16460
|
-
children: getChildren(),
|
|
16461
|
-
routeContext: { outlet: null, matches: matches2, isDataRoute: true }
|
|
16462
16439
|
}
|
|
16463
|
-
|
|
16464
|
-
|
|
16440
|
+
let matches2 = parentMatches.concat(renderedMatches.slice(0, index + 1));
|
|
16441
|
+
let getChildren = () => {
|
|
16442
|
+
let children;
|
|
16443
|
+
if (error) {
|
|
16444
|
+
children = errorElement;
|
|
16445
|
+
} else if (shouldRenderHydrateFallback) {
|
|
16446
|
+
children = hydrateFallbackElement;
|
|
16447
|
+
} else if (match.route.Component) {
|
|
16448
|
+
children = /* @__PURE__ */ reactExports.createElement(match.route.Component, null);
|
|
16449
|
+
} else if (match.route.element) {
|
|
16450
|
+
children = match.route.element;
|
|
16451
|
+
} else {
|
|
16452
|
+
children = outlet;
|
|
16453
|
+
}
|
|
16454
|
+
return /* @__PURE__ */ reactExports.createElement(
|
|
16455
|
+
RenderedRoute,
|
|
16456
|
+
{
|
|
16457
|
+
match,
|
|
16458
|
+
routeContext: {
|
|
16459
|
+
outlet,
|
|
16460
|
+
matches: matches2,
|
|
16461
|
+
isDataRoute: dataRouterState != null
|
|
16462
|
+
},
|
|
16463
|
+
children
|
|
16464
|
+
}
|
|
16465
|
+
);
|
|
16466
|
+
};
|
|
16467
|
+
return dataRouterState && (match.route.ErrorBoundary || match.route.errorElement || index === 0) ? /* @__PURE__ */ reactExports.createElement(
|
|
16468
|
+
RenderErrorBoundary,
|
|
16469
|
+
{
|
|
16470
|
+
location: dataRouterState.location,
|
|
16471
|
+
revalidation: dataRouterState.revalidation,
|
|
16472
|
+
component: errorElement,
|
|
16473
|
+
error,
|
|
16474
|
+
children: getChildren(),
|
|
16475
|
+
routeContext: { outlet: null, matches: matches2, isDataRoute: true },
|
|
16476
|
+
unstable_onError
|
|
16477
|
+
}
|
|
16478
|
+
) : getChildren();
|
|
16479
|
+
},
|
|
16480
|
+
null
|
|
16481
|
+
);
|
|
16465
16482
|
}
|
|
16466
16483
|
function getDataRouterConsoleError(hookName) {
|
|
16467
16484
|
return `${hookName} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
@@ -16549,9 +16566,10 @@ reactExports.memo(DataRoutes);
|
|
|
16549
16566
|
function DataRoutes({
|
|
16550
16567
|
routes,
|
|
16551
16568
|
future,
|
|
16552
|
-
state
|
|
16569
|
+
state,
|
|
16570
|
+
unstable_onError
|
|
16553
16571
|
}) {
|
|
16554
|
-
return useRoutesImpl(routes, void 0, state, future);
|
|
16572
|
+
return useRoutesImpl(routes, void 0, state, unstable_onError, future);
|
|
16555
16573
|
}
|
|
16556
16574
|
function Navigate({
|
|
16557
16575
|
to,
|
|
@@ -16585,7 +16603,7 @@ function Navigate({
|
|
|
16585
16603
|
}, [navigate, jsonPath, relative, replace2, state]);
|
|
16586
16604
|
return null;
|
|
16587
16605
|
}
|
|
16588
|
-
function Route(
|
|
16606
|
+
function Route(props) {
|
|
16589
16607
|
invariant(
|
|
16590
16608
|
false,
|
|
16591
16609
|
`A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.`
|
|
@@ -17063,10 +17081,7 @@ function composeEventHandlers(theirHandler, ourHandler) {
|
|
|
17063
17081
|
}
|
|
17064
17082
|
};
|
|
17065
17083
|
}
|
|
17066
|
-
function PrefetchPageLinks({
|
|
17067
|
-
page,
|
|
17068
|
-
...dataLinkProps
|
|
17069
|
-
}) {
|
|
17084
|
+
function PrefetchPageLinks({ page, ...linkProps }) {
|
|
17070
17085
|
let { router } = useDataRouterContext2();
|
|
17071
17086
|
let matches = reactExports.useMemo(
|
|
17072
17087
|
() => matchRoutes(router.routes, page, router.basename),
|
|
@@ -17075,7 +17090,7 @@ function PrefetchPageLinks({
|
|
|
17075
17090
|
if (!matches) {
|
|
17076
17091
|
return null;
|
|
17077
17092
|
}
|
|
17078
|
-
return /* @__PURE__ */ reactExports.createElement(PrefetchPageLinksImpl, { page, matches, ...
|
|
17093
|
+
return /* @__PURE__ */ reactExports.createElement(PrefetchPageLinksImpl, { page, matches, ...linkProps });
|
|
17079
17094
|
}
|
|
17080
17095
|
function useKeyedPrefetchLinks(matches) {
|
|
17081
17096
|
let { manifest, routeModules } = useFrameworkContext();
|
|
@@ -17174,7 +17189,7 @@ function PrefetchPageLinksImpl({
|
|
|
17174
17189
|
return /* @__PURE__ */ reactExports.createElement(reactExports.Fragment, null, dataHrefs.map((href) => /* @__PURE__ */ reactExports.createElement("link", { key: href, rel: "prefetch", as: "fetch", href, ...linkProps })), moduleHrefs.map((href) => /* @__PURE__ */ reactExports.createElement("link", { key: href, rel: "modulepreload", href, ...linkProps })), keyedPrefetchLinks.map(({ key, link }) => (
|
|
17175
17190
|
// these don't spread `linkProps` because they are full link descriptors
|
|
17176
17191
|
// already with their own props
|
|
17177
|
-
/* @__PURE__ */ reactExports.createElement("link", { key, ...link })
|
|
17192
|
+
/* @__PURE__ */ reactExports.createElement("link", { key, nonce: linkProps.nonce, ...link })
|
|
17178
17193
|
)));
|
|
17179
17194
|
}
|
|
17180
17195
|
function mergeRefs(...refs) {
|
|
@@ -17192,7 +17207,7 @@ var isBrowser = typeof window !== "undefined" && typeof window.document !== "und
|
|
|
17192
17207
|
try {
|
|
17193
17208
|
if (isBrowser) {
|
|
17194
17209
|
window.__reactRouterVersion = // @ts-expect-error
|
|
17195
|
-
"7.
|
|
17210
|
+
"7.8.2";
|
|
17196
17211
|
}
|
|
17197
17212
|
} catch (e) {
|
|
17198
17213
|
}
|
|
@@ -17537,7 +17552,7 @@ function useFormAction(action, { relative } = {}) {
|
|
|
17537
17552
|
}
|
|
17538
17553
|
return createPath(path);
|
|
17539
17554
|
}
|
|
17540
|
-
function useViewTransitionState(to,
|
|
17555
|
+
function useViewTransitionState(to, { relative } = {}) {
|
|
17541
17556
|
let vtContext = reactExports.useContext(ViewTransitionContext);
|
|
17542
17557
|
invariant(
|
|
17543
17558
|
vtContext != null,
|
|
@@ -17547,7 +17562,7 @@ function useViewTransitionState(to, opts = {}) {
|
|
|
17547
17562
|
"useViewTransitionState"
|
|
17548
17563
|
/* useViewTransitionState */
|
|
17549
17564
|
);
|
|
17550
|
-
let path = useResolvedPath(to, { relative
|
|
17565
|
+
let path = useResolvedPath(to, { relative });
|
|
17551
17566
|
if (!vtContext.isTransitioning) {
|
|
17552
17567
|
return false;
|
|
17553
17568
|
}
|
|
@@ -17773,7 +17788,7 @@ function requireReactDom_production () {
|
|
|
17773
17788
|
reactDom_production.useFormStatus = function () {
|
|
17774
17789
|
return ReactSharedInternals.H.useHostTransitionStatus();
|
|
17775
17790
|
};
|
|
17776
|
-
reactDom_production.version = "19.1.
|
|
17791
|
+
reactDom_production.version = "19.1.1";
|
|
17777
17792
|
return reactDom_production;
|
|
17778
17793
|
}
|
|
17779
17794
|
|
|
@@ -50533,14 +50548,14 @@ function requireReactDomClient_production () {
|
|
|
50533
50548
|
};
|
|
50534
50549
|
var isomorphicReactPackageVersion$jscomp$inline_1785 = React.version;
|
|
50535
50550
|
if (
|
|
50536
|
-
"19.1.
|
|
50551
|
+
"19.1.1" !==
|
|
50537
50552
|
isomorphicReactPackageVersion$jscomp$inline_1785
|
|
50538
50553
|
)
|
|
50539
50554
|
throw Error(
|
|
50540
50555
|
formatProdErrorMessage(
|
|
50541
50556
|
527,
|
|
50542
50557
|
isomorphicReactPackageVersion$jscomp$inline_1785,
|
|
50543
|
-
"19.1.
|
|
50558
|
+
"19.1.1"
|
|
50544
50559
|
)
|
|
50545
50560
|
);
|
|
50546
50561
|
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
|
@@ -50562,10 +50577,10 @@ function requireReactDomClient_production () {
|
|
|
50562
50577
|
};
|
|
50563
50578
|
var internals$jscomp$inline_2256 = {
|
|
50564
50579
|
bundleType: 0,
|
|
50565
|
-
version: "19.1.
|
|
50580
|
+
version: "19.1.1",
|
|
50566
50581
|
rendererPackageName: "react-dom",
|
|
50567
50582
|
currentDispatcherRef: ReactSharedInternals,
|
|
50568
|
-
reconcilerVersion: "19.1.
|
|
50583
|
+
reconcilerVersion: "19.1.1"
|
|
50569
50584
|
};
|
|
50570
50585
|
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
|
50571
50586
|
var hook$jscomp$inline_2257 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
|
@@ -50669,7 +50684,7 @@ function requireReactDomClient_production () {
|
|
|
50669
50684
|
listenToAllSupportedEvents(container);
|
|
50670
50685
|
return new ReactDOMHydrationRoot(initialChildren);
|
|
50671
50686
|
};
|
|
50672
|
-
reactDomClient_production.version = "19.1.
|
|
50687
|
+
reactDomClient_production.version = "19.1.1";
|
|
50673
50688
|
return reactDomClient_production;
|
|
50674
50689
|
}
|
|
50675
50690
|
|
package/dist/index.html
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>Romulator: Organize your Games</title>
|
|
7
|
-
<script type="module" crossorigin src="/assets/index-
|
|
7
|
+
<script type="module" crossorigin src="/assets/index-BQrf1M1b.js"></script>
|
|
8
8
|
</head>
|
|
9
9
|
<body>
|
|
10
10
|
<div id="zthunworks-romulator"></div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zthun/romulator-web",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.3",
|
|
4
4
|
"description": "Romulator frontend",
|
|
5
5
|
"author": "Anthony Bonta",
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,31 +18,29 @@
|
|
|
18
18
|
"access": "public"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@types/node": "^24.
|
|
22
|
-
"@
|
|
23
|
-
"@zthun/cirque": "^7.1.
|
|
24
|
-
"@zthun/
|
|
25
|
-
"@zthun/fashion-
|
|
26
|
-
"@zthun/fashion-
|
|
27
|
-
"@zthun/
|
|
28
|
-
"@zthun/helpful-
|
|
29
|
-
"@zthun/helpful-
|
|
30
|
-
"@zthun/
|
|
31
|
-
"@zthun/
|
|
32
|
-
"@zthun/
|
|
33
|
-
"@zthun/webigail-
|
|
34
|
-
"@zthun/webigail-
|
|
35
|
-
"@zthun/webigail-url": "^4.0.5",
|
|
21
|
+
"@types/node": "^24.3.1",
|
|
22
|
+
"@zthun/cirque": "^7.1.7",
|
|
23
|
+
"@zthun/cirque-du-react": "^7.1.7",
|
|
24
|
+
"@zthun/fashion-boutique": "^10.2.5",
|
|
25
|
+
"@zthun/fashion-tailor": "^10.2.5",
|
|
26
|
+
"@zthun/fashion-theme": "^10.2.5",
|
|
27
|
+
"@zthun/helpful-fn": "^9.4.3",
|
|
28
|
+
"@zthun/helpful-query": "^9.4.3",
|
|
29
|
+
"@zthun/helpful-react": "^9.4.3",
|
|
30
|
+
"@zthun/janitor-build-config": "^19.3.3",
|
|
31
|
+
"@zthun/romulator-client": "^1.3.3",
|
|
32
|
+
"@zthun/webigail-http": "^4.0.6",
|
|
33
|
+
"@zthun/webigail-rest": "^4.0.6",
|
|
34
|
+
"@zthun/webigail-url": "^4.0.6",
|
|
36
35
|
"history": "^5.3.0",
|
|
37
36
|
"lodash-es": "^4.17.21",
|
|
38
|
-
"react": "^19.1.
|
|
39
|
-
"react-dom": "^19.1.
|
|
37
|
+
"react": "^19.1.1",
|
|
38
|
+
"react-dom": "^19.1.1",
|
|
40
39
|
"tsconfig-paths": "^4.2.0",
|
|
41
|
-
"typescript": "^5.
|
|
42
|
-
"vite": "^7.
|
|
43
|
-
"vite-tsconfig-paths": "^5.1.4",
|
|
40
|
+
"typescript": "^5.9.2",
|
|
41
|
+
"vite": "^7.1.4",
|
|
44
42
|
"vitest": "^3.2.4",
|
|
45
43
|
"vitest-mock-extended": "^3.1.0"
|
|
46
44
|
},
|
|
47
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "65983b10014afd7801d107fda4b6a4bfe987e504"
|
|
48
46
|
}
|