@panneau/core 4.0.72 → 4.0.74
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/contexts.d.ts +1 -1
- package/dist/hooks.d.ts +1 -1
- package/dist/hooks.js +11 -10
- package/dist/index.d.ts +1 -1
- package/dist/utils.d.ts +1 -1
- package/package.json +2 -2
package/dist/contexts.d.ts
CHANGED
package/dist/hooks.d.ts
CHANGED
package/dist/hooks.js
CHANGED
|
@@ -1276,19 +1276,19 @@ function useResourceUrlGenerator(t0) {
|
|
|
1276
1276
|
const resource = t1;
|
|
1277
1277
|
const route = useUrlGenerator();
|
|
1278
1278
|
const routes = useRoutes();
|
|
1279
|
-
let
|
|
1279
|
+
let t2;
|
|
1280
1280
|
if ($[4] !== resource || $[5] !== resources || $[6] !== route || $[7] !== routes) {
|
|
1281
|
-
|
|
1282
|
-
const routeName =
|
|
1283
|
-
const params =
|
|
1284
|
-
const hasResourceId = isString$1(
|
|
1281
|
+
t2 = (routeResourceId, t3, t4) => {
|
|
1282
|
+
const routeName = t3 === undefined ? null : t3;
|
|
1283
|
+
const params = t4 === undefined ? null : t4;
|
|
1284
|
+
const hasResourceId = isString$1(routeName);
|
|
1285
1285
|
const finalRouteName = hasResourceId ? routeName : routeResourceId;
|
|
1286
1286
|
const finalParams = hasResourceId ? params : routeName;
|
|
1287
1287
|
const finalResource = hasResourceId ? getResource(resources, routeResourceId) : resource;
|
|
1288
1288
|
const {
|
|
1289
|
-
id:
|
|
1289
|
+
id: t5
|
|
1290
1290
|
} = finalResource || {};
|
|
1291
|
-
const id =
|
|
1291
|
+
const id = t5 === undefined ? null : t5;
|
|
1292
1292
|
const specificRouteName = `resources.${id}.${finalRouteName}`;
|
|
1293
1293
|
const hasSpecificRoute = typeof routes[specificRouteName] !== "undefined";
|
|
1294
1294
|
const finalRoute = id !== null ? route(hasSpecificRoute ? specificRouteName : `resources.${finalRouteName}`, hasSpecificRoute ? finalParams : {
|
|
@@ -1296,15 +1296,16 @@ function useResourceUrlGenerator(t0) {
|
|
|
1296
1296
|
resource: id
|
|
1297
1297
|
}) : null;
|
|
1298
1298
|
return finalRoute;
|
|
1299
|
-
}
|
|
1299
|
+
};
|
|
1300
1300
|
$[4] = resource;
|
|
1301
1301
|
$[5] = resources;
|
|
1302
1302
|
$[6] = route;
|
|
1303
1303
|
$[7] = routes;
|
|
1304
|
-
$[8] =
|
|
1304
|
+
$[8] = t2;
|
|
1305
1305
|
} else {
|
|
1306
|
-
|
|
1306
|
+
t2 = $[8];
|
|
1307
1307
|
}
|
|
1308
|
+
const generateUrl = t2;
|
|
1308
1309
|
return generateUrl;
|
|
1309
1310
|
}
|
|
1310
1311
|
|
package/dist/index.d.ts
CHANGED
package/dist/utils.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@panneau/core",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.74",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -96,5 +96,5 @@
|
|
|
96
96
|
"publishConfig": {
|
|
97
97
|
"access": "public"
|
|
98
98
|
},
|
|
99
|
-
"gitHead": "
|
|
99
|
+
"gitHead": "122cadcf8ea5faacc035e7fe911fbdfb9fb87d26"
|
|
100
100
|
}
|