@sonicjs-cms/core 2.3.12 → 2.3.13
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-EIE35JCC.js → chunk-2NTBZ2Y7.js} +3 -3
- package/dist/{chunk-EIE35JCC.js.map → chunk-2NTBZ2Y7.js.map} +1 -1
- package/dist/{chunk-OJ5WUCSH.cjs → chunk-5NCBFP37.cjs} +4 -4
- package/dist/{chunk-OJ5WUCSH.cjs.map → chunk-5NCBFP37.cjs.map} +1 -1
- package/dist/{chunk-HTJLBF6F.cjs → chunk-ARLXQU2S.cjs} +247 -165
- package/dist/chunk-ARLXQU2S.cjs.map +1 -0
- package/dist/{chunk-KQCYQKSV.js → chunk-DN45O5XV.js} +2 -2
- package/dist/chunk-DN45O5XV.js.map +1 -0
- package/dist/{chunk-REY542YK.js → chunk-F56JKQTA.js} +3 -3
- package/dist/{chunk-REY542YK.js.map → chunk-F56JKQTA.js.map} +1 -1
- package/dist/{chunk-74RYBO6J.js → chunk-FHCN7KR2.js} +10 -5
- package/dist/chunk-FHCN7KR2.js.map +1 -0
- package/dist/{chunk-RIOIKM3Y.cjs → chunk-MF7DWI5P.cjs} +2 -2
- package/dist/chunk-MF7DWI5P.cjs.map +1 -0
- package/dist/{chunk-HDSRB23N.js → chunk-RP66TPEJ.js} +101 -19
- package/dist/chunk-RP66TPEJ.js.map +1 -0
- package/dist/{chunk-NTXPL746.js → chunk-VMEBHBYY.js} +34 -2
- package/dist/chunk-VMEBHBYY.js.map +1 -0
- package/dist/{chunk-IB6UBZVD.cjs → chunk-W2IAEG4W.cjs} +10 -5
- package/dist/chunk-W2IAEG4W.cjs.map +1 -0
- package/dist/{chunk-P6NMVNJJ.cjs → chunk-W4CE7XME.cjs} +34 -2
- package/dist/chunk-W4CE7XME.cjs.map +1 -0
- package/dist/{chunk-K6BFUYJH.cjs → chunk-XR6XACXJ.cjs} +5 -5
- package/dist/{chunk-K6BFUYJH.cjs.map → chunk-XR6XACXJ.cjs.map} +1 -1
- package/dist/index.cjs +87 -87
- package/dist/index.js +10 -10
- package/dist/middleware.cjs +23 -23
- package/dist/middleware.js +2 -2
- package/dist/migrations-43GTELB5.js +4 -0
- package/dist/{migrations-YAFC5JVO.js.map → migrations-43GTELB5.js.map} +1 -1
- package/dist/migrations-ZAYXZXON.cjs +13 -0
- package/dist/{migrations-DQ74P6V4.cjs.map → migrations-ZAYXZXON.cjs.map} +1 -1
- package/dist/routes.cjs +25 -25
- package/dist/routes.js +5 -5
- package/dist/services.cjs +2 -2
- package/dist/services.js +1 -1
- package/dist/templates.cjs +17 -17
- package/dist/templates.js +2 -2
- package/dist/utils.cjs +11 -11
- package/dist/utils.js +1 -1
- package/migrations/025_add_easymde_plugin.sql +25 -0
- package/package.json +8 -3
- package/dist/chunk-74RYBO6J.js.map +0 -1
- package/dist/chunk-HDSRB23N.js.map +0 -1
- package/dist/chunk-HTJLBF6F.cjs.map +0 -1
- package/dist/chunk-IB6UBZVD.cjs.map +0 -1
- package/dist/chunk-KQCYQKSV.js.map +0 -1
- package/dist/chunk-NTXPL746.js.map +0 -1
- package/dist/chunk-P6NMVNJJ.cjs.map +0 -1
- package/dist/chunk-RIOIKM3Y.cjs.map +0 -1
- package/dist/migrations-DQ74P6V4.cjs +0 -13
- package/dist/migrations-YAFC5JVO.js +0 -4
package/dist/index.cjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkARLXQU2S_cjs = require('./chunk-ARLXQU2S.cjs');
|
|
4
4
|
var chunk7FOAMNTI_cjs = require('./chunk-7FOAMNTI.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunk5NCBFP37_cjs = require('./chunk-5NCBFP37.cjs');
|
|
6
6
|
var chunkILZ3DP4I_cjs = require('./chunk-ILZ3DP4I.cjs');
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
7
|
+
var chunkW4CE7XME_cjs = require('./chunk-W4CE7XME.cjs');
|
|
8
|
+
var chunkXR6XACXJ_cjs = require('./chunk-XR6XACXJ.cjs');
|
|
9
|
+
var chunkMF7DWI5P_cjs = require('./chunk-MF7DWI5P.cjs');
|
|
10
10
|
var chunkDTLB6UIH_cjs = require('./chunk-DTLB6UIH.cjs');
|
|
11
|
-
var
|
|
11
|
+
var chunkW2IAEG4W_cjs = require('./chunk-W2IAEG4W.cjs');
|
|
12
12
|
require('./chunk-P3XDZL6Q.cjs');
|
|
13
13
|
var chunkRCQ2HIQD_cjs = require('./chunk-RCQ2HIQD.cjs');
|
|
14
14
|
var chunkKYGRJCZM_cjs = require('./chunk-KYGRJCZM.cjs');
|
|
@@ -232,7 +232,7 @@ var DatabaseToolsService = class {
|
|
|
232
232
|
};
|
|
233
233
|
|
|
234
234
|
// src/templates/pages/admin-database-table.template.ts
|
|
235
|
-
|
|
235
|
+
chunkMF7DWI5P_cjs.init_admin_layout_catalyst_template();
|
|
236
236
|
function renderDatabaseTablePage(data) {
|
|
237
237
|
const totalPages = Math.ceil(data.totalRows / data.pageSize);
|
|
238
238
|
const startRow = (data.currentPage - 1) * data.pageSize + 1;
|
|
@@ -481,7 +481,7 @@ function renderDatabaseTablePage(data) {
|
|
|
481
481
|
user: data.user,
|
|
482
482
|
content: pageContent
|
|
483
483
|
};
|
|
484
|
-
return
|
|
484
|
+
return chunkMF7DWI5P_cjs.renderAdminLayoutCatalyst(layoutData);
|
|
485
485
|
}
|
|
486
486
|
function generatePageNumbers(currentPage, totalPages) {
|
|
487
487
|
const pages = [];
|
|
@@ -556,7 +556,7 @@ function formatCellValue(value) {
|
|
|
556
556
|
// src/plugins/core-plugins/database-tools-plugin/admin-routes.ts
|
|
557
557
|
function createDatabaseToolsAdminRoutes() {
|
|
558
558
|
const router2 = new hono.Hono();
|
|
559
|
-
router2.use("*",
|
|
559
|
+
router2.use("*", chunk5NCBFP37_cjs.requireAuth());
|
|
560
560
|
router2.get("/api/stats", async (c) => {
|
|
561
561
|
try {
|
|
562
562
|
const user = c.get("user");
|
|
@@ -737,7 +737,7 @@ function createDatabaseToolsAdminRoutes() {
|
|
|
737
737
|
return router2;
|
|
738
738
|
}
|
|
739
739
|
function createEmailPlugin() {
|
|
740
|
-
const builder =
|
|
740
|
+
const builder = chunkARLXQU2S_cjs.PluginBuilder.create({
|
|
741
741
|
name: "email",
|
|
742
742
|
version: "1.0.0-beta.1",
|
|
743
743
|
description: "Send transactional emails using Resend"
|
|
@@ -990,7 +990,7 @@ function createEmailPlugin() {
|
|
|
990
990
|
role: user.role ?? "admin"
|
|
991
991
|
} : void 0;
|
|
992
992
|
return c.html(
|
|
993
|
-
|
|
993
|
+
chunkMF7DWI5P_cjs.renderAdminLayout({
|
|
994
994
|
title: "Email Settings",
|
|
995
995
|
content: contentHTML,
|
|
996
996
|
user: templateUser,
|
|
@@ -1113,14 +1113,14 @@ var emailPlugin = createEmailPlugin();
|
|
|
1113
1113
|
// src/app.ts
|
|
1114
1114
|
function createSonicJSApp(config = {}) {
|
|
1115
1115
|
const app = new hono.Hono();
|
|
1116
|
-
const appVersion = config.version ||
|
|
1116
|
+
const appVersion = config.version || chunkW2IAEG4W_cjs.getCoreVersion();
|
|
1117
1117
|
const appName = config.name || "SonicJS AI";
|
|
1118
1118
|
app.use("*", async (c, next) => {
|
|
1119
1119
|
c.set("appVersion", appVersion);
|
|
1120
1120
|
await next();
|
|
1121
1121
|
});
|
|
1122
|
-
app.use("*",
|
|
1123
|
-
app.use("*",
|
|
1122
|
+
app.use("*", chunk5NCBFP37_cjs.metricsMiddleware());
|
|
1123
|
+
app.use("*", chunk5NCBFP37_cjs.bootstrapMiddleware(config));
|
|
1124
1124
|
if (config.middleware?.beforeAuth) {
|
|
1125
1125
|
for (const middleware of config.middleware.beforeAuth) {
|
|
1126
1126
|
app.use("*", middleware);
|
|
@@ -1137,21 +1137,21 @@ function createSonicJSApp(config = {}) {
|
|
|
1137
1137
|
app.use("*", middleware);
|
|
1138
1138
|
}
|
|
1139
1139
|
}
|
|
1140
|
-
app.route("/api",
|
|
1141
|
-
app.route("/api/media",
|
|
1142
|
-
app.route("/api/system",
|
|
1143
|
-
app.route("/admin/api",
|
|
1144
|
-
app.route("/admin/dashboard",
|
|
1145
|
-
app.route("/admin/collections",
|
|
1146
|
-
app.route("/admin/settings",
|
|
1140
|
+
app.route("/api", chunkARLXQU2S_cjs.api_default);
|
|
1141
|
+
app.route("/api/media", chunkARLXQU2S_cjs.api_media_default);
|
|
1142
|
+
app.route("/api/system", chunkARLXQU2S_cjs.api_system_default);
|
|
1143
|
+
app.route("/admin/api", chunkARLXQU2S_cjs.admin_api_default);
|
|
1144
|
+
app.route("/admin/dashboard", chunkARLXQU2S_cjs.router);
|
|
1145
|
+
app.route("/admin/collections", chunkARLXQU2S_cjs.adminCollectionsRoutes);
|
|
1146
|
+
app.route("/admin/settings", chunkARLXQU2S_cjs.adminSettingsRoutes);
|
|
1147
1147
|
app.route("/admin/database-tools", createDatabaseToolsAdminRoutes());
|
|
1148
|
-
app.route("/admin/content",
|
|
1149
|
-
app.route("/admin/media",
|
|
1150
|
-
app.route("/admin/plugins",
|
|
1151
|
-
app.route("/admin/logs",
|
|
1152
|
-
app.route("/admin",
|
|
1153
|
-
app.route("/auth",
|
|
1154
|
-
app.route("/",
|
|
1148
|
+
app.route("/admin/content", chunkARLXQU2S_cjs.admin_content_default);
|
|
1149
|
+
app.route("/admin/media", chunkARLXQU2S_cjs.adminMediaRoutes);
|
|
1150
|
+
app.route("/admin/plugins", chunkARLXQU2S_cjs.adminPluginRoutes);
|
|
1151
|
+
app.route("/admin/logs", chunkARLXQU2S_cjs.adminLogsRoutes);
|
|
1152
|
+
app.route("/admin", chunkARLXQU2S_cjs.userRoutes);
|
|
1153
|
+
app.route("/auth", chunkARLXQU2S_cjs.auth_default);
|
|
1154
|
+
app.route("/", chunkARLXQU2S_cjs.test_cleanup_default);
|
|
1155
1155
|
if (emailPlugin.routes && emailPlugin.routes.length > 0) {
|
|
1156
1156
|
for (const route of emailPlugin.routes) {
|
|
1157
1157
|
app.route(route.path, route.handler);
|
|
@@ -1220,83 +1220,83 @@ function createDb(d1$1) {
|
|
|
1220
1220
|
}
|
|
1221
1221
|
|
|
1222
1222
|
// src/index.ts
|
|
1223
|
-
var VERSION =
|
|
1223
|
+
var VERSION = chunkW2IAEG4W_cjs.package_default.version;
|
|
1224
1224
|
|
|
1225
1225
|
Object.defineProperty(exports, "ROUTES_INFO", {
|
|
1226
1226
|
enumerable: true,
|
|
1227
|
-
get: function () { return
|
|
1227
|
+
get: function () { return chunkARLXQU2S_cjs.ROUTES_INFO; }
|
|
1228
1228
|
});
|
|
1229
1229
|
Object.defineProperty(exports, "adminApiRoutes", {
|
|
1230
1230
|
enumerable: true,
|
|
1231
|
-
get: function () { return
|
|
1231
|
+
get: function () { return chunkARLXQU2S_cjs.admin_api_default; }
|
|
1232
1232
|
});
|
|
1233
1233
|
Object.defineProperty(exports, "adminCheckboxRoutes", {
|
|
1234
1234
|
enumerable: true,
|
|
1235
|
-
get: function () { return
|
|
1235
|
+
get: function () { return chunkARLXQU2S_cjs.adminCheckboxRoutes; }
|
|
1236
1236
|
});
|
|
1237
1237
|
Object.defineProperty(exports, "adminCodeExamplesRoutes", {
|
|
1238
1238
|
enumerable: true,
|
|
1239
|
-
get: function () { return
|
|
1239
|
+
get: function () { return chunkARLXQU2S_cjs.admin_code_examples_default; }
|
|
1240
1240
|
});
|
|
1241
1241
|
Object.defineProperty(exports, "adminCollectionsRoutes", {
|
|
1242
1242
|
enumerable: true,
|
|
1243
|
-
get: function () { return
|
|
1243
|
+
get: function () { return chunkARLXQU2S_cjs.adminCollectionsRoutes; }
|
|
1244
1244
|
});
|
|
1245
1245
|
Object.defineProperty(exports, "adminContentRoutes", {
|
|
1246
1246
|
enumerable: true,
|
|
1247
|
-
get: function () { return
|
|
1247
|
+
get: function () { return chunkARLXQU2S_cjs.admin_content_default; }
|
|
1248
1248
|
});
|
|
1249
1249
|
Object.defineProperty(exports, "adminDashboardRoutes", {
|
|
1250
1250
|
enumerable: true,
|
|
1251
|
-
get: function () { return
|
|
1251
|
+
get: function () { return chunkARLXQU2S_cjs.router; }
|
|
1252
1252
|
});
|
|
1253
1253
|
Object.defineProperty(exports, "adminDesignRoutes", {
|
|
1254
1254
|
enumerable: true,
|
|
1255
|
-
get: function () { return
|
|
1255
|
+
get: function () { return chunkARLXQU2S_cjs.adminDesignRoutes; }
|
|
1256
1256
|
});
|
|
1257
1257
|
Object.defineProperty(exports, "adminLogsRoutes", {
|
|
1258
1258
|
enumerable: true,
|
|
1259
|
-
get: function () { return
|
|
1259
|
+
get: function () { return chunkARLXQU2S_cjs.adminLogsRoutes; }
|
|
1260
1260
|
});
|
|
1261
1261
|
Object.defineProperty(exports, "adminMediaRoutes", {
|
|
1262
1262
|
enumerable: true,
|
|
1263
|
-
get: function () { return
|
|
1263
|
+
get: function () { return chunkARLXQU2S_cjs.adminMediaRoutes; }
|
|
1264
1264
|
});
|
|
1265
1265
|
Object.defineProperty(exports, "adminPluginRoutes", {
|
|
1266
1266
|
enumerable: true,
|
|
1267
|
-
get: function () { return
|
|
1267
|
+
get: function () { return chunkARLXQU2S_cjs.adminPluginRoutes; }
|
|
1268
1268
|
});
|
|
1269
1269
|
Object.defineProperty(exports, "adminSettingsRoutes", {
|
|
1270
1270
|
enumerable: true,
|
|
1271
|
-
get: function () { return
|
|
1271
|
+
get: function () { return chunkARLXQU2S_cjs.adminSettingsRoutes; }
|
|
1272
1272
|
});
|
|
1273
1273
|
Object.defineProperty(exports, "adminTestimonialsRoutes", {
|
|
1274
1274
|
enumerable: true,
|
|
1275
|
-
get: function () { return
|
|
1275
|
+
get: function () { return chunkARLXQU2S_cjs.admin_testimonials_default; }
|
|
1276
1276
|
});
|
|
1277
1277
|
Object.defineProperty(exports, "adminUsersRoutes", {
|
|
1278
1278
|
enumerable: true,
|
|
1279
|
-
get: function () { return
|
|
1279
|
+
get: function () { return chunkARLXQU2S_cjs.userRoutes; }
|
|
1280
1280
|
});
|
|
1281
1281
|
Object.defineProperty(exports, "apiContentCrudRoutes", {
|
|
1282
1282
|
enumerable: true,
|
|
1283
|
-
get: function () { return
|
|
1283
|
+
get: function () { return chunkARLXQU2S_cjs.api_content_crud_default; }
|
|
1284
1284
|
});
|
|
1285
1285
|
Object.defineProperty(exports, "apiMediaRoutes", {
|
|
1286
1286
|
enumerable: true,
|
|
1287
|
-
get: function () { return
|
|
1287
|
+
get: function () { return chunkARLXQU2S_cjs.api_media_default; }
|
|
1288
1288
|
});
|
|
1289
1289
|
Object.defineProperty(exports, "apiRoutes", {
|
|
1290
1290
|
enumerable: true,
|
|
1291
|
-
get: function () { return
|
|
1291
|
+
get: function () { return chunkARLXQU2S_cjs.api_default; }
|
|
1292
1292
|
});
|
|
1293
1293
|
Object.defineProperty(exports, "apiSystemRoutes", {
|
|
1294
1294
|
enumerable: true,
|
|
1295
|
-
get: function () { return
|
|
1295
|
+
get: function () { return chunkARLXQU2S_cjs.api_system_default; }
|
|
1296
1296
|
});
|
|
1297
1297
|
Object.defineProperty(exports, "authRoutes", {
|
|
1298
1298
|
enumerable: true,
|
|
1299
|
-
get: function () { return
|
|
1299
|
+
get: function () { return chunkARLXQU2S_cjs.auth_default; }
|
|
1300
1300
|
});
|
|
1301
1301
|
Object.defineProperty(exports, "Logger", {
|
|
1302
1302
|
enumerable: true,
|
|
@@ -1464,83 +1464,83 @@ Object.defineProperty(exports, "workflowHistory", {
|
|
|
1464
1464
|
});
|
|
1465
1465
|
Object.defineProperty(exports, "AuthManager", {
|
|
1466
1466
|
enumerable: true,
|
|
1467
|
-
get: function () { return
|
|
1467
|
+
get: function () { return chunk5NCBFP37_cjs.AuthManager; }
|
|
1468
1468
|
});
|
|
1469
1469
|
Object.defineProperty(exports, "PermissionManager", {
|
|
1470
1470
|
enumerable: true,
|
|
1471
|
-
get: function () { return
|
|
1471
|
+
get: function () { return chunk5NCBFP37_cjs.PermissionManager; }
|
|
1472
1472
|
});
|
|
1473
1473
|
Object.defineProperty(exports, "bootstrapMiddleware", {
|
|
1474
1474
|
enumerable: true,
|
|
1475
|
-
get: function () { return
|
|
1475
|
+
get: function () { return chunk5NCBFP37_cjs.bootstrapMiddleware; }
|
|
1476
1476
|
});
|
|
1477
1477
|
Object.defineProperty(exports, "cacheHeaders", {
|
|
1478
1478
|
enumerable: true,
|
|
1479
|
-
get: function () { return
|
|
1479
|
+
get: function () { return chunk5NCBFP37_cjs.cacheHeaders; }
|
|
1480
1480
|
});
|
|
1481
1481
|
Object.defineProperty(exports, "compressionMiddleware", {
|
|
1482
1482
|
enumerable: true,
|
|
1483
|
-
get: function () { return
|
|
1483
|
+
get: function () { return chunk5NCBFP37_cjs.compressionMiddleware; }
|
|
1484
1484
|
});
|
|
1485
1485
|
Object.defineProperty(exports, "detailedLoggingMiddleware", {
|
|
1486
1486
|
enumerable: true,
|
|
1487
|
-
get: function () { return
|
|
1487
|
+
get: function () { return chunk5NCBFP37_cjs.detailedLoggingMiddleware; }
|
|
1488
1488
|
});
|
|
1489
1489
|
Object.defineProperty(exports, "getActivePlugins", {
|
|
1490
1490
|
enumerable: true,
|
|
1491
|
-
get: function () { return
|
|
1491
|
+
get: function () { return chunk5NCBFP37_cjs.getActivePlugins; }
|
|
1492
1492
|
});
|
|
1493
1493
|
Object.defineProperty(exports, "isPluginActive", {
|
|
1494
1494
|
enumerable: true,
|
|
1495
|
-
get: function () { return
|
|
1495
|
+
get: function () { return chunk5NCBFP37_cjs.isPluginActive; }
|
|
1496
1496
|
});
|
|
1497
1497
|
Object.defineProperty(exports, "logActivity", {
|
|
1498
1498
|
enumerable: true,
|
|
1499
|
-
get: function () { return
|
|
1499
|
+
get: function () { return chunk5NCBFP37_cjs.logActivity; }
|
|
1500
1500
|
});
|
|
1501
1501
|
Object.defineProperty(exports, "loggingMiddleware", {
|
|
1502
1502
|
enumerable: true,
|
|
1503
|
-
get: function () { return
|
|
1503
|
+
get: function () { return chunk5NCBFP37_cjs.loggingMiddleware; }
|
|
1504
1504
|
});
|
|
1505
1505
|
Object.defineProperty(exports, "optionalAuth", {
|
|
1506
1506
|
enumerable: true,
|
|
1507
|
-
get: function () { return
|
|
1507
|
+
get: function () { return chunk5NCBFP37_cjs.optionalAuth; }
|
|
1508
1508
|
});
|
|
1509
1509
|
Object.defineProperty(exports, "performanceLoggingMiddleware", {
|
|
1510
1510
|
enumerable: true,
|
|
1511
|
-
get: function () { return
|
|
1511
|
+
get: function () { return chunk5NCBFP37_cjs.performanceLoggingMiddleware; }
|
|
1512
1512
|
});
|
|
1513
1513
|
Object.defineProperty(exports, "requireActivePlugin", {
|
|
1514
1514
|
enumerable: true,
|
|
1515
|
-
get: function () { return
|
|
1515
|
+
get: function () { return chunk5NCBFP37_cjs.requireActivePlugin; }
|
|
1516
1516
|
});
|
|
1517
1517
|
Object.defineProperty(exports, "requireActivePlugins", {
|
|
1518
1518
|
enumerable: true,
|
|
1519
|
-
get: function () { return
|
|
1519
|
+
get: function () { return chunk5NCBFP37_cjs.requireActivePlugins; }
|
|
1520
1520
|
});
|
|
1521
1521
|
Object.defineProperty(exports, "requireAnyPermission", {
|
|
1522
1522
|
enumerable: true,
|
|
1523
|
-
get: function () { return
|
|
1523
|
+
get: function () { return chunk5NCBFP37_cjs.requireAnyPermission; }
|
|
1524
1524
|
});
|
|
1525
1525
|
Object.defineProperty(exports, "requireAuth", {
|
|
1526
1526
|
enumerable: true,
|
|
1527
|
-
get: function () { return
|
|
1527
|
+
get: function () { return chunk5NCBFP37_cjs.requireAuth; }
|
|
1528
1528
|
});
|
|
1529
1529
|
Object.defineProperty(exports, "requirePermission", {
|
|
1530
1530
|
enumerable: true,
|
|
1531
|
-
get: function () { return
|
|
1531
|
+
get: function () { return chunk5NCBFP37_cjs.requirePermission; }
|
|
1532
1532
|
});
|
|
1533
1533
|
Object.defineProperty(exports, "requireRole", {
|
|
1534
1534
|
enumerable: true,
|
|
1535
|
-
get: function () { return
|
|
1535
|
+
get: function () { return chunk5NCBFP37_cjs.requireRole; }
|
|
1536
1536
|
});
|
|
1537
1537
|
Object.defineProperty(exports, "securityHeaders", {
|
|
1538
1538
|
enumerable: true,
|
|
1539
|
-
get: function () { return
|
|
1539
|
+
get: function () { return chunk5NCBFP37_cjs.securityHeaders; }
|
|
1540
1540
|
});
|
|
1541
1541
|
Object.defineProperty(exports, "securityLoggingMiddleware", {
|
|
1542
1542
|
enumerable: true,
|
|
1543
|
-
get: function () { return
|
|
1543
|
+
get: function () { return chunk5NCBFP37_cjs.securityLoggingMiddleware; }
|
|
1544
1544
|
});
|
|
1545
1545
|
Object.defineProperty(exports, "PluginBootstrapService", {
|
|
1546
1546
|
enumerable: true,
|
|
@@ -1596,39 +1596,39 @@ Object.defineProperty(exports, "validateCollectionConfig", {
|
|
|
1596
1596
|
});
|
|
1597
1597
|
Object.defineProperty(exports, "MigrationService", {
|
|
1598
1598
|
enumerable: true,
|
|
1599
|
-
get: function () { return
|
|
1599
|
+
get: function () { return chunkW4CE7XME_cjs.MigrationService; }
|
|
1600
1600
|
});
|
|
1601
1601
|
Object.defineProperty(exports, "renderFilterBar", {
|
|
1602
1602
|
enumerable: true,
|
|
1603
|
-
get: function () { return
|
|
1603
|
+
get: function () { return chunkXR6XACXJ_cjs.renderFilterBar; }
|
|
1604
1604
|
});
|
|
1605
1605
|
Object.defineProperty(exports, "getConfirmationDialogScript", {
|
|
1606
1606
|
enumerable: true,
|
|
1607
|
-
get: function () { return
|
|
1607
|
+
get: function () { return chunkMF7DWI5P_cjs.getConfirmationDialogScript; }
|
|
1608
1608
|
});
|
|
1609
1609
|
Object.defineProperty(exports, "renderAlert", {
|
|
1610
1610
|
enumerable: true,
|
|
1611
|
-
get: function () { return
|
|
1611
|
+
get: function () { return chunkMF7DWI5P_cjs.renderAlert; }
|
|
1612
1612
|
});
|
|
1613
1613
|
Object.defineProperty(exports, "renderConfirmationDialog", {
|
|
1614
1614
|
enumerable: true,
|
|
1615
|
-
get: function () { return
|
|
1615
|
+
get: function () { return chunkMF7DWI5P_cjs.renderConfirmationDialog; }
|
|
1616
1616
|
});
|
|
1617
1617
|
Object.defineProperty(exports, "renderForm", {
|
|
1618
1618
|
enumerable: true,
|
|
1619
|
-
get: function () { return
|
|
1619
|
+
get: function () { return chunkMF7DWI5P_cjs.renderForm; }
|
|
1620
1620
|
});
|
|
1621
1621
|
Object.defineProperty(exports, "renderFormField", {
|
|
1622
1622
|
enumerable: true,
|
|
1623
|
-
get: function () { return
|
|
1623
|
+
get: function () { return chunkMF7DWI5P_cjs.renderFormField; }
|
|
1624
1624
|
});
|
|
1625
1625
|
Object.defineProperty(exports, "renderPagination", {
|
|
1626
1626
|
enumerable: true,
|
|
1627
|
-
get: function () { return
|
|
1627
|
+
get: function () { return chunkMF7DWI5P_cjs.renderPagination; }
|
|
1628
1628
|
});
|
|
1629
1629
|
Object.defineProperty(exports, "renderTable", {
|
|
1630
1630
|
enumerable: true,
|
|
1631
|
-
get: function () { return
|
|
1631
|
+
get: function () { return chunkMF7DWI5P_cjs.renderTable; }
|
|
1632
1632
|
});
|
|
1633
1633
|
Object.defineProperty(exports, "HookSystemImpl", {
|
|
1634
1634
|
enumerable: true,
|
|
@@ -1656,43 +1656,43 @@ Object.defineProperty(exports, "ScopedHookSystemClass", {
|
|
|
1656
1656
|
});
|
|
1657
1657
|
Object.defineProperty(exports, "QueryFilterBuilder", {
|
|
1658
1658
|
enumerable: true,
|
|
1659
|
-
get: function () { return
|
|
1659
|
+
get: function () { return chunkW2IAEG4W_cjs.QueryFilterBuilder; }
|
|
1660
1660
|
});
|
|
1661
1661
|
Object.defineProperty(exports, "SONICJS_VERSION", {
|
|
1662
1662
|
enumerable: true,
|
|
1663
|
-
get: function () { return
|
|
1663
|
+
get: function () { return chunkW2IAEG4W_cjs.SONICJS_VERSION; }
|
|
1664
1664
|
});
|
|
1665
1665
|
Object.defineProperty(exports, "TemplateRenderer", {
|
|
1666
1666
|
enumerable: true,
|
|
1667
|
-
get: function () { return
|
|
1667
|
+
get: function () { return chunkW2IAEG4W_cjs.TemplateRenderer; }
|
|
1668
1668
|
});
|
|
1669
1669
|
Object.defineProperty(exports, "buildQuery", {
|
|
1670
1670
|
enumerable: true,
|
|
1671
|
-
get: function () { return
|
|
1671
|
+
get: function () { return chunkW2IAEG4W_cjs.buildQuery; }
|
|
1672
1672
|
});
|
|
1673
1673
|
Object.defineProperty(exports, "escapeHtml", {
|
|
1674
1674
|
enumerable: true,
|
|
1675
|
-
get: function () { return
|
|
1675
|
+
get: function () { return chunkW2IAEG4W_cjs.escapeHtml; }
|
|
1676
1676
|
});
|
|
1677
1677
|
Object.defineProperty(exports, "getCoreVersion", {
|
|
1678
1678
|
enumerable: true,
|
|
1679
|
-
get: function () { return
|
|
1679
|
+
get: function () { return chunkW2IAEG4W_cjs.getCoreVersion; }
|
|
1680
1680
|
});
|
|
1681
1681
|
Object.defineProperty(exports, "renderTemplate", {
|
|
1682
1682
|
enumerable: true,
|
|
1683
|
-
get: function () { return
|
|
1683
|
+
get: function () { return chunkW2IAEG4W_cjs.renderTemplate; }
|
|
1684
1684
|
});
|
|
1685
1685
|
Object.defineProperty(exports, "sanitizeInput", {
|
|
1686
1686
|
enumerable: true,
|
|
1687
|
-
get: function () { return
|
|
1687
|
+
get: function () { return chunkW2IAEG4W_cjs.sanitizeInput; }
|
|
1688
1688
|
});
|
|
1689
1689
|
Object.defineProperty(exports, "sanitizeObject", {
|
|
1690
1690
|
enumerable: true,
|
|
1691
|
-
get: function () { return
|
|
1691
|
+
get: function () { return chunkW2IAEG4W_cjs.sanitizeObject; }
|
|
1692
1692
|
});
|
|
1693
1693
|
Object.defineProperty(exports, "templateRenderer", {
|
|
1694
1694
|
enumerable: true,
|
|
1695
|
-
get: function () { return
|
|
1695
|
+
get: function () { return chunkW2IAEG4W_cjs.templateRenderer; }
|
|
1696
1696
|
});
|
|
1697
1697
|
Object.defineProperty(exports, "metricsTracker", {
|
|
1698
1698
|
enumerable: true,
|
package/dist/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { PluginBuilder, api_default, api_media_default, api_system_default, admin_api_default, router, adminCollectionsRoutes, adminSettingsRoutes, 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 { PluginBuilder, api_default, api_media_default, api_system_default, admin_api_default, router, adminCollectionsRoutes, adminSettingsRoutes, admin_content_default, adminMediaRoutes, adminPluginRoutes, adminLogsRoutes, userRoutes, auth_default, test_cleanup_default } from './chunk-RP66TPEJ.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-RP66TPEJ.js';
|
|
3
3
|
import { schema_exports } from './chunk-3YNNVSMC.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-3YNNVSMC.js';
|
|
5
|
-
import { metricsMiddleware, bootstrapMiddleware, requireAuth } 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 { metricsMiddleware, bootstrapMiddleware, requireAuth } from './chunk-2NTBZ2Y7.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-2NTBZ2Y7.js';
|
|
7
7
|
export { PluginBootstrapService, PluginService as PluginServiceClass, cleanupRemovedCollections, fullCollectionSync, getAvailableCollectionNames, getManagedCollections, isCollectionManaged, loadCollectionConfig, loadCollectionConfigs, registerCollections, syncCollection, syncCollections, validateCollectionConfig } from './chunk-SGAG6FD3.js';
|
|
8
|
-
export { MigrationService } from './chunk-
|
|
9
|
-
export { renderFilterBar } from './chunk-
|
|
10
|
-
import { init_admin_layout_catalyst_template, renderAdminLayout, renderAdminLayoutCatalyst } from './chunk-
|
|
11
|
-
export { getConfirmationDialogScript, renderAlert, renderConfirmationDialog, renderForm, renderFormField, renderPagination, renderTable } from './chunk-
|
|
8
|
+
export { MigrationService } from './chunk-VMEBHBYY.js';
|
|
9
|
+
export { renderFilterBar } from './chunk-F56JKQTA.js';
|
|
10
|
+
import { init_admin_layout_catalyst_template, renderAdminLayout, renderAdminLayoutCatalyst } from './chunk-DN45O5XV.js';
|
|
11
|
+
export { getConfirmationDialogScript, renderAlert, renderConfirmationDialog, renderForm, renderFormField, renderPagination, renderTable } from './chunk-DN45O5XV.js';
|
|
12
12
|
export { HookSystemImpl, HookUtils, PluginManager as PluginManagerClass, PluginRegistryImpl, PluginValidator as PluginValidatorClass, ScopedHookSystem as ScopedHookSystemClass } from './chunk-CPXAVWCU.js';
|
|
13
|
-
import { package_default, getCoreVersion } from './chunk-
|
|
14
|
-
export { QueryFilterBuilder, SONICJS_VERSION, TemplateRenderer, buildQuery, escapeHtml, getCoreVersion, renderTemplate, sanitizeInput, sanitizeObject, templateRenderer } from './chunk-
|
|
13
|
+
import { package_default, getCoreVersion } from './chunk-FHCN7KR2.js';
|
|
14
|
+
export { QueryFilterBuilder, SONICJS_VERSION, TemplateRenderer, buildQuery, escapeHtml, getCoreVersion, renderTemplate, sanitizeInput, sanitizeObject, templateRenderer } from './chunk-FHCN7KR2.js';
|
|
15
15
|
import './chunk-X7ZAEI5S.js';
|
|
16
16
|
export { metricsTracker } from './chunk-FICTAGD4.js';
|
|
17
17
|
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 chunk5NCBFP37_cjs = require('./chunk-5NCBFP37.cjs');
|
|
4
4
|
require('./chunk-ILZ3DP4I.cjs');
|
|
5
|
-
require('./chunk-
|
|
5
|
+
require('./chunk-W4CE7XME.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 chunk5NCBFP37_cjs.AuthManager; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "PermissionManager", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk5NCBFP37_cjs.PermissionManager; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "bootstrapMiddleware", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunk5NCBFP37_cjs.bootstrapMiddleware; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "cacheHeaders", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunk5NCBFP37_cjs.cacheHeaders; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "compressionMiddleware", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunk5NCBFP37_cjs.compressionMiddleware; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "detailedLoggingMiddleware", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunk5NCBFP37_cjs.detailedLoggingMiddleware; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "getActivePlugins", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunk5NCBFP37_cjs.getActivePlugins; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "isPluginActive", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunk5NCBFP37_cjs.isPluginActive; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "logActivity", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunk5NCBFP37_cjs.logActivity; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "loggingMiddleware", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunk5NCBFP37_cjs.loggingMiddleware; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "metricsMiddleware", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunk5NCBFP37_cjs.metricsMiddleware; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "optionalAuth", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunk5NCBFP37_cjs.optionalAuth; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "performanceLoggingMiddleware", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunk5NCBFP37_cjs.performanceLoggingMiddleware; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "requireActivePlugin", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunk5NCBFP37_cjs.requireActivePlugin; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "requireActivePlugins", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunk5NCBFP37_cjs.requireActivePlugins; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "requireAnyPermission", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunk5NCBFP37_cjs.requireAnyPermission; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "requireAuth", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunk5NCBFP37_cjs.requireAuth; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "requirePermission", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunk5NCBFP37_cjs.requirePermission; }
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "requireRole", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunk5NCBFP37_cjs.requireRole; }
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(exports, "securityHeaders", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunk5NCBFP37_cjs.securityHeaders; }
|
|
90
90
|
});
|
|
91
91
|
Object.defineProperty(exports, "securityLoggingMiddleware", {
|
|
92
92
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunk5NCBFP37_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-2NTBZ2Y7.js';
|
|
2
2
|
import './chunk-SGAG6FD3.js';
|
|
3
|
-
import './chunk-
|
|
3
|
+
import './chunk-VMEBHBYY.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-43GTELB5.js"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkW4CE7XME_cjs = require('./chunk-W4CE7XME.cjs');
|
|
4
|
+
require('./chunk-IGJUBJBW.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, "MigrationService", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return chunkW4CE7XME_cjs.MigrationService; }
|
|
11
|
+
});
|
|
12
|
+
//# sourceMappingURL=migrations-ZAYXZXON.cjs.map
|
|
13
|
+
//# sourceMappingURL=migrations-ZAYXZXON.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"migrations-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"migrations-ZAYXZXON.cjs"}
|