@sonicjs-cms/core 2.0.12 → 2.0.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-K5WUGEXH.cjs → chunk-2CP6535T.cjs} +114 -114
- package/dist/{chunk-K5WUGEXH.cjs.map → chunk-2CP6535T.cjs.map} +1 -1
- package/dist/{chunk-3OKKNBPD.cjs → chunk-HFFNEGZB.cjs} +4 -4
- package/dist/chunk-HFFNEGZB.cjs.map +1 -0
- package/dist/{chunk-AUVW4I3D.js → chunk-I3R77LQC.js} +2 -2
- package/dist/{chunk-AUVW4I3D.js.map → chunk-I3R77LQC.js.map} +1 -1
- package/dist/{chunk-RDJ2QLA2.cjs → chunk-JQIQRMPA.cjs} +2 -2
- package/dist/{chunk-RDJ2QLA2.cjs.map → chunk-JQIQRMPA.cjs.map} +1 -1
- package/dist/{chunk-RKNHW6QU.js → chunk-MOWI4WYE.js} +5 -5
- package/dist/chunk-MOWI4WYE.js.map +1 -0
- package/dist/{chunk-LBSKQKYL.js → chunk-PFNUOW6W.js} +3 -3
- package/dist/{chunk-LBSKQKYL.js.map → chunk-PFNUOW6W.js.map} +1 -1
- package/dist/{chunk-6B4ENDQM.js → chunk-QWIXOMHW.js} +9 -9
- package/dist/{chunk-6B4ENDQM.js.map → chunk-QWIXOMHW.js.map} +1 -1
- package/dist/{chunk-3F4LF7LW.cjs → chunk-U2WYUO32.cjs} +11 -11
- package/dist/{chunk-3F4LF7LW.cjs.map → chunk-U2WYUO32.cjs.map} +1 -1
- package/dist/{chunk-2HRF65VF.cjs → chunk-WFHLBYNA.cjs} +3 -3
- package/dist/{chunk-2HRF65VF.cjs.map → chunk-WFHLBYNA.cjs.map} +1 -1
- package/dist/{chunk-F4IGVB2V.cjs → chunk-WML2ZMHH.cjs} +4 -4
- package/dist/{chunk-F4IGVB2V.cjs.map → chunk-WML2ZMHH.cjs.map} +1 -1
- package/dist/{chunk-DSDHGJ4F.js → chunk-ZALNKBLS.js} +3 -3
- package/dist/{chunk-DSDHGJ4F.js.map → chunk-ZALNKBLS.js.map} +1 -1
- package/dist/{chunk-M2YDOOBC.js → chunk-ZNESOOF2.js} +3 -3
- package/dist/{chunk-M2YDOOBC.js.map → chunk-ZNESOOF2.js.map} +1 -1
- package/dist/index.cjs +118 -118
- package/dist/index.js +10 -10
- package/dist/middleware.cjs +23 -23
- package/dist/middleware.js +2 -2
- package/dist/migrations-GVG73ZJC.js +4 -0
- package/dist/{migrations-DURR3GZX.js.map → migrations-GVG73ZJC.js.map} +1 -1
- package/dist/migrations-S52MEE4J.cjs +13 -0
- package/dist/{migrations-P5BD7WQK.cjs.map → migrations-S52MEE4J.cjs.map} +1 -1
- package/dist/routes.cjs +26 -26
- package/dist/routes.js +6 -6
- package/dist/services.cjs +15 -15
- package/dist/services.js +3 -3
- package/dist/utils.cjs +20 -20
- package/dist/utils.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-3OKKNBPD.cjs.map +0 -1
- package/dist/chunk-RKNHW6QU.js.map +0 -1
- package/dist/migrations-DURR3GZX.js +0 -4
- package/dist/migrations-P5BD7WQK.cjs +0 -13
package/dist/index.cjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
3
|
+
var chunk2CP6535T_cjs = require('./chunk-2CP6535T.cjs');
|
|
4
|
+
var chunkU2WYUO32_cjs = require('./chunk-U2WYUO32.cjs');
|
|
5
|
+
var chunkWML2ZMHH_cjs = require('./chunk-WML2ZMHH.cjs');
|
|
6
6
|
var chunk22EFGHAX_cjs = require('./chunk-22EFGHAX.cjs');
|
|
7
|
-
var
|
|
7
|
+
var chunkJQIQRMPA_cjs = require('./chunk-JQIQRMPA.cjs');
|
|
8
8
|
var chunkZMSYKV62_cjs = require('./chunk-ZMSYKV62.cjs');
|
|
9
9
|
var chunkYU6QFFI4_cjs = require('./chunk-YU6QFFI4.cjs');
|
|
10
10
|
var chunkDTLB6UIH_cjs = require('./chunk-DTLB6UIH.cjs');
|
|
11
|
-
var
|
|
12
|
-
require('./chunk-
|
|
11
|
+
var chunkWFHLBYNA_cjs = require('./chunk-WFHLBYNA.cjs');
|
|
12
|
+
require('./chunk-HFFNEGZB.cjs');
|
|
13
13
|
var chunkRCQ2HIQD_cjs = require('./chunk-RCQ2HIQD.cjs');
|
|
14
14
|
var chunkKYGRJCZM_cjs = require('./chunk-KYGRJCZM.cjs');
|
|
15
15
|
require('./chunk-IGJUBJBW.cjs');
|
|
@@ -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("*", chunkWML2ZMHH_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 = chunk2CP6535T_cjs.PluginBuilder.create({
|
|
741
741
|
name: "email",
|
|
742
742
|
version: "1.0.0-beta.1",
|
|
743
743
|
description: "Send transactional emails using Resend"
|
|
@@ -1108,14 +1108,14 @@ var emailPlugin = createEmailPlugin();
|
|
|
1108
1108
|
// src/app.ts
|
|
1109
1109
|
function createSonicJSApp(config = {}) {
|
|
1110
1110
|
const app = new hono.Hono();
|
|
1111
|
-
const appVersion = config.version ||
|
|
1111
|
+
const appVersion = config.version || chunkWFHLBYNA_cjs.getCoreVersion();
|
|
1112
1112
|
const appName = config.name || "SonicJS AI";
|
|
1113
1113
|
app.use("*", async (c, next) => {
|
|
1114
1114
|
c.set("appVersion", appVersion);
|
|
1115
1115
|
await next();
|
|
1116
1116
|
});
|
|
1117
|
-
app.use("*",
|
|
1118
|
-
app.use("*",
|
|
1117
|
+
app.use("*", chunkWML2ZMHH_cjs.metricsMiddleware());
|
|
1118
|
+
app.use("*", chunkWML2ZMHH_cjs.bootstrapMiddleware(config));
|
|
1119
1119
|
if (config.middleware?.beforeAuth) {
|
|
1120
1120
|
for (const middleware of config.middleware.beforeAuth) {
|
|
1121
1121
|
app.use("*", middleware);
|
|
@@ -1132,21 +1132,21 @@ function createSonicJSApp(config = {}) {
|
|
|
1132
1132
|
app.use("*", middleware);
|
|
1133
1133
|
}
|
|
1134
1134
|
}
|
|
1135
|
-
app.route("/api",
|
|
1136
|
-
app.route("/api/media",
|
|
1137
|
-
app.route("/api/system",
|
|
1138
|
-
app.route("/admin/api",
|
|
1139
|
-
app.route("/admin/dashboard",
|
|
1140
|
-
app.route("/admin/collections",
|
|
1141
|
-
app.route("/admin/settings",
|
|
1135
|
+
app.route("/api", chunk2CP6535T_cjs.api_default);
|
|
1136
|
+
app.route("/api/media", chunk2CP6535T_cjs.api_media_default);
|
|
1137
|
+
app.route("/api/system", chunk2CP6535T_cjs.api_system_default);
|
|
1138
|
+
app.route("/admin/api", chunk2CP6535T_cjs.admin_api_default);
|
|
1139
|
+
app.route("/admin/dashboard", chunk2CP6535T_cjs.router);
|
|
1140
|
+
app.route("/admin/collections", chunk2CP6535T_cjs.adminCollectionsRoutes);
|
|
1141
|
+
app.route("/admin/settings", chunk2CP6535T_cjs.adminSettingsRoutes);
|
|
1142
1142
|
app.route("/admin/database-tools", createDatabaseToolsAdminRoutes());
|
|
1143
|
-
app.route("/admin/content",
|
|
1144
|
-
app.route("/admin/media",
|
|
1145
|
-
app.route("/admin/plugins",
|
|
1146
|
-
app.route("/admin/logs",
|
|
1147
|
-
app.route("/admin",
|
|
1148
|
-
app.route("/auth",
|
|
1149
|
-
app.route("/",
|
|
1143
|
+
app.route("/admin/content", chunk2CP6535T_cjs.admin_content_default);
|
|
1144
|
+
app.route("/admin/media", chunk2CP6535T_cjs.adminMediaRoutes);
|
|
1145
|
+
app.route("/admin/plugins", chunk2CP6535T_cjs.adminPluginRoutes);
|
|
1146
|
+
app.route("/admin/logs", chunk2CP6535T_cjs.adminLogsRoutes);
|
|
1147
|
+
app.route("/admin", chunk2CP6535T_cjs.userRoutes);
|
|
1148
|
+
app.route("/auth", chunk2CP6535T_cjs.auth_default);
|
|
1149
|
+
app.route("/", chunk2CP6535T_cjs.test_cleanup_default);
|
|
1150
1150
|
if (emailPlugin.routes && emailPlugin.routes.length > 0) {
|
|
1151
1151
|
for (const route of emailPlugin.routes) {
|
|
1152
1152
|
app.route(route.path, route.handler);
|
|
@@ -1211,331 +1211,331 @@ function setupCoreRoutes(_app) {
|
|
|
1211
1211
|
console.warn("setupCoreRoutes is deprecated. Use createSonicJSApp() instead.");
|
|
1212
1212
|
}
|
|
1213
1213
|
function createDb(d1$1) {
|
|
1214
|
-
return d1.drizzle(d1$1, { schema:
|
|
1214
|
+
return d1.drizzle(d1$1, { schema: chunkU2WYUO32_cjs.schema_exports });
|
|
1215
1215
|
}
|
|
1216
1216
|
|
|
1217
1217
|
// src/index.ts
|
|
1218
|
-
var VERSION =
|
|
1218
|
+
var VERSION = chunkWFHLBYNA_cjs.package_default.version;
|
|
1219
1219
|
|
|
1220
1220
|
Object.defineProperty(exports, "ROUTES_INFO", {
|
|
1221
1221
|
enumerable: true,
|
|
1222
|
-
get: function () { return
|
|
1222
|
+
get: function () { return chunk2CP6535T_cjs.ROUTES_INFO; }
|
|
1223
1223
|
});
|
|
1224
1224
|
Object.defineProperty(exports, "adminApiRoutes", {
|
|
1225
1225
|
enumerable: true,
|
|
1226
|
-
get: function () { return
|
|
1226
|
+
get: function () { return chunk2CP6535T_cjs.admin_api_default; }
|
|
1227
1227
|
});
|
|
1228
1228
|
Object.defineProperty(exports, "adminCheckboxRoutes", {
|
|
1229
1229
|
enumerable: true,
|
|
1230
|
-
get: function () { return
|
|
1230
|
+
get: function () { return chunk2CP6535T_cjs.adminCheckboxRoutes; }
|
|
1231
1231
|
});
|
|
1232
1232
|
Object.defineProperty(exports, "adminCodeExamplesRoutes", {
|
|
1233
1233
|
enumerable: true,
|
|
1234
|
-
get: function () { return
|
|
1234
|
+
get: function () { return chunk2CP6535T_cjs.admin_code_examples_default; }
|
|
1235
1235
|
});
|
|
1236
1236
|
Object.defineProperty(exports, "adminCollectionsRoutes", {
|
|
1237
1237
|
enumerable: true,
|
|
1238
|
-
get: function () { return
|
|
1238
|
+
get: function () { return chunk2CP6535T_cjs.adminCollectionsRoutes; }
|
|
1239
1239
|
});
|
|
1240
1240
|
Object.defineProperty(exports, "adminContentRoutes", {
|
|
1241
1241
|
enumerable: true,
|
|
1242
|
-
get: function () { return
|
|
1242
|
+
get: function () { return chunk2CP6535T_cjs.admin_content_default; }
|
|
1243
1243
|
});
|
|
1244
1244
|
Object.defineProperty(exports, "adminDashboardRoutes", {
|
|
1245
1245
|
enumerable: true,
|
|
1246
|
-
get: function () { return
|
|
1246
|
+
get: function () { return chunk2CP6535T_cjs.router; }
|
|
1247
1247
|
});
|
|
1248
1248
|
Object.defineProperty(exports, "adminDesignRoutes", {
|
|
1249
1249
|
enumerable: true,
|
|
1250
|
-
get: function () { return
|
|
1250
|
+
get: function () { return chunk2CP6535T_cjs.adminDesignRoutes; }
|
|
1251
1251
|
});
|
|
1252
1252
|
Object.defineProperty(exports, "adminLogsRoutes", {
|
|
1253
1253
|
enumerable: true,
|
|
1254
|
-
get: function () { return
|
|
1254
|
+
get: function () { return chunk2CP6535T_cjs.adminLogsRoutes; }
|
|
1255
1255
|
});
|
|
1256
1256
|
Object.defineProperty(exports, "adminMediaRoutes", {
|
|
1257
1257
|
enumerable: true,
|
|
1258
|
-
get: function () { return
|
|
1258
|
+
get: function () { return chunk2CP6535T_cjs.adminMediaRoutes; }
|
|
1259
1259
|
});
|
|
1260
1260
|
Object.defineProperty(exports, "adminPluginRoutes", {
|
|
1261
1261
|
enumerable: true,
|
|
1262
|
-
get: function () { return
|
|
1262
|
+
get: function () { return chunk2CP6535T_cjs.adminPluginRoutes; }
|
|
1263
1263
|
});
|
|
1264
1264
|
Object.defineProperty(exports, "adminSettingsRoutes", {
|
|
1265
1265
|
enumerable: true,
|
|
1266
|
-
get: function () { return
|
|
1266
|
+
get: function () { return chunk2CP6535T_cjs.adminSettingsRoutes; }
|
|
1267
1267
|
});
|
|
1268
1268
|
Object.defineProperty(exports, "adminTestimonialsRoutes", {
|
|
1269
1269
|
enumerable: true,
|
|
1270
|
-
get: function () { return
|
|
1270
|
+
get: function () { return chunk2CP6535T_cjs.admin_testimonials_default; }
|
|
1271
1271
|
});
|
|
1272
1272
|
Object.defineProperty(exports, "adminUsersRoutes", {
|
|
1273
1273
|
enumerable: true,
|
|
1274
|
-
get: function () { return
|
|
1274
|
+
get: function () { return chunk2CP6535T_cjs.userRoutes; }
|
|
1275
1275
|
});
|
|
1276
1276
|
Object.defineProperty(exports, "apiContentCrudRoutes", {
|
|
1277
1277
|
enumerable: true,
|
|
1278
|
-
get: function () { return
|
|
1278
|
+
get: function () { return chunk2CP6535T_cjs.api_content_crud_default; }
|
|
1279
1279
|
});
|
|
1280
1280
|
Object.defineProperty(exports, "apiMediaRoutes", {
|
|
1281
1281
|
enumerable: true,
|
|
1282
|
-
get: function () { return
|
|
1282
|
+
get: function () { return chunk2CP6535T_cjs.api_media_default; }
|
|
1283
1283
|
});
|
|
1284
1284
|
Object.defineProperty(exports, "apiRoutes", {
|
|
1285
1285
|
enumerable: true,
|
|
1286
|
-
get: function () { return
|
|
1286
|
+
get: function () { return chunk2CP6535T_cjs.api_default; }
|
|
1287
1287
|
});
|
|
1288
1288
|
Object.defineProperty(exports, "apiSystemRoutes", {
|
|
1289
1289
|
enumerable: true,
|
|
1290
|
-
get: function () { return
|
|
1290
|
+
get: function () { return chunk2CP6535T_cjs.api_system_default; }
|
|
1291
1291
|
});
|
|
1292
1292
|
Object.defineProperty(exports, "authRoutes", {
|
|
1293
1293
|
enumerable: true,
|
|
1294
|
-
get: function () { return
|
|
1294
|
+
get: function () { return chunk2CP6535T_cjs.auth_default; }
|
|
1295
1295
|
});
|
|
1296
1296
|
Object.defineProperty(exports, "Logger", {
|
|
1297
1297
|
enumerable: true,
|
|
1298
|
-
get: function () { return
|
|
1298
|
+
get: function () { return chunkU2WYUO32_cjs.Logger; }
|
|
1299
1299
|
});
|
|
1300
1300
|
Object.defineProperty(exports, "apiTokens", {
|
|
1301
1301
|
enumerable: true,
|
|
1302
|
-
get: function () { return
|
|
1302
|
+
get: function () { return chunkU2WYUO32_cjs.apiTokens; }
|
|
1303
1303
|
});
|
|
1304
1304
|
Object.defineProperty(exports, "collections", {
|
|
1305
1305
|
enumerable: true,
|
|
1306
|
-
get: function () { return
|
|
1306
|
+
get: function () { return chunkU2WYUO32_cjs.collections; }
|
|
1307
1307
|
});
|
|
1308
1308
|
Object.defineProperty(exports, "content", {
|
|
1309
1309
|
enumerable: true,
|
|
1310
|
-
get: function () { return
|
|
1310
|
+
get: function () { return chunkU2WYUO32_cjs.content; }
|
|
1311
1311
|
});
|
|
1312
1312
|
Object.defineProperty(exports, "contentVersions", {
|
|
1313
1313
|
enumerable: true,
|
|
1314
|
-
get: function () { return
|
|
1314
|
+
get: function () { return chunkU2WYUO32_cjs.contentVersions; }
|
|
1315
1315
|
});
|
|
1316
1316
|
Object.defineProperty(exports, "getLogger", {
|
|
1317
1317
|
enumerable: true,
|
|
1318
|
-
get: function () { return
|
|
1318
|
+
get: function () { return chunkU2WYUO32_cjs.getLogger; }
|
|
1319
1319
|
});
|
|
1320
1320
|
Object.defineProperty(exports, "initLogger", {
|
|
1321
1321
|
enumerable: true,
|
|
1322
|
-
get: function () { return
|
|
1322
|
+
get: function () { return chunkU2WYUO32_cjs.initLogger; }
|
|
1323
1323
|
});
|
|
1324
1324
|
Object.defineProperty(exports, "insertCollectionSchema", {
|
|
1325
1325
|
enumerable: true,
|
|
1326
|
-
get: function () { return
|
|
1326
|
+
get: function () { return chunkU2WYUO32_cjs.insertCollectionSchema; }
|
|
1327
1327
|
});
|
|
1328
1328
|
Object.defineProperty(exports, "insertContentSchema", {
|
|
1329
1329
|
enumerable: true,
|
|
1330
|
-
get: function () { return
|
|
1330
|
+
get: function () { return chunkU2WYUO32_cjs.insertContentSchema; }
|
|
1331
1331
|
});
|
|
1332
1332
|
Object.defineProperty(exports, "insertLogConfigSchema", {
|
|
1333
1333
|
enumerable: true,
|
|
1334
|
-
get: function () { return
|
|
1334
|
+
get: function () { return chunkU2WYUO32_cjs.insertLogConfigSchema; }
|
|
1335
1335
|
});
|
|
1336
1336
|
Object.defineProperty(exports, "insertMediaSchema", {
|
|
1337
1337
|
enumerable: true,
|
|
1338
|
-
get: function () { return
|
|
1338
|
+
get: function () { return chunkU2WYUO32_cjs.insertMediaSchema; }
|
|
1339
1339
|
});
|
|
1340
1340
|
Object.defineProperty(exports, "insertPluginActivityLogSchema", {
|
|
1341
1341
|
enumerable: true,
|
|
1342
|
-
get: function () { return
|
|
1342
|
+
get: function () { return chunkU2WYUO32_cjs.insertPluginActivityLogSchema; }
|
|
1343
1343
|
});
|
|
1344
1344
|
Object.defineProperty(exports, "insertPluginAssetSchema", {
|
|
1345
1345
|
enumerable: true,
|
|
1346
|
-
get: function () { return
|
|
1346
|
+
get: function () { return chunkU2WYUO32_cjs.insertPluginAssetSchema; }
|
|
1347
1347
|
});
|
|
1348
1348
|
Object.defineProperty(exports, "insertPluginHookSchema", {
|
|
1349
1349
|
enumerable: true,
|
|
1350
|
-
get: function () { return
|
|
1350
|
+
get: function () { return chunkU2WYUO32_cjs.insertPluginHookSchema; }
|
|
1351
1351
|
});
|
|
1352
1352
|
Object.defineProperty(exports, "insertPluginRouteSchema", {
|
|
1353
1353
|
enumerable: true,
|
|
1354
|
-
get: function () { return
|
|
1354
|
+
get: function () { return chunkU2WYUO32_cjs.insertPluginRouteSchema; }
|
|
1355
1355
|
});
|
|
1356
1356
|
Object.defineProperty(exports, "insertPluginSchema", {
|
|
1357
1357
|
enumerable: true,
|
|
1358
|
-
get: function () { return
|
|
1358
|
+
get: function () { return chunkU2WYUO32_cjs.insertPluginSchema; }
|
|
1359
1359
|
});
|
|
1360
1360
|
Object.defineProperty(exports, "insertSystemLogSchema", {
|
|
1361
1361
|
enumerable: true,
|
|
1362
|
-
get: function () { return
|
|
1362
|
+
get: function () { return chunkU2WYUO32_cjs.insertSystemLogSchema; }
|
|
1363
1363
|
});
|
|
1364
1364
|
Object.defineProperty(exports, "insertUserSchema", {
|
|
1365
1365
|
enumerable: true,
|
|
1366
|
-
get: function () { return
|
|
1366
|
+
get: function () { return chunkU2WYUO32_cjs.insertUserSchema; }
|
|
1367
1367
|
});
|
|
1368
1368
|
Object.defineProperty(exports, "insertWorkflowHistorySchema", {
|
|
1369
1369
|
enumerable: true,
|
|
1370
|
-
get: function () { return
|
|
1370
|
+
get: function () { return chunkU2WYUO32_cjs.insertWorkflowHistorySchema; }
|
|
1371
1371
|
});
|
|
1372
1372
|
Object.defineProperty(exports, "logConfig", {
|
|
1373
1373
|
enumerable: true,
|
|
1374
|
-
get: function () { return
|
|
1374
|
+
get: function () { return chunkU2WYUO32_cjs.logConfig; }
|
|
1375
1375
|
});
|
|
1376
1376
|
Object.defineProperty(exports, "media", {
|
|
1377
1377
|
enumerable: true,
|
|
1378
|
-
get: function () { return
|
|
1378
|
+
get: function () { return chunkU2WYUO32_cjs.media; }
|
|
1379
1379
|
});
|
|
1380
1380
|
Object.defineProperty(exports, "pluginActivityLog", {
|
|
1381
1381
|
enumerable: true,
|
|
1382
|
-
get: function () { return
|
|
1382
|
+
get: function () { return chunkU2WYUO32_cjs.pluginActivityLog; }
|
|
1383
1383
|
});
|
|
1384
1384
|
Object.defineProperty(exports, "pluginAssets", {
|
|
1385
1385
|
enumerable: true,
|
|
1386
|
-
get: function () { return
|
|
1386
|
+
get: function () { return chunkU2WYUO32_cjs.pluginAssets; }
|
|
1387
1387
|
});
|
|
1388
1388
|
Object.defineProperty(exports, "pluginHooks", {
|
|
1389
1389
|
enumerable: true,
|
|
1390
|
-
get: function () { return
|
|
1390
|
+
get: function () { return chunkU2WYUO32_cjs.pluginHooks; }
|
|
1391
1391
|
});
|
|
1392
1392
|
Object.defineProperty(exports, "pluginRoutes", {
|
|
1393
1393
|
enumerable: true,
|
|
1394
|
-
get: function () { return
|
|
1394
|
+
get: function () { return chunkU2WYUO32_cjs.pluginRoutes; }
|
|
1395
1395
|
});
|
|
1396
1396
|
Object.defineProperty(exports, "plugins", {
|
|
1397
1397
|
enumerable: true,
|
|
1398
|
-
get: function () { return
|
|
1398
|
+
get: function () { return chunkU2WYUO32_cjs.plugins; }
|
|
1399
1399
|
});
|
|
1400
1400
|
Object.defineProperty(exports, "selectCollectionSchema", {
|
|
1401
1401
|
enumerable: true,
|
|
1402
|
-
get: function () { return
|
|
1402
|
+
get: function () { return chunkU2WYUO32_cjs.selectCollectionSchema; }
|
|
1403
1403
|
});
|
|
1404
1404
|
Object.defineProperty(exports, "selectContentSchema", {
|
|
1405
1405
|
enumerable: true,
|
|
1406
|
-
get: function () { return
|
|
1406
|
+
get: function () { return chunkU2WYUO32_cjs.selectContentSchema; }
|
|
1407
1407
|
});
|
|
1408
1408
|
Object.defineProperty(exports, "selectLogConfigSchema", {
|
|
1409
1409
|
enumerable: true,
|
|
1410
|
-
get: function () { return
|
|
1410
|
+
get: function () { return chunkU2WYUO32_cjs.selectLogConfigSchema; }
|
|
1411
1411
|
});
|
|
1412
1412
|
Object.defineProperty(exports, "selectMediaSchema", {
|
|
1413
1413
|
enumerable: true,
|
|
1414
|
-
get: function () { return
|
|
1414
|
+
get: function () { return chunkU2WYUO32_cjs.selectMediaSchema; }
|
|
1415
1415
|
});
|
|
1416
1416
|
Object.defineProperty(exports, "selectPluginActivityLogSchema", {
|
|
1417
1417
|
enumerable: true,
|
|
1418
|
-
get: function () { return
|
|
1418
|
+
get: function () { return chunkU2WYUO32_cjs.selectPluginActivityLogSchema; }
|
|
1419
1419
|
});
|
|
1420
1420
|
Object.defineProperty(exports, "selectPluginAssetSchema", {
|
|
1421
1421
|
enumerable: true,
|
|
1422
|
-
get: function () { return
|
|
1422
|
+
get: function () { return chunkU2WYUO32_cjs.selectPluginAssetSchema; }
|
|
1423
1423
|
});
|
|
1424
1424
|
Object.defineProperty(exports, "selectPluginHookSchema", {
|
|
1425
1425
|
enumerable: true,
|
|
1426
|
-
get: function () { return
|
|
1426
|
+
get: function () { return chunkU2WYUO32_cjs.selectPluginHookSchema; }
|
|
1427
1427
|
});
|
|
1428
1428
|
Object.defineProperty(exports, "selectPluginRouteSchema", {
|
|
1429
1429
|
enumerable: true,
|
|
1430
|
-
get: function () { return
|
|
1430
|
+
get: function () { return chunkU2WYUO32_cjs.selectPluginRouteSchema; }
|
|
1431
1431
|
});
|
|
1432
1432
|
Object.defineProperty(exports, "selectPluginSchema", {
|
|
1433
1433
|
enumerable: true,
|
|
1434
|
-
get: function () { return
|
|
1434
|
+
get: function () { return chunkU2WYUO32_cjs.selectPluginSchema; }
|
|
1435
1435
|
});
|
|
1436
1436
|
Object.defineProperty(exports, "selectSystemLogSchema", {
|
|
1437
1437
|
enumerable: true,
|
|
1438
|
-
get: function () { return
|
|
1438
|
+
get: function () { return chunkU2WYUO32_cjs.selectSystemLogSchema; }
|
|
1439
1439
|
});
|
|
1440
1440
|
Object.defineProperty(exports, "selectUserSchema", {
|
|
1441
1441
|
enumerable: true,
|
|
1442
|
-
get: function () { return
|
|
1442
|
+
get: function () { return chunkU2WYUO32_cjs.selectUserSchema; }
|
|
1443
1443
|
});
|
|
1444
1444
|
Object.defineProperty(exports, "selectWorkflowHistorySchema", {
|
|
1445
1445
|
enumerable: true,
|
|
1446
|
-
get: function () { return
|
|
1446
|
+
get: function () { return chunkU2WYUO32_cjs.selectWorkflowHistorySchema; }
|
|
1447
1447
|
});
|
|
1448
1448
|
Object.defineProperty(exports, "systemLogs", {
|
|
1449
1449
|
enumerable: true,
|
|
1450
|
-
get: function () { return
|
|
1450
|
+
get: function () { return chunkU2WYUO32_cjs.systemLogs; }
|
|
1451
1451
|
});
|
|
1452
1452
|
Object.defineProperty(exports, "users", {
|
|
1453
1453
|
enumerable: true,
|
|
1454
|
-
get: function () { return
|
|
1454
|
+
get: function () { return chunkU2WYUO32_cjs.users; }
|
|
1455
1455
|
});
|
|
1456
1456
|
Object.defineProperty(exports, "workflowHistory", {
|
|
1457
1457
|
enumerable: true,
|
|
1458
|
-
get: function () { return
|
|
1458
|
+
get: function () { return chunkU2WYUO32_cjs.workflowHistory; }
|
|
1459
1459
|
});
|
|
1460
1460
|
Object.defineProperty(exports, "AuthManager", {
|
|
1461
1461
|
enumerable: true,
|
|
1462
|
-
get: function () { return
|
|
1462
|
+
get: function () { return chunkWML2ZMHH_cjs.AuthManager; }
|
|
1463
1463
|
});
|
|
1464
1464
|
Object.defineProperty(exports, "PermissionManager", {
|
|
1465
1465
|
enumerable: true,
|
|
1466
|
-
get: function () { return
|
|
1466
|
+
get: function () { return chunkWML2ZMHH_cjs.PermissionManager; }
|
|
1467
1467
|
});
|
|
1468
1468
|
Object.defineProperty(exports, "bootstrapMiddleware", {
|
|
1469
1469
|
enumerable: true,
|
|
1470
|
-
get: function () { return
|
|
1470
|
+
get: function () { return chunkWML2ZMHH_cjs.bootstrapMiddleware; }
|
|
1471
1471
|
});
|
|
1472
1472
|
Object.defineProperty(exports, "cacheHeaders", {
|
|
1473
1473
|
enumerable: true,
|
|
1474
|
-
get: function () { return
|
|
1474
|
+
get: function () { return chunkWML2ZMHH_cjs.cacheHeaders; }
|
|
1475
1475
|
});
|
|
1476
1476
|
Object.defineProperty(exports, "compressionMiddleware", {
|
|
1477
1477
|
enumerable: true,
|
|
1478
|
-
get: function () { return
|
|
1478
|
+
get: function () { return chunkWML2ZMHH_cjs.compressionMiddleware; }
|
|
1479
1479
|
});
|
|
1480
1480
|
Object.defineProperty(exports, "detailedLoggingMiddleware", {
|
|
1481
1481
|
enumerable: true,
|
|
1482
|
-
get: function () { return
|
|
1482
|
+
get: function () { return chunkWML2ZMHH_cjs.detailedLoggingMiddleware; }
|
|
1483
1483
|
});
|
|
1484
1484
|
Object.defineProperty(exports, "getActivePlugins", {
|
|
1485
1485
|
enumerable: true,
|
|
1486
|
-
get: function () { return
|
|
1486
|
+
get: function () { return chunkWML2ZMHH_cjs.getActivePlugins; }
|
|
1487
1487
|
});
|
|
1488
1488
|
Object.defineProperty(exports, "isPluginActive", {
|
|
1489
1489
|
enumerable: true,
|
|
1490
|
-
get: function () { return
|
|
1490
|
+
get: function () { return chunkWML2ZMHH_cjs.isPluginActive; }
|
|
1491
1491
|
});
|
|
1492
1492
|
Object.defineProperty(exports, "logActivity", {
|
|
1493
1493
|
enumerable: true,
|
|
1494
|
-
get: function () { return
|
|
1494
|
+
get: function () { return chunkWML2ZMHH_cjs.logActivity; }
|
|
1495
1495
|
});
|
|
1496
1496
|
Object.defineProperty(exports, "loggingMiddleware", {
|
|
1497
1497
|
enumerable: true,
|
|
1498
|
-
get: function () { return
|
|
1498
|
+
get: function () { return chunkWML2ZMHH_cjs.loggingMiddleware; }
|
|
1499
1499
|
});
|
|
1500
1500
|
Object.defineProperty(exports, "optionalAuth", {
|
|
1501
1501
|
enumerable: true,
|
|
1502
|
-
get: function () { return
|
|
1502
|
+
get: function () { return chunkWML2ZMHH_cjs.optionalAuth; }
|
|
1503
1503
|
});
|
|
1504
1504
|
Object.defineProperty(exports, "performanceLoggingMiddleware", {
|
|
1505
1505
|
enumerable: true,
|
|
1506
|
-
get: function () { return
|
|
1506
|
+
get: function () { return chunkWML2ZMHH_cjs.performanceLoggingMiddleware; }
|
|
1507
1507
|
});
|
|
1508
1508
|
Object.defineProperty(exports, "requireActivePlugin", {
|
|
1509
1509
|
enumerable: true,
|
|
1510
|
-
get: function () { return
|
|
1510
|
+
get: function () { return chunkWML2ZMHH_cjs.requireActivePlugin; }
|
|
1511
1511
|
});
|
|
1512
1512
|
Object.defineProperty(exports, "requireActivePlugins", {
|
|
1513
1513
|
enumerable: true,
|
|
1514
|
-
get: function () { return
|
|
1514
|
+
get: function () { return chunkWML2ZMHH_cjs.requireActivePlugins; }
|
|
1515
1515
|
});
|
|
1516
1516
|
Object.defineProperty(exports, "requireAnyPermission", {
|
|
1517
1517
|
enumerable: true,
|
|
1518
|
-
get: function () { return
|
|
1518
|
+
get: function () { return chunkWML2ZMHH_cjs.requireAnyPermission; }
|
|
1519
1519
|
});
|
|
1520
1520
|
Object.defineProperty(exports, "requireAuth", {
|
|
1521
1521
|
enumerable: true,
|
|
1522
|
-
get: function () { return
|
|
1522
|
+
get: function () { return chunkWML2ZMHH_cjs.requireAuth; }
|
|
1523
1523
|
});
|
|
1524
1524
|
Object.defineProperty(exports, "requirePermission", {
|
|
1525
1525
|
enumerable: true,
|
|
1526
|
-
get: function () { return
|
|
1526
|
+
get: function () { return chunkWML2ZMHH_cjs.requirePermission; }
|
|
1527
1527
|
});
|
|
1528
1528
|
Object.defineProperty(exports, "requireRole", {
|
|
1529
1529
|
enumerable: true,
|
|
1530
|
-
get: function () { return
|
|
1530
|
+
get: function () { return chunkWML2ZMHH_cjs.requireRole; }
|
|
1531
1531
|
});
|
|
1532
1532
|
Object.defineProperty(exports, "securityHeaders", {
|
|
1533
1533
|
enumerable: true,
|
|
1534
|
-
get: function () { return
|
|
1534
|
+
get: function () { return chunkWML2ZMHH_cjs.securityHeaders; }
|
|
1535
1535
|
});
|
|
1536
1536
|
Object.defineProperty(exports, "securityLoggingMiddleware", {
|
|
1537
1537
|
enumerable: true,
|
|
1538
|
-
get: function () { return
|
|
1538
|
+
get: function () { return chunkWML2ZMHH_cjs.securityLoggingMiddleware; }
|
|
1539
1539
|
});
|
|
1540
1540
|
Object.defineProperty(exports, "PluginBootstrapService", {
|
|
1541
1541
|
enumerable: true,
|
|
@@ -1591,7 +1591,7 @@ Object.defineProperty(exports, "validateCollectionConfig", {
|
|
|
1591
1591
|
});
|
|
1592
1592
|
Object.defineProperty(exports, "MigrationService", {
|
|
1593
1593
|
enumerable: true,
|
|
1594
|
-
get: function () { return
|
|
1594
|
+
get: function () { return chunkJQIQRMPA_cjs.MigrationService; }
|
|
1595
1595
|
});
|
|
1596
1596
|
Object.defineProperty(exports, "renderFilterBar", {
|
|
1597
1597
|
enumerable: true,
|
|
@@ -1651,43 +1651,43 @@ Object.defineProperty(exports, "ScopedHookSystemClass", {
|
|
|
1651
1651
|
});
|
|
1652
1652
|
Object.defineProperty(exports, "QueryFilterBuilder", {
|
|
1653
1653
|
enumerable: true,
|
|
1654
|
-
get: function () { return
|
|
1654
|
+
get: function () { return chunkWFHLBYNA_cjs.QueryFilterBuilder; }
|
|
1655
1655
|
});
|
|
1656
1656
|
Object.defineProperty(exports, "SONICJS_VERSION", {
|
|
1657
1657
|
enumerable: true,
|
|
1658
|
-
get: function () { return
|
|
1658
|
+
get: function () { return chunkWFHLBYNA_cjs.SONICJS_VERSION; }
|
|
1659
1659
|
});
|
|
1660
1660
|
Object.defineProperty(exports, "TemplateRenderer", {
|
|
1661
1661
|
enumerable: true,
|
|
1662
|
-
get: function () { return
|
|
1662
|
+
get: function () { return chunkWFHLBYNA_cjs.TemplateRenderer; }
|
|
1663
1663
|
});
|
|
1664
1664
|
Object.defineProperty(exports, "buildQuery", {
|
|
1665
1665
|
enumerable: true,
|
|
1666
|
-
get: function () { return
|
|
1666
|
+
get: function () { return chunkWFHLBYNA_cjs.buildQuery; }
|
|
1667
1667
|
});
|
|
1668
1668
|
Object.defineProperty(exports, "escapeHtml", {
|
|
1669
1669
|
enumerable: true,
|
|
1670
|
-
get: function () { return
|
|
1670
|
+
get: function () { return chunkWFHLBYNA_cjs.escapeHtml; }
|
|
1671
1671
|
});
|
|
1672
1672
|
Object.defineProperty(exports, "getCoreVersion", {
|
|
1673
1673
|
enumerable: true,
|
|
1674
|
-
get: function () { return
|
|
1674
|
+
get: function () { return chunkWFHLBYNA_cjs.getCoreVersion; }
|
|
1675
1675
|
});
|
|
1676
1676
|
Object.defineProperty(exports, "renderTemplate", {
|
|
1677
1677
|
enumerable: true,
|
|
1678
|
-
get: function () { return
|
|
1678
|
+
get: function () { return chunkWFHLBYNA_cjs.renderTemplate; }
|
|
1679
1679
|
});
|
|
1680
1680
|
Object.defineProperty(exports, "sanitizeInput", {
|
|
1681
1681
|
enumerable: true,
|
|
1682
|
-
get: function () { return
|
|
1682
|
+
get: function () { return chunkWFHLBYNA_cjs.sanitizeInput; }
|
|
1683
1683
|
});
|
|
1684
1684
|
Object.defineProperty(exports, "sanitizeObject", {
|
|
1685
1685
|
enumerable: true,
|
|
1686
|
-
get: function () { return
|
|
1686
|
+
get: function () { return chunkWFHLBYNA_cjs.sanitizeObject; }
|
|
1687
1687
|
});
|
|
1688
1688
|
Object.defineProperty(exports, "templateRenderer", {
|
|
1689
1689
|
enumerable: true,
|
|
1690
|
-
get: function () { return
|
|
1690
|
+
get: function () { return chunkWFHLBYNA_cjs.templateRenderer; }
|
|
1691
1691
|
});
|
|
1692
1692
|
Object.defineProperty(exports, "metricsTracker", {
|
|
1693
1693
|
enumerable: true,
|
package/dist/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
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-
|
|
3
|
-
import { schema_exports } from './chunk-
|
|
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-
|
|
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-
|
|
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-QWIXOMHW.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-QWIXOMHW.js';
|
|
3
|
+
import { schema_exports } from './chunk-ZNESOOF2.js';
|
|
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-ZNESOOF2.js';
|
|
5
|
+
import { metricsMiddleware, bootstrapMiddleware, requireAuth } from './chunk-PFNUOW6W.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-PFNUOW6W.js';
|
|
7
7
|
export { PluginBootstrapService, PluginService as PluginServiceClass, cleanupRemovedCollections, fullCollectionSync, getAvailableCollectionNames, getManagedCollections, isCollectionManaged, loadCollectionConfig, loadCollectionConfigs, registerCollections, syncCollection, syncCollections, validateCollectionConfig } from './chunk-LWMMMW43.js';
|
|
8
|
-
export { MigrationService } from './chunk-
|
|
8
|
+
export { MigrationService } from './chunk-I3R77LQC.js';
|
|
9
9
|
export { renderFilterBar } from './chunk-QNWYQZ55.js';
|
|
10
10
|
import { init_admin_layout_catalyst_template, renderAdminLayout, renderAdminLayoutCatalyst } from './chunk-5RKQB2JG.js';
|
|
11
11
|
export { getConfirmationDialogScript, renderAlert, renderConfirmationDialog, renderForm, renderFormField, renderPagination, renderTable } from './chunk-5RKQB2JG.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-
|
|
15
|
-
import './chunk-
|
|
13
|
+
import { package_default, getCoreVersion } from './chunk-ZALNKBLS.js';
|
|
14
|
+
export { QueryFilterBuilder, SONICJS_VERSION, TemplateRenderer, buildQuery, escapeHtml, getCoreVersion, renderTemplate, sanitizeInput, sanitizeObject, templateRenderer } from './chunk-ZALNKBLS.js';
|
|
15
|
+
import './chunk-MOWI4WYE.js';
|
|
16
16
|
export { metricsTracker } from './chunk-FICTAGD4.js';
|
|
17
17
|
export { HOOKS } from './chunk-LOUJRBXV.js';
|
|
18
18
|
import './chunk-V4OQ3NZ2.js';
|