@sonicjs-cms/core 2.3.17 → 2.4.0

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 (37) hide show
  1. package/dist/{chunk-IEWLOVP3.cjs → chunk-2MI3LZFH.cjs} +2 -2
  2. package/dist/{chunk-IEWLOVP3.cjs.map → chunk-2MI3LZFH.cjs.map} +1 -1
  3. package/dist/{chunk-YHJB26RJ.cjs → chunk-7I5INVNR.cjs} +4 -4
  4. package/dist/{chunk-YHJB26RJ.cjs.map → chunk-7I5INVNR.cjs.map} +1 -1
  5. package/dist/{chunk-74DP754U.cjs → chunk-A4SVOGG6.cjs} +143 -96
  6. package/dist/chunk-A4SVOGG6.cjs.map +1 -0
  7. package/dist/{chunk-B6YJRVFQ.js → chunk-D2NLCPO2.js} +2 -2
  8. package/dist/{chunk-B6YJRVFQ.js.map → chunk-D2NLCPO2.js.map} +1 -1
  9. package/dist/{chunk-VYL6RIV6.js → chunk-DXM575E2.js} +3 -3
  10. package/dist/{chunk-VYL6RIV6.js.map → chunk-DXM575E2.js.map} +1 -1
  11. package/dist/{chunk-QBWD6FKH.js → chunk-FT6NBHNX.js} +61 -15
  12. package/dist/chunk-FT6NBHNX.js.map +1 -0
  13. package/dist/{chunk-2XCJ3HT5.cjs → chunk-FYEDK7K7.cjs} +3 -3
  14. package/dist/{chunk-2XCJ3HT5.cjs.map → chunk-FYEDK7K7.cjs.map} +1 -1
  15. package/dist/{chunk-TMQOLXLY.js → chunk-VNCYCH3H.js} +3 -3
  16. package/dist/{chunk-TMQOLXLY.js.map → chunk-VNCYCH3H.js.map} +1 -1
  17. package/dist/index.cjs +104 -78
  18. package/dist/index.cjs.map +1 -1
  19. package/dist/index.js +33 -7
  20. package/dist/index.js.map +1 -1
  21. package/dist/middleware.cjs +23 -23
  22. package/dist/middleware.js +2 -2
  23. package/dist/migrations-32QAYLWJ.cjs +13 -0
  24. package/dist/{migrations-EOV7NJZ7.cjs.map → migrations-32QAYLWJ.cjs.map} +1 -1
  25. package/dist/migrations-57ZHBQ4X.js +4 -0
  26. package/dist/{migrations-6HKPNPTK.js.map → migrations-57ZHBQ4X.js.map} +1 -1
  27. package/dist/routes.cjs +24 -24
  28. package/dist/routes.js +4 -4
  29. package/dist/services.cjs +2 -2
  30. package/dist/services.js +1 -1
  31. package/dist/utils.cjs +11 -11
  32. package/dist/utils.js +1 -1
  33. package/package.json +1 -1
  34. package/dist/chunk-74DP754U.cjs.map +0 -1
  35. package/dist/chunk-QBWD6FKH.js.map +0 -1
  36. package/dist/migrations-6HKPNPTK.js +0 -4
  37. package/dist/migrations-EOV7NJZ7.cjs +0 -13
package/dist/index.cjs CHANGED
@@ -1,14 +1,14 @@
1
1
  'use strict';
2
2
 
3
- var chunk74DP754U_cjs = require('./chunk-74DP754U.cjs');
3
+ var chunkA4SVOGG6_cjs = require('./chunk-A4SVOGG6.cjs');
4
4
  var chunk7FOAMNTI_cjs = require('./chunk-7FOAMNTI.cjs');
5
- var chunkYHJB26RJ_cjs = require('./chunk-YHJB26RJ.cjs');
5
+ var chunk7I5INVNR_cjs = require('./chunk-7I5INVNR.cjs');
6
6
  var chunkILZ3DP4I_cjs = require('./chunk-ILZ3DP4I.cjs');
