@sonicjs-cms/core 2.3.14 → 2.3.16

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.
Files changed (41) hide show
  1. package/dist/{chunk-CAJOP354.js → chunk-33Q6ETMQ.js} +2 -2
  2. package/dist/{chunk-CAJOP354.js.map → chunk-33Q6ETMQ.js.map} +1 -1
  3. package/dist/{chunk-ETS5XSAG.cjs → chunk-4CLJPURJ.cjs} +2 -2
  4. package/dist/{chunk-ETS5XSAG.cjs.map → chunk-4CLJPURJ.cjs.map} +1 -1
  5. package/dist/{chunk-XWPGIFS7.cjs → chunk-AE27GPMY.cjs} +4 -4
  6. package/dist/{chunk-XWPGIFS7.cjs.map → chunk-AE27GPMY.cjs.map} +1 -1
  7. package/dist/{chunk-H34L445M.js → chunk-ATNWDVAD.js} +3 -3
  8. package/dist/{chunk-H34L445M.js.map → chunk-ATNWDVAD.js.map} +1 -1
  9. package/dist/{chunk-SZE3XVET.cjs → chunk-EUQDJQHJ.cjs} +3 -3
  10. package/dist/{chunk-SZE3XVET.cjs.map → chunk-EUQDJQHJ.cjs.map} +1 -1
  11. package/dist/{chunk-D4PJFFOV.cjs → chunk-ICDJ7KPP.cjs} +90 -90
  12. package/dist/{chunk-D4PJFFOV.cjs.map → chunk-ICDJ7KPP.cjs.map} +1 -1
  13. package/dist/{chunk-SKPETEM5.js → chunk-LRFDZHLM.js} +3 -3
  14. package/dist/{chunk-SKPETEM5.js.map → chunk-LRFDZHLM.js.map} +1 -1
  15. package/dist/{chunk-T4XRPNX2.js → chunk-QUBMTYRI.js} +8 -8
  16. package/dist/{chunk-T4XRPNX2.js.map → chunk-QUBMTYRI.js.map} +1 -1
  17. package/dist/index.cjs +118 -77
  18. package/dist/index.cjs.map +1 -1
  19. package/dist/index.d.cts +1 -1
  20. package/dist/index.d.ts +1 -1
  21. package/dist/index.js +48 -7
  22. package/dist/index.js.map +1 -1
  23. package/dist/middleware.cjs +23 -23
  24. package/dist/middleware.js +2 -2
  25. package/dist/migrations-7TWFJVNT.js +4 -0
  26. package/dist/{migrations-WF6VIVU2.js.map → migrations-7TWFJVNT.js.map} +1 -1
  27. package/dist/migrations-QCBN4TLD.cjs +13 -0
  28. package/dist/{migrations-3A53GREK.cjs.map → migrations-QCBN4TLD.cjs.map} +1 -1
  29. package/dist/{plugin-manifest-BCMx9CAq.d.cts → plugin-manifest-Dpy8wxIB.d.cts} +2 -2
  30. package/dist/{plugin-manifest-BCMx9CAq.d.ts → plugin-manifest-Dpy8wxIB.d.ts} +2 -2
  31. package/dist/routes.cjs +24 -24
  32. package/dist/routes.js +4 -4
  33. package/dist/services.cjs +2 -2
  34. package/dist/services.js +1 -1
  35. package/dist/types.d.cts +1 -1
  36. package/dist/types.d.ts +1 -1
  37. package/dist/utils.cjs +11 -11
  38. package/dist/utils.js +1 -1
  39. package/package.json +1 -1
  40. package/dist/migrations-3A53GREK.cjs +0 -13
  41. package/dist/migrations-WF6VIVU2.js +0 -4
package/dist/index.cjs CHANGED
@@ -1,20 +1,21 @@
1
1
  'use strict';
2
2
 
3
- var chunkD4PJFFOV_cjs = require('./chunk-D4PJFFOV.cjs');
3
+ var chunkICDJ7KPP_cjs = require('./chunk-ICDJ7KPP.cjs');
4
4
  var chunk7FOAMNTI_cjs = require('./chunk-7FOAMNTI.cjs');
