@sonicjs-cms/core 2.16.0 → 2.16.1

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 (50) hide show
  1. package/dist/{app-COElO4Rm.d.cts → app-D9L3mrC-.d.cts} +1 -0
  2. package/dist/{app-COElO4Rm.d.ts → app-D9L3mrC-.d.ts} +1 -0
  3. package/dist/{chunk-CZ6BVQZX.cjs → chunk-7HHIZQNE.cjs} +8 -8
  4. package/dist/{chunk-CZ6BVQZX.cjs.map → chunk-7HHIZQNE.cjs.map} +1 -1
  5. package/dist/{chunk-WLSIUKNM.js → chunk-BAMJVG33.js} +9 -9
  6. package/dist/{chunk-WLSIUKNM.js.map → chunk-BAMJVG33.js.map} +1 -1
  7. package/dist/{chunk-OCLUXJ7E.cjs → chunk-HU4MN74Q.cjs} +48 -5
  8. package/dist/chunk-HU4MN74Q.cjs.map +1 -0
  9. package/dist/{chunk-MVSCB4E3.js → chunk-JF5RQXPN.js} +3 -3
  10. package/dist/{chunk-MVSCB4E3.js.map → chunk-JF5RQXPN.js.map} +1 -1
  11. package/dist/{chunk-Y5EH32F5.js → chunk-KYAF33AF.js} +4 -4
  12. package/dist/{chunk-Y5EH32F5.js.map → chunk-KYAF33AF.js.map} +1 -1
  13. package/dist/{chunk-6ENX7QSA.cjs → chunk-MZS33LLH.cjs} +114 -114
  14. package/dist/{chunk-6ENX7QSA.cjs.map → chunk-MZS33LLH.cjs.map} +1 -1
  15. package/dist/{chunk-VFQUULAV.js → chunk-PUZMLXOJ.js} +48 -5
  16. package/dist/chunk-PUZMLXOJ.js.map +1 -0
  17. package/dist/{chunk-Q5VFZUXV.cjs → chunk-U6FOL6EO.cjs} +2 -2
  18. package/dist/{chunk-Q5VFZUXV.cjs.map → chunk-U6FOL6EO.cjs.map} +1 -1
  19. package/dist/{chunk-YQW2GCJ3.cjs → chunk-V76ERLX6.cjs} +3 -3
  20. package/dist/{chunk-YQW2GCJ3.cjs.map → chunk-V76ERLX6.cjs.map} +1 -1
  21. package/dist/{chunk-INSDRCG3.js → chunk-W33MHOPA.js} +2 -2
  22. package/dist/{chunk-INSDRCG3.js.map → chunk-W33MHOPA.js.map} +1 -1
  23. package/dist/index.cjs +150 -134
  24. package/dist/index.cjs.map +1 -1
  25. package/dist/index.d.cts +1 -1
  26. package/dist/index.d.ts +1 -1
  27. package/dist/index.js +26 -10
  28. package/dist/index.js.map +1 -1
  29. package/dist/middleware.cjs +29 -29
  30. package/dist/middleware.d.cts +1 -1
  31. package/dist/middleware.d.ts +1 -1
  32. package/dist/middleware.js +3 -3
  33. package/dist/migrations-MYQI2KAJ.cjs +13 -0
  34. package/dist/{migrations-SVQTT7NV.cjs.map → migrations-MYQI2KAJ.cjs.map} +1 -1
  35. package/dist/migrations-WCEBO5QQ.js +4 -0
  36. package/dist/{migrations-7HQ7LYAL.js.map → migrations-WCEBO5QQ.js.map} +1 -1
  37. package/dist/routes.cjs +28 -28
  38. package/dist/routes.d.cts +1 -1
  39. package/dist/routes.d.ts +1 -1
  40. package/dist/routes.js +5 -5
  41. package/dist/services.cjs +23 -23
  42. package/dist/services.js +2 -2
  43. package/dist/utils.cjs +11 -11
  44. package/dist/utils.js +1 -1
  45. package/migrations/035_user_profiles_data_column.sql +14 -15
  46. package/package.json +1 -1
  47. package/dist/chunk-OCLUXJ7E.cjs.map +0 -1
  48. package/dist/chunk-VFQUULAV.js.map +0 -1
  49. package/dist/migrations-7HQ7LYAL.js +0 -4
  50. package/dist/migrations-SVQTT7NV.cjs +0 -13
package/dist/index.cjs CHANGED
@@ -1,16 +1,16 @@
1
1
  'use strict';
2
2
 
3
- var chunk6ENX7QSA_cjs = require('./chunk-6ENX7QSA.cjs');
3
+ var chunkMZS33LLH_cjs = require('./chunk-MZS33LLH.cjs');
4
4
  var chunkNZWFCUDA_cjs = require('./chunk-NZWFCUDA.cjs');
5
- var chunkCZ6BVQZX_cjs = require('./chunk-CZ6BVQZX.cjs');
6
- var chunkQ5VFZUXV_cjs = require('./chunk-Q5VFZUXV.cjs');
7
- var chunkOCLUXJ7E_cjs = require('./chunk-OCLUXJ7E.cjs');
5
+ var chunk7HHIZQNE_cjs = require('./chunk-7HHIZQNE.cjs');
6
+ var chunkU6FOL6EO_cjs = require('./chunk-U6FOL6EO.cjs');
7
+ var chunkHU4MN74Q_cjs = require('./chunk-HU4MN74Q.cjs');
8
8
  var chunk4ZSNJDLS_cjs = require('./chunk-4ZSNJDLS.cjs');
9
9
  var chunkOHYBNCVL_cjs = require('./chunk-OHYBNCVL.cjs');
10
10
  var chunkUYJ6TJHX_cjs = require('./chunk-UYJ6TJHX.cjs');
11
11
  var chunkABB34XUS_cjs = require('./chunk-ABB34XUS.cjs');
12
12
  var chunk635JAMSE_cjs = require('./chunk-635JAMSE.cjs');
13
- var chunkYQW2GCJ3_cjs = require('./chunk-YQW2GCJ3.cjs');
13
+ var chunkV76ERLX6_cjs = require('./chunk-V76ERLX6.cjs');
14
14
  require('./chunk-P3XDZL6Q.cjs');
15
15
  var chunkRCQ2HIQD_cjs = require('./chunk-RCQ2HIQD.cjs');
16
16
  var chunkMNWKYY5E_cjs = require('./chunk-MNWKYY5E.cjs');
