@sonicjs-cms/core 2.17.0 → 2.17.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-RE3NVA23.cjs → chunk-3TVMUQWG.cjs} +8 -8
- package/dist/{chunk-RE3NVA23.cjs.map → chunk-3TVMUQWG.cjs.map} +1 -1
- package/dist/{chunk-4HCUJ3MG.cjs → chunk-47HKH3D6.cjs} +2 -2
- package/dist/{chunk-4HCUJ3MG.cjs.map → chunk-47HKH3D6.cjs.map} +1 -1
- package/dist/{chunk-QBLBIAVZ.cjs → chunk-5EBTBD2Z.cjs} +3 -3
- package/dist/{chunk-QBLBIAVZ.cjs.map → chunk-5EBTBD2Z.cjs.map} +1 -1
- package/dist/{chunk-J5MYHM6Z.cjs → chunk-5ITJB5ZT.cjs} +125 -127
- package/dist/chunk-5ITJB5ZT.cjs.map +1 -0
- package/dist/{chunk-6F57Z6SD.js → chunk-7D7SI5P7.js} +3 -3
- package/dist/{chunk-6F57Z6SD.js.map → chunk-7D7SI5P7.js.map} +1 -1
- package/dist/{chunk-FDXNIZ6N.js → chunk-EUFBU4T4.js} +2 -2
- package/dist/{chunk-FDXNIZ6N.js.map → chunk-EUFBU4T4.js.map} +1 -1
- package/dist/{chunk-FSWP4FBW.cjs → chunk-I6444XLU.cjs} +2 -2
- package/dist/{chunk-FSWP4FBW.cjs.map → chunk-I6444XLU.cjs.map} +1 -1
- package/dist/{chunk-S7K4FRJ2.js → chunk-P5IDHMOL.js} +4 -4
- package/dist/{chunk-S7K4FRJ2.js.map → chunk-P5IDHMOL.js.map} +1 -1
- package/dist/{chunk-NMJT6BJR.js → chunk-QZBZEUZF.js} +2 -2
- package/dist/{chunk-NMJT6BJR.js.map → chunk-QZBZEUZF.js.map} +1 -1
- package/dist/{chunk-LZJLWW7E.js → chunk-UDUHP4PA.js} +11 -13
- package/dist/chunk-UDUHP4PA.js.map +1 -0
- package/dist/index.cjs +140 -140
- package/dist/index.js +9 -9
- package/dist/middleware.cjs +32 -32
- package/dist/middleware.js +3 -3
- package/dist/migrations-3TVS3HU5.js +4 -0
- package/dist/{migrations-HQI62CAO.js.map → migrations-3TVS3HU5.js.map} +1 -1
- package/dist/migrations-VQ4UX4M4.cjs +13 -0
- package/dist/{migrations-ZYPYVSXI.cjs.map → migrations-VQ4UX4M4.cjs.map} +1 -1
- package/dist/routes.cjs +28 -28
- package/dist/routes.js +5 -5
- package/dist/services.cjs +23 -23
- package/dist/services.js +2 -2
- package/dist/utils.cjs +11 -11
- package/dist/utils.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-J5MYHM6Z.cjs.map +0 -1
- package/dist/chunk-LZJLWW7E.js.map +0 -1
- package/dist/migrations-HQI62CAO.js +0 -4
- package/dist/migrations-ZYPYVSXI.cjs +0 -13
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { getCacheService, CACHE_CONFIGS, SettingsService, getLogger, getAppInstance, buildRouteList, CATEGORY_INFO } from './chunk-QFWHAFEO.js';
|
|
2
|
-
import { requireAuth, requireRole, isPluginActive, optionalAuth, rateLimit, AuthManager, getJwtExpirySecondsFromDb, getJwtRefreshGraceSecondsFromDb, logActivity, generateCsrfToken } from './chunk-
|
|
3
|
-
import { PluginService, PLUGIN_REGISTRY, findPluginByCodeName, createContentFromSubmission } from './chunk-
|
|
4
|
-
import { MigrationService } from './chunk-
|
|
2
|
+
import { requireAuth, requireRole, isPluginActive, optionalAuth, rateLimit, AuthManager, getJwtExpirySecondsFromDb, getJwtRefreshGraceSecondsFromDb, logActivity, generateCsrfToken } from './chunk-P5IDHMOL.js';
|
|
3
|
+
import { PluginService, PLUGIN_REGISTRY, findPluginByCodeName, createContentFromSubmission } from './chunk-EUFBU4T4.js';
|
|
4
|
+
import { MigrationService } from './chunk-QZBZEUZF.js';
|
|
5
5
|
import { renderDesignPage, renderCheckboxPage, renderTestimonialsList, renderCodeExamplesList, renderAlert, renderTable, renderPagination, renderConfirmationDialog, getConfirmationDialogScript, renderAdminLayout, adminLayoutV2, renderForm } from './chunk-XWIA3HVX.js';
|
|
6
6
|
import { init_admin_layout_catalyst_template, renderAdminLayoutCatalyst } from './chunk-55RDMDOP.js';
|
|
7
7
|
import { PluginBuilder, TurnstileService } from './chunk-EXNEW5US.js';
|
|
8
|
-
import { QueryFilterBuilder, getCoreVersion, getBlocksFieldConfig, parseBlocksValue } from './chunk-
|
|
8
|
+
import { QueryFilterBuilder, getCoreVersion, getBlocksFieldConfig, parseBlocksValue } from './chunk-7D7SI5P7.js';
|
|
9
9
|
import { metricsTracker } from './chunk-FICTAGD4.js';
|
|
10
10
|
import { escapeHtml, sanitizeRichText, sanitizeInput } from './chunk-TQABQWOP.js';
|
|
11
11
|
import { Hono } from 'hono';
|
|
@@ -2351,7 +2351,7 @@ adminApiRoutes.delete("/collections/:id", async (c) => {
|
|
|
2351
2351
|
});
|
|
2352
2352
|
adminApiRoutes.get("/migrations/status", async (c) => {
|
|
2353
2353
|
try {
|
|
2354
|
-
const { MigrationService: MigrationService2 } = await import('./migrations-
|
|
2354
|
+
const { MigrationService: MigrationService2 } = await import('./migrations-3TVS3HU5.js');
|
|
2355
2355
|
const db = c.env.DB;
|
|
2356
2356
|
const migrationService = new MigrationService2(db);
|
|
2357
2357
|
const status = await migrationService.getMigrationStatus();
|
|
@@ -2376,7 +2376,7 @@ adminApiRoutes.post("/migrations/run", async (c) => {
|
|
|
2376
2376
|
error: "Unauthorized. Admin access required."
|
|
2377
2377
|
}, 403);
|
|
2378
2378
|
}
|
|
2379
|
-
const { MigrationService: MigrationService2 } = await import('./migrations-
|
|
2379
|
+
const { MigrationService: MigrationService2 } = await import('./migrations-3TVS3HU5.js');
|
|
2380
2380
|
const db = c.env.DB;
|
|
2381
2381
|
const migrationService = new MigrationService2(db);
|
|
2382
2382
|
const result = await migrationService.runPendingMigrations();
|
|
@@ -2398,7 +2398,7 @@ adminApiRoutes.post("/migrations/run", async (c) => {
|
|
|
2398
2398
|
});
|
|
2399
2399
|
adminApiRoutes.get("/migrations/validate", async (c) => {
|
|
2400
2400
|
try {
|
|
2401
|
-
const { MigrationService: MigrationService2 } = await import('./migrations-
|
|
2401
|
+
const { MigrationService: MigrationService2 } = await import('./migrations-3TVS3HU5.js');
|
|
2402
2402
|
const db = c.env.DB;
|
|
2403
2403
|
const migrationService = new MigrationService2(db);
|
|
2404
2404
|
const validation = await migrationService.validateSchema();
|
|
@@ -11646,7 +11646,6 @@ function renderUserEditPage(data) {
|
|
|
11646
11646
|
type="text"
|
|
11647
11647
|
name="first_name"
|
|
11648
11648
|
value="${escapeHtml(data.userToEdit.firstName || "")}"
|
|
11649
|
-
required
|
|
11650
11649
|
class="w-full rounded-lg bg-white dark:bg-zinc-800 px-3 py-2 text-sm text-zinc-950 dark:text-white shadow-sm ring-1 ring-inset ring-zinc-950/10 dark:ring-white/10 placeholder:text-zinc-400 dark:placeholder:text-zinc-500 focus:outline-none focus:ring-2 focus:ring-zinc-950 dark:focus:ring-white transition-shadow"
|
|
11651
11650
|
/>
|
|
11652
11651
|
</div>
|
|
@@ -11657,7 +11656,6 @@ function renderUserEditPage(data) {
|
|
|
11657
11656
|
type="text"
|
|
11658
11657
|
name="last_name"
|
|
11659
11658
|
value="${escapeHtml(data.userToEdit.lastName || "")}"
|
|
11660
|
-
required
|
|
11661
11659
|
class="w-full rounded-lg bg-white dark:bg-zinc-800 px-3 py-2 text-sm text-zinc-950 dark:text-white shadow-sm ring-1 ring-inset ring-zinc-950/10 dark:ring-white/10 placeholder:text-zinc-400 dark:placeholder:text-zinc-500 focus:outline-none focus:ring-2 focus:ring-zinc-950 dark:focus:ring-white transition-shadow"
|
|
11662
11660
|
/>
|
|
11663
11661
|
</div>
|
|
@@ -13498,10 +13496,10 @@ userRoutes.put("/users/:id", async (c) => {
|
|
|
13498
13496
|
const merged = { ...existingCustom, ...sanitized };
|
|
13499
13497
|
customDataJson = JSON.stringify(merged);
|
|
13500
13498
|
}
|
|
13501
|
-
if (!
|
|
13499
|
+
if (!username || !email) {
|
|
13502
13500
|
return c.html(renderAlert2({
|
|
13503
13501
|
type: "error",
|
|
13504
|
-
message: "
|
|
13502
|
+
message: "Username and email are required.",
|
|
13505
13503
|
dismissible: true
|
|
13506
13504
|
}));
|
|
13507
13505
|
}
|
|
@@ -29136,5 +29134,5 @@ var ROUTES_INFO = {
|
|
|
29136
29134
|
};
|
|
29137
29135
|
|
|
29138
29136
|
export { ROUTES_INFO, adminCheckboxRoutes, adminCollectionsRoutes, adminDesignRoutes, adminFormsRoutes, adminLogsRoutes, adminMediaRoutes, adminPluginRoutes, adminSettingsRoutes, admin_api_default, admin_code_examples_default, admin_content_default, admin_testimonials_default, api_content_crud_default, api_default, api_media_default, api_system_default, auth_default, createUserProfilesPlugin, defineUserProfile, getConfirmationDialogScript2 as getConfirmationDialogScript, getUserProfileConfig, public_forms_default, renderConfirmationDialog2 as renderConfirmationDialog, router, router2, test_cleanup_default, userProfilesPlugin, userRoutes };
|
|
29139
|
-
//# sourceMappingURL=chunk-
|
|
29140
|
-
//# sourceMappingURL=chunk-
|
|
29137
|
+
//# sourceMappingURL=chunk-UDUHP4PA.js.map
|
|
29138
|
+
//# sourceMappingURL=chunk-UDUHP4PA.js.map
|