@sonicjs-cms/core 3.0.0-beta.16 → 3.0.0-beta.17
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-KOXFYFOF.cjs → chunk-3RNDJAZ5.cjs} +4 -4
- package/dist/{chunk-KOXFYFOF.cjs.map → chunk-3RNDJAZ5.cjs.map} +1 -1
- package/dist/{chunk-HYO2MSFI.js → chunk-73KSHGOT.js} +2 -2
- package/dist/{chunk-HYO2MSFI.js.map → chunk-73KSHGOT.js.map} +1 -1
- package/dist/{chunk-IA24HACT.cjs → chunk-7YMMCIWY.cjs} +2 -2
- package/dist/{chunk-IA24HACT.cjs.map → chunk-7YMMCIWY.cjs.map} +1 -1
- package/dist/{chunk-KZIBF2EV.cjs → chunk-C3KSTUEA.cjs} +2 -2
- package/dist/{chunk-KZIBF2EV.cjs.map → chunk-C3KSTUEA.cjs.map} +1 -1
- package/dist/{chunk-UOFRE5PY.js → chunk-CYDEM6SY.js} +13 -13
- package/dist/chunk-CYDEM6SY.js.map +1 -0
- package/dist/{chunk-3XFA3E2F.cjs → chunk-KDRHGEUF.cjs} +3 -3
- package/dist/{chunk-3XFA3E2F.cjs.map → chunk-KDRHGEUF.cjs.map} +1 -1
- package/dist/{chunk-IXUNNFZZ.js → chunk-KXTGLSFY.js} +4 -4
- package/dist/{chunk-IXUNNFZZ.js.map → chunk-KXTGLSFY.js.map} +1 -1
- package/dist/{chunk-LXYDJU6U.cjs → chunk-MJZI3NHR.cjs} +10 -10
- package/dist/{chunk-LXYDJU6U.cjs.map → chunk-MJZI3NHR.cjs.map} +1 -1
- package/dist/{chunk-SC2WZFNQ.cjs → chunk-NOBU34HS.cjs} +206 -206
- package/dist/chunk-NOBU34HS.cjs.map +1 -0
- package/dist/{chunk-PA2UIFB7.js → chunk-OSMPF3PU.js} +5 -5
- package/dist/{chunk-PA2UIFB7.js.map → chunk-OSMPF3PU.js.map} +1 -1
- package/dist/{chunk-JRMBHDGM.js → chunk-RIFCRZYC.js} +3 -3
- package/dist/{chunk-JRMBHDGM.js.map → chunk-RIFCRZYC.js.map} +1 -1
- package/dist/{chunk-7P2IJM4K.js → chunk-Y34TG4TF.js} +3 -3
- package/dist/{chunk-7P2IJM4K.js.map → chunk-Y34TG4TF.js.map} +1 -1
- package/dist/{chunk-KIB7K5LV.js → chunk-YA4V4Y5U.js} +2 -2
- package/dist/{chunk-KIB7K5LV.js.map → chunk-YA4V4Y5U.js.map} +1 -1
- package/dist/{chunk-KMM45BTY.cjs → chunk-ZHQP75SR.cjs} +15 -15
- package/dist/{chunk-KMM45BTY.cjs.map → chunk-ZHQP75SR.cjs.map} +1 -1
- package/dist/index.cjs +259 -259
- package/dist/index.js +13 -13
- package/dist/middleware.cjs +33 -33
- package/dist/middleware.js +4 -4
- package/dist/migrations-7G6QBDSM.js +4 -0
- package/dist/{migrations-F4LBAHQN.js.map → migrations-7G6QBDSM.js.map} +1 -1
- package/dist/migrations-QIRBSVJJ.cjs +13 -0
- package/dist/{migrations-KMCULV6H.cjs.map → migrations-QIRBSVJJ.cjs.map} +1 -1
- package/dist/plugins.cjs +40 -40
- package/dist/plugins.js +3 -3
- package/dist/routes.cjs +26 -26
- package/dist/routes.js +6 -6
- package/dist/services.cjs +18 -18
- package/dist/services.js +2 -2
- package/dist/utils.cjs +3 -3
- package/dist/utils.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-SC2WZFNQ.cjs.map +0 -1
- package/dist/chunk-UOFRE5PY.js.map +0 -1
- package/dist/migrations-F4LBAHQN.js +0 -4
- package/dist/migrations-KMCULV6H.cjs +0 -13
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { isFirstUserRegistration, isRegistrationEnabled, authValidationService } from './chunk-VVYVFCML.js';
|
|
2
2
|
import { renderDocumentFormPage, renderAlert } from './chunk-RMRJGMDE.js';
|
|
3
3
|
import { getCacheService, CACHE_CONFIGS, SettingsService, getLogger, getAppInstance, buildRouteList, CATEGORY_INFO } from './chunk-RQ6N3FTV.js';
|
|
4
|
-
import { DocumentTypeRegistry, requireAuth, requireRole, optionalAuth, isPluginActive, rateLimit, AuthManager, getJwtExpirySecondsFromDb, getJwtRefreshGraceSecondsFromDb, logActivity, generateCsrfToken } from './chunk-
|
|
4
|
+
import { DocumentTypeRegistry, requireAuth, requireRole, optionalAuth, isPluginActive, rateLimit, AuthManager, getJwtExpirySecondsFromDb, getJwtRefreshGraceSecondsFromDb, logActivity, generateCsrfToken } from './chunk-OSMPF3PU.js';
|
|
5
5
|
import { DocumentsService, documentSecondsToMs, RbacService } from './chunk-PDC7DLOV.js';
|
|
6
6
|
import { nanoid } from './chunk-GCDZZNIN.js';
|
|
7
|
-
import { getCollectionRegistry, collectionRecordToRow, loadCollectionConfigs, getVisibleCollections, PluginService, PLUGIN_REGISTRY, findPluginByCodeName, isCodeCollectionInternal, isDbDocTypeInternal, invalidateTenantCache } from './chunk-
|
|
8
|
-
import { MigrationService } from './chunk-
|
|
7
|
+
import { getCollectionRegistry, collectionRecordToRow, loadCollectionConfigs, getVisibleCollections, PluginService, PLUGIN_REGISTRY, findPluginByCodeName, isCodeCollectionInternal, isDbDocTypeInternal, invalidateTenantCache } from './chunk-YA4V4Y5U.js';
|
|
8
|
+
import { MigrationService } from './chunk-73KSHGOT.js';
|
|
9
9
|
import { renderCheckboxPage, renderAlert as renderAlert$1, renderTable, renderPagination, renderConfirmationDialog, getConfirmationDialogScript, renderAdminLayout, adminLayoutV2, renderForm } from './chunk-OBA2RYZN.js';
|
|
10
10
|
import { init_admin_layout_catalyst_template, renderAdminLayoutCatalyst } from './chunk-5V62WT6M.js';
|
|
11
|
-
import { createServiceSingleton, definePlugin, getPluginDefinition, applySchemaDefaults, renderSchemaFields, parseFormDataToSettings } from './chunk-
|
|
11
|
+
import { createServiceSingleton, definePlugin, getPluginDefinition, applySchemaDefaults, renderSchemaFields, parseFormDataToSettings } from './chunk-Y34TG4TF.js';
|
|
12
12
|
import { hasHookSystem, getTypedHooks } from './chunk-RNZFGN4R.js';
|
|
13
13
|
import { QueryFilterBuilder, getBlocksFieldConfig, parseBlocksValue } from './chunk-QZGABF2M.js';
|
|
14
14
|
import { metricsTracker } from './chunk-FICTAGD4.js';
|
|
15
|
-
import { getCoreVersion } from './chunk-
|
|
15
|
+
import { getCoreVersion } from './chunk-RIFCRZYC.js';
|
|
16
16
|
import { escapeHtml, sanitizeRichText, sanitizeInput } from './chunk-TQABQWOP.js';
|
|
17
17
|
import { Hono } from 'hono';
|
|
18
18
|
import { z } from 'zod';
|
|
@@ -3389,7 +3389,7 @@ adminApiRoutes.patch("/collections/:id", collectionsReadOnly);
|
|
|
3389
3389
|
adminApiRoutes.delete("/collections/:id", collectionsReadOnly);
|
|
3390
3390
|
adminApiRoutes.get("/migrations/status", async (c) => {
|
|
3391
3391
|
try {
|
|
3392
|
-
const { MigrationService: MigrationService2 } = await import('./migrations-
|
|
3392
|
+
const { MigrationService: MigrationService2 } = await import('./migrations-7G6QBDSM.js');
|
|
3393
3393
|
const db = c.env.DB;
|
|
3394
3394
|
const migrationService = new MigrationService2(db);
|
|
3395
3395
|
const status = await migrationService.getMigrationStatus();
|
|
@@ -3432,7 +3432,7 @@ adminApiRoutes.post("/migrations/run", async (c) => {
|
|
|
3432
3432
|
});
|
|
3433
3433
|
adminApiRoutes.get("/migrations/validate", async (c) => {
|
|
3434
3434
|
try {
|
|
3435
|
-
const { MigrationService: MigrationService2 } = await import('./migrations-
|
|
3435
|
+
const { MigrationService: MigrationService2 } = await import('./migrations-7G6QBDSM.js');
|
|
3436
3436
|
const db = c.env.DB;
|
|
3437
3437
|
const migrationService = new MigrationService2(db);
|
|
3438
3438
|
const validation = await migrationService.validateSchema();
|
|
@@ -19333,7 +19333,7 @@ function escapeHtmlAttr(value) {
|
|
|
19333
19333
|
function renderPluginSettingsPage(data) {
|
|
19334
19334
|
const { plugin, activity = [], user } = data;
|
|
19335
19335
|
const hasUserSettings = Object.keys(plugin.settings || {}).some((k) => !k.startsWith("_"));
|
|
19336
|
-
const defaultTab = "info";
|
|
19336
|
+
const defaultTab = hasUserSettings ? "settings" : "info";
|
|
19337
19337
|
const pageContent = `
|
|
19338
19338
|
<div class="w-full px-4 sm:px-6 lg:px-8 py-6">
|
|
19339
19339
|
<!-- Header with Back Button -->
|
|
@@ -19394,14 +19394,14 @@ function renderPluginSettingsPage(data) {
|
|
|
19394
19394
|
<!-- Tabs -->
|
|
19395
19395
|
<div class="mb-6">
|
|
19396
19396
|
<nav class="flex space-x-8" aria-label="Tabs">
|
|
19397
|
-
<a href="#info" onclick="showTab('info')" id="info-tab" class="tab-button border-b-2 border-transparent py-2 px-1 text-sm font-medium text-gray-400 hover:text-gray-300">
|
|
19398
|
-
Information
|
|
19399
|
-
</a>
|
|
19400
19397
|
${hasUserSettings ? `
|
|
19401
19398
|
<a href="#settings" onclick="showTab('settings')" id="settings-tab" class="tab-button border-b-2 border-transparent py-2 px-1 text-sm font-medium text-gray-400 hover:text-gray-300">
|
|
19402
19399
|
Settings
|
|
19403
19400
|
</a>
|
|
19404
19401
|
` : ""}
|
|
19402
|
+
<a href="#info" onclick="showTab('info')" id="info-tab" class="tab-button border-b-2 border-transparent py-2 px-1 text-sm font-medium text-gray-400 hover:text-gray-300">
|
|
19403
|
+
Information
|
|
19404
|
+
</a>
|
|
19405
19405
|
<a href="#activity" onclick="showTab('activity')" id="activity-tab" class="tab-button border-b-2 border-transparent py-2 px-1 text-sm font-medium text-gray-400 hover:text-gray-300">
|
|
19406
19406
|
Activity Log
|
|
19407
19407
|
</a>
|
|
@@ -26899,5 +26899,5 @@ var ROUTES_INFO = {
|
|
|
26899
26899
|
};
|
|
26900
26900
|
|
|
26901
26901
|
export { DocumentRepository, ROUTES_INFO, TenantService, VALID_MEMBER_ROLES, adminCheckboxRoutes, adminCollectionsRoutes, adminDocumentsRoutes, adminLogsRoutes, adminMediaRoutes, adminPluginRoutes, adminSettingsRoutes, admin_api_default, admin_content_default, apiDocumentsRoutes, api_content_crud_default, api_default, api_media_default, api_system_default, auth_default, createDocumentSchema, createUserProfilesPlugin, defineUserProfile, denyIfNotAllowed, dispatchHookEvent, getConfirmationDialogScript2 as getConfirmationDialogScript, getCustomData, getEmailService, getUserProfileConfig, getVariablesCached, hasEmailService, invalidateVariablesCache, isValidMemberRole, lexicalEditorPlugin, renderConfirmationDialog2 as renderConfirmationDialog, renderTable2 as renderTable, resolveDocScope, resolveVariablesInObject, router, router2, setEmailService, setVariablesCache, test_cleanup_default, userProfilesPlugin, userRoutes };
|
|
26902
|
-
//# sourceMappingURL=chunk-
|
|
26903
|
-
//# sourceMappingURL=chunk-
|
|
26902
|
+
//# sourceMappingURL=chunk-CYDEM6SY.js.map
|
|
26903
|
+
//# sourceMappingURL=chunk-CYDEM6SY.js.map
|