@sonicjs-cms/core 2.8.0 → 2.8.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-JDFPB6UW.js → chunk-7Q2XPM2U.js} +2 -2
- package/dist/{chunk-JDFPB6UW.js.map → chunk-7Q2XPM2U.js.map} +1 -1
- package/dist/{chunk-BAWMAS5S.js → chunk-FZRZYQYU.js} +82 -30
- package/dist/chunk-FZRZYQYU.js.map +1 -0
- package/dist/{chunk-GPTMGUFN.cjs → chunk-GIWIJNBH.cjs} +4 -4
- package/dist/{chunk-GPTMGUFN.cjs.map → chunk-GIWIJNBH.cjs.map} +1 -1
- package/dist/{chunk-YE2MU7CN.cjs → chunk-JVRRG36J.cjs} +178 -126
- package/dist/chunk-JVRRG36J.cjs.map +1 -0
- package/dist/{chunk-34QIAULP.js → chunk-KAT3OKHE.js} +3 -3
- package/dist/{chunk-34QIAULP.js.map → chunk-KAT3OKHE.js.map} +1 -1
- package/dist/{chunk-3E76TKR5.js → chunk-QWTS6NSP.js} +3 -3
- package/dist/{chunk-3E76TKR5.js.map → chunk-QWTS6NSP.js.map} +1 -1
- package/dist/{chunk-5CENPGR2.cjs → chunk-SKLRRFJJ.cjs} +2 -2
- package/dist/{chunk-5CENPGR2.cjs.map → chunk-SKLRRFJJ.cjs.map} +1 -1
- package/dist/{chunk-5HMR2SJW.cjs → chunk-WDQZYCQO.cjs} +3 -3
- package/dist/{chunk-5HMR2SJW.cjs.map → chunk-WDQZYCQO.cjs.map} +1 -1
- package/dist/index.cjs +84 -84
- package/dist/index.js +7 -7
- package/dist/middleware.cjs +23 -23
- package/dist/middleware.js +2 -2
- package/dist/migrations-2NTJ44OR.js +4 -0
- package/dist/{migrations-YB77VTVF.js.map → migrations-2NTJ44OR.js.map} +1 -1
- package/dist/migrations-76NR5BVF.cjs +13 -0
- package/dist/{migrations-7JGSFOCM.cjs.map → migrations-76NR5BVF.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 +14 -14
- package/dist/utils.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-BAWMAS5S.js.map +0 -1
- package/dist/chunk-YE2MU7CN.cjs.map +0 -1
- package/dist/migrations-7JGSFOCM.cjs +0 -13
- package/dist/migrations-YB77VTVF.js +0 -4
package/dist/index.cjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkJVRRG36J_cjs = require('./chunk-JVRRG36J.cjs');
|
|
4
4
|
var chunkVNLR35GO_cjs = require('./chunk-VNLR35GO.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunkGIWIJNBH_cjs = require('./chunk-GIWIJNBH.cjs');
|
|
6
6
|
var chunkMPT5PA6U_cjs = require('./chunk-MPT5PA6U.cjs');
|
|
7
|
-
var
|
|
7
|
+
var chunkSKLRRFJJ_cjs = require('./chunk-SKLRRFJJ.cjs');
|
|
8
8
|
var chunkS6K2H2TS_cjs = require('./chunk-S6K2H2TS.cjs');
|
|
9
9
|
var chunkSHCYIZAN_cjs = require('./chunk-SHCYIZAN.cjs');
|
|
10
10
|
var chunkMNFY6DWY_cjs = require('./chunk-MNFY6DWY.cjs');
|
|
11
11
|
var chunk6FHNRRJ3_cjs = require('./chunk-6FHNRRJ3.cjs');
|
|
12
|
-
var
|
|
12
|
+
var chunkWDQZYCQO_cjs = require('./chunk-WDQZYCQO.cjs');
|
|
13
13
|
require('./chunk-P3XDZL6Q.cjs');
|
|
14
14
|
var chunkRCQ2HIQD_cjs = require('./chunk-RCQ2HIQD.cjs');
|
|
15
15
|
var chunkKYGRJCZM_cjs = require('./chunk-KYGRJCZM.cjs');
|
|
@@ -558,7 +558,7 @@ function formatCellValue(value) {
|
|
|
558
558
|
// src/plugins/core-plugins/database-tools-plugin/admin-routes.ts
|
|
559
559
|
function createDatabaseToolsAdminRoutes() {
|
|
560
560
|
const router3 = new hono.Hono();
|
|
561
|
-
router3.use("*",
|
|
561
|
+
router3.use("*", chunkGIWIJNBH_cjs.requireAuth());
|
|
562
562
|
router3.get("/api/stats", async (c) => {
|
|
563
563
|
try {
|
|
564
564
|
const user = c.get("user");
|
|
@@ -1924,7 +1924,7 @@ function createOTPLoginPlugin() {
|
|
|
1924
1924
|
error: "Account is deactivated"
|
|
1925
1925
|
}, 403);
|
|
1926
1926
|
}
|
|
1927
|
-
const token = await
|
|
1927
|
+
const token = await chunkGIWIJNBH_cjs.AuthManager.generateToken(user.id, user.email, user.role);
|
|
1928
1928
|
cookie.setCookie(c, "auth_token", token, {
|
|
1929
1929
|
httpOnly: true,
|
|
1930
1930
|
secure: true,
|
|
@@ -3574,7 +3574,7 @@ function renderSettingsPage(data) {
|
|
|
3574
3574
|
|
|
3575
3575
|
// src/plugins/core-plugins/ai-search-plugin/routes/admin.ts
|
|
3576
3576
|
var adminRoutes = new hono.Hono();
|
|
3577
|
-
adminRoutes.use("*",
|
|
3577
|
+
adminRoutes.use("*", chunkGIWIJNBH_cjs.requireAuth());
|
|
3578
3578
|
adminRoutes.get("/", async (c) => {
|
|
3579
3579
|
try {
|
|
3580
3580
|
const user = c.get("user");
|
|
@@ -3975,12 +3975,12 @@ function createMagicLinkAuthPlugin() {
|
|
|
3975
3975
|
SET used = 1, used_at = ?
|
|
3976
3976
|
WHERE id = ?
|
|
3977
3977
|
`).bind(Date.now(), magicLink.id).run();
|
|
3978
|
-
const jwtToken = await
|
|
3978
|
+
const jwtToken = await chunkGIWIJNBH_cjs.AuthManager.generateToken(
|
|
3979
3979
|
user.id,
|
|
3980
3980
|
user.email,
|
|
3981
3981
|
user.role
|
|
3982
3982
|
);
|
|
3983
|
-
|
|
3983
|
+
chunkGIWIJNBH_cjs.AuthManager.setAuthCookie(c, jwtToken);
|
|
3984
3984
|
await db.prepare(`
|
|
3985
3985
|
UPDATE users SET last_login_at = ? WHERE id = ?
|
|
3986
3986
|
`).bind(Date.now(), user.id).run();
|
|
@@ -5266,7 +5266,7 @@ function renderCacheDashboard(data) {
|
|
|
5266
5266
|
</script>
|
|
5267
5267
|
|
|
5268
5268
|
<!-- Confirmation Dialogs -->
|
|
5269
|
-
${
|
|
5269
|
+
${chunkJVRRG36J_cjs.renderConfirmationDialog({
|
|
5270
5270
|
id: "clear-all-cache-confirm",
|
|
5271
5271
|
title: "Clear All Cache",
|
|
5272
5272
|
message: "Are you sure you want to clear all cache entries? This cannot be undone.",
|
|
@@ -5277,7 +5277,7 @@ function renderCacheDashboard(data) {
|
|
|
5277
5277
|
onConfirm: "performClearAllCaches()"
|
|
5278
5278
|
})}
|
|
5279
5279
|
|
|
5280
|
-
${
|
|
5280
|
+
${chunkJVRRG36J_cjs.renderConfirmationDialog({
|
|
5281
5281
|
id: "clear-namespace-cache-confirm",
|
|
5282
5282
|
title: "Clear Namespace Cache",
|
|
5283
5283
|
message: "Clear cache for this namespace?",
|
|
@@ -5288,7 +5288,7 @@ function renderCacheDashboard(data) {
|
|
|
5288
5288
|
onConfirm: "performClearNamespaceCache()"
|
|
5289
5289
|
})}
|
|
5290
5290
|
|
|
5291
|
-
${
|
|
5291
|
+
${chunkJVRRG36J_cjs.getConfirmationDialogScript()}
|
|
5292
5292
|
`;
|
|
5293
5293
|
const layoutData = {
|
|
5294
5294
|
title: "Cache System",
|
|
@@ -5974,14 +5974,14 @@ var faviconSvg = `<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
|
5974
5974
|
// src/app.ts
|
|
5975
5975
|
function createSonicJSApp(config = {}) {
|
|
5976
5976
|
const app2 = new hono.Hono();
|
|
5977
|
-
const appVersion = config.version ||
|
|
5977
|
+
const appVersion = config.version || chunkWDQZYCQO_cjs.getCoreVersion();
|
|
5978
5978
|
const appName = config.name || "SonicJS AI";
|
|
5979
5979
|
app2.use("*", async (c, next) => {
|
|
5980
5980
|
c.set("appVersion", appVersion);
|
|
5981
5981
|
await next();
|
|
5982
5982
|
});
|
|
5983
|
-
app2.use("*",
|
|
5984
|
-
app2.use("*",
|
|
5983
|
+
app2.use("*", chunkGIWIJNBH_cjs.metricsMiddleware());
|
|
5984
|
+
app2.use("*", chunkGIWIJNBH_cjs.bootstrapMiddleware(config));
|
|
5985
5985
|
if (config.middleware?.beforeAuth) {
|
|
5986
5986
|
for (const middleware of config.middleware.beforeAuth) {
|
|
5987
5987
|
app2.use("*", middleware);
|
|
@@ -5998,21 +5998,21 @@ function createSonicJSApp(config = {}) {
|
|
|
5998
5998
|
app2.use("*", middleware);
|
|
5999
5999
|
}
|
|
6000
6000
|
}
|
|
6001
|
-
app2.route("/api",
|
|
6002
|
-
app2.route("/api/media",
|
|
6003
|
-
app2.route("/api/system",
|
|
6004
|
-
app2.route("/admin/api",
|
|
6005
|
-
app2.route("/admin/dashboard",
|
|
6006
|
-
app2.route("/admin/collections",
|
|
6007
|
-
app2.route("/admin/forms",
|
|
6008
|
-
app2.route("/admin/settings",
|
|
6009
|
-
app2.route("/forms",
|
|
6010
|
-
app2.route("/api/forms",
|
|
6011
|
-
app2.route("/admin/api-reference",
|
|
6001
|
+
app2.route("/api", chunkJVRRG36J_cjs.api_default);
|
|
6002
|
+
app2.route("/api/media", chunkJVRRG36J_cjs.api_media_default);
|
|
6003
|
+
app2.route("/api/system", chunkJVRRG36J_cjs.api_system_default);
|
|
6004
|
+
app2.route("/admin/api", chunkJVRRG36J_cjs.admin_api_default);
|
|
6005
|
+
app2.route("/admin/dashboard", chunkJVRRG36J_cjs.router);
|
|
6006
|
+
app2.route("/admin/collections", chunkJVRRG36J_cjs.adminCollectionsRoutes);
|
|
6007
|
+
app2.route("/admin/forms", chunkJVRRG36J_cjs.adminFormsRoutes);
|
|
6008
|
+
app2.route("/admin/settings", chunkJVRRG36J_cjs.adminSettingsRoutes);
|
|
6009
|
+
app2.route("/forms", chunkJVRRG36J_cjs.public_forms_default);
|
|
6010
|
+
app2.route("/api/forms", chunkJVRRG36J_cjs.public_forms_default);
|
|
6011
|
+
app2.route("/admin/api-reference", chunkJVRRG36J_cjs.router2);
|
|
6012
6012
|
app2.route("/admin/database-tools", createDatabaseToolsAdminRoutes());
|
|
6013
6013
|
app2.route("/admin/seed-data", createSeedDataAdminRoutes());
|
|
6014
|
-
app2.route("/admin/content",
|
|
6015
|
-
app2.route("/admin/media",
|
|
6014
|
+
app2.route("/admin/content", chunkJVRRG36J_cjs.admin_content_default);
|
|
6015
|
+
app2.route("/admin/media", chunkJVRRG36J_cjs.adminMediaRoutes);
|
|
6016
6016
|
if (aiSearchPlugin.routes && aiSearchPlugin.routes.length > 0) {
|
|
6017
6017
|
for (const route of aiSearchPlugin.routes) {
|
|
6018
6018
|
app2.route(route.path, route.handler);
|
|
@@ -6024,11 +6024,11 @@ function createSonicJSApp(config = {}) {
|
|
|
6024
6024
|
app2.route(route.path, route.handler);
|
|
6025
6025
|
}
|
|
6026
6026
|
}
|
|
6027
|
-
app2.route("/admin/plugins",
|
|
6028
|
-
app2.route("/admin/logs",
|
|
6029
|
-
app2.route("/admin",
|
|
6030
|
-
app2.route("/auth",
|
|
6031
|
-
app2.route("/",
|
|
6027
|
+
app2.route("/admin/plugins", chunkJVRRG36J_cjs.adminPluginRoutes);
|
|
6028
|
+
app2.route("/admin/logs", chunkJVRRG36J_cjs.adminLogsRoutes);
|
|
6029
|
+
app2.route("/admin", chunkJVRRG36J_cjs.userRoutes);
|
|
6030
|
+
app2.route("/auth", chunkJVRRG36J_cjs.auth_default);
|
|
6031
|
+
app2.route("/", chunkJVRRG36J_cjs.test_cleanup_default);
|
|
6032
6032
|
if (emailPlugin.routes && emailPlugin.routes.length > 0) {
|
|
6033
6033
|
for (const route of emailPlugin.routes) {
|
|
6034
6034
|
app2.route(route.path, route.handler);
|
|
@@ -6111,83 +6111,83 @@ function createDb(d1$1) {
|
|
|
6111
6111
|
}
|
|
6112
6112
|
|
|
6113
6113
|
// src/index.ts
|
|
6114
|
-
var VERSION =
|
|
6114
|
+
var VERSION = chunkWDQZYCQO_cjs.package_default.version;
|
|
6115
6115
|
|
|
6116
6116
|
Object.defineProperty(exports, "ROUTES_INFO", {
|
|
6117
6117
|
enumerable: true,
|
|
6118
|
-
get: function () { return
|
|
6118
|
+
get: function () { return chunkJVRRG36J_cjs.ROUTES_INFO; }
|
|
6119
6119
|
});
|
|
6120
6120
|
Object.defineProperty(exports, "adminApiRoutes", {
|
|
6121
6121
|
enumerable: true,
|
|
6122
|
-
get: function () { return
|
|
6122
|
+
get: function () { return chunkJVRRG36J_cjs.admin_api_default; }
|
|
6123
6123
|
});
|
|
6124
6124
|
Object.defineProperty(exports, "adminCheckboxRoutes", {
|
|
6125
6125
|
enumerable: true,
|
|
6126
|
-
get: function () { return
|
|
6126
|
+
get: function () { return chunkJVRRG36J_cjs.adminCheckboxRoutes; }
|
|
6127
6127
|
});
|
|
6128
6128
|
Object.defineProperty(exports, "adminCodeExamplesRoutes", {
|
|
6129
6129
|
enumerable: true,
|
|
6130
|
-
get: function () { return
|
|
6130
|
+
get: function () { return chunkJVRRG36J_cjs.admin_code_examples_default; }
|
|
6131
6131
|
});
|
|
6132
6132
|
Object.defineProperty(exports, "adminCollectionsRoutes", {
|
|
6133
6133
|
enumerable: true,
|
|
6134
|
-
get: function () { return
|
|
6134
|
+
get: function () { return chunkJVRRG36J_cjs.adminCollectionsRoutes; }
|
|
6135
6135
|
});
|
|
6136
6136
|
Object.defineProperty(exports, "adminContentRoutes", {
|
|
6137
6137
|
enumerable: true,
|
|
6138
|
-
get: function () { return
|
|
6138
|
+
get: function () { return chunkJVRRG36J_cjs.admin_content_default; }
|
|
6139
6139
|
});
|
|
6140
6140
|
Object.defineProperty(exports, "adminDashboardRoutes", {
|
|
6141
6141
|
enumerable: true,
|
|
6142
|
-
get: function () { return
|
|
6142
|
+
get: function () { return chunkJVRRG36J_cjs.router; }
|
|
6143
6143
|
});
|
|
6144
6144
|
Object.defineProperty(exports, "adminDesignRoutes", {
|
|
6145
6145
|
enumerable: true,
|
|
6146
|
-
get: function () { return
|
|
6146
|
+
get: function () { return chunkJVRRG36J_cjs.adminDesignRoutes; }
|
|
6147
6147
|
});
|
|
6148
6148
|
Object.defineProperty(exports, "adminLogsRoutes", {
|
|
6149
6149
|
enumerable: true,
|
|
6150
|
-
get: function () { return
|
|
6150
|
+
get: function () { return chunkJVRRG36J_cjs.adminLogsRoutes; }
|
|
6151
6151
|
});
|
|
6152
6152
|
Object.defineProperty(exports, "adminMediaRoutes", {
|
|
6153
6153
|
enumerable: true,
|
|
6154
|
-
get: function () { return
|
|
6154
|
+
get: function () { return chunkJVRRG36J_cjs.adminMediaRoutes; }
|
|
6155
6155
|
});
|
|
6156
6156
|
Object.defineProperty(exports, "adminPluginRoutes", {
|
|
6157
6157
|
enumerable: true,
|
|
6158
|
-
get: function () { return
|
|
6158
|
+
get: function () { return chunkJVRRG36J_cjs.adminPluginRoutes; }
|
|
6159
6159
|
});
|
|
6160
6160
|
Object.defineProperty(exports, "adminSettingsRoutes", {
|
|
6161
6161
|
enumerable: true,
|
|
6162
|
-
get: function () { return
|
|
6162
|
+
get: function () { return chunkJVRRG36J_cjs.adminSettingsRoutes; }
|
|
6163
6163
|
});
|
|
6164
6164
|
Object.defineProperty(exports, "adminTestimonialsRoutes", {
|
|
6165
6165
|
enumerable: true,
|
|
6166
|
-
get: function () { return
|
|
6166
|
+
get: function () { return chunkJVRRG36J_cjs.admin_testimonials_default; }
|
|
6167
6167
|
});
|
|
6168
6168
|
Object.defineProperty(exports, "adminUsersRoutes", {
|
|
6169
6169
|
enumerable: true,
|
|
6170
|
-
get: function () { return
|
|
6170
|
+
get: function () { return chunkJVRRG36J_cjs.userRoutes; }
|
|
6171
6171
|
});
|
|
6172
6172
|
Object.defineProperty(exports, "apiContentCrudRoutes", {
|
|
6173
6173
|
enumerable: true,
|
|
6174
|
-
get: function () { return
|
|
6174
|
+
get: function () { return chunkJVRRG36J_cjs.api_content_crud_default; }
|
|
6175
6175
|
});
|
|
6176
6176
|
Object.defineProperty(exports, "apiMediaRoutes", {
|
|
6177
6177
|
enumerable: true,
|
|
6178
|
-
get: function () { return
|
|
6178
|
+
get: function () { return chunkJVRRG36J_cjs.api_media_default; }
|
|
6179
6179
|
});
|
|
6180
6180
|
Object.defineProperty(exports, "apiRoutes", {
|
|
6181
6181
|
enumerable: true,
|
|
6182
|
-
get: function () { return
|
|
6182
|
+
get: function () { return chunkJVRRG36J_cjs.api_default; }
|
|
6183
6183
|
});
|
|
6184
6184
|
Object.defineProperty(exports, "apiSystemRoutes", {
|
|
6185
6185
|
enumerable: true,
|
|
6186
|
-
get: function () { return
|
|
6186
|
+
get: function () { return chunkJVRRG36J_cjs.api_system_default; }
|
|
6187
6187
|
});
|
|
6188
6188
|
Object.defineProperty(exports, "authRoutes", {
|
|
6189
6189
|
enumerable: true,
|
|
6190
|
-
get: function () { return
|
|
6190
|
+
get: function () { return chunkJVRRG36J_cjs.auth_default; }
|
|
6191
6191
|
});
|
|
6192
6192
|
Object.defineProperty(exports, "Logger", {
|
|
6193
6193
|
enumerable: true,
|
|
@@ -6355,83 +6355,83 @@ Object.defineProperty(exports, "workflowHistory", {
|
|
|
6355
6355
|
});
|
|
6356
6356
|
Object.defineProperty(exports, "AuthManager", {
|
|
6357
6357
|
enumerable: true,
|
|
6358
|
-
get: function () { return
|
|
6358
|
+
get: function () { return chunkGIWIJNBH_cjs.AuthManager; }
|
|
6359
6359
|
});
|
|
6360
6360
|
Object.defineProperty(exports, "PermissionManager", {
|
|
6361
6361
|
enumerable: true,
|
|
6362
|
-
get: function () { return
|
|
6362
|
+
get: function () { return chunkGIWIJNBH_cjs.PermissionManager; }
|
|
6363
6363
|
});
|
|
6364
6364
|
Object.defineProperty(exports, "bootstrapMiddleware", {
|
|
6365
6365
|
enumerable: true,
|
|
6366
|
-
get: function () { return
|
|
6366
|
+
get: function () { return chunkGIWIJNBH_cjs.bootstrapMiddleware; }
|
|
6367
6367
|
});
|
|
6368
6368
|
Object.defineProperty(exports, "cacheHeaders", {
|
|
6369
6369
|
enumerable: true,
|
|
6370
|
-
get: function () { return
|
|
6370
|
+
get: function () { return chunkGIWIJNBH_cjs.cacheHeaders; }
|
|
6371
6371
|
});
|
|
6372
6372
|
Object.defineProperty(exports, "compressionMiddleware", {
|
|
6373
6373
|
enumerable: true,
|
|
6374
|
-
get: function () { return
|
|
6374
|
+
get: function () { return chunkGIWIJNBH_cjs.compressionMiddleware; }
|
|
6375
6375
|
});
|
|
6376
6376
|
Object.defineProperty(exports, "detailedLoggingMiddleware", {
|
|
6377
6377
|
enumerable: true,
|
|
6378
|
-
get: function () { return
|
|
6378
|
+
get: function () { return chunkGIWIJNBH_cjs.detailedLoggingMiddleware; }
|
|
6379
6379
|
});
|
|
6380
6380
|
Object.defineProperty(exports, "getActivePlugins", {
|
|
6381
6381
|
enumerable: true,
|
|
6382
|
-
get: function () { return
|
|
6382
|
+
get: function () { return chunkGIWIJNBH_cjs.getActivePlugins; }
|
|
6383
6383
|
});
|
|
6384
6384
|
Object.defineProperty(exports, "isPluginActive", {
|
|
6385
6385
|
enumerable: true,
|
|
6386
|
-
get: function () { return
|
|
6386
|
+
get: function () { return chunkGIWIJNBH_cjs.isPluginActive; }
|
|
6387
6387
|
});
|
|
6388
6388
|
Object.defineProperty(exports, "logActivity", {
|
|
6389
6389
|
enumerable: true,
|
|
6390
|
-
get: function () { return
|
|
6390
|
+
get: function () { return chunkGIWIJNBH_cjs.logActivity; }
|
|
6391
6391
|
});
|
|
6392
6392
|
Object.defineProperty(exports, "loggingMiddleware", {
|
|
6393
6393
|
enumerable: true,
|
|
6394
|
-
get: function () { return
|
|
6394
|
+
get: function () { return chunkGIWIJNBH_cjs.loggingMiddleware; }
|
|
6395
6395
|
});
|
|
6396
6396
|
Object.defineProperty(exports, "optionalAuth", {
|
|
6397
6397
|
enumerable: true,
|
|
6398
|
-
get: function () { return
|
|
6398
|
+
get: function () { return chunkGIWIJNBH_cjs.optionalAuth; }
|
|
6399
6399
|
});
|
|
6400
6400
|
Object.defineProperty(exports, "performanceLoggingMiddleware", {
|
|
6401
6401
|
enumerable: true,
|
|
6402
|
-
get: function () { return
|
|
6402
|
+
get: function () { return chunkGIWIJNBH_cjs.performanceLoggingMiddleware; }
|
|
6403
6403
|
});
|
|
6404
6404
|
Object.defineProperty(exports, "requireActivePlugin", {
|
|
6405
6405
|
enumerable: true,
|
|
6406
|
-
get: function () { return
|
|
6406
|
+
get: function () { return chunkGIWIJNBH_cjs.requireActivePlugin; }
|
|
6407
6407
|
});
|
|
6408
6408
|
Object.defineProperty(exports, "requireActivePlugins", {
|
|
6409
6409
|
enumerable: true,
|
|
6410
|
-
get: function () { return
|
|
6410
|
+
get: function () { return chunkGIWIJNBH_cjs.requireActivePlugins; }
|
|
6411
6411
|
});
|
|
6412
6412
|
Object.defineProperty(exports, "requireAnyPermission", {
|
|
6413
6413
|
enumerable: true,
|
|
6414
|
-
get: function () { return
|
|
6414
|
+
get: function () { return chunkGIWIJNBH_cjs.requireAnyPermission; }
|
|
6415
6415
|
});
|
|
6416
6416
|
Object.defineProperty(exports, "requireAuth", {
|
|
6417
6417
|
enumerable: true,
|
|
6418
|
-
get: function () { return
|
|
6418
|
+
get: function () { return chunkGIWIJNBH_cjs.requireAuth; }
|
|
6419
6419
|
});
|
|
6420
6420
|
Object.defineProperty(exports, "requirePermission", {
|
|
6421
6421
|
enumerable: true,
|
|
6422
|
-
get: function () { return
|
|
6422
|
+
get: function () { return chunkGIWIJNBH_cjs.requirePermission; }
|
|
6423
6423
|
});
|
|
6424
6424
|
Object.defineProperty(exports, "requireRole", {
|
|
6425
6425
|
enumerable: true,
|
|
6426
|
-
get: function () { return
|
|
6426
|
+
get: function () { return chunkGIWIJNBH_cjs.requireRole; }
|
|
6427
6427
|
});
|
|
6428
6428
|
Object.defineProperty(exports, "securityHeaders", {
|
|
6429
6429
|
enumerable: true,
|
|
6430
|
-
get: function () { return
|
|
6430
|
+
get: function () { return chunkGIWIJNBH_cjs.securityHeaders; }
|
|
6431
6431
|
});
|
|
6432
6432
|
Object.defineProperty(exports, "securityLoggingMiddleware", {
|
|
6433
6433
|
enumerable: true,
|
|
6434
|
-
get: function () { return
|
|
6434
|
+
get: function () { return chunkGIWIJNBH_cjs.securityLoggingMiddleware; }
|
|
6435
6435
|
});
|
|
6436
6436
|
Object.defineProperty(exports, "PluginBootstrapService", {
|
|
6437
6437
|
enumerable: true,
|
|
@@ -6487,7 +6487,7 @@ Object.defineProperty(exports, "validateCollectionConfig", {
|
|
|
6487
6487
|
});
|
|
6488
6488
|
Object.defineProperty(exports, "MigrationService", {
|
|
6489
6489
|
enumerable: true,
|
|
6490
|
-
get: function () { return
|
|
6490
|
+
get: function () { return chunkSKLRRFJJ_cjs.MigrationService; }
|
|
6491
6491
|
});
|
|
6492
6492
|
Object.defineProperty(exports, "renderFilterBar", {
|
|
6493
6493
|
enumerable: true,
|
|
@@ -6555,43 +6555,43 @@ Object.defineProperty(exports, "PluginHelpers", {
|
|
|
6555
6555
|
});
|
|
6556
6556
|
Object.defineProperty(exports, "QueryFilterBuilder", {
|
|
6557
6557
|
enumerable: true,
|
|
6558
|
-
get: function () { return
|
|
6558
|
+
get: function () { return chunkWDQZYCQO_cjs.QueryFilterBuilder; }
|
|
6559
6559
|
});
|
|
6560
6560
|
Object.defineProperty(exports, "SONICJS_VERSION", {
|
|
6561
6561
|
enumerable: true,
|
|
6562
|
-
get: function () { return
|
|
6562
|
+
get: function () { return chunkWDQZYCQO_cjs.SONICJS_VERSION; }
|
|
6563
6563
|
});
|
|
6564
6564
|
Object.defineProperty(exports, "TemplateRenderer", {
|
|
6565
6565
|
enumerable: true,
|
|
6566
|
-
get: function () { return
|
|
6566
|
+
get: function () { return chunkWDQZYCQO_cjs.TemplateRenderer; }
|
|
6567
6567
|
});
|
|
6568
6568
|
Object.defineProperty(exports, "buildQuery", {
|
|
6569
6569
|
enumerable: true,
|
|
6570
|
-
get: function () { return
|
|
6570
|
+
get: function () { return chunkWDQZYCQO_cjs.buildQuery; }
|
|
6571
6571
|
});
|
|
6572
6572
|
Object.defineProperty(exports, "escapeHtml", {
|
|
6573
6573
|
enumerable: true,
|
|
6574
|
-
get: function () { return
|
|
6574
|
+
get: function () { return chunkWDQZYCQO_cjs.escapeHtml; }
|
|
6575
6575
|
});
|
|
6576
6576
|
Object.defineProperty(exports, "getCoreVersion", {
|
|
6577
6577
|
enumerable: true,
|
|
6578
|
-
get: function () { return
|
|
6578
|
+
get: function () { return chunkWDQZYCQO_cjs.getCoreVersion; }
|
|
6579
6579
|
});
|
|
6580
6580
|
Object.defineProperty(exports, "renderTemplate", {
|
|
6581
6581
|
enumerable: true,
|
|
6582
|
-
get: function () { return
|
|
6582
|
+
get: function () { return chunkWDQZYCQO_cjs.renderTemplate; }
|
|
6583
6583
|
});
|
|
6584
6584
|
Object.defineProperty(exports, "sanitizeInput", {
|
|
6585
6585
|
enumerable: true,
|
|
6586
|
-
get: function () { return
|
|
6586
|
+
get: function () { return chunkWDQZYCQO_cjs.sanitizeInput; }
|
|
6587
6587
|
});
|
|
6588
6588
|
Object.defineProperty(exports, "sanitizeObject", {
|
|
6589
6589
|
enumerable: true,
|
|
6590
|
-
get: function () { return
|
|
6590
|
+
get: function () { return chunkWDQZYCQO_cjs.sanitizeObject; }
|
|
6591
6591
|
});
|
|
6592
6592
|
Object.defineProperty(exports, "templateRenderer", {
|
|
6593
6593
|
enumerable: true,
|
|
6594
|
-
get: function () { return
|
|
6594
|
+
get: function () { return chunkWDQZYCQO_cjs.templateRenderer; }
|
|
6595
6595
|
});
|
|
6596
6596
|
Object.defineProperty(exports, "metricsTracker", {
|
|
6597
6597
|
enumerable: true,
|
package/dist/index.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
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, 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 } 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, adminPluginRoutes, adminLogsRoutes, userRoutes, auth_default, test_cleanup_default } from './chunk-FZRZYQYU.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 } from './chunk-FZRZYQYU.js';
|
|
3
3
|
import { SettingsService, schema_exports } from './chunk-G44QUVNM.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-G44QUVNM.js';
|
|
5
|
-
import { requireAuth, AuthManager, metricsMiddleware, bootstrapMiddleware } from './chunk-
|
|
6
|
-
export { AuthManager, PermissionManager, bootstrapMiddleware, cacheHeaders, compressionMiddleware, detailedLoggingMiddleware, getActivePlugins, isPluginActive, logActivity, loggingMiddleware, optionalAuth, performanceLoggingMiddleware, requireActivePlugin, requireActivePlugins, requireAnyPermission, requireAuth, requirePermission, requireRole, securityHeaders, securityLoggingMiddleware } from './chunk-
|
|
5
|
+
import { requireAuth, AuthManager, metricsMiddleware, bootstrapMiddleware } from './chunk-QWTS6NSP.js';
|
|
6
|
+
export { AuthManager, PermissionManager, bootstrapMiddleware, cacheHeaders, compressionMiddleware, detailedLoggingMiddleware, getActivePlugins, isPluginActive, logActivity, loggingMiddleware, optionalAuth, performanceLoggingMiddleware, requireActivePlugin, requireActivePlugins, requireAnyPermission, requireAuth, requirePermission, requireRole, securityHeaders, securityLoggingMiddleware } from './chunk-QWTS6NSP.js';
|
|
7
7
|
export { PluginBootstrapService, PluginService as PluginServiceClass, cleanupRemovedCollections, fullCollectionSync, getAvailableCollectionNames, getManagedCollections, isCollectionManaged, loadCollectionConfig, loadCollectionConfigs, registerCollections, syncCollection, syncCollections, validateCollectionConfig } from './chunk-YFJJU26H.js';
|
|
8
|
-
export { MigrationService } from './chunk-
|
|
8
|
+
export { MigrationService } from './chunk-7Q2XPM2U.js';
|
|
9
9
|
export { renderFilterBar } from './chunk-H7AMQWVI.js';
|
|
10
10
|
import { init_admin_layout_catalyst_template, renderAdminLayout, renderAdminLayoutCatalyst } from './chunk-VCH6HXVP.js';
|
|
11
11
|
export { getConfirmationDialogScript, renderAlert, renderConfirmationDialog, renderForm, renderFormField, renderPagination, renderTable } from './chunk-VCH6HXVP.js';
|
|
12
12
|
export { HookSystemImpl, HookUtils, PluginManager as PluginManagerClass, PluginRegistryImpl, PluginValidator as PluginValidatorClass, ScopedHookSystem as ScopedHookSystemClass } from './chunk-CJYFSKH7.js';
|
|
13
13
|
import { PluginBuilder } from './chunk-J5WGMRSU.js';
|
|
14
14
|
export { PluginBuilder, PluginHelpers } from './chunk-J5WGMRSU.js';
|
|
15
|
-
import { package_default, getCoreVersion } from './chunk-
|
|
16
|
-
export { QueryFilterBuilder, SONICJS_VERSION, TemplateRenderer, buildQuery, escapeHtml, getCoreVersion, renderTemplate, sanitizeInput, sanitizeObject, templateRenderer } from './chunk-
|
|
15
|
+
import { package_default, getCoreVersion } from './chunk-KAT3OKHE.js';
|
|
16
|
+
export { QueryFilterBuilder, SONICJS_VERSION, TemplateRenderer, buildQuery, escapeHtml, getCoreVersion, renderTemplate, sanitizeInput, sanitizeObject, templateRenderer } from './chunk-KAT3OKHE.js';
|
|
17
17
|
import './chunk-X7ZAEI5S.js';
|
|
18
18
|
export { metricsTracker } from './chunk-FICTAGD4.js';
|
|
19
19
|
export { HOOKS } from './chunk-LOUJRBXV.js';
|
package/dist/middleware.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkGIWIJNBH_cjs = require('./chunk-GIWIJNBH.cjs');
|
|
4
4
|
require('./chunk-MPT5PA6U.cjs');
|
|
5
|
-
require('./chunk-
|
|
5
|
+
require('./chunk-SKLRRFJJ.cjs');
|
|
6
6
|
require('./chunk-RCQ2HIQD.cjs');
|
|
7
7
|
require('./chunk-IGJUBJBW.cjs');
|
|
8
8
|
|
|
@@ -10,87 +10,87 @@ require('./chunk-IGJUBJBW.cjs');
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "AuthManager", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkGIWIJNBH_cjs.AuthManager; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "PermissionManager", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkGIWIJNBH_cjs.PermissionManager; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "bootstrapMiddleware", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkGIWIJNBH_cjs.bootstrapMiddleware; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "cacheHeaders", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkGIWIJNBH_cjs.cacheHeaders; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "compressionMiddleware", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkGIWIJNBH_cjs.compressionMiddleware; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "detailedLoggingMiddleware", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkGIWIJNBH_cjs.detailedLoggingMiddleware; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "getActivePlugins", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkGIWIJNBH_cjs.getActivePlugins; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "isPluginActive", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkGIWIJNBH_cjs.isPluginActive; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "logActivity", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkGIWIJNBH_cjs.logActivity; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "loggingMiddleware", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkGIWIJNBH_cjs.loggingMiddleware; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "metricsMiddleware", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkGIWIJNBH_cjs.metricsMiddleware; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "optionalAuth", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkGIWIJNBH_cjs.optionalAuth; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "performanceLoggingMiddleware", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkGIWIJNBH_cjs.performanceLoggingMiddleware; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "requireActivePlugin", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkGIWIJNBH_cjs.requireActivePlugin; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "requireActivePlugins", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkGIWIJNBH_cjs.requireActivePlugins; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "requireAnyPermission", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkGIWIJNBH_cjs.requireAnyPermission; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "requireAuth", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkGIWIJNBH_cjs.requireAuth; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "requirePermission", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkGIWIJNBH_cjs.requirePermission; }
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "requireRole", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkGIWIJNBH_cjs.requireRole; }
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(exports, "securityHeaders", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkGIWIJNBH_cjs.securityHeaders; }
|
|
90
90
|
});
|
|
91
91
|
Object.defineProperty(exports, "securityLoggingMiddleware", {
|
|
92
92
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunkGIWIJNBH_cjs.securityLoggingMiddleware; }
|
|
94
94
|
});
|
|
95
95
|
//# sourceMappingURL=middleware.cjs.map
|
|
96
96
|
//# sourceMappingURL=middleware.cjs.map
|
package/dist/middleware.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { AuthManager, PermissionManager, bootstrapMiddleware, cacheHeaders, compressionMiddleware, detailedLoggingMiddleware, getActivePlugins, isPluginActive, logActivity, loggingMiddleware, metricsMiddleware, optionalAuth, performanceLoggingMiddleware, requireActivePlugin, requireActivePlugins, requireAnyPermission, requireAuth, requirePermission, requireRole, securityHeaders, securityLoggingMiddleware } from './chunk-
|
|
1
|
+
export { AuthManager, PermissionManager, bootstrapMiddleware, cacheHeaders, compressionMiddleware, detailedLoggingMiddleware, getActivePlugins, isPluginActive, logActivity, loggingMiddleware, metricsMiddleware, optionalAuth, performanceLoggingMiddleware, requireActivePlugin, requireActivePlugins, requireAnyPermission, requireAuth, requirePermission, requireRole, securityHeaders, securityLoggingMiddleware } from './chunk-QWTS6NSP.js';
|
|
2
2
|
import './chunk-YFJJU26H.js';
|
|
3
|
-
import './chunk-
|
|
3
|
+
import './chunk-7Q2XPM2U.js';
|
|
4
4
|
import './chunk-FICTAGD4.js';
|
|
5
5
|
import './chunk-V4OQ3NZ2.js';
|
|
6
6
|
//# sourceMappingURL=middleware.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"migrations-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"migrations-2NTJ44OR.js"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkSKLRRFJJ_cjs = require('./chunk-SKLRRFJJ.cjs');
|
|
4
|
+
require('./chunk-IGJUBJBW.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, "MigrationService", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return chunkSKLRRFJJ_cjs.MigrationService; }
|
|
11
|
+
});
|
|
12
|
+
//# sourceMappingURL=migrations-76NR5BVF.cjs.map
|
|
13
|
+
//# sourceMappingURL=migrations-76NR5BVF.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"migrations-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"migrations-76NR5BVF.cjs"}
|