5
- var chunkXWPGIFS7_cjs = require('./chunk-XWPGIFS7.cjs');
5
+ var chunkAE27GPMY_cjs = require('./chunk-AE27GPMY.cjs');
6
6
  var chunkILZ3DP4I_cjs = require('./chunk-ILZ3DP4I.cjs');
7
- var chunkETS5XSAG_cjs = require('./chunk-ETS5XSAG.cjs');
7
+ var chunk4CLJPURJ_cjs = require('./chunk-4CLJPURJ.cjs');
8
8
  var chunkYIXSSJWD_cjs = require('./chunk-YIXSSJWD.cjs');
9
9
  var chunkAZLU3ROK_cjs = require('./chunk-AZLU3ROK.cjs');
10
10
  var chunkDTLB6UIH_cjs = require('./chunk-DTLB6UIH.cjs');
11
- var chunkSZE3XVET_cjs = require('./chunk-SZE3XVET.cjs');
11
+ var chunkEUQDJQHJ_cjs = require('./chunk-EUQDJQHJ.cjs');
12
12
  require('./chunk-P3XDZL6Q.cjs');
13
13
  var chunkRCQ2HIQD_cjs = require('./chunk-RCQ2HIQD.cjs');
14
14
  var chunkKYGRJCZM_cjs = require('./chunk-KYGRJCZM.cjs');
15
15
  require('./chunk-IGJUBJBW.cjs');
16
16
  var hono = require('hono');
17
17
  var html = require('hono/html');
18
+ var cookie = require('hono/cookie');
18
19
  var zod = require('zod');
19
20
  var d1 = require('drizzle-orm/d1');
20
21
 
