@sonicjs-cms/core 2.13.0 → 2.14.0
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-IYFSNRZN.js → chunk-23DP6TO5.js} +13 -10
- package/dist/chunk-23DP6TO5.js.map +1 -0
- package/dist/{chunk-DB2GJJTM.js → chunk-AFGOH2F6.js} +3 -3
- package/dist/{chunk-DB2GJJTM.js.map → chunk-AFGOH2F6.js.map} +1 -1
- package/dist/{chunk-HVTSE2SF.cjs → chunk-DRWSHIFG.cjs} +102 -99
- package/dist/chunk-DRWSHIFG.cjs.map +1 -0
- package/dist/{chunk-CO4B5EYF.js → chunk-GAVTTYMC.js} +3 -3
- package/dist/{chunk-CO4B5EYF.js.map → chunk-GAVTTYMC.js.map} +1 -1
- package/dist/{chunk-3VAKUFNQ.js → chunk-JKNKO6LA.js} +22 -5
- package/dist/chunk-JKNKO6LA.js.map +1 -0
- package/dist/{chunk-SER23XI4.cjs → chunk-KZ2MFGET.cjs} +22 -5
- package/dist/chunk-KZ2MFGET.cjs.map +1 -0
- package/dist/{chunk-XCP5GCBE.cjs → chunk-YULUPQZV.cjs} +3 -3
- package/dist/{chunk-XCP5GCBE.cjs.map → chunk-YULUPQZV.cjs.map} +1 -1
- package/dist/{chunk-EGUDIX6Q.cjs → chunk-YYMPHM3I.cjs} +4 -4
- package/dist/{chunk-EGUDIX6Q.cjs.map → chunk-YYMPHM3I.cjs.map} +1 -1
- package/dist/index.cjs +853 -99
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +763 -9
- package/dist/index.js.map +1 -1
- package/dist/middleware.cjs +28 -28
- package/dist/middleware.js +2 -2
- package/dist/migrations-F7KVA74T.cjs +13 -0
- package/dist/{migrations-GMHTJI7D.cjs.map → migrations-F7KVA74T.cjs.map} +1 -1
- package/dist/migrations-WKONKRN7.js +4 -0
- package/dist/{migrations-IVFIDOSO.js.map → migrations-WKONKRN7.js.map} +1 -1
- package/dist/{plugin-bootstrap-DVGLQrcO.d.cts → plugin-bootstrap-BGwBraaN.d.cts} +1 -0
- package/dist/{plugin-bootstrap-CZ1GDum7.d.ts → plugin-bootstrap-Drns7X9w.d.ts} +1 -0
- package/dist/routes.cjs +27 -27
- package/dist/routes.js +4 -4
- package/dist/services.cjs +2 -2
- package/dist/services.d.cts +1 -1
- package/dist/services.d.ts +1 -1
- package/dist/services.js +1 -1
- package/dist/utils.cjs +11 -11
- package/dist/utils.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-3VAKUFNQ.js.map +0 -1
- package/dist/chunk-HVTSE2SF.cjs.map +0 -1
- package/dist/chunk-IYFSNRZN.js.map +0 -1
- package/dist/chunk-SER23XI4.cjs.map +0 -1
- package/dist/migrations-GMHTJI7D.cjs +0 -13
- package/dist/migrations-IVFIDOSO.js +0 -4
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { getCacheService, CACHE_CONFIGS, SettingsService, getLogger, getAppInstance, buildRouteList, CATEGORY_INFO } from './chunk-TBJY2FF7.js';
|
|
2
|
-
import { requireAuth, requireRole, isPluginActive, optionalAuth, rateLimit, AuthManager, logActivity, generateCsrfToken } from './chunk-
|
|
2
|
+
import { requireAuth, requireRole, isPluginActive, optionalAuth, rateLimit, AuthManager, logActivity, generateCsrfToken } from './chunk-AFGOH2F6.js';
|
|
3
3
|
import { PluginService, createContentFromSubmission } from './chunk-H3XXBAMO.js';
|
|
4
|
-
import { MigrationService } from './chunk-
|
|
4
|
+
import { MigrationService } from './chunk-JKNKO6LA.js';
|
|
5
5
|
import { init_admin_layout_catalyst_template, renderDesignPage, renderCheckboxPage, renderTestimonialsList, renderCodeExamplesList, renderAlert, renderTable, renderPagination, renderConfirmationDialog, getConfirmationDialogScript, renderAdminLayoutCatalyst, renderAdminLayout, adminLayoutV2, renderForm } from './chunk-JTUCC6WZ.js';
|
|
6
6
|
import { PluginBuilder, TurnstileService } from './chunk-J5WGMRSU.js';
|
|
7
|
-
import { QueryFilterBuilder, getCoreVersion, getBlocksFieldConfig, parseBlocksValue } from './chunk-
|
|
7
|
+
import { QueryFilterBuilder, getCoreVersion, getBlocksFieldConfig, parseBlocksValue } from './chunk-GAVTTYMC.js';
|
|
8
8
|
import { metricsTracker } from './chunk-FICTAGD4.js';
|
|
9
9
|
import { escapeHtml, sanitizeRichText, sanitizeInput } from './chunk-TQABQWOP.js';
|
|
10
10
|
import { Hono } from 'hono';
|
|
@@ -2350,7 +2350,7 @@ adminApiRoutes.delete("/collections/:id", async (c) => {
|
|
|
2350
2350
|
});
|
|
2351
2351
|
adminApiRoutes.get("/migrations/status", async (c) => {
|
|
2352
2352
|
try {
|
|
2353
|
-
const { MigrationService: MigrationService2 } = await import('./migrations-
|
|
2353
|
+
const { MigrationService: MigrationService2 } = await import('./migrations-WKONKRN7.js');
|
|
2354
2354
|
const db = c.env.DB;
|
|
2355
2355
|
const migrationService = new MigrationService2(db);
|
|
2356
2356
|
const status = await migrationService.getMigrationStatus();
|
|
@@ -2375,26 +2375,29 @@ adminApiRoutes.post("/migrations/run", async (c) => {
|
|
|
2375
2375
|
error: "Unauthorized. Admin access required."
|
|
2376
2376
|
}, 403);
|
|
2377
2377
|
}
|
|
2378
|
-
const { MigrationService: MigrationService2 } = await import('./migrations-
|
|
2378
|
+
const { MigrationService: MigrationService2 } = await import('./migrations-WKONKRN7.js');
|
|
2379
2379
|
const db = c.env.DB;
|
|
2380
2380
|
const migrationService = new MigrationService2(db);
|
|
2381
2381
|
const result = await migrationService.runPendingMigrations();
|
|
2382
2382
|
return c.json({
|
|
2383
2383
|
success: result.success,
|
|
2384
2384
|
message: result.message,
|
|
2385
|
-
applied: result.applied
|
|
2385
|
+
applied: result.applied,
|
|
2386
|
+
errors: result.errors
|
|
2386
2387
|
});
|
|
2387
2388
|
} catch (error) {
|
|
2388
2389
|
console.error("Error running migrations:", error);
|
|
2390
|
+
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
2389
2391
|
return c.json({
|
|
2390
2392
|
success: false,
|
|
2391
|
-
error:
|
|
2393
|
+
error: `Failed to run migrations: ${errorMessage}`,
|
|
2394
|
+
errors: [errorMessage]
|
|
2392
2395
|
}, 500);
|
|
2393
2396
|
}
|
|
2394
2397
|
});
|
|
2395
2398
|
adminApiRoutes.get("/migrations/validate", async (c) => {
|
|
2396
2399
|
try {
|
|
2397
|
-
const { MigrationService: MigrationService2 } = await import('./migrations-
|
|
2400
|
+
const { MigrationService: MigrationService2 } = await import('./migrations-WKONKRN7.js');
|
|
2398
2401
|
const db = c.env.DB;
|
|
2399
2402
|
const migrationService = new MigrationService2(db);
|
|
2400
2403
|
const validation = await migrationService.validateSchema();
|
|
@@ -29387,5 +29390,5 @@ var ROUTES_INFO = {
|
|
|
29387
29390
|
};
|
|
29388
29391
|
|
|
29389
29392
|
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 };
|
|
29390
|
-
//# sourceMappingURL=chunk-
|
|
29391
|
-
//# sourceMappingURL=chunk-
|
|
29393
|
+
//# sourceMappingURL=chunk-23DP6TO5.js.map
|
|
29394
|
+
//# sourceMappingURL=chunk-23DP6TO5.js.map
|