7
- var chunkIEWLOVP3_cjs = require('./chunk-IEWLOVP3.cjs');
7
+ var chunk2MI3LZFH_cjs = require('./chunk-2MI3LZFH.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 chunk2XCJ3HT5_cjs = require('./chunk-2XCJ3HT5.cjs');
11
+ var chunkFYEDK7K7_cjs = require('./chunk-FYEDK7K7.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');
@@ -19,6 +19,31 @@ var cookie = require('hono/cookie');
19
19
  var zod = require('zod');
20
20
  var d1 = require('drizzle-orm/d1');
21
21
 
22
+ // src/middleware/admin-setup.ts
23
+ function adminSetupMiddleware() {
24
+ return async (c, next) => {
25
+ const path = new URL(c.req.url).pathname;
26
+ if (path.startsWith("/auth/")) {
27
+ return next();
28
+ }
29
+ if (path.match(/\.(js|css|ico|png|jpg|jpeg|gif|svg|woff|woff2|ttf|eot)$/)) {
30
+ return next();
31
+ }
32
+ if (path === "/health") {
33
+ return next();
34
+ }
35
+ if (path.startsWith("/api/")) {
36
+ return next();
37
+ }
38
+ const db = c.env.DB;
39
+ const adminExists = await chunkA4SVOGG6_cjs.checkAdminUserExists(db);
40
+ if (!adminExists) {
41
+ return c.redirect("/auth/register?setup=true");
42
+ }
43
+ return next();
44
+ };
45
+ }
46
+
22
47
  // src/plugins/core-plugins/database-tools-plugin/services/database-service.ts
23
48
  var DatabaseToolsService = class {
24
49
  constructor(db) {
@@ -558,7 +583,7 @@ function formatCellValue(value) {
558
583
  // src/plugins/core-plugins/database-tools-plugin/admin-routes.ts
559
584
  function createDatabaseToolsAdminRoutes() {
560
585
  const router2 = new hono.Hono();
561
- router2.use("*", chunkYHJB26RJ_cjs.requireAuth());
586
+ router2.use("*", chunk7I5INVNR_cjs.requireAuth());
562
587
  router2.get("/api/stats", async (c) => {
563
588
  try {
564
589
  const user = c.get("user");
@@ -1306,7 +1331,7 @@ function createSeedDataAdminRoutes() {
1306
1331
  return routes;
1307
1332
  }
1308
1333
  function createEmailPlugin() {
1309
- const builder = chunk74DP754U_cjs.PluginBuilder.create({
1334
+ const builder = chunkA4SVOGG6_cjs.PluginBuilder.create({
1310
1335
  name: "email",
1311
1336
  version: "1.0.0-beta.1",
1312
1337
  description: "Send transactional emails using Resend"
@@ -1983,7 +2008,7 @@ var DEFAULT_SETTINGS = {
1983
2008
  appName: "SonicJS"
1984
2009
  };
1985
2010
  function createOTPLoginPlugin() {
1986
- const builder = chunk74DP754U_cjs.PluginBuilder.create({
2011
+ const builder = chunkA4SVOGG6_cjs.PluginBuilder.create({
1987
2012
  name: "otp-login",
1988
2013
  version: "1.0.0-beta.1",
1989
2014
  description: "Passwordless authentication via email one-time codes"
@@ -2147,7 +2172,7 @@ function createOTPLoginPlugin() {
2147
2172
  error: "Account is deactivated"
2148
2173
  }, 403);
2149
2174
  }
2150
- const token = await chunkYHJB26RJ_cjs.AuthManager.generateToken(user.id, user.email, user.role);
2175
+ const token = await chunk7I5INVNR_cjs.AuthManager.generateToken(user.id, user.email, user.role);
2151
2176
  cookie.setCookie(c, "auth_token", token, {
2152
2177
  httpOnly: true,
2153
2178
  secure: true,
@@ -2550,12 +2575,12 @@ function createMagicLinkAuthPlugin() {
2550
2575
  SET used = 1, used_at = ?
2551
2576
  WHERE id = ?
2552
2577
  `).bind(Date.now(), magicLink.id).run();
2553
- const jwtToken = await chunkYHJB26RJ_cjs.AuthManager.generateToken(
2578
+ const jwtToken = await chunk7I5INVNR_cjs.AuthManager.generateToken(
2554
2579
  user.id,
2555
2580
  user.email,
2556
2581
  user.role
2557
2582
  );
2558
- chunkYHJB26RJ_cjs.AuthManager.setAuthCookie(c, jwtToken);
2583
+ chunk7I5INVNR_cjs.AuthManager.setAuthCookie(c, jwtToken);
2559
2584
  await db.prepare(`
2560
2585
  UPDATE users SET last_login_at = ? WHERE id = ?
2561
2586
  `).bind(Date.now(), user.id).run();
@@ -2703,14 +2728,15 @@ createMagicLinkAuthPlugin();
2703
2728
  // src/app.ts
2704
2729
  function createSonicJSApp(config = {}) {
2705
2730
  const app = new hono.Hono();
2706
- const appVersion = config.version || chunk2XCJ3HT5_cjs.getCoreVersion();
2731
+ const appVersion = config.version || chunkFYEDK7K7_cjs.getCoreVersion();
2707
2732
  const appName = config.name || "SonicJS AI";
2708
2733
  app.use("*", async (c, next) => {
2709
2734
  c.set("appVersion", appVersion);
2710
2735
  await next();
2711
2736
  });
2712
- app.use("*", chunkYHJB26RJ_cjs.metricsMiddleware());
2713
- app.use("*", chunkYHJB26RJ_cjs.bootstrapMiddleware(config));
2737
+ app.use("*", chunk7I5INVNR_cjs.metricsMiddleware());
2738
+ app.use("*", chunk7I5INVNR_cjs.bootstrapMiddleware(config));
2739
+ app.use("*", adminSetupMiddleware());
2714
2740
  if (config.middleware?.beforeAuth) {
2715
2741
  for (const middleware of config.middleware.beforeAuth) {
2716
2742
  app.use("*", middleware);
@@ -2727,22 +2753,22 @@ function createSonicJSApp(config = {}) {
2727
2753
  app.use("*", middleware);
2728
2754
  }
2729
2755
  }
2730
- app.route("/api", chunk74DP754U_cjs.api_default);
2731
- app.route("/api/media", chunk74DP754U_cjs.api_media_default);
2732
- app.route("/api/system", chunk74DP754U_cjs.api_system_default);
2733
- app.route("/admin/api", chunk74DP754U_cjs.admin_api_default);
2734
- app.route("/admin/dashboard", chunk74DP754U_cjs.router);
2735
- app.route("/admin/collections", chunk74DP754U_cjs.adminCollectionsRoutes);
2736
- app.route("/admin/settings", chunk74DP754U_cjs.adminSettingsRoutes);
2756
+ app.route("/api", chunkA4SVOGG6_cjs.api_default);
2757
+ app.route("/api/media", chunkA4SVOGG6_cjs.api_media_default);
2758
+ app.route("/api/system", chunkA4SVOGG6_cjs.api_system_default);
2759
+ app.route("/admin/api", chunkA4SVOGG6_cjs.admin_api_default);
2760
+ app.route("/admin/dashboard", chunkA4SVOGG6_cjs.router);
2761
+ app.route("/admin/collections", chunkA4SVOGG6_cjs.adminCollectionsRoutes);
2762
+ app.route("/admin/settings", chunkA4SVOGG6_cjs.adminSettingsRoutes);
2737
2763
  app.route("/admin/database-tools", createDatabaseToolsAdminRoutes());
2738
2764
  app.route("/admin/seed-data", createSeedDataAdminRoutes());
2739
- app.route("/admin/content", chunk74DP754U_cjs.admin_content_default);
2740
- app.route("/admin/media", chunk74DP754U_cjs.adminMediaRoutes);
2741
- app.route("/admin/plugins", chunk74DP754U_cjs.adminPluginRoutes);
2742
- app.route("/admin/logs", chunk74DP754U_cjs.adminLogsRoutes);
2743
- app.route("/admin", chunk74DP754U_cjs.userRoutes);
2744
- app.route("/auth", chunk74DP754U_cjs.auth_default);
2745
- app.route("/", chunk74DP754U_cjs.test_cleanup_default);
2765
+ app.route("/admin/content", chunkA4SVOGG6_cjs.admin_content_default);
2766
+ app.route("/admin/media", chunkA4SVOGG6_cjs.adminMediaRoutes);
2767
+ app.route("/admin/plugins", chunkA4SVOGG6_cjs.adminPluginRoutes);
2768
+ app.route("/admin/logs", chunkA4SVOGG6_cjs.adminLogsRoutes);
2769
+ app.route("/admin", chunkA4SVOGG6_cjs.userRoutes);
2770
+ app.route("/auth", chunkA4SVOGG6_cjs.auth_default);
2771
+ app.route("/", chunkA4SVOGG6_cjs.test_cleanup_default);
2746
2772
  if (emailPlugin.routes && emailPlugin.routes.length > 0) {
2747
2773
  for (const route of emailPlugin.routes) {
2748
2774
  app.route(route.path, route.handler);
@@ -2822,83 +2848,83 @@ function createDb(d1$1) {
2822
2848
  }
2823
2849
 
2824
2850
  // src/index.ts
2825
- var VERSION = chunk2XCJ3HT5_cjs.package_default.version;
2851
+ var VERSION = chunkFYEDK7K7_cjs.package_default.version;
2826
2852
 
2827
2853
  Object.defineProperty(exports, "ROUTES_INFO", {
2828
2854
  enumerable: true,
2829
- get: function () { return chunk74DP754U_cjs.ROUTES_INFO; }
2855
+ get: function () { return chunkA4SVOGG6_cjs.ROUTES_INFO; }
2830
2856
  });
2831
2857
  Object.defineProperty(exports, "adminApiRoutes", {
2832
2858
  enumerable: true,
2833
- get: function () { return chunk74DP754U_cjs.admin_api_default; }
2859
+ get: function () { return chunkA4SVOGG6_cjs.admin_api_default; }
2834
2860
  });
2835
2861
  Object.defineProperty(exports, "adminCheckboxRoutes", {
2836
2862
  enumerable: true,
2837
- get: function () { return chunk74DP754U_cjs.adminCheckboxRoutes; }
2863
+ get: function () { return chunkA4SVOGG6_cjs.adminCheckboxRoutes; }
2838
2864
  });
2839
2865
  Object.defineProperty(exports, "adminCodeExamplesRoutes", {
2840
2866
  enumerable: true,
2841
- get: function () { return chunk74DP754U_cjs.admin_code_examples_default; }
2867
+ get: function () { return chunkA4SVOGG6_cjs.admin_code_examples_default; }
2842
2868
  });
2843
2869
  Object.defineProperty(exports, "adminCollectionsRoutes", {
2844
2870
  enumerable: true,
2845
- get: function () { return chunk74DP754U_cjs.adminCollectionsRoutes; }
2871
+ get: function () { return chunkA4SVOGG6_cjs.adminCollectionsRoutes; }
2846
2872
  });
2847
2873
  Object.defineProperty(exports, "adminContentRoutes", {
2848
2874
  enumerable: true,
2849
- get: function () { return chunk74DP754U_cjs.admin_content_default; }
2875
+ get: function () { return chunkA4SVOGG6_cjs.admin_content_default; }
2850
2876
  });
2851
2877
  Object.defineProperty(exports, "adminDashboardRoutes", {
2852
2878
  enumerable: true,
2853
- get: function () { return chunk74DP754U_cjs.router; }
2879
+ get: function () { return chunkA4SVOGG6_cjs.router; }
2854
2880
  });
2855
2881
  Object.defineProperty(exports, "adminDesignRoutes", {
2856
2882
  enumerable: true,
2857
- get: function () { return chunk74DP754U_cjs.adminDesignRoutes; }
2883
+ get: function () { return chunkA4SVOGG6_cjs.adminDesignRoutes; }
2858
2884
  });
2859
2885
  Object.defineProperty(exports, "adminLogsRoutes", {
2860
2886
  enumerable: true,
2861
- get: function () { return chunk74DP754U_cjs.adminLogsRoutes; }
2887
+ get: function () { return chunkA4SVOGG6_cjs.adminLogsRoutes; }
2862
2888
  });
2863
2889
  Object.defineProperty(exports, "adminMediaRoutes", {
2864
2890
  enumerable: true,
2865
- get: function () { return chunk74DP754U_cjs.adminMediaRoutes; }
2891
+ get: function () { return chunkA4SVOGG6_cjs.adminMediaRoutes; }
2866
2892
  });
2867
2893
  Object.defineProperty(exports, "adminPluginRoutes", {
2868
2894
  enumerable: true,
2869
- get: function () { return chunk74DP754U_cjs.adminPluginRoutes; }
2895
+ get: function () { return chunkA4SVOGG6_cjs.adminPluginRoutes; }
2870
2896
  });
2871
2897
  Object.defineProperty(exports, "adminSettingsRoutes", {
2872
2898
  enumerable: true,
2873
- get: function () { return chunk74DP754U_cjs.adminSettingsRoutes; }
2899
+ get: function () { return chunkA4SVOGG6_cjs.adminSettingsRoutes; }
2874
2900
  });
2875
2901
  Object.defineProperty(exports, "adminTestimonialsRoutes", {
2876
2902
  enumerable: true,
2877
- get: function () { return chunk74DP754U_cjs.admin_testimonials_default; }
2903
+ get: function () { return chunkA4SVOGG6_cjs.admin_testimonials_default; }
2878
2904
  });
2879
2905
  Object.defineProperty(exports, "adminUsersRoutes", {
2880
2906
  enumerable: true,
2881
- get: function () { return chunk74DP754U_cjs.userRoutes; }
2907
+ get: function () { return chunkA4SVOGG6_cjs.userRoutes; }
2882
2908
  });
2883
2909
  Object.defineProperty(exports, "apiContentCrudRoutes", {
2884
2910
  enumerable: true,
2885
- get: function () { return chunk74DP754U_cjs.api_content_crud_default; }
2911
+ get: function () { return chunkA4SVOGG6_cjs.api_content_crud_default; }
2886
2912
  });
2887
2913
  Object.defineProperty(exports, "apiMediaRoutes", {
2888
2914
  enumerable: true,
2889
- get: function () { return chunk74DP754U_cjs.api_media_default; }
2915
+ get: function () { return chunkA4SVOGG6_cjs.api_media_default; }
2890
2916
  });
2891
2917
  Object.defineProperty(exports, "apiRoutes", {
2892
2918
  enumerable: true,
2893
- get: function () { return chunk74DP754U_cjs.api_default; }
2919
+ get: function () { return chunkA4SVOGG6_cjs.api_default; }
2894
2920
  });
2895
2921
  Object.defineProperty(exports, "apiSystemRoutes", {
2896
2922
  enumerable: true,
2897
- get: function () { return chunk74DP754U_cjs.api_system_default; }
2923
+ get: function () { return chunkA4SVOGG6_cjs.api_system_default; }
2898
2924
  });
2899
2925
  Object.defineProperty(exports, "authRoutes", {
2900
2926
  enumerable: true,
2901
- get: function () { return chunk74DP754U_cjs.auth_default; }
2927
+ get: function () { return chunkA4SVOGG6_cjs.auth_default; }
2902
2928
  });
2903
2929
  Object.defineProperty(exports, "Logger", {
2904
2930
  enumerable: true,
@@ -3066,83 +3092,83 @@ Object.defineProperty(exports, "workflowHistory", {
3066
3092
  });
3067
3093
  Object.defineProperty(exports, "AuthManager", {
3068
3094
  enumerable: true,
3069
- get: function () { return chunkYHJB26RJ_cjs.AuthManager; }
3095
+ get: function () { return chunk7I5INVNR_cjs.AuthManager; }
3070
3096
  });
3071
3097
  Object.defineProperty(exports, "PermissionManager", {
3072
3098
  enumerable: true,
3073
- get: function () { return chunkYHJB26RJ_cjs.PermissionManager; }
3099
+ get: function () { return chunk7I5INVNR_cjs.PermissionManager; }
3074
3100
  });
3075
3101
  Object.defineProperty(exports, "bootstrapMiddleware", {
3076
3102
  enumerable: true,
3077
- get: function () { return chunkYHJB26RJ_cjs.bootstrapMiddleware; }
3103
+ get: function () { return chunk7I5INVNR_cjs.bootstrapMiddleware; }
3078
3104
  });
3079
3105
  Object.defineProperty(exports, "cacheHeaders", {
3080
3106
  enumerable: true,
3081
- get: function () { return chunkYHJB26RJ_cjs.cacheHeaders; }
3107
+ get: function () { return chunk7I5INVNR_cjs.cacheHeaders; }
3082
3108
  });
3083
3109
  Object.defineProperty(exports, "compressionMiddleware", {
3084
3110
  enumerable: true,
3085
- get: function () { return chunkYHJB26RJ_cjs.compressionMiddleware; }
3111
+ get: function () { return chunk7I5INVNR_cjs.compressionMiddleware; }
3086
3112
  });
3087
3113
  Object.defineProperty(exports, "detailedLoggingMiddleware", {
3088
3114
  enumerable: true,
3089
- get: function () { return chunkYHJB26RJ_cjs.detailedLoggingMiddleware; }
3115
+ get: function () { return chunk7I5INVNR_cjs.detailedLoggingMiddleware; }
3090
3116
  });
3091
3117
  Object.defineProperty(exports, "getActivePlugins", {
3092
3118
  enumerable: true,
3093
- get: function () { return chunkYHJB26RJ_cjs.getActivePlugins; }
3119
+ get: function () { return chunk7I5INVNR_cjs.getActivePlugins; }
3094
3120
  });
3095
3121
  Object.defineProperty(exports, "isPluginActive", {
3096
3122
  enumerable: true,
3097
- get: function () { return chunkYHJB26RJ_cjs.isPluginActive; }
3123
+ get: function () { return chunk7I5INVNR_cjs.isPluginActive; }
3098
3124
  });
3099
3125
  Object.defineProperty(exports, "logActivity", {
3100
3126
  enumerable: true,
3101
- get: function () { return chunkYHJB26RJ_cjs.logActivity; }
3127
+ get: function () { return chunk7I5INVNR_cjs.logActivity; }
3102
3128
  });
3103
3129
  Object.defineProperty(exports, "loggingMiddleware", {
3104
3130
  enumerable: true,
3105
- get: function () { return chunkYHJB26RJ_cjs.loggingMiddleware; }
3131
+ get: function () { return chunk7I5INVNR_cjs.loggingMiddleware; }
3106
3132
  });
3107
3133
  Object.defineProperty(exports, "optionalAuth", {
3108
3134
  enumerable: true,
3109
- get: function () { return chunkYHJB26RJ_cjs.optionalAuth; }
3135
+ get: function () { return chunk7I5INVNR_cjs.optionalAuth; }
3110
3136
  });
3111
3137
  Object.defineProperty(exports, "performanceLoggingMiddleware", {
3112
3138
  enumerable: true,
3113
- get: function () { return chunkYHJB26RJ_cjs.performanceLoggingMiddleware; }
3139
+ get: function () { return chunk7I5INVNR_cjs.performanceLoggingMiddleware; }
3114
3140
  });
3115
3141
  Object.defineProperty(exports, "requireActivePlugin", {
3116
3142
  enumerable: true,
3117
- get: function () { return chunkYHJB26RJ_cjs.requireActivePlugin; }
3143
+ get: function () { return chunk7I5INVNR_cjs.requireActivePlugin; }
3118
3144
  });
3119
3145
  Object.defineProperty(exports, "requireActivePlugins", {
3120
3146
  enumerable: true,
3121
- get: function () { return chunkYHJB26RJ_cjs.requireActivePlugins; }
3147
+ get: function () { return chunk7I5INVNR_cjs.requireActivePlugins; }
3122
3148
  });
3123
3149
  Object.defineProperty(exports, "requireAnyPermission", {
3124
3150
  enumerable: true,
3125
- get: function () { return chunkYHJB26RJ_cjs.requireAnyPermission; }
3151
+ get: function () { return chunk7I5INVNR_cjs.requireAnyPermission; }
3126
3152
  });
3127
3153
  Object.defineProperty(exports, "requireAuth", {
3128
3154
  enumerable: true,
3129
- get: function () { return chunkYHJB26RJ_cjs.requireAuth; }
3155
+ get: function () { return chunk7I5INVNR_cjs.requireAuth; }
3130
3156
  });
3131
3157
  Object.defineProperty(exports, "requirePermission", {
3132
3158
  enumerable: true,
3133
- get: function () { return chunkYHJB26RJ_cjs.requirePermission; }
3159
+ get: function () { return chunk7I5INVNR_cjs.requirePermission; }
3134
3160
  });
3135
3161
  Object.defineProperty(exports, "requireRole", {
3136
3162
  enumerable: true,
3137
- get: function () { return chunkYHJB26RJ_cjs.requireRole; }
3163
+ get: function () { return chunk7I5INVNR_cjs.requireRole; }
3138
3164
  });
3139
3165
  Object.defineProperty(exports, "securityHeaders", {
3140
3166
  enumerable: true,
3141
- get: function () { return chunkYHJB26RJ_cjs.securityHeaders; }
3167
+ get: function () { return chunk7I5INVNR_cjs.securityHeaders; }
3142
3168
  });
3143
3169
  Object.defineProperty(exports, "securityLoggingMiddleware", {
3144
3170
  enumerable: true,
3145
- get: function () { return chunkYHJB26RJ_cjs.securityLoggingMiddleware; }
3171
+ get: function () { return chunk7I5INVNR_cjs.securityLoggingMiddleware; }
3146
3172
  });
3147
3173
  Object.defineProperty(exports, "PluginBootstrapService", {
3148
3174
  enumerable: true,
@@ -3198,7 +3224,7 @@ Object.defineProperty(exports, "validateCollectionConfig", {
3198
3224
  });
3199
3225
  Object.defineProperty(exports, "MigrationService", {
3200
3226
  enumerable: true,
3201
- get: function () { return chunkIEWLOVP3_cjs.MigrationService; }
3227
+ get: function () { return chunk2MI3LZFH_cjs.MigrationService; }
3202
3228
  });
3203
3229
  Object.defineProperty(exports, "renderFilterBar", {
3204
3230
  enumerable: true,
@@ -3258,43 +3284,43 @@ Object.defineProperty(exports, "ScopedHookSystemClass", {
3258
3284
  });
3259
3285
  Object.defineProperty(exports, "QueryFilterBuilder", {
3260
3286
  enumerable: true,
3261
- get: function () { return chunk2XCJ3HT5_cjs.QueryFilterBuilder; }
3287
+ get: function () { return chunkFYEDK7K7_cjs.QueryFilterBuilder; }
3262
3288
  });
3263
3289
  Object.defineProperty(exports, "SONICJS_VERSION", {
3264
3290
  enumerable: true,
3265
- get: function () { return chunk2XCJ3HT5_cjs.SONICJS_VERSION; }
3291
+ get: function () { return chunkFYEDK7K7_cjs.SONICJS_VERSION; }
3266
3292
  });
3267
3293
  Object.defineProperty(exports, "TemplateRenderer", {
3268
3294
  enumerable: true,
3269
- get: function () { return chunk2XCJ3HT5_cjs.TemplateRenderer; }
3295
+ get: function () { return chunkFYEDK7K7_cjs.TemplateRenderer; }
3270
3296
  });
3271
3297
  Object.defineProperty(exports, "buildQuery", {
3272
3298
  enumerable: true,
3273
- get: function () { return chunk2XCJ3HT5_cjs.buildQuery; }
3299
+ get: function () { return chunkFYEDK7K7_cjs.buildQuery; }
3274
3300
  });
3275
3301
  Object.defineProperty(exports, "escapeHtml", {
3276
3302
  enumerable: true,
3277
- get: function () { return chunk2XCJ3HT5_cjs.escapeHtml; }
3303
+ get: function () { return chunkFYEDK7K7_cjs.escapeHtml; }
3278
3304
  });
3279
3305
  Object.defineProperty(exports, "getCoreVersion", {
3280
3306
  enumerable: true,
3281
- get: function () { return chunk2XCJ3HT5_cjs.getCoreVersion; }
3307
+ get: function () { return chunkFYEDK7K7_cjs.getCoreVersion; }
3282
3308
  });
3283
3309
  Object.defineProperty(exports, "renderTemplate", {
3284
3310
  enumerable: true,
3285
- get: function () { return chunk2XCJ3HT5_cjs.renderTemplate; }
3311
+ get: function () { return chunkFYEDK7K7_cjs.renderTemplate; }
3286
3312
  });
3287
3313
  Object.defineProperty(exports, "sanitizeInput", {
3288
3314
  enumerable: true,
3289
- get: function () { return chunk2XCJ3HT5_cjs.sanitizeInput; }
3315
+ get: function () { return chunkFYEDK7K7_cjs.sanitizeInput; }
3290
3316
  });
3291
3317
  Object.defineProperty(exports, "sanitizeObject", {
3292
3318
  enumerable: true,
3293
- get: function () { return chunk2XCJ3HT5_cjs.sanitizeObject; }
3319
+ get: function () { return chunkFYEDK7K7_cjs.sanitizeObject; }
3294
3320
  });
3295
3321
  Object.defineProperty(exports, "templateRenderer", {
3296
3322
  enumerable: true,
3297
- get: function () { return chunk2XCJ3HT5_cjs.templateRenderer; }
3323
+ get: function () { return chunkFYEDK7K7_cjs.templateRenderer; }
3298
3324
  });
3299
3325
  Object.defineProperty(exports, "metricsTracker", {
3300
3326
  enumerable: true,