@sonicjs-cms/core 2.18.1 → 2.19.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.
- package/dist/{chunk-I2H5NGJQ.js → chunk-4NPCDK6B.js} +33 -6
- package/dist/chunk-4NPCDK6B.js.map +1 -0
- package/dist/{chunk-DSUJ5YQH.cjs → chunk-7A4CB7T3.cjs} +36 -9
- package/dist/chunk-7A4CB7T3.cjs.map +1 -0
- package/dist/{chunk-MGFRZO24.js → chunk-BU7SFHGP.js} +4 -4
- package/dist/{chunk-MGFRZO24.js.map → chunk-BU7SFHGP.js.map} +1 -1
- package/dist/{chunk-T3Q5V33G.cjs → chunk-E4YFJBM2.cjs} +2 -2
- package/dist/{chunk-T3Q5V33G.cjs.map → chunk-E4YFJBM2.cjs.map} +1 -1
- package/dist/{chunk-EW5NOBVU.js → chunk-JZV22DEV.js} +2 -2
- package/dist/{chunk-EW5NOBVU.js.map → chunk-JZV22DEV.js.map} +1 -1
- package/dist/{chunk-SQ6FNXU2.cjs → chunk-JZVHLLSI.cjs} +4 -4
- package/dist/{chunk-SQ6FNXU2.cjs.map → chunk-JZVHLLSI.cjs.map} +1 -1
- package/dist/{chunk-XXDFQERJ.js → chunk-OCL3HMEG.js} +204 -15
- package/dist/chunk-OCL3HMEG.js.map +1 -0
- package/dist/{chunk-SXXTQETM.cjs → chunk-R4FOLLFB.cjs} +318 -129
- package/dist/chunk-R4FOLLFB.cjs.map +1 -0
- package/dist/{chunk-C54YUA23.cjs → chunk-RLMUFFUD.cjs} +2 -2
- package/dist/{chunk-C54YUA23.cjs.map → chunk-RLMUFFUD.cjs.map} +1 -1
- package/dist/{chunk-4R3NOOL3.js → chunk-ZYAYUIZE.js} +2 -2
- package/dist/{chunk-4R3NOOL3.js.map → chunk-ZYAYUIZE.js.map} +1 -1
- package/dist/index.cjs +142 -142
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +10 -10
- package/dist/index.js.map +1 -1
- package/dist/middleware.cjs +32 -32
- package/dist/middleware.d.cts +19 -0
- package/dist/middleware.d.ts +19 -0
- package/dist/middleware.js +3 -3
- package/dist/migrations-566IIPS2.cjs +13 -0
- package/dist/{migrations-IYNTWDC6.cjs.map → migrations-566IIPS2.cjs.map} +1 -1
- package/dist/migrations-H5IXZNCO.js +4 -0
- package/dist/{migrations-R337UD46.js.map → migrations-H5IXZNCO.js.map} +1 -1
- package/dist/routes.cjs +28 -28
- package/dist/routes.js +5 -5
- package/dist/services.cjs +23 -23
- package/dist/services.js +2 -2
- package/dist/utils.cjs +11 -11
- package/dist/utils.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-DSUJ5YQH.cjs.map +0 -1
- package/dist/chunk-I2H5NGJQ.js.map +0 -1
- package/dist/chunk-SXXTQETM.cjs.map +0 -1
- package/dist/chunk-XXDFQERJ.js.map +0 -1
- package/dist/migrations-IYNTWDC6.cjs +0 -13
- package/dist/migrations-R337UD46.js +0 -4
package/dist/index.cjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkR4FOLLFB_cjs = require('./chunk-R4FOLLFB.cjs');
|
|
4
4
|
var chunkWAEQXGCX_cjs = require('./chunk-WAEQXGCX.cjs');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
5
|
+
var chunk7A4CB7T3_cjs = require('./chunk-7A4CB7T3.cjs');
|
|
6
|
+
var chunkE4YFJBM2_cjs = require('./chunk-E4YFJBM2.cjs');
|
|
7
|
+
var chunkRLMUFFUD_cjs = require('./chunk-RLMUFFUD.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
|
|
13
|
+
var chunkJZVHLLSI_cjs = require('./chunk-JZVHLLSI.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("*",
|
|
563
|
+
router3.use("*", chunk7A4CB7T3_cjs.requireAuth());
|
|
564
564
|
router3.get("/api/stats", async (c) => {
|
|
565
565
|
try {
|
|
566
566
|
const user = c.get("user");
|
|
@@ -1991,16 +1991,16 @@ function createOTPLoginPlugin() {
|
|
|
1991
1991
|
error: "Account is deactivated"
|
|
1992
1992
|
}, 403);
|
|
1993
1993
|
}
|
|
1994
|
-
const tokenTtl = await
|
|
1995
|
-
const token = await
|
|
1994
|
+
const tokenTtl = await chunk7A4CB7T3_cjs.getJwtExpirySecondsFromDb(db, c.env);
|
|
1995
|
+
const token = await chunk7A4CB7T3_cjs.AuthManager.generateToken(user.id, user.email, user.role, c.env.JWT_SECRET, tokenTtl);
|
|
1996
1996
|
cookie.setCookie(c, "auth_token", token, {
|
|
1997
1997
|
httpOnly: true,
|
|
1998
1998
|
secure: true,
|
|
1999
1999
|
sameSite: "Strict",
|
|
2000
2000
|
maxAge: tokenTtl
|
|
2001
2001
|
});
|
|
2002
|
-
const customData = await
|
|
2003
|
-
const { is_active, ...publicUser } = user;
|
|
2002
|
+
const customData = await chunkR4FOLLFB_cjs.getCustomData(db, user.id);
|
|
2003
|
+
const { is_active: _isActive, ...publicUser } = user;
|
|
2004
2004
|
return c.json({
|
|
2005
2005
|
success: true,
|
|
2006
2006
|
user: {
|
|
@@ -2462,15 +2462,15 @@ function createOAuthProvidersPlugin() {
|
|
|
2462
2462
|
if (!user || !user.is_active) {
|
|
2463
2463
|
return c.redirect("/auth/login?error=Account is deactivated");
|
|
2464
2464
|
}
|
|
2465
|
-
const tokenTtl2 = await
|
|
2466
|
-
const jwt2 = await
|
|
2465
|
+
const tokenTtl2 = await chunk7A4CB7T3_cjs.getJwtExpirySecondsFromDb(c.env.DB, c.env);
|
|
2466
|
+
const jwt2 = await chunk7A4CB7T3_cjs.AuthManager.generateToken(
|
|
2467
2467
|
user.id,
|
|
2468
2468
|
user.email,
|
|
2469
2469
|
user.role,
|
|
2470
2470
|
c.env.JWT_SECRET,
|
|
2471
2471
|
tokenTtl2
|
|
2472
2472
|
);
|
|
2473
|
-
|
|
2473
|
+
chunk7A4CB7T3_cjs.AuthManager.setAuthCookie(c, jwt2, { sameSite: "Lax", maxAge: tokenTtl2 });
|
|
2474
2474
|
return c.redirect("/admin");
|
|
2475
2475
|
}
|
|
2476
2476
|
const existingUser = await oauthService.findUserByEmail(profile.email);
|
|
@@ -2487,15 +2487,15 @@ function createOAuthProvidersPlugin() {
|
|
|
2487
2487
|
tokenExpiresAt: tokenExpiresAt ?? void 0,
|
|
2488
2488
|
profileData: JSON.stringify(profile)
|
|
2489
2489
|
});
|
|
2490
|
-
const tokenTtl2 = await
|
|
2491
|
-
const jwt2 = await
|
|
2490
|
+
const tokenTtl2 = await chunk7A4CB7T3_cjs.getJwtExpirySecondsFromDb(c.env.DB, c.env);
|
|
2491
|
+
const jwt2 = await chunk7A4CB7T3_cjs.AuthManager.generateToken(
|
|
2492
2492
|
existingUser.id,
|
|
2493
2493
|
existingUser.email,
|
|
2494
2494
|
existingUser.role,
|
|
2495
2495
|
c.env.JWT_SECRET,
|
|
2496
2496
|
tokenTtl2
|
|
2497
2497
|
);
|
|
2498
|
-
|
|
2498
|
+
chunk7A4CB7T3_cjs.AuthManager.setAuthCookie(c, jwt2, { sameSite: "Lax", maxAge: tokenTtl2 });
|
|
2499
2499
|
return c.redirect("/admin");
|
|
2500
2500
|
}
|
|
2501
2501
|
const newUserId = await oauthService.createUserFromOAuth(profile);
|
|
@@ -2508,15 +2508,15 @@ function createOAuthProvidersPlugin() {
|
|
|
2508
2508
|
tokenExpiresAt: tokenExpiresAt ?? void 0,
|
|
2509
2509
|
profileData: JSON.stringify(profile)
|
|
2510
2510
|
});
|
|
2511
|
-
const tokenTtl = await
|
|
2512
|
-
const jwt = await
|
|
2511
|
+
const tokenTtl = await chunk7A4CB7T3_cjs.getJwtExpirySecondsFromDb(c.env.DB, c.env);
|
|
2512
|
+
const jwt = await chunk7A4CB7T3_cjs.AuthManager.generateToken(
|
|
2513
2513
|
newUserId,
|
|
2514
2514
|
profile.email.toLowerCase(),
|
|
2515
2515
|
"viewer",
|
|
2516
2516
|
c.env.JWT_SECRET,
|
|
2517
2517
|
tokenTtl
|
|
2518
2518
|
);
|
|
2519
|
-
|
|
2519
|
+
chunk7A4CB7T3_cjs.AuthManager.setAuthCookie(c, jwt, { sameSite: "Lax", maxAge: tokenTtl });
|
|
2520
2520
|
return c.redirect("/admin");
|
|
2521
2521
|
} catch (error) {
|
|
2522
2522
|
console.error("OAuth callback error:", error);
|
|
@@ -4209,7 +4209,7 @@ function renderSettingsPage(data) {
|
|
|
4209
4209
|
|
|
4210
4210
|
// src/plugins/core-plugins/ai-search-plugin/routes/admin.ts
|
|
4211
4211
|
var adminRoutes = new hono.Hono();
|
|
4212
|
-
adminRoutes.use("*",
|
|
4212
|
+
adminRoutes.use("*", chunk7A4CB7T3_cjs.requireAuth());
|
|
4213
4213
|
adminRoutes.get("/", async (c) => {
|
|
4214
4214
|
try {
|
|
4215
4215
|
const user = c.get("user");
|
|
@@ -4610,15 +4610,15 @@ function createMagicLinkAuthPlugin() {
|
|
|
4610
4610
|
SET used = 1, used_at = ?
|
|
4611
4611
|
WHERE id = ?
|
|
4612
4612
|
`).bind(Date.now(), magicLink.id).run();
|
|
4613
|
-
const tokenTtl = await
|
|
4614
|
-
const jwtToken = await
|
|
4613
|
+
const tokenTtl = await chunk7A4CB7T3_cjs.getJwtExpirySecondsFromDb(c.env.DB, c.env);
|
|
4614
|
+
const jwtToken = await chunk7A4CB7T3_cjs.AuthManager.generateToken(
|
|
4615
4615
|
user.id,
|
|
4616
4616
|
user.email,
|
|
4617
4617
|
user.role,
|
|
4618
4618
|
c.env.JWT_SECRET,
|
|
4619
4619
|
tokenTtl
|
|
4620
4620
|
);
|
|
4621
|
-
|
|
4621
|
+
chunk7A4CB7T3_cjs.AuthManager.setAuthCookie(c, jwtToken, { maxAge: tokenTtl });
|
|
4622
4622
|
await db.prepare(`
|
|
4623
4623
|
UPDATE users SET last_login_at = ? WHERE id = ?
|
|
4624
4624
|
`).bind(Date.now(), user.id).run();
|
|
@@ -5628,7 +5628,7 @@ function renderSecuritySettingsPage(data) {
|
|
|
5628
5628
|
|
|
5629
5629
|
// src/plugins/core-plugins/security-audit-plugin/routes/admin.ts
|
|
5630
5630
|
var adminRoutes2 = new hono.Hono();
|
|
5631
|
-
adminRoutes2.use("*",
|
|
5631
|
+
adminRoutes2.use("*", chunk7A4CB7T3_cjs.requireAuth());
|
|
5632
5632
|
adminRoutes2.use("*", async (c, next) => {
|
|
5633
5633
|
const user = c.get("user");
|
|
5634
5634
|
if (user?.role !== "admin") {
|
|
@@ -5638,7 +5638,7 @@ adminRoutes2.use("*", async (c, next) => {
|
|
|
5638
5638
|
});
|
|
5639
5639
|
async function getSettings(db) {
|
|
5640
5640
|
try {
|
|
5641
|
-
const pluginService = new
|
|
5641
|
+
const pluginService = new chunkE4YFJBM2_cjs.PluginService(db);
|
|
5642
5642
|
const plugin2 = await pluginService.getPlugin("security-audit");
|
|
5643
5643
|
if (plugin2?.settings) {
|
|
5644
5644
|
const settings = typeof plugin2.settings === "string" ? JSON.parse(plugin2.settings) : plugin2.settings;
|
|
@@ -5743,7 +5743,7 @@ adminRoutes2.post("/settings", async (c) => {
|
|
|
5743
5743
|
autoPurge: body["retention.autoPurge"] === "true"
|
|
5744
5744
|
}
|
|
5745
5745
|
};
|
|
5746
|
-
const pluginService = new
|
|
5746
|
+
const pluginService = new chunkE4YFJBM2_cjs.PluginService(db);
|
|
5747
5747
|
await pluginService.updatePluginSettings("security-audit", settings);
|
|
5748
5748
|
if (c.req.header("HX-Request")) {
|
|
5749
5749
|
return c.json({ success: true });
|
|
@@ -5904,7 +5904,7 @@ var BruteForceDetector = class {
|
|
|
5904
5904
|
|
|
5905
5905
|
// src/plugins/core-plugins/security-audit-plugin/routes/api.ts
|
|
5906
5906
|
var apiRoutes2 = new hono.Hono();
|
|
5907
|
-
apiRoutes2.use("*",
|
|
5907
|
+
apiRoutes2.use("*", chunk7A4CB7T3_cjs.requireAuth());
|
|
5908
5908
|
apiRoutes2.use("*", async (c, next) => {
|
|
5909
5909
|
const user = c.get("user");
|
|
5910
5910
|
if (user?.role !== "admin") {
|
|
@@ -5914,7 +5914,7 @@ apiRoutes2.use("*", async (c, next) => {
|
|
|
5914
5914
|
});
|
|
5915
5915
|
async function getSettings2(db) {
|
|
5916
5916
|
try {
|
|
5917
|
-
const pluginService = new
|
|
5917
|
+
const pluginService = new chunkE4YFJBM2_cjs.PluginService(db);
|
|
5918
5918
|
const plugin2 = await pluginService.getPlugin("security-audit");
|
|
5919
5919
|
if (plugin2?.settings) {
|
|
5920
5920
|
const settings = typeof plugin2.settings === "string" ? JSON.parse(plugin2.settings) : plugin2.settings;
|
|
@@ -6062,7 +6062,7 @@ function generateFingerprint(ip, userAgent) {
|
|
|
6062
6062
|
}
|
|
6063
6063
|
async function getPluginSettings(db) {
|
|
6064
6064
|
try {
|
|
6065
|
-
const pluginService = new
|
|
6065
|
+
const pluginService = new chunkE4YFJBM2_cjs.PluginService(db);
|
|
6066
6066
|
const plugin2 = await pluginService.getPlugin("security-audit");
|
|
6067
6067
|
if (plugin2?.settings) {
|
|
6068
6068
|
const settings = typeof plugin2.settings === "string" ? JSON.parse(plugin2.settings) : plugin2.settings;
|
|
@@ -7072,7 +7072,7 @@ var DEFAULT_SETTINGS3 = {
|
|
|
7072
7072
|
|
|
7073
7073
|
// src/plugins/core-plugins/stripe-plugin/routes/admin.ts
|
|
7074
7074
|
var adminRoutes3 = new hono.Hono();
|
|
7075
|
-
adminRoutes3.use("*",
|
|
7075
|
+
adminRoutes3.use("*", chunk7A4CB7T3_cjs.requireAuth());
|
|
7076
7076
|
adminRoutes3.use("*", async (c, next) => {
|
|
7077
7077
|
const user = c.get("user");
|
|
7078
7078
|
if (user?.role !== "admin") {
|
|
@@ -7082,7 +7082,7 @@ adminRoutes3.use("*", async (c, next) => {
|
|
|
7082
7082
|
});
|
|
7083
7083
|
async function getSettings3(db) {
|
|
7084
7084
|
try {
|
|
7085
|
-
const pluginService = new
|
|
7085
|
+
const pluginService = new chunkE4YFJBM2_cjs.PluginService(db);
|
|
7086
7086
|
const plugin2 = await pluginService.getPlugin("stripe");
|
|
7087
7087
|
if (plugin2?.settings) {
|
|
7088
7088
|
const settings = typeof plugin2.settings === "string" ? JSON.parse(plugin2.settings) : plugin2.settings;
|
|
@@ -7404,7 +7404,7 @@ function timingSafeEqual(a, b) {
|
|
|
7404
7404
|
var apiRoutes3 = new hono.Hono();
|
|
7405
7405
|
async function getSettings4(db) {
|
|
7406
7406
|
try {
|
|
7407
|
-
const pluginService = new
|
|
7407
|
+
const pluginService = new chunkE4YFJBM2_cjs.PluginService(db);
|
|
7408
7408
|
const plugin2 = await pluginService.getPlugin("stripe");
|
|
7409
7409
|
if (plugin2?.settings) {
|
|
7410
7410
|
const settings = typeof plugin2.settings === "string" ? JSON.parse(plugin2.settings) : plugin2.settings;
|
|
@@ -7555,7 +7555,7 @@ apiRoutes3.post("/webhook", async (c) => {
|
|
|
7555
7555
|
}
|
|
7556
7556
|
return c.json({ received: true });
|
|
7557
7557
|
});
|
|
7558
|
-
apiRoutes3.post("/create-checkout-session",
|
|
7558
|
+
apiRoutes3.post("/create-checkout-session", chunk7A4CB7T3_cjs.requireAuth(), async (c) => {
|
|
7559
7559
|
const db = c.env.DB;
|
|
7560
7560
|
const user = c.get("user");
|
|
7561
7561
|
if (!user) return c.json({ error: "Unauthorized" }, 401);
|
|
@@ -7595,7 +7595,7 @@ apiRoutes3.post("/create-checkout-session", chunkDSUJ5YQH_cjs.requireAuth(), asy
|
|
|
7595
7595
|
});
|
|
7596
7596
|
return c.json({ sessionId: session.id, url: session.url });
|
|
7597
7597
|
});
|
|
7598
|
-
apiRoutes3.get("/subscription",
|
|
7598
|
+
apiRoutes3.get("/subscription", chunk7A4CB7T3_cjs.requireAuth(), async (c) => {
|
|
7599
7599
|
const user = c.get("user");
|
|
7600
7600
|
if (!user) return c.json({ error: "Unauthorized" }, 401);
|
|
7601
7601
|
const db = c.env.DB;
|
|
@@ -7607,7 +7607,7 @@ apiRoutes3.get("/subscription", chunkDSUJ5YQH_cjs.requireAuth(), async (c) => {
|
|
|
7607
7607
|
}
|
|
7608
7608
|
return c.json({ subscription });
|
|
7609
7609
|
});
|
|
7610
|
-
apiRoutes3.get("/subscriptions",
|
|
7610
|
+
apiRoutes3.get("/subscriptions", chunk7A4CB7T3_cjs.requireAuth(), async (c) => {
|
|
7611
7611
|
const user = c.get("user");
|
|
7612
7612
|
if (user?.role !== "admin") return c.json({ error: "Access denied" }, 403);
|
|
7613
7613
|
const db = c.env.DB;
|
|
@@ -7623,7 +7623,7 @@ apiRoutes3.get("/subscriptions", chunkDSUJ5YQH_cjs.requireAuth(), async (c) => {
|
|
|
7623
7623
|
const result = await subscriptionService.list(filters);
|
|
7624
7624
|
return c.json(result);
|
|
7625
7625
|
});
|
|
7626
|
-
apiRoutes3.get("/stats",
|
|
7626
|
+
apiRoutes3.get("/stats", chunk7A4CB7T3_cjs.requireAuth(), async (c) => {
|
|
7627
7627
|
const user = c.get("user");
|
|
7628
7628
|
if (user?.role !== "admin") return c.json({ error: "Access denied" }, 403);
|
|
7629
7629
|
const db = c.env.DB;
|
|
@@ -7632,7 +7632,7 @@ apiRoutes3.get("/stats", chunkDSUJ5YQH_cjs.requireAuth(), async (c) => {
|
|
|
7632
7632
|
const stats = await subscriptionService.getStats();
|
|
7633
7633
|
return c.json(stats);
|
|
7634
7634
|
});
|
|
7635
|
-
apiRoutes3.post("/sync-subscriptions",
|
|
7635
|
+
apiRoutes3.post("/sync-subscriptions", chunk7A4CB7T3_cjs.requireAuth(), async (c) => {
|
|
7636
7636
|
const user = c.get("user");
|
|
7637
7637
|
if (user?.role !== "admin") return c.json({ error: "Access denied" }, 403);
|
|
7638
7638
|
const db = c.env.DB;
|
|
@@ -7680,7 +7680,7 @@ apiRoutes3.post("/sync-subscriptions", chunkDSUJ5YQH_cjs.requireAuth(), async (c
|
|
|
7680
7680
|
}, 500);
|
|
7681
7681
|
}
|
|
7682
7682
|
});
|
|
7683
|
-
apiRoutes3.get("/events",
|
|
7683
|
+
apiRoutes3.get("/events", chunk7A4CB7T3_cjs.requireAuth(), async (c) => {
|
|
7684
7684
|
const user = c.get("user");
|
|
7685
7685
|
if (user?.role !== "admin") return c.json({ error: "Access denied" }, 403);
|
|
7686
7686
|
const db = c.env.DB;
|
|
@@ -7746,7 +7746,7 @@ function createStripePlugin() {
|
|
|
7746
7746
|
var stripePlugin = createStripePlugin();
|
|
7747
7747
|
|
|
7748
7748
|
// src/middleware/plugin-menu.ts
|
|
7749
|
-
var REGISTRY_MENU_PLUGINS = Object.values(
|
|
7749
|
+
var REGISTRY_MENU_PLUGINS = Object.values(chunkE4YFJBM2_cjs.PLUGIN_REGISTRY).filter((p) => p.adminMenu !== null).map((p) => ({
|
|
7750
7750
|
codeName: p.codeName,
|
|
7751
7751
|
label: p.adminMenu.label,
|
|
7752
7752
|
path: p.adminMenu.path,
|
|
@@ -7845,7 +7845,7 @@ var HOOKS2 = {
|
|
|
7845
7845
|
USER_LOGIN: "user:login"};
|
|
7846
7846
|
chunkUYJ6TJHX_cjs.init_admin_layout_catalyst_template();
|
|
7847
7847
|
var adminRoutes4 = new hono.Hono();
|
|
7848
|
-
adminRoutes4.use("*",
|
|
7848
|
+
adminRoutes4.use("*", chunk7A4CB7T3_cjs.requireAuth());
|
|
7849
7849
|
adminRoutes4.use("*", async (c, next) => {
|
|
7850
7850
|
const user = c.get("user");
|
|
7851
7851
|
if (user?.role !== "admin") {
|
|
@@ -9644,7 +9644,7 @@ function renderCacheDashboard(data) {
|
|
|
9644
9644
|
</script>
|
|
9645
9645
|
|
|
9646
9646
|
<!-- Confirmation Dialogs -->
|
|
9647
|
-
${
|
|
9647
|
+
${chunkR4FOLLFB_cjs.renderConfirmationDialog({
|
|
9648
9648
|
id: "clear-all-cache-confirm",
|
|
9649
9649
|
title: "Clear All Cache",
|
|
9650
9650
|
message: "Are you sure you want to clear all cache entries? This cannot be undone.",
|
|
@@ -9655,7 +9655,7 @@ function renderCacheDashboard(data) {
|
|
|
9655
9655
|
onConfirm: "performClearAllCaches()"
|
|
9656
9656
|
})}
|
|
9657
9657
|
|
|
9658
|
-
${
|
|
9658
|
+
${chunkR4FOLLFB_cjs.renderConfirmationDialog({
|
|
9659
9659
|
id: "clear-namespace-cache-confirm",
|
|
9660
9660
|
title: "Clear Namespace Cache",
|
|
9661
9661
|
message: "Clear cache for this namespace?",
|
|
@@ -9666,7 +9666,7 @@ function renderCacheDashboard(data) {
|
|
|
9666
9666
|
onConfirm: "performClearNamespaceCache()"
|
|
9667
9667
|
})}
|
|
9668
9668
|
|
|
9669
|
-
${
|
|
9669
|
+
${chunkR4FOLLFB_cjs.getConfirmationDialogScript()}
|
|
9670
9670
|
`;
|
|
9671
9671
|
const layoutData = {
|
|
9672
9672
|
title: "Cache System",
|
|
@@ -10352,14 +10352,14 @@ var faviconSvg = `<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
|
10352
10352
|
// src/app.ts
|
|
10353
10353
|
function createSonicJSApp(config = {}) {
|
|
10354
10354
|
const app2 = new hono.Hono();
|
|
10355
|
-
const appVersion = config.version ||
|
|
10355
|
+
const appVersion = config.version || chunkJZVHLLSI_cjs.getCoreVersion();
|
|
10356
10356
|
const appName = config.name || "SonicJS AI";
|
|
10357
10357
|
app2.use("*", async (c, next) => {
|
|
10358
10358
|
c.set("appVersion", appVersion);
|
|
10359
10359
|
await next();
|
|
10360
10360
|
});
|
|
10361
|
-
app2.use("*",
|
|
10362
|
-
app2.use("*",
|
|
10361
|
+
app2.use("*", chunk7A4CB7T3_cjs.metricsMiddleware());
|
|
10362
|
+
app2.use("*", chunk7A4CB7T3_cjs.bootstrapMiddleware(config));
|
|
10363
10363
|
if (config.middleware?.beforeAuth) {
|
|
10364
10364
|
for (const middleware of config.middleware.beforeAuth) {
|
|
10365
10365
|
app2.use("*", middleware);
|
|
@@ -10368,32 +10368,32 @@ function createSonicJSApp(config = {}) {
|
|
|
10368
10368
|
app2.use("*", async (_c, next) => {
|
|
10369
10369
|
await next();
|
|
10370
10370
|
});
|
|
10371
|
-
app2.use("*",
|
|
10372
|
-
app2.use("*",
|
|
10371
|
+
app2.use("*", chunk7A4CB7T3_cjs.securityHeadersMiddleware());
|
|
10372
|
+
app2.use("*", chunk7A4CB7T3_cjs.csrfProtection());
|
|
10373
10373
|
if (config.middleware?.afterAuth) {
|
|
10374
10374
|
for (const middleware of config.middleware.afterAuth) {
|
|
10375
10375
|
app2.use("*", middleware);
|
|
10376
10376
|
}
|
|
10377
10377
|
}
|
|
10378
10378
|
const adminRoles = config.adminAccessRoles || ["admin"];
|
|
10379
|
-
app2.use("/admin/*",
|
|
10380
|
-
app2.use("/admin/*",
|
|
10379
|
+
app2.use("/admin/*", chunk7A4CB7T3_cjs.requireAuth());
|
|
10380
|
+
app2.use("/admin/*", chunk7A4CB7T3_cjs.requireRole(adminRoles));
|
|
10381
10381
|
app2.use("/admin/*", pluginMenuMiddleware());
|
|
10382
|
-
app2.route("/api",
|
|
10383
|
-
app2.route("/api/media",
|
|
10384
|
-
app2.route("/api/system",
|
|
10385
|
-
app2.route("/admin/api",
|
|
10386
|
-
app2.route("/admin/dashboard",
|
|
10387
|
-
app2.route("/admin/collections",
|
|
10388
|
-
app2.route("/admin/forms",
|
|
10389
|
-
app2.route("/admin/settings",
|
|
10390
|
-
app2.route("/forms",
|
|
10391
|
-
app2.route("/api/forms",
|
|
10392
|
-
app2.route("/admin/api-reference",
|
|
10382
|
+
app2.route("/api", chunkR4FOLLFB_cjs.api_default);
|
|
10383
|
+
app2.route("/api/media", chunkR4FOLLFB_cjs.api_media_default);
|
|
10384
|
+
app2.route("/api/system", chunkR4FOLLFB_cjs.api_system_default);
|
|
10385
|
+
app2.route("/admin/api", chunkR4FOLLFB_cjs.admin_api_default);
|
|
10386
|
+
app2.route("/admin/dashboard", chunkR4FOLLFB_cjs.router);
|
|
10387
|
+
app2.route("/admin/collections", chunkR4FOLLFB_cjs.adminCollectionsRoutes);
|
|
10388
|
+
app2.route("/admin/forms", chunkR4FOLLFB_cjs.adminFormsRoutes);
|
|
10389
|
+
app2.route("/admin/settings", chunkR4FOLLFB_cjs.adminSettingsRoutes);
|
|
10390
|
+
app2.route("/forms", chunkR4FOLLFB_cjs.public_forms_default);
|
|
10391
|
+
app2.route("/api/forms", chunkR4FOLLFB_cjs.public_forms_default);
|
|
10392
|
+
app2.route("/admin/api-reference", chunkR4FOLLFB_cjs.router2);
|
|
10393
10393
|
app2.route("/admin/database-tools", createDatabaseToolsAdminRoutes());
|
|
10394
10394
|
app2.route("/admin/seed-data", createSeedDataAdminRoutes());
|
|
10395
|
-
app2.route("/admin/content",
|
|
10396
|
-
app2.route("/admin/media",
|
|
10395
|
+
app2.route("/admin/content", chunkR4FOLLFB_cjs.admin_content_default);
|
|
10396
|
+
app2.route("/admin/media", chunkR4FOLLFB_cjs.adminMediaRoutes);
|
|
10397
10397
|
app2.use("/auth/*", securityAuditMiddleware());
|
|
10398
10398
|
if (securityAuditPlugin.routes && securityAuditPlugin.routes.length > 0) {
|
|
10399
10399
|
for (const route of securityAuditPlugin.routes) {
|
|
@@ -10411,8 +10411,8 @@ function createSonicJSApp(config = {}) {
|
|
|
10411
10411
|
app2.route(route.path, route.handler);
|
|
10412
10412
|
}
|
|
10413
10413
|
}
|
|
10414
|
-
if (
|
|
10415
|
-
for (const route of
|
|
10414
|
+
if (chunkR4FOLLFB_cjs.userProfilesPlugin.routes && chunkR4FOLLFB_cjs.userProfilesPlugin.routes.length > 0) {
|
|
10415
|
+
for (const route of chunkR4FOLLFB_cjs.userProfilesPlugin.routes) {
|
|
10416
10416
|
app2.route(route.path, route.handler);
|
|
10417
10417
|
}
|
|
10418
10418
|
}
|
|
@@ -10432,11 +10432,11 @@ function createSonicJSApp(config = {}) {
|
|
|
10432
10432
|
app2.route(route.path, route.handler);
|
|
10433
10433
|
}
|
|
10434
10434
|
}
|
|
10435
|
-
app2.route("/admin/plugins",
|
|
10436
|
-
app2.route("/admin/logs",
|
|
10437
|
-
app2.route("/admin",
|
|
10438
|
-
app2.route("/auth",
|
|
10439
|
-
app2.route("/",
|
|
10435
|
+
app2.route("/admin/plugins", chunkR4FOLLFB_cjs.adminPluginRoutes);
|
|
10436
|
+
app2.route("/admin/logs", chunkR4FOLLFB_cjs.adminLogsRoutes);
|
|
10437
|
+
app2.route("/admin", chunkR4FOLLFB_cjs.userRoutes);
|
|
10438
|
+
app2.route("/auth", chunkR4FOLLFB_cjs.auth_default);
|
|
10439
|
+
app2.route("/", chunkR4FOLLFB_cjs.test_cleanup_default);
|
|
10440
10440
|
if (emailPlugin.routes && emailPlugin.routes.length > 0) {
|
|
10441
10441
|
for (const route of emailPlugin.routes) {
|
|
10442
10442
|
app2.route(route.path, route.handler);
|
|
@@ -10520,99 +10520,99 @@ function createDb(d1$1) {
|
|
|
10520
10520
|
}
|
|
10521
10521
|
|
|
10522
10522
|
// src/index.ts
|
|
10523
|
-
var VERSION =
|
|
10523
|
+
var VERSION = chunkJZVHLLSI_cjs.package_default.version;
|
|
10524
10524
|
|
|
10525
10525
|
Object.defineProperty(exports, "ROUTES_INFO", {
|
|
10526
10526
|
enumerable: true,
|
|
10527
|
-
get: function () { return
|
|
10527
|
+
get: function () { return chunkR4FOLLFB_cjs.ROUTES_INFO; }
|
|
10528
10528
|
});
|
|
10529
10529
|
Object.defineProperty(exports, "adminApiRoutes", {
|
|
10530
10530
|
enumerable: true,
|
|
10531
|
-
get: function () { return
|
|
10531
|
+
get: function () { return chunkR4FOLLFB_cjs.admin_api_default; }
|
|
10532
10532
|
});
|
|
10533
10533
|
Object.defineProperty(exports, "adminCheckboxRoutes", {
|
|
10534
10534
|
enumerable: true,
|
|
10535
|
-
get: function () { return
|
|
10535
|
+
get: function () { return chunkR4FOLLFB_cjs.adminCheckboxRoutes; }
|
|
10536
10536
|
});
|
|
10537
10537
|
Object.defineProperty(exports, "adminCodeExamplesRoutes", {
|
|
10538
10538
|
enumerable: true,
|
|
10539
|
-
get: function () { return
|
|
10539
|
+
get: function () { return chunkR4FOLLFB_cjs.admin_code_examples_default; }
|
|
10540
10540
|
});
|
|
10541
10541
|
Object.defineProperty(exports, "adminCollectionsRoutes", {
|
|
10542
10542
|
enumerable: true,
|
|
10543
|
-
get: function () { return
|
|
10543
|
+
get: function () { return chunkR4FOLLFB_cjs.adminCollectionsRoutes; }
|
|
10544
10544
|
});
|
|
10545
10545
|
Object.defineProperty(exports, "adminContentRoutes", {
|
|
10546
10546
|
enumerable: true,
|
|
10547
|
-
get: function () { return
|
|
10547
|
+
get: function () { return chunkR4FOLLFB_cjs.admin_content_default; }
|
|
10548
10548
|
});
|
|
10549
10549
|
Object.defineProperty(exports, "adminDashboardRoutes", {
|
|
10550
10550
|
enumerable: true,
|
|
10551
|
-
get: function () { return
|
|
10551
|
+
get: function () { return chunkR4FOLLFB_cjs.router; }
|
|
10552
10552
|
});
|
|
10553
10553
|
Object.defineProperty(exports, "adminDesignRoutes", {
|
|
10554
10554
|
enumerable: true,
|
|
10555
|
-
get: function () { return
|
|
10555
|
+
get: function () { return chunkR4FOLLFB_cjs.adminDesignRoutes; }
|
|
10556
10556
|
});
|
|
10557
10557
|
Object.defineProperty(exports, "adminLogsRoutes", {
|
|
10558
10558
|
enumerable: true,
|
|
10559
|
-
get: function () { return
|
|
10559
|
+
get: function () { return chunkR4FOLLFB_cjs.adminLogsRoutes; }
|
|
10560
10560
|
});
|
|
10561
10561
|
Object.defineProperty(exports, "adminMediaRoutes", {
|
|
10562
10562
|
enumerable: true,
|
|
10563
|
-
get: function () { return
|
|
10563
|
+
get: function () { return chunkR4FOLLFB_cjs.adminMediaRoutes; }
|
|
10564
10564
|
});
|
|
10565
10565
|
Object.defineProperty(exports, "adminPluginRoutes", {
|
|
10566
10566
|
enumerable: true,
|
|
10567
|
-
get: function () { return
|
|
10567
|
+
get: function () { return chunkR4FOLLFB_cjs.adminPluginRoutes; }
|
|
10568
10568
|
});
|
|
10569
10569
|
Object.defineProperty(exports, "adminSettingsRoutes", {
|
|
10570
10570
|
enumerable: true,
|
|
10571
|
-
get: function () { return
|
|
10571
|
+
get: function () { return chunkR4FOLLFB_cjs.adminSettingsRoutes; }
|
|
10572
10572
|
});
|
|
10573
10573
|
Object.defineProperty(exports, "adminTestimonialsRoutes", {
|
|
10574
10574
|
enumerable: true,
|
|
10575
|
-
get: function () { return
|
|
10575
|
+
get: function () { return chunkR4FOLLFB_cjs.admin_testimonials_default; }
|
|
10576
10576
|
});
|
|
10577
10577
|
Object.defineProperty(exports, "adminUsersRoutes", {
|
|
10578
10578
|
enumerable: true,
|
|
10579
|
-
get: function () { return
|
|
10579
|
+
get: function () { return chunkR4FOLLFB_cjs.userRoutes; }
|
|
10580
10580
|
});
|
|
10581
10581
|
Object.defineProperty(exports, "apiContentCrudRoutes", {
|
|
10582
10582
|
enumerable: true,
|
|
10583
|
-
get: function () { return
|
|
10583
|
+
get: function () { return chunkR4FOLLFB_cjs.api_content_crud_default; }
|
|
10584
10584
|
});
|
|
10585
10585
|
Object.defineProperty(exports, "apiMediaRoutes", {
|
|
10586
10586
|
enumerable: true,
|
|
10587
|
-
get: function () { return
|
|
10587
|
+
get: function () { return chunkR4FOLLFB_cjs.api_media_default; }
|
|
10588
10588
|
});
|
|
10589
10589
|
Object.defineProperty(exports, "apiRoutes", {
|
|
10590
10590
|
enumerable: true,
|
|
10591
|
-
get: function () { return
|
|
10591
|
+
get: function () { return chunkR4FOLLFB_cjs.api_default; }
|
|
10592
10592
|
});
|
|
10593
10593
|
Object.defineProperty(exports, "apiSystemRoutes", {
|
|
10594
10594
|
enumerable: true,
|
|
10595
|
-
get: function () { return
|
|
10595
|
+
get: function () { return chunkR4FOLLFB_cjs.api_system_default; }
|
|
10596
10596
|
});
|
|
10597
10597
|
Object.defineProperty(exports, "authRoutes", {
|
|
10598
10598
|
enumerable: true,
|
|
10599
|
-
get: function () { return
|
|
10599
|
+
get: function () { return chunkR4FOLLFB_cjs.auth_default; }
|
|
10600
10600
|
});
|
|
10601
10601
|
Object.defineProperty(exports, "createUserProfilesPlugin", {
|
|
10602
10602
|
enumerable: true,
|
|
10603
|
-
get: function () { return
|
|
10603
|
+
get: function () { return chunkR4FOLLFB_cjs.createUserProfilesPlugin; }
|
|
10604
10604
|
});
|
|
10605
10605
|
Object.defineProperty(exports, "defineUserProfile", {
|
|
10606
10606
|
enumerable: true,
|
|
10607
|
-
get: function () { return
|
|
10607
|
+
get: function () { return chunkR4FOLLFB_cjs.defineUserProfile; }
|
|
10608
10608
|
});
|
|
10609
10609
|
Object.defineProperty(exports, "getUserProfileConfig", {
|
|
10610
10610
|
enumerable: true,
|
|
10611
|
-
get: function () { return
|
|
10611
|
+
get: function () { return chunkR4FOLLFB_cjs.getUserProfileConfig; }
|
|
10612
10612
|
});
|
|
10613
10613
|
Object.defineProperty(exports, "userProfilesPlugin", {
|
|
10614
10614
|
enumerable: true,
|
|
10615
|
-
get: function () { return
|
|
10615
|
+
get: function () { return chunkR4FOLLFB_cjs.userProfilesPlugin; }
|
|
10616
10616
|
});
|
|
10617
10617
|
Object.defineProperty(exports, "Logger", {
|
|
10618
10618
|
enumerable: true,
|
|
@@ -10780,167 +10780,167 @@ Object.defineProperty(exports, "workflowHistory", {
|
|
|
10780
10780
|
});
|
|
10781
10781
|
Object.defineProperty(exports, "AuthManager", {
|
|
10782
10782
|
enumerable: true,
|
|
10783
|
-
get: function () { return
|
|
10783
|
+
get: function () { return chunk7A4CB7T3_cjs.AuthManager; }
|
|
10784
10784
|
});
|
|
10785
10785
|
Object.defineProperty(exports, "PermissionManager", {
|
|
10786
10786
|
enumerable: true,
|
|
10787
|
-
get: function () { return
|
|
10787
|
+
get: function () { return chunk7A4CB7T3_cjs.PermissionManager; }
|
|
10788
10788
|
});
|
|
10789
10789
|
Object.defineProperty(exports, "bootstrapMiddleware", {
|
|
10790
10790
|
enumerable: true,
|
|
10791
|
-
get: function () { return
|
|
10791
|
+
get: function () { return chunk7A4CB7T3_cjs.bootstrapMiddleware; }
|
|
10792
10792
|
});
|
|
10793
10793
|
Object.defineProperty(exports, "cacheHeaders", {
|
|
10794
10794
|
enumerable: true,
|
|
10795
|
-
get: function () { return
|
|
10795
|
+
get: function () { return chunk7A4CB7T3_cjs.cacheHeaders; }
|
|
10796
10796
|
});
|
|
10797
10797
|
Object.defineProperty(exports, "compressionMiddleware", {
|
|
10798
10798
|
enumerable: true,
|
|
10799
|
-
get: function () { return
|
|
10799
|
+
get: function () { return chunk7A4CB7T3_cjs.compressionMiddleware; }
|
|
10800
10800
|
});
|
|
10801
10801
|
Object.defineProperty(exports, "detailedLoggingMiddleware", {
|
|
10802
10802
|
enumerable: true,
|
|
10803
|
-
get: function () { return
|
|
10803
|
+
get: function () { return chunk7A4CB7T3_cjs.detailedLoggingMiddleware; }
|
|
10804
10804
|
});
|
|
10805
10805
|
Object.defineProperty(exports, "getActivePlugins", {
|
|
10806
10806
|
enumerable: true,
|
|
10807
|
-
get: function () { return
|
|
10807
|
+
get: function () { return chunk7A4CB7T3_cjs.getActivePlugins; }
|
|
10808
10808
|
});
|
|
10809
10809
|
Object.defineProperty(exports, "isPluginActive", {
|
|
10810
10810
|
enumerable: true,
|
|
10811
|
-
get: function () { return
|
|
10811
|
+
get: function () { return chunk7A4CB7T3_cjs.isPluginActive; }
|
|
10812
10812
|
});
|
|
10813
10813
|
Object.defineProperty(exports, "logActivity", {
|
|
10814
10814
|
enumerable: true,
|
|
10815
|
-
get: function () { return
|
|
10815
|
+
get: function () { return chunk7A4CB7T3_cjs.logActivity; }
|
|
10816
10816
|
});
|
|
10817
10817
|
Object.defineProperty(exports, "loggingMiddleware", {
|
|
10818
10818
|
enumerable: true,
|
|
10819
|
-
get: function () { return
|
|
10819
|
+
get: function () { return chunk7A4CB7T3_cjs.loggingMiddleware; }
|
|
10820
10820
|
});
|
|
10821
10821
|
Object.defineProperty(exports, "optionalAuth", {
|
|
10822
10822
|
enumerable: true,
|
|
10823
|
-
get: function () { return
|
|
10823
|
+
get: function () { return chunk7A4CB7T3_cjs.optionalAuth; }
|
|
10824
10824
|
});
|
|
10825
10825
|
Object.defineProperty(exports, "performanceLoggingMiddleware", {
|
|
10826
10826
|
enumerable: true,
|
|
10827
|
-
get: function () { return
|
|
10827
|
+
get: function () { return chunk7A4CB7T3_cjs.performanceLoggingMiddleware; }
|
|
10828
10828
|
});
|
|
10829
10829
|
Object.defineProperty(exports, "requireActivePlugin", {
|
|
10830
10830
|
enumerable: true,
|
|
10831
|
-
get: function () { return
|
|
10831
|
+
get: function () { return chunk7A4CB7T3_cjs.requireActivePlugin; }
|
|
10832
10832
|
});
|
|
10833
10833
|
Object.defineProperty(exports, "requireActivePlugins", {
|
|
10834
10834
|
enumerable: true,
|
|
10835
|
-
get: function () { return
|
|
10835
|
+
get: function () { return chunk7A4CB7T3_cjs.requireActivePlugins; }
|
|
10836
10836
|
});
|
|
10837
10837
|
Object.defineProperty(exports, "requireAnyPermission", {
|
|
10838
10838
|
enumerable: true,
|
|
10839
|
-
get: function () { return
|
|
10839
|
+
get: function () { return chunk7A4CB7T3_cjs.requireAnyPermission; }
|
|
10840
10840
|
});
|
|
10841
10841
|
Object.defineProperty(exports, "requireAuth", {
|
|
10842
10842
|
enumerable: true,
|
|
10843
|
-
get: function () { return
|
|
10843
|
+
get: function () { return chunk7A4CB7T3_cjs.requireAuth; }
|
|
10844
10844
|
});
|
|
10845
10845
|
Object.defineProperty(exports, "requirePermission", {
|
|
10846
10846
|
enumerable: true,
|
|
10847
|
-
get: function () { return
|
|
10847
|
+
get: function () { return chunk7A4CB7T3_cjs.requirePermission; }
|
|
10848
10848
|
});
|
|
10849
10849
|
Object.defineProperty(exports, "requireRole", {
|
|
10850
10850
|
enumerable: true,
|
|
10851
|
-
get: function () { return
|
|
10851
|
+
get: function () { return chunk7A4CB7T3_cjs.requireRole; }
|
|
10852
10852
|
});
|
|
10853
10853
|
Object.defineProperty(exports, "securityHeaders", {
|
|
10854
10854
|
enumerable: true,
|
|
10855
|
-
get: function () { return
|
|
10855
|
+
get: function () { return chunk7A4CB7T3_cjs.securityHeadersMiddleware; }
|
|
10856
10856
|
});
|
|
10857
10857
|
Object.defineProperty(exports, "securityLoggingMiddleware", {
|
|
10858
10858
|
enumerable: true,
|
|
10859
|
-
get: function () { return
|
|
10859
|
+
get: function () { return chunk7A4CB7T3_cjs.securityLoggingMiddleware; }
|
|
10860
10860
|
});
|
|
10861
10861
|
Object.defineProperty(exports, "PluginBootstrapService", {
|
|
10862
10862
|
enumerable: true,
|
|
10863
|
-
get: function () { return
|
|
10863
|
+
get: function () { return chunkE4YFJBM2_cjs.PluginBootstrapService; }
|
|
10864
10864
|
});
|
|
10865
10865
|
Object.defineProperty(exports, "PluginServiceClass", {
|
|
10866
10866
|
enumerable: true,
|
|
10867
|
-
get: function () { return
|
|
10867
|
+
get: function () { return chunkE4YFJBM2_cjs.PluginService; }
|
|
10868
10868
|
});
|
|
10869
10869
|
Object.defineProperty(exports, "backfillFormSubmissions", {
|
|
10870
10870
|
enumerable: true,
|
|
10871
|
-
get: function () { return
|
|
10871
|
+
get: function () { return chunkE4YFJBM2_cjs.backfillFormSubmissions; }
|
|
10872
10872
|
});
|
|
10873
10873
|
Object.defineProperty(exports, "cleanupRemovedCollections", {
|
|
10874
10874
|
enumerable: true,
|
|
10875
|
-
get: function () { return
|
|
10875
|
+
get: function () { return chunkE4YFJBM2_cjs.cleanupRemovedCollections; }
|
|
10876
10876
|
});
|
|
10877
10877
|
Object.defineProperty(exports, "createContentFromSubmission", {
|
|
10878
10878
|
enumerable: true,
|
|
10879
|
-
get: function () { return
|
|
10879
|
+
get: function () { return chunkE4YFJBM2_cjs.createContentFromSubmission; }
|
|
10880
10880
|
});
|
|
10881
10881
|
Object.defineProperty(exports, "deriveCollectionSchemaFromFormio", {
|
|
10882
10882
|
enumerable: true,
|
|
10883
|
-
get: function () { return
|
|
10883
|
+
get: function () { return chunkE4YFJBM2_cjs.deriveCollectionSchemaFromFormio; }
|
|
10884
10884
|
});
|
|
10885
10885
|
Object.defineProperty(exports, "deriveSubmissionTitle", {
|
|
10886
10886
|
enumerable: true,
|
|
10887
|
-
get: function () { return
|
|
10887
|
+
get: function () { return chunkE4YFJBM2_cjs.deriveSubmissionTitle; }
|
|
10888
10888
|
});
|
|
10889
10889
|
Object.defineProperty(exports, "fullCollectionSync", {
|
|
10890
10890
|
enumerable: true,
|
|
10891
|
-
get: function () { return
|
|
10891
|
+
get: function () { return chunkE4YFJBM2_cjs.fullCollectionSync; }
|
|
10892
10892
|
});
|
|
10893
10893
|
Object.defineProperty(exports, "getAvailableCollectionNames", {
|
|
10894
10894
|
enumerable: true,
|
|
10895
|
-
get: function () { return
|
|
10895
|
+
get: function () { return chunkE4YFJBM2_cjs.getAvailableCollectionNames; }
|
|
10896
10896
|
});
|
|
10897
10897
|
Object.defineProperty(exports, "getManagedCollections", {
|
|
10898
10898
|
enumerable: true,
|
|
10899
|
-
get: function () { return
|
|
10899
|
+
get: function () { return chunkE4YFJBM2_cjs.getManagedCollections; }
|
|
10900
10900
|
});
|
|
10901
10901
|
Object.defineProperty(exports, "isCollectionManaged", {
|
|
10902
10902
|
enumerable: true,
|
|
10903
|
-
get: function () { return
|
|
10903
|
+
get: function () { return chunkE4YFJBM2_cjs.isCollectionManaged; }
|
|
10904
10904
|
});
|
|
10905
10905
|
Object.defineProperty(exports, "loadCollectionConfig", {
|
|
10906
10906
|
enumerable: true,
|
|
10907
|
-
get: function () { return
|
|
10907
|
+
get: function () { return chunkE4YFJBM2_cjs.loadCollectionConfig; }
|
|
10908
10908
|
});
|
|
10909
10909
|
Object.defineProperty(exports, "loadCollectionConfigs", {
|
|
10910
10910
|
enumerable: true,
|
|
10911
|
-
get: function () { return
|
|
10911
|
+
get: function () { return chunkE4YFJBM2_cjs.loadCollectionConfigs; }
|
|
10912
10912
|
});
|
|
10913
10913
|
Object.defineProperty(exports, "mapFormStatusToContentStatus", {
|
|
10914
10914
|
enumerable: true,
|
|
10915
|
-
get: function () { return
|
|
10915
|
+
get: function () { return chunkE4YFJBM2_cjs.mapFormStatusToContentStatus; }
|
|
10916
10916
|
});
|
|
10917
10917
|
Object.defineProperty(exports, "registerCollections", {
|
|
10918
10918
|
enumerable: true,
|
|
10919
|
-
get: function () { return
|
|
10919
|
+
get: function () { return chunkE4YFJBM2_cjs.registerCollections; }
|
|
10920
10920
|
});
|
|
10921
10921
|
Object.defineProperty(exports, "syncAllFormCollections", {
|
|
10922
10922
|
enumerable: true,
|
|
10923
|
-
get: function () { return
|
|
10923
|
+
get: function () { return chunkE4YFJBM2_cjs.syncAllFormCollections; }
|
|
10924
10924
|
});
|
|
10925
10925
|
Object.defineProperty(exports, "syncCollection", {
|
|
10926
10926
|
enumerable: true,
|
|
10927
|
-
get: function () { return
|
|
10927
|
+
get: function () { return chunkE4YFJBM2_cjs.syncCollection; }
|
|
10928
10928
|
});
|
|
10929
10929
|
Object.defineProperty(exports, "syncCollections", {
|
|
10930
10930
|
enumerable: true,
|
|
10931
|
-
get: function () { return
|
|
10931
|
+
get: function () { return chunkE4YFJBM2_cjs.syncCollections; }
|
|
10932
10932
|
});
|
|
10933
10933
|
Object.defineProperty(exports, "syncFormCollection", {
|
|
10934
10934
|
enumerable: true,
|
|
10935
|
-
get: function () { return
|
|
10935
|
+
get: function () { return chunkE4YFJBM2_cjs.syncFormCollection; }
|
|
10936
10936
|
});
|
|
10937
10937
|
Object.defineProperty(exports, "validateCollectionConfig", {
|
|
10938
10938
|
enumerable: true,
|
|
10939
|
-
get: function () { return
|
|
10939
|
+
get: function () { return chunkE4YFJBM2_cjs.validateCollectionConfig; }
|
|
10940
10940
|
});
|
|
10941
10941
|
Object.defineProperty(exports, "MigrationService", {
|
|
10942
10942
|
enumerable: true,
|
|
10943
|
-
get: function () { return
|
|
10943
|
+
get: function () { return chunkRLMUFFUD_cjs.MigrationService; }
|
|
10944
10944
|
});
|
|
10945
10945
|
Object.defineProperty(exports, "renderFilterBar", {
|
|
10946
10946
|
enumerable: true,
|
|
@@ -11008,31 +11008,31 @@ Object.defineProperty(exports, "PluginHelpers", {
|
|
|
11008
11008
|
});
|
|
11009
11009
|
Object.defineProperty(exports, "QueryFilterBuilder", {
|
|
11010
11010
|
enumerable: true,
|
|
11011
|
-
get: function () { return
|
|
11011
|
+
get: function () { return chunkJZVHLLSI_cjs.QueryFilterBuilder; }
|
|
11012
11012
|
});
|
|
11013
11013
|
Object.defineProperty(exports, "SONICJS_VERSION", {
|
|
11014
11014
|
enumerable: true,
|
|
11015
|
-
get: function () { return
|
|
11015
|
+
get: function () { return chunkJZVHLLSI_cjs.SONICJS_VERSION; }
|
|
11016
11016
|
});
|
|
11017
11017
|
Object.defineProperty(exports, "TemplateRenderer", {
|
|
11018
11018
|
enumerable: true,
|
|
11019
|
-
get: function () { return
|
|
11019
|
+
get: function () { return chunkJZVHLLSI_cjs.TemplateRenderer; }
|
|
11020
11020
|
});
|
|
11021
11021
|
Object.defineProperty(exports, "buildQuery", {
|
|
11022
11022
|
enumerable: true,
|
|
11023
|
-
get: function () { return
|
|
11023
|
+
get: function () { return chunkJZVHLLSI_cjs.buildQuery; }
|
|
11024
11024
|
});
|
|
11025
11025
|
Object.defineProperty(exports, "getCoreVersion", {
|
|
11026
11026
|
enumerable: true,
|
|
11027
|
-
get: function () { return
|
|
11027
|
+
get: function () { return chunkJZVHLLSI_cjs.getCoreVersion; }
|
|
11028
11028
|
});
|
|
11029
11029
|
Object.defineProperty(exports, "renderTemplate", {
|
|
11030
11030
|
enumerable: true,
|
|
11031
|
-
get: function () { return
|
|
11031
|
+
get: function () { return chunkJZVHLLSI_cjs.renderTemplate; }
|
|
11032
11032
|
});
|
|
11033
11033
|
Object.defineProperty(exports, "templateRenderer", {
|
|
11034
11034
|
enumerable: true,
|
|
11035
|
-
get: function () { return
|
|
11035
|
+
get: function () { return chunkJZVHLLSI_cjs.templateRenderer; }
|
|
11036
11036
|
});
|
|
11037
11037
|
Object.defineProperty(exports, "metricsTracker", {
|
|
11038
11038
|
enumerable: true,
|