@@ -560,7 +560,7 @@ function formatCellValue(value) {
560
560
  // src/plugins/core-plugins/database-tools-plugin/admin-routes.ts
561
561
  function createDatabaseToolsAdminRoutes() {
562
562
  const router3 = new hono.Hono();
563
- router3.use("*", chunkCZ6BVQZX_cjs.requireAuth());
563
+ router3.use("*", chunk7HHIZQNE_cjs.requireAuth());
564
564
  router3.get("/api/stats", async (c) => {
565
565
  try {
566
566
  const user = c.get("user");
@@ -1939,7 +1939,7 @@ function createOTPLoginPlugin() {
1939
1939
  error: "Account is deactivated"
1940
1940
  }, 403);
1941
1941
  }
1942
- const token = await chunkCZ6BVQZX_cjs.AuthManager.generateToken(user.id, user.email, user.role, c.env.JWT_SECRET);
1942
+ const token = await chunk7HHIZQNE_cjs.AuthManager.generateToken(user.id, user.email, user.role, c.env.JWT_SECRET);
1943
1943
  cookie.setCookie(c, "auth_token", token, {
1944
1944
  httpOnly: true,
1945
1945
  secure: true,
@@ -2409,13 +2409,13 @@ function createOAuthProvidersPlugin() {
2409
2409
  if (!user || !user.is_active) {
2410
2410
  return c.redirect("/auth/login?error=Account is deactivated");
2411
2411
  }
2412
- const jwt2 = await chunkCZ6BVQZX_cjs.AuthManager.generateToken(
2412
+ const jwt2 = await chunk7HHIZQNE_cjs.AuthManager.generateToken(
2413
2413
  user.id,
2414
2414
  user.email,
2415
2415
  user.role,
2416
2416
  c.env.JWT_SECRET
2417
2417
  );
2418
- chunkCZ6BVQZX_cjs.AuthManager.setAuthCookie(c, jwt2, { sameSite: "Lax" });
2418
+ chunk7HHIZQNE_cjs.AuthManager.setAuthCookie(c, jwt2, { sameSite: "Lax" });
2419
2419
  return c.redirect("/admin");
2420
2420
  }
2421
2421
  const existingUser = await oauthService.findUserByEmail(profile.email);
@@ -2432,13 +2432,13 @@ function createOAuthProvidersPlugin() {
2432
2432
  tokenExpiresAt: tokenExpiresAt ?? void 0,
2433
2433
  profileData: JSON.stringify(profile)
2434
2434
  });
2435
- const jwt2 = await chunkCZ6BVQZX_cjs.AuthManager.generateToken(
2435
+ const jwt2 = await chunk7HHIZQNE_cjs.AuthManager.generateToken(
2436
2436
  existingUser.id,
2437
2437
  existingUser.email,
2438
2438
  existingUser.role,
2439
2439
  c.env.JWT_SECRET
2440
2440
  );
2441
- chunkCZ6BVQZX_cjs.AuthManager.setAuthCookie(c, jwt2, { sameSite: "Lax" });
2441
+ chunk7HHIZQNE_cjs.AuthManager.setAuthCookie(c, jwt2, { sameSite: "Lax" });
2442
2442
  return c.redirect("/admin");
2443
2443
  }
2444
2444
  const newUserId = await oauthService.createUserFromOAuth(profile);
@@ -2451,13 +2451,13 @@ function createOAuthProvidersPlugin() {
2451
2451
  tokenExpiresAt: tokenExpiresAt ?? void 0,
2452
2452
  profileData: JSON.stringify(profile)
2453
2453
  });
2454
- const jwt = await chunkCZ6BVQZX_cjs.AuthManager.generateToken(
2454
+ const jwt = await chunk7HHIZQNE_cjs.AuthManager.generateToken(
2455
2455
  newUserId,
2456
2456
  profile.email.toLowerCase(),
2457
2457
  "viewer",
2458
2458
  c.env.JWT_SECRET
2459
2459
  );
2460
- chunkCZ6BVQZX_cjs.AuthManager.setAuthCookie(c, jwt, { sameSite: "Lax" });
2460
+ chunk7HHIZQNE_cjs.AuthManager.setAuthCookie(c, jwt, { sameSite: "Lax" });
2461
2461
  return c.redirect("/admin");
2462
2462
  } catch (error) {
2463
2463
  console.error("OAuth callback error:", error);
@@ -4150,7 +4150,7 @@ function renderSettingsPage(data) {
4150
4150
 
4151
4151
  // src/plugins/core-plugins/ai-search-plugin/routes/admin.ts
4152
4152
  var adminRoutes = new hono.Hono();
4153
- adminRoutes.use("*", chunkCZ6BVQZX_cjs.requireAuth());
4153
+ adminRoutes.use("*", chunk7HHIZQNE_cjs.requireAuth());
4154
4154
  adminRoutes.get("/", async (c) => {
4155
4155
  try {
4156
4156
  const user = c.get("user");
@@ -4551,13 +4551,13 @@ function createMagicLinkAuthPlugin() {
4551
4551
  SET used = 1, used_at = ?
4552
4552
  WHERE id = ?
4553
4553
  `).bind(Date.now(), magicLink.id).run();
4554
- const jwtToken = await chunkCZ6BVQZX_cjs.AuthManager.generateToken(
4554
+ const jwtToken = await chunk7HHIZQNE_cjs.AuthManager.generateToken(
4555
4555
  user.id,
4556
4556
  user.email,
4557
4557
  user.role,
4558
4558
  c.env.JWT_SECRET
4559
4559
  );
4560
- chunkCZ6BVQZX_cjs.AuthManager.setAuthCookie(c, jwtToken);
4560
+ chunk7HHIZQNE_cjs.AuthManager.setAuthCookie(c, jwtToken);
4561
4561
  await db.prepare(`
4562
4562
  UPDATE users SET last_login_at = ? WHERE id = ?
4563
4563
  `).bind(Date.now(), user.id).run();
@@ -5567,7 +5567,7 @@ function renderSecuritySettingsPage(data) {
5567
5567
 
5568
5568
  // src/plugins/core-plugins/security-audit-plugin/routes/admin.ts
5569
5569
  var adminRoutes2 = new hono.Hono();
5570
- adminRoutes2.use("*", chunkCZ6BVQZX_cjs.requireAuth());
5570
+ adminRoutes2.use("*", chunk7HHIZQNE_cjs.requireAuth());
5571
5571
  adminRoutes2.use("*", async (c, next) => {
5572
5572
  const user = c.get("user");
5573
5573
  if (user?.role !== "admin") {
@@ -5577,7 +5577,7 @@ adminRoutes2.use("*", async (c, next) => {
5577
5577
  });
5578
5578
  async function getSettings(db) {
5579
5579
  try {
5580
- const pluginService = new chunkQ5VFZUXV_cjs.PluginService(db);
5580
+ const pluginService = new chunkU6FOL6EO_cjs.PluginService(db);
5581
5581
  const plugin2 = await pluginService.getPlugin("security-audit");
5582
5582
  if (plugin2?.settings) {
5583
5583
  const settings = typeof plugin2.settings === "string" ? JSON.parse(plugin2.settings) : plugin2.settings;
@@ -5682,7 +5682,7 @@ adminRoutes2.post("/settings", async (c) => {
5682
5682
  autoPurge: body["retention.autoPurge"] === "true"
5683
5683
  }
5684
5684
  };
5685
- const pluginService = new chunkQ5VFZUXV_cjs.PluginService(db);
5685
+ const pluginService = new chunkU6FOL6EO_cjs.PluginService(db);
5686
5686
  await pluginService.updatePluginSettings("security-audit", settings);
5687
5687
  if (c.req.header("HX-Request")) {
5688
5688
  return c.json({ success: true });
@@ -5843,7 +5843,7 @@ var BruteForceDetector = class {
5843
5843
 
5844
5844
  // src/plugins/core-plugins/security-audit-plugin/routes/api.ts
5845
5845
  var apiRoutes2 = new hono.Hono();
5846
- apiRoutes2.use("*", chunkCZ6BVQZX_cjs.requireAuth());
5846
+ apiRoutes2.use("*", chunk7HHIZQNE_cjs.requireAuth());
5847
5847
  apiRoutes2.use("*", async (c, next) => {
5848
5848
  const user = c.get("user");
5849
5849
  if (user?.role !== "admin") {
@@ -5853,7 +5853,7 @@ apiRoutes2.use("*", async (c, next) => {
5853
5853
  });
5854
5854
  async function getSettings2(db) {
5855
5855
  try {
5856
- const pluginService = new chunkQ5VFZUXV_cjs.PluginService(db);
5856
+ const pluginService = new chunkU6FOL6EO_cjs.PluginService(db);
5857
5857
  const plugin2 = await pluginService.getPlugin("security-audit");
5858
5858
  if (plugin2?.settings) {
5859
5859
  const settings = typeof plugin2.settings === "string" ? JSON.parse(plugin2.settings) : plugin2.settings;
@@ -6001,7 +6001,7 @@ function generateFingerprint(ip, userAgent) {
6001
6001
  }
6002
6002
  async function getPluginSettings(db) {
6003
6003
  try {
6004
- const pluginService = new chunkQ5VFZUXV_cjs.PluginService(db);
6004
+ const pluginService = new chunkU6FOL6EO_cjs.PluginService(db);
6005
6005
  const plugin2 = await pluginService.getPlugin("security-audit");
6006
6006
  if (plugin2?.settings) {
6007
6007
  const settings = typeof plugin2.settings === "string" ? JSON.parse(plugin2.settings) : plugin2.settings;
@@ -6889,7 +6889,7 @@ function renderEventsPage(data) {
6889
6889
  <tr>
6890
6890
  <th class="px-6 py-3 text-left text-xs font-medium text-zinc-500 dark:text-zinc-400 uppercase tracking-wider">Time</th>
6891
6891
  <th class="px-6 py-3 text-left text-xs font-medium text-zinc-500 dark:text-zinc-400 uppercase tracking-wider">Type</th>
6892
- <th class="px-6 py-3 text-left text-xs font-medium text-zinc-500 dark:text-zinc-400 uppercase tracking-wider">Object</th>
6892
+ <th class="px-6 py-3 text-left text-xs font-medium text-zinc-500 dark:text-zinc-400 uppercase tracking-wider">Object / User</th>
6893
6893
  <th class="px-6 py-3 text-left text-xs font-medium text-zinc-500 dark:text-zinc-400 uppercase tracking-wider">Status</th>
6894
6894
  <th class="px-6 py-3 text-left text-xs font-medium text-zinc-500 dark:text-zinc-400 uppercase tracking-wider">Event ID</th>
6895
6895
  </tr>
@@ -6948,8 +6948,20 @@ function formatTimestamp3(timestamp) {
6948
6948
  second: "2-digit"
6949
6949
  });
6950
6950
  }
6951
+ function extractUserInfo(event) {
6952
+ try {
6953
+ const data = typeof event.data === "string" ? JSON.parse(event.data) : event.data;
6954
+ const userId = data?.metadata?.sonicjs_user_id || data?.sonicjs_user_id;
6955
+ const email = data?.customer_email || data?.customerEmail || data?.receipt_email;
6956
+ return { userId: userId || void 0, email: email || void 0 };
6957
+ } catch {
6958
+ return {};
6959
+ }
6960
+ }
6951
6961
  function renderEventRow(event) {
6952
6962
  const errorTooltip = event.error ? ` title="${event.error.replace(/"/g, "&quot;")}"` : "";
6963
+ const userInfo = extractUserInfo(event);
6964
+ const userLink = userInfo.userId ? `<a href="/admin/users/${userInfo.userId}" class="text-sm text-blue-600 dark:text-blue-400 hover:underline">${userInfo.email || userInfo.userId}</a>` : userInfo.email ? `<span class="text-sm text-zinc-500 dark:text-zinc-400">${userInfo.email}</span>` : "";
6953
6965
  return `
6954
6966
  <tr class="hover:bg-zinc-950/[0.025] dark:hover:bg-white/[0.025]"${errorTooltip}>
6955
6967
  <td class="px-6 py-4 whitespace-nowrap text-sm text-zinc-500 dark:text-zinc-400">
@@ -6961,6 +6973,7 @@ function renderEventRow(event) {
6961
6973
  <td class="px-6 py-4 whitespace-nowrap">
6962
6974
  <div class="text-sm font-mono text-zinc-500 dark:text-zinc-400">${event.objectId || "-"}</div>
6963
6975
  <div class="text-xs text-zinc-400 dark:text-zinc-500">${event.objectType}</div>
6976
+ ${userLink ? `<div class="mt-1">${userLink}</div>` : ""}
6964
6977
  </td>
6965
6978
  <td class="px-6 py-4 whitespace-nowrap">${eventStatusBadge(event.status)}</td>
6966
6979
  <td class="px-6 py-4 whitespace-nowrap text-xs font-mono text-zinc-400 dark:text-zinc-500">${event.stripeEventId}</td>
@@ -6998,7 +7011,7 @@ var DEFAULT_SETTINGS3 = {
6998
7011
 
6999
7012
  // src/plugins/core-plugins/stripe-plugin/routes/admin.ts
7000
7013
  var adminRoutes3 = new hono.Hono();
7001
- adminRoutes3.use("*", chunkCZ6BVQZX_cjs.requireAuth());
7014
+ adminRoutes3.use("*", chunk7HHIZQNE_cjs.requireAuth());
7002
7015
  adminRoutes3.use("*", async (c, next) => {
7003
7016
  const user = c.get("user");
7004
7017
  if (user?.role !== "admin") {
@@ -7008,7 +7021,7 @@ adminRoutes3.use("*", async (c, next) => {
7008
7021
  });
7009
7022
  async function getSettings3(db) {
7010
7023
  try {
7011
- const pluginService = new chunkQ5VFZUXV_cjs.PluginService(db);
7024
+ const pluginService = new chunkU6FOL6EO_cjs.PluginService(db);
7012
7025
  const plugin2 = await pluginService.getPlugin("stripe");
7013
7026
  if (plugin2?.settings) {
7014
7027
  const settings = typeof plugin2.settings === "string" ? JSON.parse(plugin2.settings) : plugin2.settings;
@@ -7330,7 +7343,7 @@ function timingSafeEqual(a, b) {
7330
7343
  var apiRoutes3 = new hono.Hono();
7331
7344
  async function getSettings4(db) {
7332
7345
  try {
7333
- const pluginService = new chunkQ5VFZUXV_cjs.PluginService(db);
7346
+ const pluginService = new chunkU6FOL6EO_cjs.PluginService(db);
7334
7347
  const plugin2 = await pluginService.getPlugin("stripe");
7335
7348
  if (plugin2?.settings) {
7336
7349
  const settings = typeof plugin2.settings === "string" ? JSON.parse(plugin2.settings) : plugin2.settings;
@@ -7481,7 +7494,7 @@ apiRoutes3.post("/webhook", async (c) => {
7481
7494
  }
7482
7495
  return c.json({ received: true });
7483
7496
  });
7484
- apiRoutes3.post("/create-checkout-session", chunkCZ6BVQZX_cjs.requireAuth(), async (c) => {
7497
+ apiRoutes3.post("/create-checkout-session", chunk7HHIZQNE_cjs.requireAuth(), async (c) => {
7485
7498
  const db = c.env.DB;
7486
7499
  const user = c.get("user");
7487
7500
  if (!user) return c.json({ error: "Unauthorized" }, 401);
@@ -7521,7 +7534,7 @@ apiRoutes3.post("/create-checkout-session", chunkCZ6BVQZX_cjs.requireAuth(), asy
7521
7534
  });
7522
7535
  return c.json({ sessionId: session.id, url: session.url });
7523
7536
  });
7524
- apiRoutes3.get("/subscription", chunkCZ6BVQZX_cjs.requireAuth(), async (c) => {
7537
+ apiRoutes3.get("/subscription", chunk7HHIZQNE_cjs.requireAuth(), async (c) => {
7525
7538
  const user = c.get("user");
7526
7539
  if (!user) return c.json({ error: "Unauthorized" }, 401);
7527
7540
  const db = c.env.DB;
@@ -7533,7 +7546,7 @@ apiRoutes3.get("/subscription", chunkCZ6BVQZX_cjs.requireAuth(), async (c) => {
7533
7546
  }
7534
7547
  return c.json({ subscription });
7535
7548
  });
7536
- apiRoutes3.get("/subscriptions", chunkCZ6BVQZX_cjs.requireAuth(), async (c) => {
7549
+ apiRoutes3.get("/subscriptions", chunk7HHIZQNE_cjs.requireAuth(), async (c) => {
7537
7550
  const user = c.get("user");
7538
7551
  if (user?.role !== "admin") return c.json({ error: "Access denied" }, 403);
7539
7552
  const db = c.env.DB;
@@ -7549,7 +7562,7 @@ apiRoutes3.get("/subscriptions", chunkCZ6BVQZX_cjs.requireAuth(), async (c) => {
7549
7562
  const result = await subscriptionService.list(filters);
7550
7563
  return c.json(result);
7551
7564
  });
7552
- apiRoutes3.get("/stats", chunkCZ6BVQZX_cjs.requireAuth(), async (c) => {
7565
+ apiRoutes3.get("/stats", chunk7HHIZQNE_cjs.requireAuth(), async (c) => {
7553
7566
  const user = c.get("user");
7554
7567
  if (user?.role !== "admin") return c.json({ error: "Access denied" }, 403);
7555
7568
  const db = c.env.DB;
@@ -7558,7 +7571,7 @@ apiRoutes3.get("/stats", chunkCZ6BVQZX_cjs.requireAuth(), async (c) => {
7558
7571
  const stats = await subscriptionService.getStats();
7559
7572
  return c.json(stats);
7560
7573
  });
7561
- apiRoutes3.post("/sync-subscriptions", chunkCZ6BVQZX_cjs.requireAuth(), async (c) => {
7574
+ apiRoutes3.post("/sync-subscriptions", chunk7HHIZQNE_cjs.requireAuth(), async (c) => {
7562
7575
  const user = c.get("user");
7563
7576
  if (user?.role !== "admin") return c.json({ error: "Access denied" }, 403);
7564
7577
  const db = c.env.DB;
@@ -7606,7 +7619,7 @@ apiRoutes3.post("/sync-subscriptions", chunkCZ6BVQZX_cjs.requireAuth(), async (c
7606
7619
  }, 500);
7607
7620
  }
7608
7621
  });
7609
- apiRoutes3.get("/events", chunkCZ6BVQZX_cjs.requireAuth(), async (c) => {
7622
+ apiRoutes3.get("/events", chunk7HHIZQNE_cjs.requireAuth(), async (c) => {
7610
7623
  const user = c.get("user");
7611
7624
  if (user?.role !== "admin") return c.json({ error: "Access denied" }, 403);
7612
7625
  const db = c.env.DB;
@@ -7672,7 +7685,7 @@ function createStripePlugin() {
7672
7685
  var stripePlugin = createStripePlugin();
7673
7686
 
7674
7687
  // src/middleware/plugin-menu.ts
7675
- var REGISTRY_MENU_PLUGINS = Object.values(chunkQ5VFZUXV_cjs.PLUGIN_REGISTRY).filter((p) => p.adminMenu !== null).map((p) => ({
7688
+ var REGISTRY_MENU_PLUGINS = Object.values(chunkU6FOL6EO_cjs.PLUGIN_REGISTRY).filter((p) => p.adminMenu !== null).map((p) => ({
7676
7689
  codeName: p.codeName,
7677
7690
  label: p.adminMenu.label,
7678
7691
  path: p.adminMenu.path,
@@ -7771,7 +7784,7 @@ var HOOKS2 = {
7771
7784
  USER_LOGIN: "user:login"};
7772
7785
  chunkUYJ6TJHX_cjs.init_admin_layout_catalyst_template();
7773
7786
  var adminRoutes4 = new hono.Hono();
7774
- adminRoutes4.use("*", chunkCZ6BVQZX_cjs.requireAuth());
7787
+ adminRoutes4.use("*", chunk7HHIZQNE_cjs.requireAuth());
7775
7788
  adminRoutes4.use("*", async (c, next) => {
7776
7789
  const user = c.get("user");
7777
7790
  if (user?.role !== "admin") {
@@ -9570,7 +9583,7 @@ function renderCacheDashboard(data) {
9570
9583
  </script>
9571
9584
 
9572
9585
  <!-- Confirmation Dialogs -->
9573
- ${chunk6ENX7QSA_cjs.renderConfirmationDialog({
9586
+ ${chunkMZS33LLH_cjs.renderConfirmationDialog({
9574
9587
  id: "clear-all-cache-confirm",
9575
9588
  title: "Clear All Cache",
9576
9589
  message: "Are you sure you want to clear all cache entries? This cannot be undone.",
@@ -9581,7 +9594,7 @@ function renderCacheDashboard(data) {
9581
9594
  onConfirm: "performClearAllCaches()"
9582
9595
  })}
9583
9596
 
9584
- ${chunk6ENX7QSA_cjs.renderConfirmationDialog({
9597
+ ${chunkMZS33LLH_cjs.renderConfirmationDialog({
9585
9598
  id: "clear-namespace-cache-confirm",
9586
9599
  title: "Clear Namespace Cache",
9587
9600
  message: "Clear cache for this namespace?",
@@ -9592,7 +9605,7 @@ function renderCacheDashboard(data) {
9592
9605
  onConfirm: "performClearNamespaceCache()"
9593
9606
  })}
9594
9607
 
9595
- ${chunk6ENX7QSA_cjs.getConfirmationDialogScript()}
9608
+ ${chunkMZS33LLH_cjs.getConfirmationDialogScript()}
9596
9609
  `;
9597
9610
  const layoutData = {
9598
9611
  title: "Cache System",
@@ -10278,14 +10291,14 @@ var faviconSvg = `<?xml version="1.0" encoding="UTF-8" standalone="no"?>
10278
10291
  // src/app.ts
10279
10292
  function createSonicJSApp(config = {}) {
10280
10293
  const app2 = new hono.Hono();
10281
- const appVersion = config.version || chunkYQW2GCJ3_cjs.getCoreVersion();
10294
+ const appVersion = config.version || chunkV76ERLX6_cjs.getCoreVersion();
10282
10295
  const appName = config.name || "SonicJS AI";
10283
10296
  app2.use("*", async (c, next) => {
10284
10297
  c.set("appVersion", appVersion);
10285
10298
  await next();
10286
10299
  });
10287
- app2.use("*", chunkCZ6BVQZX_cjs.metricsMiddleware());
10288
- app2.use("*", chunkCZ6BVQZX_cjs.bootstrapMiddleware(config));
10300
+ app2.use("*", chunk7HHIZQNE_cjs.metricsMiddleware());
10301
+ app2.use("*", chunk7HHIZQNE_cjs.bootstrapMiddleware(config));
10289
10302
  if (config.middleware?.beforeAuth) {
10290
10303
  for (const middleware of config.middleware.beforeAuth) {
10291
10304
  app2.use("*", middleware);
@@ -10294,29 +10307,32 @@ function createSonicJSApp(config = {}) {
10294
10307
  app2.use("*", async (_c, next) => {
10295
10308
  await next();
10296
10309
  });
10297
- app2.use("*", chunkCZ6BVQZX_cjs.securityHeadersMiddleware());
10298
- app2.use("*", chunkCZ6BVQZX_cjs.csrfProtection());
10310
+ app2.use("*", chunk7HHIZQNE_cjs.securityHeadersMiddleware());
10311
+ app2.use("*", chunk7HHIZQNE_cjs.csrfProtection());
10299
10312
  if (config.middleware?.afterAuth) {
10300
10313
  for (const middleware of config.middleware.afterAuth) {
10301
10314
  app2.use("*", middleware);
10302
10315
  }
10303
10316
  }
10317
+ const adminRoles = config.adminAccessRoles || ["admin"];
10318
+ app2.use("/admin/*", chunk7HHIZQNE_cjs.requireAuth());
10319
+ app2.use("/admin/*", chunk7HHIZQNE_cjs.requireRole(adminRoles));
10304
10320
  app2.use("/admin/*", pluginMenuMiddleware());
10305
- app2.route("/api", chunk6ENX7QSA_cjs.api_default);
10306
- app2.route("/api/media", chunk6ENX7QSA_cjs.api_media_default);
10307
- app2.route("/api/system", chunk6ENX7QSA_cjs.api_system_default);
10308
- app2.route("/admin/api", chunk6ENX7QSA_cjs.admin_api_default);
10309
- app2.route("/admin/dashboard", chunk6ENX7QSA_cjs.router);
10310
- app2.route("/admin/collections", chunk6ENX7QSA_cjs.adminCollectionsRoutes);
10311
- app2.route("/admin/forms", chunk6ENX7QSA_cjs.adminFormsRoutes);
10312
- app2.route("/admin/settings", chunk6ENX7QSA_cjs.adminSettingsRoutes);
10313
- app2.route("/forms", chunk6ENX7QSA_cjs.public_forms_default);
10314
- app2.route("/api/forms", chunk6ENX7QSA_cjs.public_forms_default);
10315
- app2.route("/admin/api-reference", chunk6ENX7QSA_cjs.router2);
10321
+ app2.route("/api", chunkMZS33LLH_cjs.api_default);
10322
+ app2.route("/api/media", chunkMZS33LLH_cjs.api_media_default);
10323
+ app2.route("/api/system", chunkMZS33LLH_cjs.api_system_default);
10324
+ app2.route("/admin/api", chunkMZS33LLH_cjs.admin_api_default);
10325
+ app2.route("/admin/dashboard", chunkMZS33LLH_cjs.router);
10326
+ app2.route("/admin/collections", chunkMZS33LLH_cjs.adminCollectionsRoutes);
10327
+ app2.route("/admin/forms", chunkMZS33LLH_cjs.adminFormsRoutes);
10328
+ app2.route("/admin/settings", chunkMZS33LLH_cjs.adminSettingsRoutes);
10329
+ app2.route("/forms", chunkMZS33LLH_cjs.public_forms_default);
10330
+ app2.route("/api/forms", chunkMZS33LLH_cjs.public_forms_default);
10331
+ app2.route("/admin/api-reference", chunkMZS33LLH_cjs.router2);
10316
10332
  app2.route("/admin/database-tools", createDatabaseToolsAdminRoutes());
10317
10333
  app2.route("/admin/seed-data", createSeedDataAdminRoutes());
10318
- app2.route("/admin/content", chunk6ENX7QSA_cjs.admin_content_default);
10319
- app2.route("/admin/media", chunk6ENX7QSA_cjs.adminMediaRoutes);
10334
+ app2.route("/admin/content", chunkMZS33LLH_cjs.admin_content_default);
10335
+ app2.route("/admin/media", chunkMZS33LLH_cjs.adminMediaRoutes);
10320
10336
  app2.use("/auth/*", securityAuditMiddleware());
10321
10337
  if (securityAuditPlugin.routes && securityAuditPlugin.routes.length > 0) {
10322
10338
  for (const route of securityAuditPlugin.routes) {
@@ -10334,8 +10350,8 @@ function createSonicJSApp(config = {}) {
10334
10350
  app2.route(route.path, route.handler);
10335
10351
  }
10336
10352
  }
10337
- if (chunk6ENX7QSA_cjs.userProfilesPlugin.routes && chunk6ENX7QSA_cjs.userProfilesPlugin.routes.length > 0) {
10338
- for (const route of chunk6ENX7QSA_cjs.userProfilesPlugin.routes) {
10353
+ if (chunkMZS33LLH_cjs.userProfilesPlugin.routes && chunkMZS33LLH_cjs.userProfilesPlugin.routes.length > 0) {
10354
+ for (const route of chunkMZS33LLH_cjs.userProfilesPlugin.routes) {
10339
10355
  app2.route(route.path, route.handler);
10340
10356
  }
10341
10357
  }
@@ -10355,11 +10371,11 @@ function createSonicJSApp(config = {}) {
10355
10371
  app2.route(route.path, route.handler);
10356
10372
  }
10357
10373
  }
10358
- app2.route("/admin/plugins", chunk6ENX7QSA_cjs.adminPluginRoutes);
10359
- app2.route("/admin/logs", chunk6ENX7QSA_cjs.adminLogsRoutes);
10360
- app2.route("/admin", chunk6ENX7QSA_cjs.userRoutes);
10361
- app2.route("/auth", chunk6ENX7QSA_cjs.auth_default);
10362
- app2.route("/", chunk6ENX7QSA_cjs.test_cleanup_default);
10374
+ app2.route("/admin/plugins", chunkMZS33LLH_cjs.adminPluginRoutes);
10375
+ app2.route("/admin/logs", chunkMZS33LLH_cjs.adminLogsRoutes);
10376
+ app2.route("/admin", chunkMZS33LLH_cjs.userRoutes);
10377
+ app2.route("/auth", chunkMZS33LLH_cjs.auth_default);
10378
+ app2.route("/", chunkMZS33LLH_cjs.test_cleanup_default);
10363
10379
  if (emailPlugin.routes && emailPlugin.routes.length > 0) {
10364
10380
  for (const route of emailPlugin.routes) {
10365
10381
  app2.route(route.path, route.handler);
@@ -10443,99 +10459,99 @@ function createDb(d1$1) {
10443
10459
  }
10444
10460
 
10445
10461
  // src/index.ts
10446
- var VERSION = chunkYQW2GCJ3_cjs.package_default.version;
10462
+ var VERSION = chunkV76ERLX6_cjs.package_default.version;
10447
10463
 
10448
10464
  Object.defineProperty(exports, "ROUTES_INFO", {
10449
10465
  enumerable: true,
10450
- get: function () { return chunk6ENX7QSA_cjs.ROUTES_INFO; }
10466
+ get: function () { return chunkMZS33LLH_cjs.ROUTES_INFO; }
10451
10467
  });
10452
10468
  Object.defineProperty(exports, "adminApiRoutes", {
10453
10469
  enumerable: true,
10454
- get: function () { return chunk6ENX7QSA_cjs.admin_api_default; }
10470
+ get: function () { return chunkMZS33LLH_cjs.admin_api_default; }
10455
10471
  });
10456
10472
  Object.defineProperty(exports, "adminCheckboxRoutes", {
10457
10473
  enumerable: true,
10458
- get: function () { return chunk6ENX7QSA_cjs.adminCheckboxRoutes; }
10474
+ get: function () { return chunkMZS33LLH_cjs.adminCheckboxRoutes; }
10459
10475
  });
10460
10476
  Object.defineProperty(exports, "adminCodeExamplesRoutes", {
10461
10477
  enumerable: true,
10462
- get: function () { return chunk6ENX7QSA_cjs.admin_code_examples_default; }
10478
+ get: function () { return chunkMZS33LLH_cjs.admin_code_examples_default; }
10463
10479
  });
10464
10480
  Object.defineProperty(exports, "adminCollectionsRoutes", {
10465
10481
  enumerable: true,
10466
- get: function () { return chunk6ENX7QSA_cjs.adminCollectionsRoutes; }
10482
+ get: function () { return chunkMZS33LLH_cjs.adminCollectionsRoutes; }
10467
10483
  });
10468
10484
  Object.defineProperty(exports, "adminContentRoutes", {
10469
10485
  enumerable: true,
10470
- get: function () { return chunk6ENX7QSA_cjs.admin_content_default; }
10486
+ get: function () { return chunkMZS33LLH_cjs.admin_content_default; }
10471
10487
  });
10472
10488
  Object.defineProperty(exports, "adminDashboardRoutes", {
10473
10489
  enumerable: true,
10474
- get: function () { return chunk6ENX7QSA_cjs.router; }
10490
+ get: function () { return chunkMZS33LLH_cjs.router; }
10475
10491
  });
10476
10492
  Object.defineProperty(exports, "adminDesignRoutes", {
10477
10493
  enumerable: true,
10478
- get: function () { return chunk6ENX7QSA_cjs.adminDesignRoutes; }
10494
+ get: function () { return chunkMZS33LLH_cjs.adminDesignRoutes; }
10479
10495
  });
10480
10496
  Object.defineProperty(exports, "adminLogsRoutes", {
10481
10497
  enumerable: true,
10482
- get: function () { return chunk6ENX7QSA_cjs.adminLogsRoutes; }
10498
+ get: function () { return chunkMZS33LLH_cjs.adminLogsRoutes; }
10483
10499
  });
10484
10500
  Object.defineProperty(exports, "adminMediaRoutes", {
10485
10501
  enumerable: true,
10486
- get: function () { return chunk6ENX7QSA_cjs.adminMediaRoutes; }
10502
+ get: function () { return chunkMZS33LLH_cjs.adminMediaRoutes; }
10487
10503
  });
10488
10504
  Object.defineProperty(exports, "adminPluginRoutes", {
10489
10505
  enumerable: true,
10490
- get: function () { return chunk6ENX7QSA_cjs.adminPluginRoutes; }
10506
+ get: function () { return chunkMZS33LLH_cjs.adminPluginRoutes; }
10491
10507
  });
10492
10508
  Object.defineProperty(exports, "adminSettingsRoutes", {
10493
10509
  enumerable: true,
10494
- get: function () { return chunk6ENX7QSA_cjs.adminSettingsRoutes; }
10510
+ get: function () { return chunkMZS33LLH_cjs.adminSettingsRoutes; }
10495
10511
  });
10496
10512
  Object.defineProperty(exports, "adminTestimonialsRoutes", {
10497
10513
  enumerable: true,
10498
- get: function () { return chunk6ENX7QSA_cjs.admin_testimonials_default; }
10514
+ get: function () { return chunkMZS33LLH_cjs.admin_testimonials_default; }
10499
10515
  });
10500
10516
  Object.defineProperty(exports, "adminUsersRoutes", {
10501
10517
  enumerable: true,
10502
- get: function () { return chunk6ENX7QSA_cjs.userRoutes; }
10518
+ get: function () { return chunkMZS33LLH_cjs.userRoutes; }
10503
10519
  });
10504
10520
  Object.defineProperty(exports, "apiContentCrudRoutes", {
10505
10521
  enumerable: true,
10506
- get: function () { return chunk6ENX7QSA_cjs.api_content_crud_default; }
10522
+ get: function () { return chunkMZS33LLH_cjs.api_content_crud_default; }
10507
10523
  });
10508
10524
  Object.defineProperty(exports, "apiMediaRoutes", {
10509
10525
  enumerable: true,
10510
- get: function () { return chunk6ENX7QSA_cjs.api_media_default; }
10526
+ get: function () { return chunkMZS33LLH_cjs.api_media_default; }
10511
10527
  });
10512
10528
  Object.defineProperty(exports, "apiRoutes", {
10513
10529
  enumerable: true,
10514
- get: function () { return chunk6ENX7QSA_cjs.api_default; }
10530
+ get: function () { return chunkMZS33LLH_cjs.api_default; }
10515
10531
  });
10516
10532
  Object.defineProperty(exports, "apiSystemRoutes", {
10517
10533
  enumerable: true,
10518
- get: function () { return chunk6ENX7QSA_cjs.api_system_default; }
10534
+ get: function () { return chunkMZS33LLH_cjs.api_system_default; }
10519
10535
  });
10520
10536
  Object.defineProperty(exports, "authRoutes", {
10521
10537
  enumerable: true,
10522
- get: function () { return chunk6ENX7QSA_cjs.auth_default; }
10538
+ get: function () { return chunkMZS33LLH_cjs.auth_default; }
10523
10539
  });
10524
10540
  Object.defineProperty(exports, "createUserProfilesPlugin", {
10525
10541
  enumerable: true,
10526
- get: function () { return chunk6ENX7QSA_cjs.createUserProfilesPlugin; }
10542
+ get: function () { return chunkMZS33LLH_cjs.createUserProfilesPlugin; }
10527
10543
  });
10528
10544
  Object.defineProperty(exports, "defineUserProfile", {
10529
10545
  enumerable: true,
10530
- get: function () { return chunk6ENX7QSA_cjs.defineUserProfile; }
10546
+ get: function () { return chunkMZS33LLH_cjs.defineUserProfile; }
10531
10547
  });
10532
10548
  Object.defineProperty(exports, "getUserProfileConfig", {
10533
10549
  enumerable: true,
10534
- get: function () { return chunk6ENX7QSA_cjs.getUserProfileConfig; }
10550
+ get: function () { return chunkMZS33LLH_cjs.getUserProfileConfig; }
10535
10551
  });
10536
10552
  Object.defineProperty(exports, "userProfilesPlugin", {
10537
10553
  enumerable: true,
10538
- get: function () { return chunk6ENX7QSA_cjs.userProfilesPlugin; }
10554
+ get: function () { return chunkMZS33LLH_cjs.userProfilesPlugin; }
10539
10555
  });
10540
10556
  Object.defineProperty(exports, "Logger", {
10541
10557
  enumerable: true,
@@ -10703,167 +10719,167 @@ Object.defineProperty(exports, "workflowHistory", {
10703
10719
  });
10704
10720
  Object.defineProperty(exports, "AuthManager", {
10705
10721
  enumerable: true,
10706
- get: function () { return chunkCZ6BVQZX_cjs.AuthManager; }
10722
+ get: function () { return chunk7HHIZQNE_cjs.AuthManager; }
10707
10723
  });
10708
10724
  Object.defineProperty(exports, "PermissionManager", {
10709
10725
  enumerable: true,
10710
- get: function () { return chunkCZ6BVQZX_cjs.PermissionManager; }
10726
+ get: function () { return chunk7HHIZQNE_cjs.PermissionManager; }
10711
10727
  });
10712
10728
  Object.defineProperty(exports, "bootstrapMiddleware", {
10713
10729
  enumerable: true,
10714
- get: function () { return chunkCZ6BVQZX_cjs.bootstrapMiddleware; }
10730
+ get: function () { return chunk7HHIZQNE_cjs.bootstrapMiddleware; }
10715
10731
  });
10716
10732
  Object.defineProperty(exports, "cacheHeaders", {
10717
10733
  enumerable: true,
10718
- get: function () { return chunkCZ6BVQZX_cjs.cacheHeaders; }
10734
+ get: function () { return chunk7HHIZQNE_cjs.cacheHeaders; }
10719
10735
  });
10720
10736
  Object.defineProperty(exports, "compressionMiddleware", {
10721
10737
  enumerable: true,
10722
- get: function () { return chunkCZ6BVQZX_cjs.compressionMiddleware; }
10738
+ get: function () { return chunk7HHIZQNE_cjs.compressionMiddleware; }
10723
10739
  });
10724
10740
  Object.defineProperty(exports, "detailedLoggingMiddleware", {
10725
10741
  enumerable: true,
10726
- get: function () { return chunkCZ6BVQZX_cjs.detailedLoggingMiddleware; }
10742
+ get: function () { return chunk7HHIZQNE_cjs.detailedLoggingMiddleware; }
10727
10743
  });
10728
10744
  Object.defineProperty(exports, "getActivePlugins", {
10729
10745
  enumerable: true,
10730
- get: function () { return chunkCZ6BVQZX_cjs.getActivePlugins; }
10746
+ get: function () { return chunk7HHIZQNE_cjs.getActivePlugins; }
10731
10747
  });
10732
10748
  Object.defineProperty(exports, "isPluginActive", {
10733
10749
  enumerable: true,
10734
- get: function () { return chunkCZ6BVQZX_cjs.isPluginActive; }
10750
+ get: function () { return chunk7HHIZQNE_cjs.isPluginActive; }
10735
10751
  });
10736
10752
  Object.defineProperty(exports, "logActivity", {
10737
10753
  enumerable: true,
10738
- get: function () { return chunkCZ6BVQZX_cjs.logActivity; }
10754
+ get: function () { return chunk7HHIZQNE_cjs.logActivity; }
10739
10755
  });
10740
10756
  Object.defineProperty(exports, "loggingMiddleware", {
10741
10757
  enumerable: true,
10742
- get: function () { return chunkCZ6BVQZX_cjs.loggingMiddleware; }
10758
+ get: function () { return chunk7HHIZQNE_cjs.loggingMiddleware; }
10743
10759
  });
10744
10760
  Object.defineProperty(exports, "optionalAuth", {
10745
10761
  enumerable: true,
10746
- get: function () { return chunkCZ6BVQZX_cjs.optionalAuth; }
10762
+ get: function () { return chunk7HHIZQNE_cjs.optionalAuth; }
10747
10763
  });
10748
10764
  Object.defineProperty(exports, "performanceLoggingMiddleware", {
10749
10765
  enumerable: true,
10750
- get: function () { return chunkCZ6BVQZX_cjs.performanceLoggingMiddleware; }
10766
+ get: function () { return chunk7HHIZQNE_cjs.performanceLoggingMiddleware; }
10751
10767
  });
10752
10768
  Object.defineProperty(exports, "requireActivePlugin", {
10753
10769
  enumerable: true,
10754
- get: function () { return chunkCZ6BVQZX_cjs.requireActivePlugin; }
10770
+ get: function () { return chunk7HHIZQNE_cjs.requireActivePlugin; }
10755
10771
  });
10756
10772
  Object.defineProperty(exports, "requireActivePlugins", {
10757
10773
  enumerable: true,
10758
- get: function () { return chunkCZ6BVQZX_cjs.requireActivePlugins; }
10774
+ get: function () { return chunk7HHIZQNE_cjs.requireActivePlugins; }
10759
10775
  });
10760
10776
  Object.defineProperty(exports, "requireAnyPermission", {
10761
10777
  enumerable: true,
10762
- get: function () { return chunkCZ6BVQZX_cjs.requireAnyPermission; }
10778
+ get: function () { return chunk7HHIZQNE_cjs.requireAnyPermission; }
10763
10779
  });
10764
10780
  Object.defineProperty(exports, "requireAuth", {
10765
10781
  enumerable: true,
10766
- get: function () { return chunkCZ6BVQZX_cjs.requireAuth; }
10782
+ get: function () { return chunk7HHIZQNE_cjs.requireAuth; }
10767
10783
  });
10768
10784
  Object.defineProperty(exports, "requirePermission", {
10769
10785
  enumerable: true,
10770
- get: function () { return chunkCZ6BVQZX_cjs.requirePermission; }
10786
+ get: function () { return chunk7HHIZQNE_cjs.requirePermission; }
10771
10787
  });
10772
10788
  Object.defineProperty(exports, "requireRole", {
10773
10789
  enumerable: true,
10774
- get: function () { return chunkCZ6BVQZX_cjs.requireRole; }
10790
+ get: function () { return chunk7HHIZQNE_cjs.requireRole; }
10775
10791
  });
10776
10792
  Object.defineProperty(exports, "securityHeaders", {
10777
10793
  enumerable: true,
10778
- get: function () { return chunkCZ6BVQZX_cjs.securityHeadersMiddleware; }
10794
+ get: function () { return chunk7HHIZQNE_cjs.securityHeadersMiddleware; }
10779
10795
  });
10780
10796
  Object.defineProperty(exports, "securityLoggingMiddleware", {
10781
10797
  enumerable: true,
10782
- get: function () { return chunkCZ6BVQZX_cjs.securityLoggingMiddleware; }
10798
+ get: function () { return chunk7HHIZQNE_cjs.securityLoggingMiddleware; }
10783
10799
  });
10784
10800
  Object.defineProperty(exports, "PluginBootstrapService", {
10785
10801
  enumerable: true,
10786
- get: function () { return chunkQ5VFZUXV_cjs.PluginBootstrapService; }
10802
+ get: function () { return chunkU6FOL6EO_cjs.PluginBootstrapService; }
10787
10803
  });
10788
10804
  Object.defineProperty(exports, "PluginServiceClass", {
10789
10805
  enumerable: true,
10790
- get: function () { return chunkQ5VFZUXV_cjs.PluginService; }
10806
+ get: function () { return chunkU6FOL6EO_cjs.PluginService; }
10791
10807
  });
10792
10808
  Object.defineProperty(exports, "backfillFormSubmissions", {
10793
10809
  enumerable: true,
10794
- get: function () { return chunkQ5VFZUXV_cjs.backfillFormSubmissions; }
10810
+ get: function () { return chunkU6FOL6EO_cjs.backfillFormSubmissions; }
10795
10811
  });
10796
10812
  Object.defineProperty(exports, "cleanupRemovedCollections", {
10797
10813
  enumerable: true,
10798
- get: function () { return chunkQ5VFZUXV_cjs.cleanupRemovedCollections; }
10814
+ get: function () { return chunkU6FOL6EO_cjs.cleanupRemovedCollections; }
10799
10815
  });
10800
10816
  Object.defineProperty(exports, "createContentFromSubmission", {
10801
10817
  enumerable: true,
10802
- get: function () { return chunkQ5VFZUXV_cjs.createContentFromSubmission; }
10818
+ get: function () { return chunkU6FOL6EO_cjs.createContentFromSubmission; }
10803
10819
  });
10804
10820
  Object.defineProperty(exports, "deriveCollectionSchemaFromFormio", {
10805
10821
  enumerable: true,
10806
- get: function () { return chunkQ5VFZUXV_cjs.deriveCollectionSchemaFromFormio; }
10822
+ get: function () { return chunkU6FOL6EO_cjs.deriveCollectionSchemaFromFormio; }
10807
10823
  });
10808
10824
  Object.defineProperty(exports, "deriveSubmissionTitle", {
10809
10825
  enumerable: true,
10810
- get: function () { return chunkQ5VFZUXV_cjs.deriveSubmissionTitle; }
10826
+ get: function () { return chunkU6FOL6EO_cjs.deriveSubmissionTitle; }
10811
10827
  });
10812
10828
  Object.defineProperty(exports, "fullCollectionSync", {
10813
10829
  enumerable: true,
10814
- get: function () { return chunkQ5VFZUXV_cjs.fullCollectionSync; }
10830
+ get: function () { return chunkU6FOL6EO_cjs.fullCollectionSync; }
10815
10831
  });
10816
10832
  Object.defineProperty(exports, "getAvailableCollectionNames", {
10817
10833
  enumerable: true,
10818
- get: function () { return chunkQ5VFZUXV_cjs.getAvailableCollectionNames; }
10834
+ get: function () { return chunkU6FOL6EO_cjs.getAvailableCollectionNames; }
10819
10835
  });
10820
10836
  Object.defineProperty(exports, "getManagedCollections", {
10821
10837
  enumerable: true,
10822
- get: function () { return chunkQ5VFZUXV_cjs.getManagedCollections; }
10838
+ get: function () { return chunkU6FOL6EO_cjs.getManagedCollections; }
10823
10839
  });
10824
10840
  Object.defineProperty(exports, "isCollectionManaged", {
10825
10841
  enumerable: true,
10826
- get: function () { return chunkQ5VFZUXV_cjs.isCollectionManaged; }
10842
+ get: function () { return chunkU6FOL6EO_cjs.isCollectionManaged; }
10827
10843
  });
10828
10844
  Object.defineProperty(exports, "loadCollectionConfig", {
10829
10845
  enumerable: true,
10830
- get: function () { return chunkQ5VFZUXV_cjs.loadCollectionConfig; }
10846
+ get: function () { return chunkU6FOL6EO_cjs.loadCollectionConfig; }
10831
10847
  });
10832
10848
  Object.defineProperty(exports, "loadCollectionConfigs", {
10833
10849
  enumerable: true,
10834
- get: function () { return chunkQ5VFZUXV_cjs.loadCollectionConfigs; }
10850
+ get: function () { return chunkU6FOL6EO_cjs.loadCollectionConfigs; }
10835
10851
  });
10836
10852
  Object.defineProperty(exports, "mapFormStatusToContentStatus", {
10837
10853
  enumerable: true,
10838
- get: function () { return chunkQ5VFZUXV_cjs.mapFormStatusToContentStatus; }
10854
+ get: function () { return chunkU6FOL6EO_cjs.mapFormStatusToContentStatus; }
10839
10855
  });
10840
10856
  Object.defineProperty(exports, "registerCollections", {
10841
10857
  enumerable: true,
10842
- get: function () { return chunkQ5VFZUXV_cjs.registerCollections; }
10858
+ get: function () { return chunkU6FOL6EO_cjs.registerCollections; }
10843
10859
  });
10844
10860
  Object.defineProperty(exports, "syncAllFormCollections", {
10845
10861
  enumerable: true,
10846
- get: function () { return chunkQ5VFZUXV_cjs.syncAllFormCollections; }
10862
+ get: function () { return chunkU6FOL6EO_cjs.syncAllFormCollections; }
10847
10863
  });
10848
10864
  Object.defineProperty(exports, "syncCollection", {
10849
10865
  enumerable: true,
10850
- get: function () { return chunkQ5VFZUXV_cjs.syncCollection; }
10866
+ get: function () { return chunkU6FOL6EO_cjs.syncCollection; }
10851
10867
  });
10852
10868
  Object.defineProperty(exports, "syncCollections", {
10853
10869
  enumerable: true,
10854
- get: function () { return chunkQ5VFZUXV_cjs.syncCollections; }
10870
+ get: function () { return chunkU6FOL6EO_cjs.syncCollections; }
10855
10871
  });
10856
10872
  Object.defineProperty(exports, "syncFormCollection", {
10857
10873
  enumerable: true,
10858
- get: function () { return chunkQ5VFZUXV_cjs.syncFormCollection; }
10874
+ get: function () { return chunkU6FOL6EO_cjs.syncFormCollection; }
10859
10875
  });
10860
10876
  Object.defineProperty(exports, "validateCollectionConfig", {
10861
10877
  enumerable: true,
10862
- get: function () { return chunkQ5VFZUXV_cjs.validateCollectionConfig; }
10878
+ get: function () { return chunkU6FOL6EO_cjs.validateCollectionConfig; }
10863
10879
  });
10864
10880
  Object.defineProperty(exports, "MigrationService", {
10865
10881
  enumerable: true,
10866
- get: function () { return chunkOCLUXJ7E_cjs.MigrationService; }
10882
+ get: function () { return chunkHU4MN74Q_cjs.MigrationService; }
10867
10883
  });
10868
10884
  Object.defineProperty(exports, "renderFilterBar", {
10869
10885
  enumerable: true,
@@ -10931,31 +10947,31 @@ Object.defineProperty(exports, "PluginHelpers", {
10931
10947
  });
10932
10948
  Object.defineProperty(exports, "QueryFilterBuilder", {
10933
10949
  enumerable: true,
10934
- get: function () { return chunkYQW2GCJ3_cjs.QueryFilterBuilder; }
10950
+ get: function () { return chunkV76ERLX6_cjs.QueryFilterBuilder; }
10935
10951
  });
10936
10952
  Object.defineProperty(exports, "SONICJS_VERSION", {
10937
10953
  enumerable: true,
10938
- get: function () { return chunkYQW2GCJ3_cjs.SONICJS_VERSION; }
10954
+ get: function () { return chunkV76ERLX6_cjs.SONICJS_VERSION; }
10939
10955
  });
10940
10956
  Object.defineProperty(exports, "TemplateRenderer", {
10941
10957
  enumerable: true,
10942
- get: function () { return chunkYQW2GCJ3_cjs.TemplateRenderer; }
10958
+ get: function () { return chunkV76ERLX6_cjs.TemplateRenderer; }
10943
10959
  });
10944
10960
  Object.defineProperty(exports, "buildQuery", {
10945
10961
  enumerable: true,
10946
- get: function () { return chunkYQW2GCJ3_cjs.buildQuery; }
10962
+ get: function () { return chunkV76ERLX6_cjs.buildQuery; }
10947
10963
  });
10948
10964
  Object.defineProperty(exports, "getCoreVersion", {
10949
10965
  enumerable: true,
10950
- get: function () { return chunkYQW2GCJ3_cjs.getCoreVersion; }
10966
+ get: function () { return chunkV76ERLX6_cjs.getCoreVersion; }
10951
10967
  });
10952
10968
  Object.defineProperty(exports, "renderTemplate", {
10953
10969
  enumerable: true,
10954
- get: function () { return chunkYQW2GCJ3_cjs.renderTemplate; }
10970
+ get: function () { return chunkV76ERLX6_cjs.renderTemplate; }
10955
10971
  });
10956
10972
  Object.defineProperty(exports, "templateRenderer", {
10957
10973
  enumerable: true,
10958
- get: function () { return chunkYQW2GCJ3_cjs.templateRenderer; }
10974
+ get: function () { return chunkV76ERLX6_cjs.templateRenderer; }
10959
10975
  });
10960
10976
  Object.defineProperty(exports, "metricsTracker", {
10961
10977
  enumerable: true,