@sonicjs-cms/core 2.12.0 → 2.12.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.
- package/dist/{chunk-NDFHQOPP.js → chunk-3V2CQFIR.js} +8 -8
- package/dist/{chunk-NDFHQOPP.js.map → chunk-3V2CQFIR.js.map} +1 -1
- package/dist/{chunk-6R6LAUR7.js → chunk-673VROB3.js} +3 -3
- package/dist/{chunk-6R6LAUR7.js.map → chunk-673VROB3.js.map} +1 -1
- package/dist/{chunk-U3ZMGBVC.js → chunk-6C6W54QP.js} +10 -3
- package/dist/chunk-6C6W54QP.js.map +1 -0
- package/dist/{chunk-ZV6ZCJ74.cjs → chunk-DHTCZZUB.cjs} +97 -97
- package/dist/{chunk-ZV6ZCJ74.cjs.map → chunk-DHTCZZUB.cjs.map} +1 -1
- package/dist/{chunk-VHNTCB2X.cjs → chunk-HBUFGLEX.cjs} +4 -4
- package/dist/{chunk-VHNTCB2X.cjs.map → chunk-HBUFGLEX.cjs.map} +1 -1
- package/dist/{chunk-RXNLGINR.cjs → chunk-IKBAY2M2.cjs} +3 -3
- package/dist/{chunk-RXNLGINR.cjs.map → chunk-IKBAY2M2.cjs.map} +1 -1
- package/dist/{chunk-HXIYYE57.js → chunk-UFWE3MEJ.js} +3 -3
- package/dist/{chunk-HXIYYE57.js.map → chunk-UFWE3MEJ.js.map} +1 -1
- package/dist/{chunk-AG3SIPP7.cjs → chunk-XK3TKOLQ.cjs} +10 -3
- package/dist/chunk-XK3TKOLQ.cjs.map +1 -0
- package/dist/index.cjs +97 -97
- package/dist/index.js +7 -7
- package/dist/middleware.cjs +28 -28
- package/dist/middleware.js +2 -2
- package/dist/migrations-AH2XIFSA.js +4 -0
- package/dist/{migrations-USSEHJC7.js.map → migrations-AH2XIFSA.js.map} +1 -1
- package/dist/migrations-MIZFGFNS.cjs +13 -0
- package/dist/{migrations-ZE6IZNLB.cjs.map → migrations-MIZFGFNS.cjs.map} +1 -1
- package/dist/routes.cjs +27 -27
- package/dist/routes.js +4 -4
- package/dist/services.cjs +2 -2
- package/dist/services.js +1 -1
- package/dist/utils.cjs +11 -11
- package/dist/utils.js +1 -1
- package/migrations/032_user_profiles.sql +1 -0
- package/migrations/035_user_profiles_data_column.sql +17 -0
- package/package.json +1 -1
- package/dist/chunk-AG3SIPP7.cjs.map +0 -1
- package/dist/chunk-U3ZMGBVC.js.map +0 -1
- package/dist/migrations-USSEHJC7.js +0 -4
- package/dist/migrations-ZE6IZNLB.cjs +0 -13
package/dist/index.cjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkDHTCZZUB_cjs = require('./chunk-DHTCZZUB.cjs');
|
|
4
4
|
var chunkNZWFCUDA_cjs = require('./chunk-NZWFCUDA.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunkHBUFGLEX_cjs = require('./chunk-HBUFGLEX.cjs');
|
|
6
6
|
var chunkI6FFGQIT_cjs = require('./chunk-I6FFGQIT.cjs');
|
|
7
|
-
var
|
|
7
|
+
var chunkXK3TKOLQ_cjs = require('./chunk-XK3TKOLQ.cjs');
|
|
8
8
|
var chunkRBXFXT7H_cjs = require('./chunk-RBXFXT7H.cjs');
|
|
9
9
|
var chunkH4NHRZ6Y_cjs = require('./chunk-H4NHRZ6Y.cjs');
|
|
10
10
|
var chunk56GUBLJE_cjs = require('./chunk-56GUBLJE.cjs');
|
|
11
11
|
var chunk6FHNRRJ3_cjs = require('./chunk-6FHNRRJ3.cjs');
|
|
12
|
-
var
|
|
12
|
+
var chunkIKBAY2M2_cjs = require('./chunk-IKBAY2M2.cjs');
|
|
13
13
|
require('./chunk-P3XDZL6Q.cjs');
|
|
14
14
|
var chunkRCQ2HIQD_cjs = require('./chunk-RCQ2HIQD.cjs');
|
|
15
15
|
var chunkMNWKYY5E_cjs = require('./chunk-MNWKYY5E.cjs');
|
|
@@ -559,7 +559,7 @@ function formatCellValue(value) {
|
|
|
559
559
|
// src/plugins/core-plugins/database-tools-plugin/admin-routes.ts
|
|
560
560
|
function createDatabaseToolsAdminRoutes() {
|
|
561
561
|
const router3 = new hono.Hono();
|
|
562
|
-
router3.use("*",
|
|
562
|
+
router3.use("*", chunkHBUFGLEX_cjs.requireAuth());
|
|
563
563
|
router3.get("/api/stats", async (c) => {
|
|
564
564
|
try {
|
|
565
565
|
const user = c.get("user");
|
|
@@ -1926,7 +1926,7 @@ function createOTPLoginPlugin() {
|
|
|
1926
1926
|
error: "Account is deactivated"
|
|
1927
1927
|
}, 403);
|
|
1928
1928
|
}
|
|
1929
|
-
const token = await
|
|
1929
|
+
const token = await chunkHBUFGLEX_cjs.AuthManager.generateToken(user.id, user.email, user.role, c.env.JWT_SECRET);
|
|
1930
1930
|
cookie.setCookie(c, "auth_token", token, {
|
|
1931
1931
|
httpOnly: true,
|
|
1932
1932
|
secure: true,
|
|
@@ -2396,13 +2396,13 @@ function createOAuthProvidersPlugin() {
|
|
|
2396
2396
|
if (!user || !user.is_active) {
|
|
2397
2397
|
return c.redirect("/auth/login?error=Account is deactivated");
|
|
2398
2398
|
}
|
|
2399
|
-
const jwt2 = await
|
|
2399
|
+
const jwt2 = await chunkHBUFGLEX_cjs.AuthManager.generateToken(
|
|
2400
2400
|
user.id,
|
|
2401
2401
|
user.email,
|
|
2402
2402
|
user.role,
|
|
2403
2403
|
c.env.JWT_SECRET
|
|
2404
2404
|
);
|
|
2405
|
-
|
|
2405
|
+
chunkHBUFGLEX_cjs.AuthManager.setAuthCookie(c, jwt2, { sameSite: "Lax" });
|
|
2406
2406
|
return c.redirect("/admin");
|
|
2407
2407
|
}
|
|
2408
2408
|
const existingUser = await oauthService.findUserByEmail(profile.email);
|
|
@@ -2419,13 +2419,13 @@ function createOAuthProvidersPlugin() {
|
|
|
2419
2419
|
tokenExpiresAt: tokenExpiresAt ?? void 0,
|
|
2420
2420
|
profileData: JSON.stringify(profile)
|
|
2421
2421
|
});
|
|
2422
|
-
const jwt2 = await
|
|
2422
|
+
const jwt2 = await chunkHBUFGLEX_cjs.AuthManager.generateToken(
|
|
2423
2423
|
existingUser.id,
|
|
2424
2424
|
existingUser.email,
|
|
2425
2425
|
existingUser.role,
|
|
2426
2426
|
c.env.JWT_SECRET
|
|
2427
2427
|
);
|
|
2428
|
-
|
|
2428
|
+
chunkHBUFGLEX_cjs.AuthManager.setAuthCookie(c, jwt2, { sameSite: "Lax" });
|
|
2429
2429
|
return c.redirect("/admin");
|
|
2430
2430
|
}
|
|
2431
2431
|
const newUserId = await oauthService.createUserFromOAuth(profile);
|
|
@@ -2438,13 +2438,13 @@ function createOAuthProvidersPlugin() {
|
|
|
2438
2438
|
tokenExpiresAt: tokenExpiresAt ?? void 0,
|
|
2439
2439
|
profileData: JSON.stringify(profile)
|
|
2440
2440
|
});
|
|
2441
|
-
const jwt = await
|
|
2441
|
+
const jwt = await chunkHBUFGLEX_cjs.AuthManager.generateToken(
|
|
2442
2442
|
newUserId,
|
|
2443
2443
|
profile.email.toLowerCase(),
|
|
2444
2444
|
"viewer",
|
|
2445
2445
|
c.env.JWT_SECRET
|
|
2446
2446
|
);
|
|
2447
|
-
|
|
2447
|
+
chunkHBUFGLEX_cjs.AuthManager.setAuthCookie(c, jwt, { sameSite: "Lax" });
|
|
2448
2448
|
return c.redirect("/admin");
|
|
2449
2449
|
} catch (error) {
|
|
2450
2450
|
console.error("OAuth callback error:", error);
|
|
@@ -4137,7 +4137,7 @@ function renderSettingsPage(data) {
|
|
|
4137
4137
|
|
|
4138
4138
|
// src/plugins/core-plugins/ai-search-plugin/routes/admin.ts
|
|
4139
4139
|
var adminRoutes = new hono.Hono();
|
|
4140
|
-
adminRoutes.use("*",
|
|
4140
|
+
adminRoutes.use("*", chunkHBUFGLEX_cjs.requireAuth());
|
|
4141
4141
|
adminRoutes.get("/", async (c) => {
|
|
4142
4142
|
try {
|
|
4143
4143
|
const user = c.get("user");
|
|
@@ -4538,13 +4538,13 @@ function createMagicLinkAuthPlugin() {
|
|
|
4538
4538
|
SET used = 1, used_at = ?
|
|
4539
4539
|
WHERE id = ?
|
|
4540
4540
|
`).bind(Date.now(), magicLink.id).run();
|
|
4541
|
-
const jwtToken = await
|
|
4541
|
+
const jwtToken = await chunkHBUFGLEX_cjs.AuthManager.generateToken(
|
|
4542
4542
|
user.id,
|
|
4543
4543
|
user.email,
|
|
4544
4544
|
user.role,
|
|
4545
4545
|
c.env.JWT_SECRET
|
|
4546
4546
|
);
|
|
4547
|
-
|
|
4547
|
+
chunkHBUFGLEX_cjs.AuthManager.setAuthCookie(c, jwtToken);
|
|
4548
4548
|
await db.prepare(`
|
|
4549
4549
|
UPDATE users SET last_login_at = ? WHERE id = ?
|
|
4550
4550
|
`).bind(Date.now(), user.id).run();
|
|
@@ -5554,7 +5554,7 @@ function renderSecuritySettingsPage(data) {
|
|
|
5554
5554
|
|
|
5555
5555
|
// src/plugins/core-plugins/security-audit-plugin/routes/admin.ts
|
|
5556
5556
|
var adminRoutes2 = new hono.Hono();
|
|
5557
|
-
adminRoutes2.use("*",
|
|
5557
|
+
adminRoutes2.use("*", chunkHBUFGLEX_cjs.requireAuth());
|
|
5558
5558
|
adminRoutes2.use("*", async (c, next) => {
|
|
5559
5559
|
const user = c.get("user");
|
|
5560
5560
|
if (user?.role !== "admin") {
|
|
@@ -5824,7 +5824,7 @@ var BruteForceDetector = class {
|
|
|
5824
5824
|
|
|
5825
5825
|
// src/plugins/core-plugins/security-audit-plugin/routes/api.ts
|
|
5826
5826
|
var apiRoutes2 = new hono.Hono();
|
|
5827
|
-
apiRoutes2.use("*",
|
|
5827
|
+
apiRoutes2.use("*", chunkHBUFGLEX_cjs.requireAuth());
|
|
5828
5828
|
apiRoutes2.use("*", async (c, next) => {
|
|
5829
5829
|
const user = c.get("user");
|
|
5830
5830
|
if (user?.role !== "admin") {
|
|
@@ -7460,7 +7460,7 @@ function renderCacheDashboard(data) {
|
|
|
7460
7460
|
</script>
|
|
7461
7461
|
|
|
7462
7462
|
<!-- Confirmation Dialogs -->
|
|
7463
|
-
${
|
|
7463
|
+
${chunkDHTCZZUB_cjs.renderConfirmationDialog({
|
|
7464
7464
|
id: "clear-all-cache-confirm",
|
|
7465
7465
|
title: "Clear All Cache",
|
|
7466
7466
|
message: "Are you sure you want to clear all cache entries? This cannot be undone.",
|
|
@@ -7471,7 +7471,7 @@ function renderCacheDashboard(data) {
|
|
|
7471
7471
|
onConfirm: "performClearAllCaches()"
|
|
7472
7472
|
})}
|
|
7473
7473
|
|
|
7474
|
-
${
|
|
7474
|
+
${chunkDHTCZZUB_cjs.renderConfirmationDialog({
|
|
7475
7475
|
id: "clear-namespace-cache-confirm",
|
|
7476
7476
|
title: "Clear Namespace Cache",
|
|
7477
7477
|
message: "Clear cache for this namespace?",
|
|
@@ -7482,7 +7482,7 @@ function renderCacheDashboard(data) {
|
|
|
7482
7482
|
onConfirm: "performClearNamespaceCache()"
|
|
7483
7483
|
})}
|
|
7484
7484
|
|
|
7485
|
-
${
|
|
7485
|
+
${chunkDHTCZZUB_cjs.getConfirmationDialogScript()}
|
|
7486
7486
|
`;
|
|
7487
7487
|
const layoutData = {
|
|
7488
7488
|
title: "Cache System",
|
|
@@ -8168,14 +8168,14 @@ var faviconSvg = `<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
|
8168
8168
|
// src/app.ts
|
|
8169
8169
|
function createSonicJSApp(config = {}) {
|
|
8170
8170
|
const app2 = new hono.Hono();
|
|
8171
|
-
const appVersion = config.version ||
|
|
8171
|
+
const appVersion = config.version || chunkIKBAY2M2_cjs.getCoreVersion();
|
|
8172
8172
|
const appName = config.name || "SonicJS AI";
|
|
8173
8173
|
app2.use("*", async (c, next) => {
|
|
8174
8174
|
c.set("appVersion", appVersion);
|
|
8175
8175
|
await next();
|
|
8176
8176
|
});
|
|
8177
|
-
app2.use("*",
|
|
8178
|
-
app2.use("*",
|
|
8177
|
+
app2.use("*", chunkHBUFGLEX_cjs.metricsMiddleware());
|
|
8178
|
+
app2.use("*", chunkHBUFGLEX_cjs.bootstrapMiddleware(config));
|
|
8179
8179
|
if (config.middleware?.beforeAuth) {
|
|
8180
8180
|
for (const middleware of config.middleware.beforeAuth) {
|
|
8181
8181
|
app2.use("*", middleware);
|
|
@@ -8184,29 +8184,29 @@ function createSonicJSApp(config = {}) {
|
|
|
8184
8184
|
app2.use("*", async (_c, next) => {
|
|
8185
8185
|
await next();
|
|
8186
8186
|
});
|
|
8187
|
-
app2.use("*",
|
|
8188
|
-
app2.use("*",
|
|
8187
|
+
app2.use("*", chunkHBUFGLEX_cjs.securityHeadersMiddleware());
|
|
8188
|
+
app2.use("*", chunkHBUFGLEX_cjs.csrfProtection());
|
|
8189
8189
|
if (config.middleware?.afterAuth) {
|
|
8190
8190
|
for (const middleware of config.middleware.afterAuth) {
|
|
8191
8191
|
app2.use("*", middleware);
|
|
8192
8192
|
}
|
|
8193
8193
|
}
|
|
8194
8194
|
app2.use("/admin/*", pluginMenuMiddleware());
|
|
8195
|
-
app2.route("/api",
|
|
8196
|
-
app2.route("/api/media",
|
|
8197
|
-
app2.route("/api/system",
|
|
8198
|
-
app2.route("/admin/api",
|
|
8199
|
-
app2.route("/admin/dashboard",
|
|
8200
|
-
app2.route("/admin/collections",
|
|
8201
|
-
app2.route("/admin/forms",
|
|
8202
|
-
app2.route("/admin/settings",
|
|
8203
|
-
app2.route("/forms",
|
|
8204
|
-
app2.route("/api/forms",
|
|
8205
|
-
app2.route("/admin/api-reference",
|
|
8195
|
+
app2.route("/api", chunkDHTCZZUB_cjs.api_default);
|
|
8196
|
+
app2.route("/api/media", chunkDHTCZZUB_cjs.api_media_default);
|
|
8197
|
+
app2.route("/api/system", chunkDHTCZZUB_cjs.api_system_default);
|
|
8198
|
+
app2.route("/admin/api", chunkDHTCZZUB_cjs.admin_api_default);
|
|
8199
|
+
app2.route("/admin/dashboard", chunkDHTCZZUB_cjs.router);
|
|
8200
|
+
app2.route("/admin/collections", chunkDHTCZZUB_cjs.adminCollectionsRoutes);
|
|
8201
|
+
app2.route("/admin/forms", chunkDHTCZZUB_cjs.adminFormsRoutes);
|
|
8202
|
+
app2.route("/admin/settings", chunkDHTCZZUB_cjs.adminSettingsRoutes);
|
|
8203
|
+
app2.route("/forms", chunkDHTCZZUB_cjs.public_forms_default);
|
|
8204
|
+
app2.route("/api/forms", chunkDHTCZZUB_cjs.public_forms_default);
|
|
8205
|
+
app2.route("/admin/api-reference", chunkDHTCZZUB_cjs.router2);
|
|
8206
8206
|
app2.route("/admin/database-tools", createDatabaseToolsAdminRoutes());
|
|
8207
8207
|
app2.route("/admin/seed-data", createSeedDataAdminRoutes());
|
|
8208
|
-
app2.route("/admin/content",
|
|
8209
|
-
app2.route("/admin/media",
|
|
8208
|
+
app2.route("/admin/content", chunkDHTCZZUB_cjs.admin_content_default);
|
|
8209
|
+
app2.route("/admin/media", chunkDHTCZZUB_cjs.adminMediaRoutes);
|
|
8210
8210
|
app2.use("/auth/*", securityAuditMiddleware());
|
|
8211
8211
|
if (securityAuditPlugin.routes && securityAuditPlugin.routes.length > 0) {
|
|
8212
8212
|
for (const route of securityAuditPlugin.routes) {
|
|
@@ -8224,8 +8224,8 @@ function createSonicJSApp(config = {}) {
|
|
|
8224
8224
|
app2.route(route.path, route.handler);
|
|
8225
8225
|
}
|
|
8226
8226
|
}
|
|
8227
|
-
if (
|
|
8228
|
-
for (const route of
|
|
8227
|
+
if (chunkDHTCZZUB_cjs.userProfilesPlugin.routes && chunkDHTCZZUB_cjs.userProfilesPlugin.routes.length > 0) {
|
|
8228
|
+
for (const route of chunkDHTCZZUB_cjs.userProfilesPlugin.routes) {
|
|
8229
8229
|
app2.route(route.path, route.handler);
|
|
8230
8230
|
}
|
|
8231
8231
|
}
|
|
@@ -8234,11 +8234,11 @@ function createSonicJSApp(config = {}) {
|
|
|
8234
8234
|
app2.route(route.path, route.handler);
|
|
8235
8235
|
}
|
|
8236
8236
|
}
|
|
8237
|
-
app2.route("/admin/plugins",
|
|
8238
|
-
app2.route("/admin/logs",
|
|
8239
|
-
app2.route("/admin",
|
|
8240
|
-
app2.route("/auth",
|
|
8241
|
-
app2.route("/",
|
|
8237
|
+
app2.route("/admin/plugins", chunkDHTCZZUB_cjs.adminPluginRoutes);
|
|
8238
|
+
app2.route("/admin/logs", chunkDHTCZZUB_cjs.adminLogsRoutes);
|
|
8239
|
+
app2.route("/admin", chunkDHTCZZUB_cjs.userRoutes);
|
|
8240
|
+
app2.route("/auth", chunkDHTCZZUB_cjs.auth_default);
|
|
8241
|
+
app2.route("/", chunkDHTCZZUB_cjs.test_cleanup_default);
|
|
8242
8242
|
if (emailPlugin.routes && emailPlugin.routes.length > 0) {
|
|
8243
8243
|
for (const route of emailPlugin.routes) {
|
|
8244
8244
|
app2.route(route.path, route.handler);
|
|
@@ -8322,99 +8322,99 @@ function createDb(d1$1) {
|
|
|
8322
8322
|
}
|
|
8323
8323
|
|
|
8324
8324
|
// src/index.ts
|
|
8325
|
-
var VERSION =
|
|
8325
|
+
var VERSION = chunkIKBAY2M2_cjs.package_default.version;
|
|
8326
8326
|
|
|
8327
8327
|
Object.defineProperty(exports, "ROUTES_INFO", {
|
|
8328
8328
|
enumerable: true,
|
|
8329
|
-
get: function () { return
|
|
8329
|
+
get: function () { return chunkDHTCZZUB_cjs.ROUTES_INFO; }
|
|
8330
8330
|
});
|
|
8331
8331
|
Object.defineProperty(exports, "adminApiRoutes", {
|
|
8332
8332
|
enumerable: true,
|
|
8333
|
-
get: function () { return
|
|
8333
|
+
get: function () { return chunkDHTCZZUB_cjs.admin_api_default; }
|
|
8334
8334
|
});
|
|
8335
8335
|
Object.defineProperty(exports, "adminCheckboxRoutes", {
|
|
8336
8336
|
enumerable: true,
|
|
8337
|
-
get: function () { return
|
|
8337
|
+
get: function () { return chunkDHTCZZUB_cjs.adminCheckboxRoutes; }
|
|
8338
8338
|
});
|
|
8339
8339
|
Object.defineProperty(exports, "adminCodeExamplesRoutes", {
|
|
8340
8340
|
enumerable: true,
|
|
8341
|
-
get: function () { return
|
|
8341
|
+
get: function () { return chunkDHTCZZUB_cjs.admin_code_examples_default; }
|
|
8342
8342
|
});
|
|
8343
8343
|
Object.defineProperty(exports, "adminCollectionsRoutes", {
|
|
8344
8344
|
enumerable: true,
|
|
8345
|
-
get: function () { return
|
|
8345
|
+
get: function () { return chunkDHTCZZUB_cjs.adminCollectionsRoutes; }
|
|
8346
8346
|
});
|
|
8347
8347
|
Object.defineProperty(exports, "adminContentRoutes", {
|
|
8348
8348
|
enumerable: true,
|
|
8349
|
-
get: function () { return
|
|
8349
|
+
get: function () { return chunkDHTCZZUB_cjs.admin_content_default; }
|
|
8350
8350
|
});
|
|
8351
8351
|
Object.defineProperty(exports, "adminDashboardRoutes", {
|
|
8352
8352
|
enumerable: true,
|
|
8353
|
-
get: function () { return
|
|
8353
|
+
get: function () { return chunkDHTCZZUB_cjs.router; }
|
|
8354
8354
|
});
|
|
8355
8355
|
Object.defineProperty(exports, "adminDesignRoutes", {
|
|
8356
8356
|
enumerable: true,
|
|
8357
|
-
get: function () { return
|
|
8357
|
+
get: function () { return chunkDHTCZZUB_cjs.adminDesignRoutes; }
|
|
8358
8358
|
});
|
|
8359
8359
|
Object.defineProperty(exports, "adminLogsRoutes", {
|
|
8360
8360
|
enumerable: true,
|
|
8361
|
-
get: function () { return
|
|
8361
|
+
get: function () { return chunkDHTCZZUB_cjs.adminLogsRoutes; }
|
|
8362
8362
|
});
|
|
8363
8363
|
Object.defineProperty(exports, "adminMediaRoutes", {
|
|
8364
8364
|
enumerable: true,
|
|
8365
|
-
get: function () { return
|
|
8365
|
+
get: function () { return chunkDHTCZZUB_cjs.adminMediaRoutes; }
|
|
8366
8366
|
});
|
|
8367
8367
|
Object.defineProperty(exports, "adminPluginRoutes", {
|
|
8368
8368
|
enumerable: true,
|
|
8369
|
-
get: function () { return
|
|
8369
|
+
get: function () { return chunkDHTCZZUB_cjs.adminPluginRoutes; }
|
|
8370
8370
|
});
|
|
8371
8371
|
Object.defineProperty(exports, "adminSettingsRoutes", {
|
|
8372
8372
|
enumerable: true,
|
|
8373
|
-
get: function () { return
|
|
8373
|
+
get: function () { return chunkDHTCZZUB_cjs.adminSettingsRoutes; }
|
|
8374
8374
|
});
|
|
8375
8375
|
Object.defineProperty(exports, "adminTestimonialsRoutes", {
|
|
8376
8376
|
enumerable: true,
|
|
8377
|
-
get: function () { return
|
|
8377
|
+
get: function () { return chunkDHTCZZUB_cjs.admin_testimonials_default; }
|
|
8378
8378
|
});
|
|
8379
8379
|
Object.defineProperty(exports, "adminUsersRoutes", {
|
|
8380
8380
|
enumerable: true,
|
|
8381
|
-
get: function () { return
|
|
8381
|
+
get: function () { return chunkDHTCZZUB_cjs.userRoutes; }
|
|
8382
8382
|
});
|
|
8383
8383
|
Object.defineProperty(exports, "apiContentCrudRoutes", {
|
|
8384
8384
|
enumerable: true,
|
|
8385
|
-
get: function () { return
|
|
8385
|
+
get: function () { return chunkDHTCZZUB_cjs.api_content_crud_default; }
|
|
8386
8386
|
});
|
|
8387
8387
|
Object.defineProperty(exports, "apiMediaRoutes", {
|
|
8388
8388
|
enumerable: true,
|
|
8389
|
-
get: function () { return
|
|
8389
|
+
get: function () { return chunkDHTCZZUB_cjs.api_media_default; }
|
|
8390
8390
|
});
|
|
8391
8391
|
Object.defineProperty(exports, "apiRoutes", {
|
|
8392
8392
|
enumerable: true,
|
|
8393
|
-
get: function () { return
|
|
8393
|
+
get: function () { return chunkDHTCZZUB_cjs.api_default; }
|
|
8394
8394
|
});
|
|
8395
8395
|
Object.defineProperty(exports, "apiSystemRoutes", {
|
|
8396
8396
|
enumerable: true,
|
|
8397
|
-
get: function () { return
|
|
8397
|
+
get: function () { return chunkDHTCZZUB_cjs.api_system_default; }
|
|
8398
8398
|
});
|
|
8399
8399
|
Object.defineProperty(exports, "authRoutes", {
|
|
8400
8400
|
enumerable: true,
|
|
8401
|
-
get: function () { return
|
|
8401
|
+
get: function () { return chunkDHTCZZUB_cjs.auth_default; }
|
|
8402
8402
|
});
|
|
8403
8403
|
Object.defineProperty(exports, "createUserProfilesPlugin", {
|
|
8404
8404
|
enumerable: true,
|
|
8405
|
-
get: function () { return
|
|
8405
|
+
get: function () { return chunkDHTCZZUB_cjs.createUserProfilesPlugin; }
|
|
8406
8406
|
});
|
|
8407
8407
|
Object.defineProperty(exports, "defineUserProfile", {
|
|
8408
8408
|
enumerable: true,
|
|
8409
|
-
get: function () { return
|
|
8409
|
+
get: function () { return chunkDHTCZZUB_cjs.defineUserProfile; }
|
|
8410
8410
|
});
|
|
8411
8411
|
Object.defineProperty(exports, "getUserProfileConfig", {
|
|
8412
8412
|
enumerable: true,
|
|
8413
|
-
get: function () { return
|
|
8413
|
+
get: function () { return chunkDHTCZZUB_cjs.getUserProfileConfig; }
|
|
8414
8414
|
});
|
|
8415
8415
|
Object.defineProperty(exports, "userProfilesPlugin", {
|
|
8416
8416
|
enumerable: true,
|
|
8417
|
-
get: function () { return
|
|
8417
|
+
get: function () { return chunkDHTCZZUB_cjs.userProfilesPlugin; }
|
|
8418
8418
|
});
|
|
8419
8419
|
Object.defineProperty(exports, "Logger", {
|
|
8420
8420
|
enumerable: true,
|
|
@@ -8582,83 +8582,83 @@ Object.defineProperty(exports, "workflowHistory", {
|
|
|
8582
8582
|
});
|
|
8583
8583
|
Object.defineProperty(exports, "AuthManager", {
|
|
8584
8584
|
enumerable: true,
|
|
8585
|
-
get: function () { return
|
|
8585
|
+
get: function () { return chunkHBUFGLEX_cjs.AuthManager; }
|
|
8586
8586
|
});
|
|
8587
8587
|
Object.defineProperty(exports, "PermissionManager", {
|
|
8588
8588
|
enumerable: true,
|
|
8589
|
-
get: function () { return
|
|
8589
|
+
get: function () { return chunkHBUFGLEX_cjs.PermissionManager; }
|
|
8590
8590
|
});
|
|
8591
8591
|
Object.defineProperty(exports, "bootstrapMiddleware", {
|
|
8592
8592
|
enumerable: true,
|
|
8593
|
-
get: function () { return
|
|
8593
|
+
get: function () { return chunkHBUFGLEX_cjs.bootstrapMiddleware; }
|
|
8594
8594
|
});
|
|
8595
8595
|
Object.defineProperty(exports, "cacheHeaders", {
|
|
8596
8596
|
enumerable: true,
|
|
8597
|
-
get: function () { return
|
|
8597
|
+
get: function () { return chunkHBUFGLEX_cjs.cacheHeaders; }
|
|
8598
8598
|
});
|
|
8599
8599
|
Object.defineProperty(exports, "compressionMiddleware", {
|
|
8600
8600
|
enumerable: true,
|
|
8601
|
-
get: function () { return
|
|
8601
|
+
get: function () { return chunkHBUFGLEX_cjs.compressionMiddleware; }
|
|
8602
8602
|
});
|
|
8603
8603
|
Object.defineProperty(exports, "detailedLoggingMiddleware", {
|
|
8604
8604
|
enumerable: true,
|
|
8605
|
-
get: function () { return
|
|
8605
|
+
get: function () { return chunkHBUFGLEX_cjs.detailedLoggingMiddleware; }
|
|
8606
8606
|
});
|
|
8607
8607
|
Object.defineProperty(exports, "getActivePlugins", {
|
|
8608
8608
|
enumerable: true,
|
|
8609
|
-
get: function () { return
|
|
8609
|
+
get: function () { return chunkHBUFGLEX_cjs.getActivePlugins; }
|
|
8610
8610
|
});
|
|
8611
8611
|
Object.defineProperty(exports, "isPluginActive", {
|
|
8612
8612
|
enumerable: true,
|
|
8613
|
-
get: function () { return
|
|
8613
|
+
get: function () { return chunkHBUFGLEX_cjs.isPluginActive; }
|
|
8614
8614
|
});
|
|
8615
8615
|
Object.defineProperty(exports, "logActivity", {
|
|
8616
8616
|
enumerable: true,
|
|
8617
|
-
get: function () { return
|
|
8617
|
+
get: function () { return chunkHBUFGLEX_cjs.logActivity; }
|
|
8618
8618
|
});
|
|
8619
8619
|
Object.defineProperty(exports, "loggingMiddleware", {
|
|
8620
8620
|
enumerable: true,
|
|
8621
|
-
get: function () { return
|
|
8621
|
+
get: function () { return chunkHBUFGLEX_cjs.loggingMiddleware; }
|
|
8622
8622
|
});
|
|
8623
8623
|
Object.defineProperty(exports, "optionalAuth", {
|
|
8624
8624
|
enumerable: true,
|
|
8625
|
-
get: function () { return
|
|
8625
|
+
get: function () { return chunkHBUFGLEX_cjs.optionalAuth; }
|
|
8626
8626
|
});
|
|
8627
8627
|
Object.defineProperty(exports, "performanceLoggingMiddleware", {
|
|
8628
8628
|
enumerable: true,
|
|
8629
|
-
get: function () { return
|
|
8629
|
+
get: function () { return chunkHBUFGLEX_cjs.performanceLoggingMiddleware; }
|
|
8630
8630
|
});
|
|
8631
8631
|
Object.defineProperty(exports, "requireActivePlugin", {
|
|
8632
8632
|
enumerable: true,
|
|
8633
|
-
get: function () { return
|
|
8633
|
+
get: function () { return chunkHBUFGLEX_cjs.requireActivePlugin; }
|
|
8634
8634
|
});
|
|
8635
8635
|
Object.defineProperty(exports, "requireActivePlugins", {
|
|
8636
8636
|
enumerable: true,
|
|
8637
|
-
get: function () { return
|
|
8637
|
+
get: function () { return chunkHBUFGLEX_cjs.requireActivePlugins; }
|
|
8638
8638
|
});
|
|
8639
8639
|
Object.defineProperty(exports, "requireAnyPermission", {
|
|
8640
8640
|
enumerable: true,
|
|
8641
|
-
get: function () { return
|
|
8641
|
+
get: function () { return chunkHBUFGLEX_cjs.requireAnyPermission; }
|
|
8642
8642
|
});
|
|
8643
8643
|
Object.defineProperty(exports, "requireAuth", {
|
|
8644
8644
|
enumerable: true,
|
|
8645
|
-
get: function () { return
|
|
8645
|
+
get: function () { return chunkHBUFGLEX_cjs.requireAuth; }
|
|
8646
8646
|
});
|
|
8647
8647
|
Object.defineProperty(exports, "requirePermission", {
|
|
8648
8648
|
enumerable: true,
|
|
8649
|
-
get: function () { return
|
|
8649
|
+
get: function () { return chunkHBUFGLEX_cjs.requirePermission; }
|
|
8650
8650
|
});
|
|
8651
8651
|
Object.defineProperty(exports, "requireRole", {
|
|
8652
8652
|
enumerable: true,
|
|
8653
|
-
get: function () { return
|
|
8653
|
+
get: function () { return chunkHBUFGLEX_cjs.requireRole; }
|
|
8654
8654
|
});
|
|
8655
8655
|
Object.defineProperty(exports, "securityHeaders", {
|
|
8656
8656
|
enumerable: true,
|
|
8657
|
-
get: function () { return
|
|
8657
|
+
get: function () { return chunkHBUFGLEX_cjs.securityHeadersMiddleware; }
|
|
8658
8658
|
});
|
|
8659
8659
|
Object.defineProperty(exports, "securityLoggingMiddleware", {
|
|
8660
8660
|
enumerable: true,
|
|
8661
|
-
get: function () { return
|
|
8661
|
+
get: function () { return chunkHBUFGLEX_cjs.securityLoggingMiddleware; }
|
|
8662
8662
|
});
|
|
8663
8663
|
Object.defineProperty(exports, "PluginBootstrapService", {
|
|
8664
8664
|
enumerable: true,
|
|
@@ -8742,7 +8742,7 @@ Object.defineProperty(exports, "validateCollectionConfig", {
|
|
|
8742
8742
|
});
|
|
8743
8743
|
Object.defineProperty(exports, "MigrationService", {
|
|
8744
8744
|
enumerable: true,
|
|
8745
|
-
get: function () { return
|
|
8745
|
+
get: function () { return chunkXK3TKOLQ_cjs.MigrationService; }
|
|
8746
8746
|
});
|
|
8747
8747
|
Object.defineProperty(exports, "renderFilterBar", {
|
|
8748
8748
|
enumerable: true,
|
|
@@ -8810,31 +8810,31 @@ Object.defineProperty(exports, "PluginHelpers", {
|
|
|
8810
8810
|
});
|
|
8811
8811
|
Object.defineProperty(exports, "QueryFilterBuilder", {
|
|
8812
8812
|
enumerable: true,
|
|
8813
|
-
get: function () { return
|
|
8813
|
+
get: function () { return chunkIKBAY2M2_cjs.QueryFilterBuilder; }
|
|
8814
8814
|
});
|
|
8815
8815
|
Object.defineProperty(exports, "SONICJS_VERSION", {
|
|
8816
8816
|
enumerable: true,
|
|
8817
|
-
get: function () { return
|
|
8817
|
+
get: function () { return chunkIKBAY2M2_cjs.SONICJS_VERSION; }
|
|
8818
8818
|
});
|
|
8819
8819
|
Object.defineProperty(exports, "TemplateRenderer", {
|
|
8820
8820
|
enumerable: true,
|
|
8821
|
-
get: function () { return
|
|
8821
|
+
get: function () { return chunkIKBAY2M2_cjs.TemplateRenderer; }
|
|
8822
8822
|
});
|
|
8823
8823
|
Object.defineProperty(exports, "buildQuery", {
|
|
8824
8824
|
enumerable: true,
|
|
8825
|
-
get: function () { return
|
|
8825
|
+
get: function () { return chunkIKBAY2M2_cjs.buildQuery; }
|
|
8826
8826
|
});
|
|
8827
8827
|
Object.defineProperty(exports, "getCoreVersion", {
|
|
8828
8828
|
enumerable: true,
|
|
8829
|
-
get: function () { return
|
|
8829
|
+
get: function () { return chunkIKBAY2M2_cjs.getCoreVersion; }
|
|
8830
8830
|
});
|
|
8831
8831
|
Object.defineProperty(exports, "renderTemplate", {
|
|
8832
8832
|
enumerable: true,
|
|
8833
|
-
get: function () { return
|
|
8833
|
+
get: function () { return chunkIKBAY2M2_cjs.renderTemplate; }
|
|
8834
8834
|
});
|
|
8835
8835
|
Object.defineProperty(exports, "templateRenderer", {
|
|
8836
8836
|
enumerable: true,
|
|
8837
|
-
get: function () { return
|
|
8837
|
+
get: function () { return chunkIKBAY2M2_cjs.templateRenderer; }
|
|
8838
8838
|
});
|
|
8839
8839
|
Object.defineProperty(exports, "metricsTracker", {
|
|
8840
8840
|
enumerable: true,
|
package/dist/index.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { renderConfirmationDialog, getConfirmationDialogScript, api_default, api_media_default, api_system_default, admin_api_default, router, adminCollectionsRoutes, adminFormsRoutes, adminSettingsRoutes, public_forms_default, router2, admin_content_default, adminMediaRoutes, userProfilesPlugin, adminPluginRoutes, adminLogsRoutes, userRoutes, auth_default, test_cleanup_default } from './chunk-
|
|
2
|
-
export { ROUTES_INFO, admin_api_default as adminApiRoutes, adminCheckboxRoutes, admin_code_examples_default as adminCodeExamplesRoutes, adminCollectionsRoutes, admin_content_default as adminContentRoutes, router as adminDashboardRoutes, adminDesignRoutes, adminLogsRoutes, adminMediaRoutes, adminPluginRoutes, adminSettingsRoutes, admin_testimonials_default as adminTestimonialsRoutes, userRoutes as adminUsersRoutes, api_content_crud_default as apiContentCrudRoutes, api_media_default as apiMediaRoutes, api_default as apiRoutes, api_system_default as apiSystemRoutes, auth_default as authRoutes, createUserProfilesPlugin, defineUserProfile, getUserProfileConfig, userProfilesPlugin } from './chunk-
|
|
1
|
+
import { renderConfirmationDialog, getConfirmationDialogScript, api_default, api_media_default, api_system_default, admin_api_default, router, adminCollectionsRoutes, adminFormsRoutes, adminSettingsRoutes, public_forms_default, router2, admin_content_default, adminMediaRoutes, userProfilesPlugin, adminPluginRoutes, adminLogsRoutes, userRoutes, auth_default, test_cleanup_default } from './chunk-3V2CQFIR.js';
|
|
2
|
+
export { ROUTES_INFO, admin_api_default as adminApiRoutes, adminCheckboxRoutes, admin_code_examples_default as adminCodeExamplesRoutes, adminCollectionsRoutes, admin_content_default as adminContentRoutes, router as adminDashboardRoutes, adminDesignRoutes, adminLogsRoutes, adminMediaRoutes, adminPluginRoutes, adminSettingsRoutes, admin_testimonials_default as adminTestimonialsRoutes, userRoutes as adminUsersRoutes, api_content_crud_default as apiContentCrudRoutes, api_media_default as apiMediaRoutes, api_default as apiRoutes, api_system_default as apiSystemRoutes, auth_default as authRoutes, createUserProfilesPlugin, defineUserProfile, getUserProfileConfig, userProfilesPlugin } from './chunk-3V2CQFIR.js';
|
|
3
3
|
import { SettingsService, setAppInstance, schema_exports } from './chunk-TBJY2FF7.js';
|
|
4
4
|
export { Logger, apiTokens, collections, content, contentVersions, getLogger, initLogger, insertCollectionSchema, insertContentSchema, insertLogConfigSchema, insertMediaSchema, insertPluginActivityLogSchema, insertPluginAssetSchema, insertPluginHookSchema, insertPluginRouteSchema, insertPluginSchema, insertSystemLogSchema, insertUserSchema, insertWorkflowHistorySchema, logConfig, media, pluginActivityLog, pluginAssets, pluginHooks, pluginRoutes, plugins, selectCollectionSchema, selectContentSchema, selectLogConfigSchema, selectMediaSchema, selectPluginActivityLogSchema, selectPluginAssetSchema, selectPluginHookSchema, selectPluginRouteSchema, selectPluginSchema, selectSystemLogSchema, selectUserSchema, selectWorkflowHistorySchema, systemLogs, users, workflowHistory } from './chunk-TBJY2FF7.js';
|
|
5
|
-
import { requireAuth, AuthManager, metricsMiddleware, bootstrapMiddleware, securityHeadersMiddleware, csrfProtection } from './chunk-
|
|
6
|
-
export { AuthManager, PermissionManager, bootstrapMiddleware, cacheHeaders, compressionMiddleware, detailedLoggingMiddleware, getActivePlugins, isPluginActive, logActivity, loggingMiddleware, optionalAuth, performanceLoggingMiddleware, requireActivePlugin, requireActivePlugins, requireAnyPermission, requireAuth, requirePermission, requireRole, securityHeadersMiddleware as securityHeaders, securityLoggingMiddleware } from './chunk-
|
|
5
|
+
import { requireAuth, AuthManager, metricsMiddleware, bootstrapMiddleware, securityHeadersMiddleware, csrfProtection } from './chunk-UFWE3MEJ.js';
|
|
6
|
+
export { AuthManager, PermissionManager, bootstrapMiddleware, cacheHeaders, compressionMiddleware, detailedLoggingMiddleware, getActivePlugins, isPluginActive, logActivity, loggingMiddleware, optionalAuth, performanceLoggingMiddleware, requireActivePlugin, requireActivePlugins, requireAnyPermission, requireAuth, requirePermission, requireRole, securityHeadersMiddleware as securityHeaders, securityLoggingMiddleware } from './chunk-UFWE3MEJ.js';
|
|
7
7
|
import { PluginService } from './chunk-H3XXBAMO.js';
|
|
8
8
|
export { PluginBootstrapService, PluginService as PluginServiceClass, backfillFormSubmissions, cleanupRemovedCollections, createContentFromSubmission, deriveCollectionSchemaFromFormio, deriveSubmissionTitle, fullCollectionSync, getAvailableCollectionNames, getManagedCollections, isCollectionManaged, loadCollectionConfig, loadCollectionConfigs, mapFormStatusToContentStatus, registerCollections, syncAllFormCollections, syncCollection, syncCollections, syncFormCollection, validateCollectionConfig } from './chunk-H3XXBAMO.js';
|
|
9
|
-
export { MigrationService } from './chunk-
|
|
9
|
+
export { MigrationService } from './chunk-6C6W54QP.js';
|
|
10
10
|
export { renderFilterBar } from './chunk-BWZBKLOC.js';
|
|
11
11
|
import { init_admin_layout_catalyst_template, renderAdminLayout, renderAdminLayoutCatalyst } from './chunk-76TX6XND.js';
|
|
12
12
|
export { getConfirmationDialogScript, renderAlert, renderConfirmationDialog, renderForm, renderFormField, renderPagination, renderTable } from './chunk-76TX6XND.js';
|
|
13
13
|
export { HookSystemImpl, HookUtils, PluginManager as PluginManagerClass, PluginRegistryImpl, PluginValidator as PluginValidatorClass, ScopedHookSystem as ScopedHookSystemClass } from './chunk-2MXF4RYZ.js';
|
|
14
14
|
import { PluginBuilder } from './chunk-J5WGMRSU.js';
|
|
15
15
|
export { PluginBuilder, PluginHelpers } from './chunk-J5WGMRSU.js';
|
|
16
|
-
import { package_default, getCoreVersion } from './chunk-
|
|
17
|
-
export { QueryFilterBuilder, SONICJS_VERSION, TemplateRenderer, buildQuery, getCoreVersion, renderTemplate, templateRenderer } from './chunk-
|
|
16
|
+
import { package_default, getCoreVersion } from './chunk-673VROB3.js';
|
|
17
|
+
export { QueryFilterBuilder, SONICJS_VERSION, TemplateRenderer, buildQuery, getCoreVersion, renderTemplate, templateRenderer } from './chunk-673VROB3.js';
|
|
18
18
|
import './chunk-X7ZAEI5S.js';
|
|
19
19
|
export { metricsTracker } from './chunk-FICTAGD4.js';
|
|
20
20
|
export { escapeHtml, sanitizeInput, sanitizeObject } from './chunk-TQABQWOP.js';
|