@@ -557,7 +558,7 @@ function formatCellValue(value) {
557
558
  // src/plugins/core-plugins/database-tools-plugin/admin-routes.ts
558
559
  function createDatabaseToolsAdminRoutes() {
559
560
  const router2 = new hono.Hono();
560
- router2.use("*", chunkXWPGIFS7_cjs.requireAuth());
561
+ router2.use("*", chunkAE27GPMY_cjs.requireAuth());
561
562
  router2.get("/api/stats", async (c) => {
562
563
  try {
563
564
  const user = c.get("user");
@@ -738,7 +739,7 @@ function createDatabaseToolsAdminRoutes() {
738
739
  return router2;
739
740
  }
740
741
  function createEmailPlugin() {
741
- const builder = chunkD4PJFFOV_cjs.PluginBuilder.create({
742
+ const builder = chunkICDJ7KPP_cjs.PluginBuilder.create({
742
743
  name: "email",
743
744
  version: "1.0.0-beta.1",
744
745
  description: "Send transactional emails using Resend"
@@ -1415,7 +1416,7 @@ var DEFAULT_SETTINGS = {
1415
1416
  appName: "SonicJS"
1416
1417
  };
1417
1418
  function createOTPLoginPlugin() {
1418
- const builder = chunkD4PJFFOV_cjs.PluginBuilder.create({
1419
+ const builder = chunkICDJ7KPP_cjs.PluginBuilder.create({
1419
1420
  name: "otp-login",
1420
1421
  version: "1.0.0-beta.1",
1421
1422
  description: "Passwordless authentication via email one-time codes"
@@ -1489,6 +1490,37 @@ function createOTPLoginPlugin() {
1489
1490
  timestamp: (/* @__PURE__ */ new Date()).toISOString(),
1490
1491
  appName: settings.appName
1491
1492
  });
1493
+ const emailPlugin2 = await db.prepare(`
1494
+ SELECT settings FROM plugins WHERE id = 'email'
1495
+ `).first();
1496
+ if (emailPlugin2?.settings) {
1497
+ const emailSettings = JSON.parse(emailPlugin2.settings);
1498
+ if (emailSettings.apiKey && emailSettings.fromEmail && emailSettings.fromName) {
1499
+ const emailResponse = await fetch("https://api.resend.com/emails", {
1500
+ method: "POST",
1501
+ headers: {
1502
+ "Authorization": `Bearer ${emailSettings.apiKey}`,
1503
+ "Content-Type": "application/json"
1504
+ },
1505
+ body: JSON.stringify({
1506
+ from: `${emailSettings.fromName} <${emailSettings.fromEmail}>`,
1507
+ to: [normalizedEmail],
1508
+ subject: `Your login code for ${settings.appName}`,
1509
+ html: emailContent.html,
1510
+ text: emailContent.text,
1511
+ reply_to: emailSettings.replyTo || emailSettings.fromEmail
1512
+ })
1513
+ });
1514
+ if (!emailResponse.ok) {
1515
+ const errorData = await emailResponse.json();
1516
+ console.error("Failed to send OTP email via Resend:", errorData);
1517
+ }
1518
+ } else {
1519
+ console.warn("Email plugin is not fully configured (missing apiKey, fromEmail, or fromName)");
1520
+ }
1521
+ } else {
1522
+ console.warn("Email plugin is not active or has no settings configured");
1523
+ }
1492
1524
  const response = {
1493
1525
  message: "If an account exists for this email, you will receive a verification code shortly.",
1494
1526
  expiresIn: settings.codeExpiryMinutes * 60
@@ -1548,6 +1580,14 @@ function createOTPLoginPlugin() {
1548
1580
  error: "Account is deactivated"
1549
1581
  }, 403);
1550
1582
  }
1583
+ const token = await chunkAE27GPMY_cjs.AuthManager.generateToken(user.id, user.email, user.role);
1584
+ cookie.setCookie(c, "auth_token", token, {
1585
+ httpOnly: true,
1586
+ secure: true,
1587
+ sameSite: "Strict",
1588
+ maxAge: 60 * 60 * 24
1589
+ // 24 hours
1590
+ });
1551
1591
  return c.json({
1552
1592
  success: true,
1553
1593
  user: {
@@ -1555,6 +1595,7 @@ function createOTPLoginPlugin() {
1555
1595
  email: user.email,
1556
1596
  role: user.role
1557
1597
  },
1598
+ token,
1558
1599
  message: "Authentication successful"
1559
1600
  });
1560
1601
  } catch (error) {
@@ -1942,12 +1983,12 @@ function createMagicLinkAuthPlugin() {
1942
1983
  SET used = 1, used_at = ?
1943
1984
  WHERE id = ?
1944
1985
  `).bind(Date.now(), magicLink.id).run();
1945
- const jwtToken = await chunkXWPGIFS7_cjs.AuthManager.generateToken(
1986
+ const jwtToken = await chunkAE27GPMY_cjs.AuthManager.generateToken(
1946
1987
  user.id,
1947
1988
  user.email,
1948
1989
  user.role
1949
1990
  );
1950
- chunkXWPGIFS7_cjs.AuthManager.setAuthCookie(c, jwtToken);
1991
+ chunkAE27GPMY_cjs.AuthManager.setAuthCookie(c, jwtToken);
1951
1992
  await db.prepare(`
1952
1993
  UPDATE users SET last_login_at = ? WHERE id = ?
1953
1994
  `).bind(Date.now(), user.id).run();
@@ -2095,14 +2136,14 @@ createMagicLinkAuthPlugin();
2095
2136
  // src/app.ts
2096
2137
  function createSonicJSApp(config = {}) {
2097
2138
  const app = new hono.Hono();
2098
- const appVersion = config.version || chunkSZE3XVET_cjs.getCoreVersion();
2139
+ const appVersion = config.version || chunkEUQDJQHJ_cjs.getCoreVersion();
2099
2140
  const appName = config.name || "SonicJS AI";
2100
2141
  app.use("*", async (c, next) => {
2101
2142
  c.set("appVersion", appVersion);
2102
2143
  await next();
2103
2144
  });
2104
- app.use("*", chunkXWPGIFS7_cjs.metricsMiddleware());
2105
- app.use("*", chunkXWPGIFS7_cjs.bootstrapMiddleware(config));
2145
+ app.use("*", chunkAE27GPMY_cjs.metricsMiddleware());
2146
+ app.use("*", chunkAE27GPMY_cjs.bootstrapMiddleware(config));
2106
2147
  if (config.middleware?.beforeAuth) {
2107
2148
  for (const middleware of config.middleware.beforeAuth) {
2108
2149
  app.use("*", middleware);
@@ -2119,21 +2160,21 @@ function createSonicJSApp(config = {}) {
2119
2160
  app.use("*", middleware);
2120
2161
  }
2121
2162
  }
2122
- app.route("/api", chunkD4PJFFOV_cjs.api_default);
2123
- app.route("/api/media", chunkD4PJFFOV_cjs.api_media_default);
2124
- app.route("/api/system", chunkD4PJFFOV_cjs.api_system_default);
2125
- app.route("/admin/api", chunkD4PJFFOV_cjs.admin_api_default);
2126
- app.route("/admin/dashboard", chunkD4PJFFOV_cjs.router);
2127
- app.route("/admin/collections", chunkD4PJFFOV_cjs.adminCollectionsRoutes);
2128
- app.route("/admin/settings", chunkD4PJFFOV_cjs.adminSettingsRoutes);
2163
+ app.route("/api", chunkICDJ7KPP_cjs.api_default);
2164
+ app.route("/api/media", chunkICDJ7KPP_cjs.api_media_default);
2165
+ app.route("/api/system", chunkICDJ7KPP_cjs.api_system_default);
2166
+ app.route("/admin/api", chunkICDJ7KPP_cjs.admin_api_default);
2167
+ app.route("/admin/dashboard", chunkICDJ7KPP_cjs.router);
2168
+ app.route("/admin/collections", chunkICDJ7KPP_cjs.adminCollectionsRoutes);
2169
+ app.route("/admin/settings", chunkICDJ7KPP_cjs.adminSettingsRoutes);
2129
2170
  app.route("/admin/database-tools", createDatabaseToolsAdminRoutes());
2130
- app.route("/admin/content", chunkD4PJFFOV_cjs.admin_content_default);
2131
- app.route("/admin/media", chunkD4PJFFOV_cjs.adminMediaRoutes);
2132
- app.route("/admin/plugins", chunkD4PJFFOV_cjs.adminPluginRoutes);
2133
- app.route("/admin/logs", chunkD4PJFFOV_cjs.adminLogsRoutes);
2134
- app.route("/admin", chunkD4PJFFOV_cjs.userRoutes);
2135
- app.route("/auth", chunkD4PJFFOV_cjs.auth_default);
2136
- app.route("/", chunkD4PJFFOV_cjs.test_cleanup_default);
2171
+ app.route("/admin/content", chunkICDJ7KPP_cjs.admin_content_default);
2172
+ app.route("/admin/media", chunkICDJ7KPP_cjs.adminMediaRoutes);
2173
+ app.route("/admin/plugins", chunkICDJ7KPP_cjs.adminPluginRoutes);
2174
+ app.route("/admin/logs", chunkICDJ7KPP_cjs.adminLogsRoutes);
2175
+ app.route("/admin", chunkICDJ7KPP_cjs.userRoutes);
2176
+ app.route("/auth", chunkICDJ7KPP_cjs.auth_default);
2177
+ app.route("/", chunkICDJ7KPP_cjs.test_cleanup_default);
2137
2178
  if (emailPlugin.routes && emailPlugin.routes.length > 0) {
2138
2179
  for (const route of emailPlugin.routes) {
2139
2180
  app.route(route.path, route.handler);
@@ -2213,83 +2254,83 @@ function createDb(d1$1) {
2213
2254
  }
2214
2255
 
2215
2256
  // src/index.ts
2216
- var VERSION = chunkSZE3XVET_cjs.package_default.version;
2257
+ var VERSION = chunkEUQDJQHJ_cjs.package_default.version;
2217
2258
 
2218
2259
  Object.defineProperty(exports, "ROUTES_INFO", {
2219
2260
  enumerable: true,
2220
- get: function () { return chunkD4PJFFOV_cjs.ROUTES_INFO; }
2261
+ get: function () { return chunkICDJ7KPP_cjs.ROUTES_INFO; }
2221
2262
  });
2222
2263
  Object.defineProperty(exports, "adminApiRoutes", {
2223
2264
  enumerable: true,
2224
- get: function () { return chunkD4PJFFOV_cjs.admin_api_default; }
2265
+ get: function () { return chunkICDJ7KPP_cjs.admin_api_default; }
2225
2266
  });
2226
2267
  Object.defineProperty(exports, "adminCheckboxRoutes", {
2227
2268
  enumerable: true,
2228
- get: function () { return chunkD4PJFFOV_cjs.adminCheckboxRoutes; }
2269
+ get: function () { return chunkICDJ7KPP_cjs.adminCheckboxRoutes; }
2229
2270
  });
2230
2271
  Object.defineProperty(exports, "adminCodeExamplesRoutes", {
2231
2272
  enumerable: true,
2232
- get: function () { return chunkD4PJFFOV_cjs.admin_code_examples_default; }
2273
+ get: function () { return chunkICDJ7KPP_cjs.admin_code_examples_default; }
2233
2274
  });
2234
2275
  Object.defineProperty(exports, "adminCollectionsRoutes", {
2235
2276
  enumerable: true,
2236
- get: function () { return chunkD4PJFFOV_cjs.adminCollectionsRoutes; }
2277
+ get: function () { return chunkICDJ7KPP_cjs.adminCollectionsRoutes; }
2237
2278
  });
2238
2279
  Object.defineProperty(exports, "adminContentRoutes", {
2239
2280
  enumerable: true,
2240
- get: function () { return chunkD4PJFFOV_cjs.admin_content_default; }
2281
+ get: function () { return chunkICDJ7KPP_cjs.admin_content_default; }
2241
2282
  });
2242
2283
  Object.defineProperty(exports, "adminDashboardRoutes", {
2243
2284
  enumerable: true,
2244
- get: function () { return chunkD4PJFFOV_cjs.router; }
2285
+ get: function () { return chunkICDJ7KPP_cjs.router; }
2245
2286
  });
2246
2287
  Object.defineProperty(exports, "adminDesignRoutes", {
2247
2288
  enumerable: true,
2248
- get: function () { return chunkD4PJFFOV_cjs.adminDesignRoutes; }
2289
+ get: function () { return chunkICDJ7KPP_cjs.adminDesignRoutes; }
2249
2290
  });
2250
2291
  Object.defineProperty(exports, "adminLogsRoutes", {
2251
2292
  enumerable: true,
2252
- get: function () { return chunkD4PJFFOV_cjs.adminLogsRoutes; }
2293
+ get: function () { return chunkICDJ7KPP_cjs.adminLogsRoutes; }
2253
2294
  });
2254
2295
  Object.defineProperty(exports, "adminMediaRoutes", {
2255
2296
  enumerable: true,
2256
- get: function () { return chunkD4PJFFOV_cjs.adminMediaRoutes; }
2297
+ get: function () { return chunkICDJ7KPP_cjs.adminMediaRoutes; }
2257
2298
  });
2258
2299
  Object.defineProperty(exports, "adminPluginRoutes", {
2259
2300
  enumerable: true,
2260
- get: function () { return chunkD4PJFFOV_cjs.adminPluginRoutes; }
2301
+ get: function () { return chunkICDJ7KPP_cjs.adminPluginRoutes; }
2261
2302
  });
2262
2303
  Object.defineProperty(exports, "adminSettingsRoutes", {
2263
2304
  enumerable: true,
2264
- get: function () { return chunkD4PJFFOV_cjs.adminSettingsRoutes; }
2305
+ get: function () { return chunkICDJ7KPP_cjs.adminSettingsRoutes; }
2265
2306
  });
2266
2307
  Object.defineProperty(exports, "adminTestimonialsRoutes", {
2267
2308
  enumerable: true,
2268
- get: function () { return chunkD4PJFFOV_cjs.admin_testimonials_default; }
2309
+ get: function () { return chunkICDJ7KPP_cjs.admin_testimonials_default; }
2269
2310
  });
2270
2311
  Object.defineProperty(exports, "adminUsersRoutes", {
2271
2312
  enumerable: true,
2272
- get: function () { return chunkD4PJFFOV_cjs.userRoutes; }
2313
+ get: function () { return chunkICDJ7KPP_cjs.userRoutes; }
2273
2314
  });
2274
2315
  Object.defineProperty(exports, "apiContentCrudRoutes", {
2275
2316
  enumerable: true,
2276
- get: function () { return chunkD4PJFFOV_cjs.api_content_crud_default; }
2317
+ get: function () { return chunkICDJ7KPP_cjs.api_content_crud_default; }
2277
2318
  });
2278
2319
  Object.defineProperty(exports, "apiMediaRoutes", {
2279
2320
  enumerable: true,
2280
- get: function () { return chunkD4PJFFOV_cjs.api_media_default; }
2321
+ get: function () { return chunkICDJ7KPP_cjs.api_media_default; }
2281
2322
  });
2282
2323
  Object.defineProperty(exports, "apiRoutes", {
2283
2324
  enumerable: true,
2284
- get: function () { return chunkD4PJFFOV_cjs.api_default; }
2325
+ get: function () { return chunkICDJ7KPP_cjs.api_default; }
2285
2326
  });
2286
2327
  Object.defineProperty(exports, "apiSystemRoutes", {
2287
2328
  enumerable: true,
2288
- get: function () { return chunkD4PJFFOV_cjs.api_system_default; }
2329
+ get: function () { return chunkICDJ7KPP_cjs.api_system_default; }
2289
2330
  });
2290
2331
  Object.defineProperty(exports, "authRoutes", {
2291
2332
  enumerable: true,
2292
- get: function () { return chunkD4PJFFOV_cjs.auth_default; }
2333
+ get: function () { return chunkICDJ7KPP_cjs.auth_default; }
2293
2334
  });
2294
2335
  Object.defineProperty(exports, "Logger", {
2295
2336
  enumerable: true,
@@ -2457,83 +2498,83 @@ Object.defineProperty(exports, "workflowHistory", {
2457
2498
  });
2458
2499
  Object.defineProperty(exports, "AuthManager", {
2459
2500
  enumerable: true,
2460
- get: function () { return chunkXWPGIFS7_cjs.AuthManager; }
2501
+ get: function () { return chunkAE27GPMY_cjs.AuthManager; }
2461
2502
  });
2462
2503
  Object.defineProperty(exports, "PermissionManager", {
2463
2504
  enumerable: true,
2464
- get: function () { return chunkXWPGIFS7_cjs.PermissionManager; }
2505
+ get: function () { return chunkAE27GPMY_cjs.PermissionManager; }
2465
2506
  });
2466
2507
  Object.defineProperty(exports, "bootstrapMiddleware", {
2467
2508
  enumerable: true,
2468
- get: function () { return chunkXWPGIFS7_cjs.bootstrapMiddleware; }
2509
+ get: function () { return chunkAE27GPMY_cjs.bootstrapMiddleware; }
2469
2510
  });
2470
2511
  Object.defineProperty(exports, "cacheHeaders", {
2471
2512
  enumerable: true,
2472
- get: function () { return chunkXWPGIFS7_cjs.cacheHeaders; }
2513
+ get: function () { return chunkAE27GPMY_cjs.cacheHeaders; }
2473
2514
  });
2474
2515
  Object.defineProperty(exports, "compressionMiddleware", {
2475
2516
  enumerable: true,
2476
- get: function () { return chunkXWPGIFS7_cjs.compressionMiddleware; }
2517
+ get: function () { return chunkAE27GPMY_cjs.compressionMiddleware; }
2477
2518
  });
2478
2519
  Object.defineProperty(exports, "detailedLoggingMiddleware", {
2479
2520
  enumerable: true,
2480
- get: function () { return chunkXWPGIFS7_cjs.detailedLoggingMiddleware; }
2521
+ get: function () { return chunkAE27GPMY_cjs.detailedLoggingMiddleware; }
2481
2522
  });
2482
2523
  Object.defineProperty(exports, "getActivePlugins", {
2483
2524
  enumerable: true,
2484
- get: function () { return chunkXWPGIFS7_cjs.getActivePlugins; }
2525
+ get: function () { return chunkAE27GPMY_cjs.getActivePlugins; }
2485
2526
  });
2486
2527
  Object.defineProperty(exports, "isPluginActive", {
2487
2528
  enumerable: true,
2488
- get: function () { return chunkXWPGIFS7_cjs.isPluginActive; }
2529
+ get: function () { return chunkAE27GPMY_cjs.isPluginActive; }
2489
2530
  });
2490
2531
  Object.defineProperty(exports, "logActivity", {
2491
2532
  enumerable: true,
2492
- get: function () { return chunkXWPGIFS7_cjs.logActivity; }
2533
+ get: function () { return chunkAE27GPMY_cjs.logActivity; }
2493
2534
  });
2494
2535
  Object.defineProperty(exports, "loggingMiddleware", {
2495
2536
  enumerable: true,
2496
- get: function () { return chunkXWPGIFS7_cjs.loggingMiddleware; }
2537
+ get: function () { return chunkAE27GPMY_cjs.loggingMiddleware; }
2497
2538
  });
2498
2539
  Object.defineProperty(exports, "optionalAuth", {
2499
2540
  enumerable: true,
2500
- get: function () { return chunkXWPGIFS7_cjs.optionalAuth; }
2541
+ get: function () { return chunkAE27GPMY_cjs.optionalAuth; }
2501
2542
  });
2502
2543
  Object.defineProperty(exports, "performanceLoggingMiddleware", {
2503
2544
  enumerable: true,
2504
- get: function () { return chunkXWPGIFS7_cjs.performanceLoggingMiddleware; }
2545
+ get: function () { return chunkAE27GPMY_cjs.performanceLoggingMiddleware; }
2505
2546
  });
2506
2547
  Object.defineProperty(exports, "requireActivePlugin", {
2507
2548
  enumerable: true,
2508
- get: function () { return chunkXWPGIFS7_cjs.requireActivePlugin; }
2549
+ get: function () { return chunkAE27GPMY_cjs.requireActivePlugin; }
2509
2550
  });
2510
2551
  Object.defineProperty(exports, "requireActivePlugins", {
2511
2552
  enumerable: true,
2512
- get: function () { return chunkXWPGIFS7_cjs.requireActivePlugins; }
2553
+ get: function () { return chunkAE27GPMY_cjs.requireActivePlugins; }
2513
2554
  });
2514
2555
  Object.defineProperty(exports, "requireAnyPermission", {
2515
2556
  enumerable: true,
2516
- get: function () { return chunkXWPGIFS7_cjs.requireAnyPermission; }
2557
+ get: function () { return chunkAE27GPMY_cjs.requireAnyPermission; }
2517
2558
  });
2518
2559
  Object.defineProperty(exports, "requireAuth", {
2519
2560
  enumerable: true,
2520
- get: function () { return chunkXWPGIFS7_cjs.requireAuth; }
2561
+ get: function () { return chunkAE27GPMY_cjs.requireAuth; }
2521
2562
  });
2522
2563
  Object.defineProperty(exports, "requirePermission", {
2523
2564
  enumerable: true,
2524
- get: function () { return chunkXWPGIFS7_cjs.requirePermission; }
2565
+ get: function () { return chunkAE27GPMY_cjs.requirePermission; }
2525
2566
  });
2526
2567
  Object.defineProperty(exports, "requireRole", {
2527
2568
  enumerable: true,
2528
- get: function () { return chunkXWPGIFS7_cjs.requireRole; }
2569
+ get: function () { return chunkAE27GPMY_cjs.requireRole; }
2529
2570
  });
2530
2571
  Object.defineProperty(exports, "securityHeaders", {
2531
2572
  enumerable: true,
2532
- get: function () { return chunkXWPGIFS7_cjs.securityHeaders; }
2573
+ get: function () { return chunkAE27GPMY_cjs.securityHeaders; }
2533
2574
  });
2534
2575
  Object.defineProperty(exports, "securityLoggingMiddleware", {
2535
2576
  enumerable: true,
2536
- get: function () { return chunkXWPGIFS7_cjs.securityLoggingMiddleware; }
2577
+ get: function () { return chunkAE27GPMY_cjs.securityLoggingMiddleware; }
2537
2578
  });
2538
2579
  Object.defineProperty(exports, "PluginBootstrapService", {
2539
2580
  enumerable: true,
@@ -2589,7 +2630,7 @@ Object.defineProperty(exports, "validateCollectionConfig", {
2589
2630
  });
2590
2631
  Object.defineProperty(exports, "MigrationService", {
2591
2632
  enumerable: true,
2592
- get: function () { return chunkETS5XSAG_cjs.MigrationService; }
2633
+ get: function () { return chunk4CLJPURJ_cjs.MigrationService; }
2593
2634
  });
2594
2635
  Object.defineProperty(exports, "renderFilterBar", {
2595
2636
  enumerable: true,
@@ -2649,43 +2690,43 @@ Object.defineProperty(exports, "ScopedHookSystemClass", {
2649
2690
  });
2650
2691
  Object.defineProperty(exports, "QueryFilterBuilder", {
2651
2692
  enumerable: true,
2652
- get: function () { return chunkSZE3XVET_cjs.QueryFilterBuilder; }
2693
+ get: function () { return chunkEUQDJQHJ_cjs.QueryFilterBuilder; }
2653
2694
  });
2654
2695
  Object.defineProperty(exports, "SONICJS_VERSION", {
2655
2696
  enumerable: true,
2656
- get: function () { return chunkSZE3XVET_cjs.SONICJS_VERSION; }
2697
+ get: function () { return chunkEUQDJQHJ_cjs.SONICJS_VERSION; }
2657
2698
  });
2658
2699
  Object.defineProperty(exports, "TemplateRenderer", {
2659
2700
  enumerable: true,
2660
- get: function () { return chunkSZE3XVET_cjs.TemplateRenderer; }
2701
+ get: function () { return chunkEUQDJQHJ_cjs.TemplateRenderer; }
2661
2702
  });
2662
2703
  Object.defineProperty(exports, "buildQuery", {
2663
2704
  enumerable: true,
2664
- get: function () { return chunkSZE3XVET_cjs.buildQuery; }
2705
+ get: function () { return chunkEUQDJQHJ_cjs.buildQuery; }
2665
2706
  });
2666
2707
  Object.defineProperty(exports, "escapeHtml", {
2667
2708
  enumerable: true,
2668
- get: function () { return chunkSZE3XVET_cjs.escapeHtml; }
2709
+ get: function () { return chunkEUQDJQHJ_cjs.escapeHtml; }
2669
2710
  });
2670
2711
  Object.defineProperty(exports, "getCoreVersion", {
2671
2712
  enumerable: true,
2672
- get: function () { return chunkSZE3XVET_cjs.getCoreVersion; }
2713
+ get: function () { return chunkEUQDJQHJ_cjs.getCoreVersion; }
2673
2714
  });
2674
2715
  Object.defineProperty(exports, "renderTemplate", {
2675
2716
  enumerable: true,
2676
- get: function () { return chunkSZE3XVET_cjs.renderTemplate; }
2717
+ get: function () { return chunkEUQDJQHJ_cjs.renderTemplate; }
2677
2718
  });
2678
2719
  Object.defineProperty(exports, "sanitizeInput", {
2679
2720
  enumerable: true,
2680
- get: function () { return chunkSZE3XVET_cjs.sanitizeInput; }
2721
+ get: function () { return chunkEUQDJQHJ_cjs.sanitizeInput; }
2681
2722
  });
2682
2723
  Object.defineProperty(exports, "sanitizeObject", {
2683
2724
  enumerable: true,
2684
- get: function () { return chunkSZE3XVET_cjs.sanitizeObject; }
2725
+ get: function () { return chunkEUQDJQHJ_cjs.sanitizeObject; }
2685
2726
  });
2686
2727
  Object.defineProperty(exports, "templateRenderer", {
2687
2728
  enumerable: true,
2688
- get: function () { return chunkSZE3XVET_cjs.templateRenderer; }
2729
+ get: function () { return chunkEUQDJQHJ_cjs.templateRenderer; }
2689
2730
  });
2690
2731
  Object.defineProperty(exports, "metricsTracker", {
2691
2732
  enumerable: true,