@sonicjs-cms/core 3.0.0-beta.6 → 3.0.0-beta.8
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/{filter-bar.template-DlVYMk-T.d.cts → admin-layout-catalyst.template-DrwDUfsE.d.cts} +25 -1
- package/dist/{filter-bar.template-DlVYMk-T.d.ts → admin-layout-catalyst.template-DrwDUfsE.d.ts} +25 -1
- package/dist/{chunk-W7LUKLZW.js → chunk-3AI73SGI.js} +10 -10
- package/dist/{chunk-W7LUKLZW.js.map → chunk-3AI73SGI.js.map} +1 -1
- package/dist/{chunk-BDDABDAB.cjs → chunk-4BTBSXMR.cjs} +2 -239
- package/dist/chunk-4BTBSXMR.cjs.map +1 -0
- package/dist/{chunk-RPORS2HF.js → chunk-4R2C35OT.js} +3 -3
- package/dist/{chunk-RPORS2HF.js.map → chunk-4R2C35OT.js.map} +1 -1
- package/dist/{chunk-FXIVUBMC.cjs → chunk-7O443QPZ.cjs} +57 -11
- package/dist/chunk-7O443QPZ.cjs.map +1 -0
- package/dist/{chunk-CVQMZZNH.js → chunk-DF4YK3JX.js} +4 -4
- package/dist/{chunk-CVQMZZNH.js.map → chunk-DF4YK3JX.js.map} +1 -1
- package/dist/{chunk-7SDH5656.js → chunk-DNQYNBD5.js} +255 -4
- package/dist/chunk-DNQYNBD5.js.map +1 -0
- package/dist/{chunk-GP2K2K3G.cjs → chunk-GVGURCFM.cjs} +2 -2
- package/dist/{chunk-GP2K2K3G.cjs.map → chunk-GVGURCFM.cjs.map} +1 -1
- package/dist/{chunk-D4WJXC6V.js → chunk-HKF5IYA2.js} +2 -2
- package/dist/{chunk-D4WJXC6V.js.map → chunk-HKF5IYA2.js.map} +1 -1
- package/dist/{chunk-26X5DBNW.cjs → chunk-MJ63JSTU.cjs} +258 -3
- package/dist/chunk-MJ63JSTU.cjs.map +1 -0
- package/dist/{chunk-GE4626OK.cjs → chunk-OWNSD75H.cjs} +4 -4
- package/dist/{chunk-GE4626OK.cjs.map → chunk-OWNSD75H.cjs.map} +1 -1
- package/dist/{chunk-ZEZ245PW.js → chunk-RQ6N3FTV.js} +3 -236
- package/dist/chunk-RQ6N3FTV.js.map +1 -0
- package/dist/{chunk-QG7OILOU.cjs → chunk-TKIBLXSL.cjs} +237 -237
- package/dist/{chunk-QG7OILOU.cjs.map → chunk-TKIBLXSL.cjs.map} +1 -1
- package/dist/{chunk-E3C333Y5.js → chunk-VQJVZANG.js} +50 -4
- package/dist/chunk-VQJVZANG.js.map +1 -0
- package/dist/{chunk-3HYVPA3S.js → chunk-WNAFRK7Q.js} +3 -3
- package/dist/{chunk-3HYVPA3S.js.map → chunk-WNAFRK7Q.js.map} +1 -1
- package/dist/{chunk-FPACD2QX.cjs → chunk-XXNQTYXA.cjs} +10 -10
- package/dist/{chunk-FPACD2QX.cjs.map → chunk-XXNQTYXA.cjs.map} +1 -1
- package/dist/{chunk-B52GZLUI.cjs → chunk-YAKNRVAB.cjs} +3 -3
- package/dist/{chunk-B52GZLUI.cjs.map → chunk-YAKNRVAB.cjs.map} +1 -1
- package/dist/index.cjs +264 -260
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +17 -16
- package/dist/index.js.map +1 -1
- package/dist/middleware.cjs +33 -32
- package/dist/middleware.js +4 -3
- package/dist/migrations-6DQKC3RK.cjs +13 -0
- package/dist/{migrations-2VMJH7YB.cjs.map → migrations-6DQKC3RK.cjs.map} +1 -1
- package/dist/migrations-CCMGRLSD.js +4 -0
- package/dist/{migrations-WPLV26J5.js.map → migrations-CCMGRLSD.js.map} +1 -1
- package/dist/plugins.cjs +40 -40
- package/dist/plugins.js +3 -3
- package/dist/routes.cjs +28 -28
- package/dist/routes.js +8 -8
- package/dist/services.cjs +42 -42
- package/dist/services.d.cts +14 -1
- package/dist/services.d.ts +14 -1
- package/dist/services.js +3 -3
- package/dist/{telemetry-B9vIV4wh.d.cts → telemetry-Cku1ax74.d.cts} +1 -1
- package/dist/{telemetry-B9vIV4wh.d.ts → telemetry-Cku1ax74.d.ts} +1 -1
- package/dist/templates.d.cts +2 -24
- package/dist/templates.d.ts +2 -24
- package/dist/types.d.cts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/utils.cjs +8 -8
- package/dist/utils.d.cts +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-26X5DBNW.cjs.map +0 -1
- package/dist/chunk-7SDH5656.js.map +0 -1
- package/dist/chunk-BDDABDAB.cjs.map +0 -1
- package/dist/chunk-E3C333Y5.js.map +0 -1
- package/dist/chunk-FXIVUBMC.cjs.map +0 -1
- package/dist/chunk-ZEZ245PW.js.map +0 -1
- package/dist/migrations-2VMJH7YB.cjs +0 -13
- package/dist/migrations-WPLV26J5.js +0 -4
package/dist/{filter-bar.template-DlVYMk-T.d.cts → admin-layout-catalyst.template-DrwDUfsE.d.cts}
RENAMED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { HtmlEscapedString } from 'hono/utils/html';
|
|
2
|
+
|
|
1
3
|
interface FormField {
|
|
2
4
|
name: string;
|
|
3
5
|
label: string;
|
|
@@ -138,4 +140,26 @@ interface FilterBarData {
|
|
|
138
140
|
}
|
|
139
141
|
declare function renderFilterBar(data: FilterBarData): string;
|
|
140
142
|
|
|
141
|
-
|
|
143
|
+
interface AdminLayoutCatalystData {
|
|
144
|
+
title: string;
|
|
145
|
+
pageTitle?: string;
|
|
146
|
+
currentPath?: string;
|
|
147
|
+
version?: string;
|
|
148
|
+
enableExperimentalFeatures?: boolean;
|
|
149
|
+
user?: {
|
|
150
|
+
name: string;
|
|
151
|
+
email: string;
|
|
152
|
+
role: string;
|
|
153
|
+
};
|
|
154
|
+
scripts?: string[];
|
|
155
|
+
styles?: string[];
|
|
156
|
+
content: string | HtmlEscapedString;
|
|
157
|
+
dynamicMenuItems?: Array<{
|
|
158
|
+
label: string;
|
|
159
|
+
path: string;
|
|
160
|
+
icon: string;
|
|
161
|
+
}>;
|
|
162
|
+
}
|
|
163
|
+
declare function renderAdminLayoutCatalyst(data: AdminLayoutCatalystData): string;
|
|
164
|
+
|
|
165
|
+
export { type AdminLayoutCatalystData as A, type ConfirmationDialogOptions as C, type Filter as F, type PaginationData as P, type TableColumn as T, type AlertData as a, type FilterBarData as b, type FilterOption as c, type FormData as d, type FormField as e, type TableData as f, getConfirmationDialogScript as g, renderAlert as h, renderConfirmationDialog as i, renderFilterBar as j, renderForm as k, renderFormField as l, renderPagination as m, renderTable as n, renderAdminLayoutCatalyst as r };
|
package/dist/{filter-bar.template-DlVYMk-T.d.ts → admin-layout-catalyst.template-DrwDUfsE.d.ts}
RENAMED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { HtmlEscapedString } from 'hono/utils/html';
|
|
2
|
+
|
|
1
3
|
interface FormField {
|
|
2
4
|
name: string;
|
|
3
5
|
label: string;
|
|
@@ -138,4 +140,26 @@ interface FilterBarData {
|
|
|
138
140
|
}
|
|
139
141
|
declare function renderFilterBar(data: FilterBarData): string;
|
|
140
142
|
|
|
141
|
-
|
|
143
|
+
interface AdminLayoutCatalystData {
|
|
144
|
+
title: string;
|
|
145
|
+
pageTitle?: string;
|
|
146
|
+
currentPath?: string;
|
|
147
|
+
version?: string;
|
|
148
|
+
enableExperimentalFeatures?: boolean;
|
|
149
|
+
user?: {
|
|
150
|
+
name: string;
|
|
151
|
+
email: string;
|
|
152
|
+
role: string;
|
|
153
|
+
};
|
|
154
|
+
scripts?: string[];
|
|
155
|
+
styles?: string[];
|
|
156
|
+
content: string | HtmlEscapedString;
|
|
157
|
+
dynamicMenuItems?: Array<{
|
|
158
|
+
label: string;
|
|
159
|
+
path: string;
|
|
160
|
+
icon: string;
|
|
161
|
+
}>;
|
|
162
|
+
}
|
|
163
|
+
declare function renderAdminLayoutCatalyst(data: AdminLayoutCatalystData): string;
|
|
164
|
+
|
|
165
|
+
export { type AdminLayoutCatalystData as A, type ConfirmationDialogOptions as C, type Filter as F, type PaginationData as P, type TableColumn as T, type AlertData as a, type FilterBarData as b, type FilterOption as c, type FormData as d, type FormField as e, type TableData as f, getConfirmationDialogScript as g, renderAlert as h, renderConfirmationDialog as i, renderFilterBar as j, renderForm as k, renderFormField as l, renderPagination as m, renderTable as n, renderAdminLayoutCatalyst as r };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { isFirstUserRegistration, isRegistrationEnabled, authValidationService } from './chunk-IESEVHXL.js';
|
|
2
2
|
import { renderDocumentFormPage, renderAlert } from './chunk-EF2NQUIQ.js';
|
|
3
|
-
import { getCacheService, CACHE_CONFIGS, SettingsService, getLogger, getAppInstance, buildRouteList, CATEGORY_INFO } from './chunk-
|
|
4
|
-
import { DocumentTypeRegistry, requireAuth, requireRole, optionalAuth, isPluginActive, rateLimit, AuthManager, getJwtExpirySecondsFromDb, getJwtRefreshGraceSecondsFromDb, logActivity, generateCsrfToken } from './chunk-
|
|
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-VQJVZANG.js';
|
|
5
5
|
import { DocumentsService, documentSecondsToMs, RbacService } from './chunk-BLMTL57B.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-DNQYNBD5.js';
|
|
8
|
+
import { MigrationService } from './chunk-HKF5IYA2.js';
|
|
9
9
|
import { renderCheckboxPage, renderAlert as renderAlert$1, renderTable, renderPagination, renderConfirmationDialog, getConfirmationDialogScript, renderAdminLayout, adminLayoutV2, renderForm } from './chunk-HDWE5FRJ.js';
|
|
10
10
|
import { init_admin_layout_catalyst_template, renderAdminLayoutCatalyst } from './chunk-3TB6AT6X.js';
|
|
11
|
-
import { createServiceSingleton, definePlugin, getPluginDefinition, applySchemaDefaults, renderSchemaFields, parseFormDataToSettings } from './chunk-
|
|
11
|
+
import { createServiceSingleton, definePlugin, getPluginDefinition, applySchemaDefaults, renderSchemaFields, parseFormDataToSettings } from './chunk-WNAFRK7Q.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-4R2C35OT.js';
|
|
16
16
|
import { escapeHtml, sanitizeRichText, sanitizeInput } from './chunk-TQABQWOP.js';
|
|
17
17
|
import { Hono } from 'hono';
|
|
18
18
|
import { z } from 'zod';
|
|
@@ -3400,7 +3400,7 @@ adminApiRoutes.patch("/collections/:id", collectionsReadOnly);
|
|
|
3400
3400
|
adminApiRoutes.delete("/collections/:id", collectionsReadOnly);
|
|
3401
3401
|
adminApiRoutes.get("/migrations/status", async (c) => {
|
|
3402
3402
|
try {
|
|
3403
|
-
const { MigrationService: MigrationService2 } = await import('./migrations-
|
|
3403
|
+
const { MigrationService: MigrationService2 } = await import('./migrations-CCMGRLSD.js');
|
|
3404
3404
|
const db = c.env.DB;
|
|
3405
3405
|
const migrationService = new MigrationService2(db);
|
|
3406
3406
|
const status = await migrationService.getMigrationStatus();
|
|
@@ -3443,7 +3443,7 @@ adminApiRoutes.post("/migrations/run", async (c) => {
|
|
|
3443
3443
|
});
|
|
3444
3444
|
adminApiRoutes.get("/migrations/validate", async (c) => {
|
|
3445
3445
|
try {
|
|
3446
|
-
const { MigrationService: MigrationService2 } = await import('./migrations-
|
|
3446
|
+
const { MigrationService: MigrationService2 } = await import('./migrations-CCMGRLSD.js');
|
|
3447
3447
|
const db = c.env.DB;
|
|
3448
3448
|
const migrationService = new MigrationService2(db);
|
|
3449
3449
|
const validation = await migrationService.validateSchema();
|
|
@@ -26639,5 +26639,5 @@ var ROUTES_INFO = {
|
|
|
26639
26639
|
};
|
|
26640
26640
|
|
|
26641
26641
|
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, 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 };
|
|
26642
|
-
//# sourceMappingURL=chunk-
|
|
26643
|
-
//# sourceMappingURL=chunk-
|
|
26642
|
+
//# sourceMappingURL=chunk-3AI73SGI.js.map
|
|
26643
|
+
//# sourceMappingURL=chunk-3AI73SGI.js.map
|