@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.
@@ -193,7 +193,7 @@ interface Action {
193
193
  target?: string;
194
194
  onClick?: (() => void) | null;
195
195
  endpoint?: string | null;
196
- withConfirmation?: boolean;
196
+ withoutConfirmation?: boolean;
197
197
  [key: string]: unknown;
198
198
  }
199
199
  type ActionDefinition = string | Action;
package/dist/hooks.d.ts CHANGED
@@ -71,7 +71,7 @@ interface Action {
71
71
  target?: string;
72
72
  onClick?: (() => void) | null;
73
73
  endpoint?: string | null;
74
- withConfirmation?: boolean;
74
+ withoutConfirmation?: boolean;
75
75
  [key: string]: unknown;
76
76
  }
77
77
  type ActionDefinition = string | Action;
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 generateUrl;
1279
+ let t2;
1280
1280
  if ($[4] !== resource || $[5] !== resources || $[6] !== route || $[7] !== routes) {
1281
- function generateUrl(routeResourceId, t2, t3) {
1282
- const routeName = t2 === undefined ? null : t2;
1283
- const params = t3 === undefined ? null : t3;
1284
- const hasResourceId = isString$1(routeResourceId) && isString$1(routeName);
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: t4
1289
+ id: t5
1290
1290
  } = finalResource || {};
1291
- const id = t4 === undefined ? null : t4;
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] = generateUrl;
1304
+ $[8] = t2;
1305
1305
  } else {
1306
- generateUrl = $[8];
1306
+ t2 = $[8];
1307
1307
  }
1308
+ const generateUrl = t2;
1308
1309
  return generateUrl;
1309
1310
  }
1310
1311
 
package/dist/index.d.ts CHANGED
@@ -397,7 +397,7 @@ interface Action {
397
397
  target?: string;
398
398
  onClick?: (() => void) | null;
399
399
  endpoint?: string | null;
400
- withConfirmation?: boolean;
400
+ withoutConfirmation?: boolean;
401
401
  [key: string]: unknown;
402
402
  }
403
403
  type ActionDefinition = string | Action;
package/dist/utils.d.ts CHANGED
@@ -112,7 +112,7 @@ interface Action {
112
112
  target?: string;
113
113
  onClick?: (() => void) | null;
114
114
  endpoint?: string | null;
115
- withConfirmation?: boolean;
115
+ withoutConfirmation?: boolean;
116
116
  [key: string]: unknown;
117
117
  }
118
118
  type ActionDefinition = string | Action;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panneau/core",
3
- "version": "4.0.72",
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": "6ef477fccf4ca9b81fcca140f56eb45413391c87"
99
+ "gitHead": "122cadcf8ea5faacc035e7fe911fbdfb9fb87d26"
100
100
  }