@sonicjs-cms/core 3.0.0-beta.7 → 3.0.0-beta.9

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.
Files changed (73) hide show
  1. package/dist/{filter-bar.template-DlVYMk-T.d.cts → admin-layout-catalyst.template-DrwDUfsE.d.cts} +25 -1
  2. package/dist/{filter-bar.template-DlVYMk-T.d.ts → admin-layout-catalyst.template-DrwDUfsE.d.ts} +25 -1
  3. package/dist/{chunk-GO2NICMM.cjs → chunk-2FONGKMG.cjs} +237 -237
  4. package/dist/{chunk-GO2NICMM.cjs.map → chunk-2FONGKMG.cjs.map} +1 -1
  5. package/dist/{chunk-GVHST4D7.js → chunk-3WSZNGIK.js} +50 -4
  6. package/dist/chunk-3WSZNGIK.js.map +1 -0
  7. package/dist/{chunk-BDDABDAB.cjs → chunk-4BTBSXMR.cjs} +2 -239
  8. package/dist/chunk-4BTBSXMR.cjs.map +1 -0
  9. package/dist/{chunk-7RY3YKI7.cjs → chunk-7AMFLNK6.cjs} +3 -3
  10. package/dist/{chunk-7RY3YKI7.cjs.map → chunk-7AMFLNK6.cjs.map} +1 -1
  11. package/dist/{chunk-WACUJVXY.cjs → chunk-C5RJWUZX.cjs} +57 -11
  12. package/dist/chunk-C5RJWUZX.cjs.map +1 -0
  13. package/dist/{chunk-2JOMHEKO.js → chunk-E2LLKPFQ.js} +3 -3
  14. package/dist/{chunk-2JOMHEKO.js.map → chunk-E2LLKPFQ.js.map} +1 -1
  15. package/dist/{chunk-5QVYEAVV.cjs → chunk-ITXAUOBC.cjs} +10 -10
  16. package/dist/{chunk-5QVYEAVV.cjs.map → chunk-ITXAUOBC.cjs.map} +1 -1
  17. package/dist/{chunk-2RJDEVB3.cjs → chunk-J46JBAZX.cjs} +2 -2
  18. package/dist/{chunk-2RJDEVB3.cjs.map → chunk-J46JBAZX.cjs.map} +1 -1
  19. package/dist/{chunk-XCPIXYOP.js → chunk-NSE36XKR.js} +4 -4
  20. package/dist/{chunk-XCPIXYOP.js.map → chunk-NSE36XKR.js.map} +1 -1
  21. package/dist/{chunk-WJTMTIYR.js → chunk-PYVFXCSD.js} +255 -3
  22. package/dist/chunk-PYVFXCSD.js.map +1 -0
  23. package/dist/{chunk-OECDF2RF.cjs → chunk-R4ILO3W6.cjs} +258 -2
  24. package/dist/chunk-R4ILO3W6.cjs.map +1 -0
  25. package/dist/{chunk-ZEZ245PW.js → chunk-RQ6N3FTV.js} +3 -236
  26. package/dist/chunk-RQ6N3FTV.js.map +1 -0
  27. package/dist/{chunk-ISIRU7AK.cjs → chunk-RU5TA4J7.cjs} +4 -4
  28. package/dist/{chunk-ISIRU7AK.cjs.map → chunk-RU5TA4J7.cjs.map} +1 -1
  29. package/dist/{chunk-BYCBFBUG.js → chunk-SBVOWPJ5.js} +2 -2
  30. package/dist/{chunk-BYCBFBUG.js.map → chunk-SBVOWPJ5.js.map} +1 -1
  31. package/dist/{chunk-LH7RKNUW.js → chunk-VHYQ67LW.js} +10 -10
  32. package/dist/{chunk-LH7RKNUW.js.map → chunk-VHYQ67LW.js.map} +1 -1
  33. package/dist/{chunk-POGSN5WI.js → chunk-ZHPOJZRR.js} +3 -3
  34. package/dist/{chunk-POGSN5WI.js.map → chunk-ZHPOJZRR.js.map} +1 -1
  35. package/dist/index.cjs +264 -260
  36. package/dist/index.cjs.map +1 -1
  37. package/dist/index.d.cts +2 -1
  38. package/dist/index.d.ts +2 -1
  39. package/dist/index.js +17 -16
  40. package/dist/index.js.map +1 -1
  41. package/dist/middleware.cjs +33 -32
  42. package/dist/middleware.js +4 -3
  43. package/dist/migrations-6MRNHE2W.cjs +13 -0
  44. package/dist/{migrations-TBEFSZIV.cjs.map → migrations-6MRNHE2W.cjs.map} +1 -1
  45. package/dist/migrations-SBX554MG.js +4 -0
  46. package/dist/{migrations-IEWABLIP.js.map → migrations-SBX554MG.js.map} +1 -1
  47. package/dist/plugins.cjs +40 -40
  48. package/dist/plugins.js +3 -3
  49. package/dist/routes.cjs +28 -28
  50. package/dist/routes.js +8 -8
  51. package/dist/services.cjs +42 -42
  52. package/dist/services.d.cts +14 -1
  53. package/dist/services.d.ts +14 -1
  54. package/dist/services.js +3 -3
  55. package/dist/{telemetry-B9vIV4wh.d.cts → telemetry-Cku1ax74.d.cts} +1 -1
  56. package/dist/{telemetry-B9vIV4wh.d.ts → telemetry-Cku1ax74.d.ts} +1 -1
  57. package/dist/templates.d.cts +2 -24
  58. package/dist/templates.d.ts +2 -24
  59. package/dist/types.d.cts +1 -1
  60. package/dist/types.d.ts +1 -1
  61. package/dist/utils.cjs +8 -8
  62. package/dist/utils.d.cts +1 -1
  63. package/dist/utils.d.ts +1 -1
  64. package/dist/utils.js +2 -2
  65. package/package.json +1 -1
  66. package/dist/chunk-BDDABDAB.cjs.map +0 -1
  67. package/dist/chunk-GVHST4D7.js.map +0 -1
  68. package/dist/chunk-OECDF2RF.cjs.map +0 -1
  69. package/dist/chunk-WACUJVXY.cjs.map +0 -1
  70. package/dist/chunk-WJTMTIYR.js.map +0 -1
  71. package/dist/chunk-ZEZ245PW.js.map +0 -1
  72. package/dist/migrations-IEWABLIP.js +0 -4
  73. package/dist/migrations-TBEFSZIV.cjs +0 -13
package/dist/services.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var chunkBDDABDAB_cjs = require('./chunk-BDDABDAB.cjs');
3
+ var chunk4BTBSXMR_cjs = require('./chunk-4BTBSXMR.cjs');
4
4
  require('./chunk-YA3TJ65D.cjs');
5
5
  require('./chunk-YP7GW2G5.cjs');
6
- var chunkOECDF2RF_cjs = require('./chunk-OECDF2RF.cjs');
7
- var chunk2RJDEVB3_cjs = require('./chunk-2RJDEVB3.cjs');
6
+ var chunkR4ILO3W6_cjs = require('./chunk-R4ILO3W6.cjs');
7
+ var chunkJ46JBAZX_cjs = require('./chunk-J46JBAZX.cjs');
8
8
  require('./chunk-P3XDZL6Q.cjs');
9
9
  require('./chunk-MNWKYY5E.cjs');
10
10
  require('./chunk-IGJUBJBW.cjs');
@@ -13,111 +13,111 @@ require('./chunk-IGJUBJBW.cjs');
13
13
 
14
14
  Object.defineProperty(exports, "CACHE_CONFIGS", {
15
15
  enumerable: true,
16
- get: function () { return chunkBDDABDAB_cjs.CACHE_CONFIGS; }
16
+ get: function () { return chunk4BTBSXMR_cjs.CACHE_CONFIGS; }
17
17
  });
18
18
  Object.defineProperty(exports, "CATEGORY_INFO", {
19
19
  enumerable: true,
20
- get: function () { return chunkBDDABDAB_cjs.CATEGORY_INFO; }
20
+ get: function () { return chunk4BTBSXMR_cjs.CATEGORY_INFO; }
21
21
  });
22
22
  Object.defineProperty(exports, "CacheService", {
23
23
  enumerable: true,
24
- get: function () { return chunkBDDABDAB_cjs.CacheService; }
24
+ get: function () { return chunk4BTBSXMR_cjs.CacheService; }
25
25
  });
26
26
  Object.defineProperty(exports, "Logger", {
27
27
  enumerable: true,
28
- get: function () { return chunkBDDABDAB_cjs.Logger; }
28
+ get: function () { return chunk4BTBSXMR_cjs.Logger; }
29
29
  });
30
30
  Object.defineProperty(exports, "SettingsService", {
31
31
  enumerable: true,
32
- get: function () { return chunkBDDABDAB_cjs.SettingsService; }
33
- });
34
- Object.defineProperty(exports, "TelemetryService", {
35
- enumerable: true,
36
- get: function () { return chunkBDDABDAB_cjs.TelemetryService; }
32
+ get: function () { return chunk4BTBSXMR_cjs.SettingsService; }
37
33
  });
38
34
  Object.defineProperty(exports, "buildRouteList", {
39
35
  enumerable: true,
40
- get: function () { return chunkBDDABDAB_cjs.buildRouteList; }
41
- });
42
- Object.defineProperty(exports, "createInstallationIdentity", {
43
- enumerable: true,
44
- get: function () { return chunkBDDABDAB_cjs.createInstallationIdentity; }
36
+ get: function () { return chunk4BTBSXMR_cjs.buildRouteList; }
45
37
  });
46
38
  Object.defineProperty(exports, "getAppInstance", {
47
39
  enumerable: true,
48
- get: function () { return chunkBDDABDAB_cjs.getAppInstance; }
40
+ get: function () { return chunk4BTBSXMR_cjs.getAppInstance; }
49
41
  });
50
42
  Object.defineProperty(exports, "getCacheService", {
51
43
  enumerable: true,
52
- get: function () { return chunkBDDABDAB_cjs.getCacheService; }
44
+ get: function () { return chunk4BTBSXMR_cjs.getCacheService; }
53
45
  });
54
46
  Object.defineProperty(exports, "getLogger", {
55
47
  enumerable: true,
56
- get: function () { return chunkBDDABDAB_cjs.getLogger; }
57
- });
58
- Object.defineProperty(exports, "getTelemetryService", {
59
- enumerable: true,
60
- get: function () { return chunkBDDABDAB_cjs.getTelemetryService; }
48
+ get: function () { return chunk4BTBSXMR_cjs.getLogger; }
61
49
  });
62
50
  Object.defineProperty(exports, "initLogger", {
63
51
  enumerable: true,
64
- get: function () { return chunkBDDABDAB_cjs.initLogger; }
65
- });
66
- Object.defineProperty(exports, "initTelemetry", {
67
- enumerable: true,
68
- get: function () { return chunkBDDABDAB_cjs.initTelemetry; }
52
+ get: function () { return chunk4BTBSXMR_cjs.initLogger; }
69
53
  });
70
54
  Object.defineProperty(exports, "setAppInstance", {
71
55
  enumerable: true,
72
- get: function () { return chunkBDDABDAB_cjs.setAppInstance; }
56
+ get: function () { return chunk4BTBSXMR_cjs.setAppInstance; }
73
57
  });
74
58
  Object.defineProperty(exports, "CollectionRegistry", {
75
59
  enumerable: true,
76
- get: function () { return chunkOECDF2RF_cjs.CollectionRegistry; }
60
+ get: function () { return chunkR4ILO3W6_cjs.CollectionRegistry; }
77
61
  });
78
62
  Object.defineProperty(exports, "PluginBootstrapService", {
79
63
  enumerable: true,
80
- get: function () { return chunkOECDF2RF_cjs.PluginBootstrapService; }
64
+ get: function () { return chunkR4ILO3W6_cjs.PluginBootstrapService; }
81
65
  });
82
66
  Object.defineProperty(exports, "PluginService", {
83
67
  enumerable: true,
84
- get: function () { return chunkOECDF2RF_cjs.PluginService; }
68
+ get: function () { return chunkR4ILO3W6_cjs.PluginService; }
69
+ });
70
+ Object.defineProperty(exports, "TelemetryService", {
71
+ enumerable: true,
72
+ get: function () { return chunkR4ILO3W6_cjs.TelemetryService; }
85
73
  });
86
74
  Object.defineProperty(exports, "collectionRecordToRow", {
87
75
  enumerable: true,
88
- get: function () { return chunkOECDF2RF_cjs.collectionRecordToRow; }
76
+ get: function () { return chunkR4ILO3W6_cjs.collectionRecordToRow; }
77
+ });
78
+ Object.defineProperty(exports, "createInstallationIdentity", {
79
+ enumerable: true,
80
+ get: function () { return chunkR4ILO3W6_cjs.createInstallationIdentity; }
89
81
  });
90
82
  Object.defineProperty(exports, "getAvailableCollectionNames", {
91
83
  enumerable: true,
92
- get: function () { return chunkOECDF2RF_cjs.getAvailableCollectionNames; }
84
+ get: function () { return chunkR4ILO3W6_cjs.getAvailableCollectionNames; }
93
85
  });
94
86
  Object.defineProperty(exports, "getCollectionRegistry", {
95
87
  enumerable: true,
96
- get: function () { return chunkOECDF2RF_cjs.getCollectionRegistry; }
88
+ get: function () { return chunkR4ILO3W6_cjs.getCollectionRegistry; }
89
+ });
90
+ Object.defineProperty(exports, "getTelemetryService", {
91
+ enumerable: true,
92
+ get: function () { return chunkR4ILO3W6_cjs.getTelemetryService; }
93
+ });
94
+ Object.defineProperty(exports, "initTelemetry", {
95
+ enumerable: true,
96
+ get: function () { return chunkR4ILO3W6_cjs.initTelemetry; }
97
97
  });
98
98
  Object.defineProperty(exports, "loadCollectionConfig", {
99
99
  enumerable: true,
100
- get: function () { return chunkOECDF2RF_cjs.loadCollectionConfig; }
100
+ get: function () { return chunkR4ILO3W6_cjs.loadCollectionConfig; }
101
101
  });
102
102
  Object.defineProperty(exports, "loadCollectionConfigs", {
103
103
  enumerable: true,
104
- get: function () { return chunkOECDF2RF_cjs.loadCollectionConfigs; }
104
+ get: function () { return chunkR4ILO3W6_cjs.loadCollectionConfigs; }
105
105
  });
106
106
  Object.defineProperty(exports, "registerCollections", {
107
107
  enumerable: true,
108
- get: function () { return chunkOECDF2RF_cjs.registerCollections; }
108
+ get: function () { return chunkR4ILO3W6_cjs.registerCollections; }
109
109
  });
110
110
  Object.defineProperty(exports, "resetCollectionRegistry", {
111
111
  enumerable: true,
112
- get: function () { return chunkOECDF2RF_cjs.resetCollectionRegistry; }
112
+ get: function () { return chunkR4ILO3W6_cjs.resetCollectionRegistry; }
113
113
  });
114
114
  Object.defineProperty(exports, "validateCollectionConfig", {
115
115
  enumerable: true,
116
- get: function () { return chunkOECDF2RF_cjs.validateCollectionConfig; }
116
+ get: function () { return chunkR4ILO3W6_cjs.validateCollectionConfig; }
117
117
  });
118
118
  Object.defineProperty(exports, "MigrationService", {
119
119
  enumerable: true,
120
- get: function () { return chunk2RJDEVB3_cjs.MigrationService; }
120
+ get: function () { return chunkJ46JBAZX_cjs.MigrationService; }
121
121
  });
122
122
  //# sourceMappingURL=services.cjs.map
123
123
  //# sourceMappingURL=services.cjs.map
@@ -1,6 +1,6 @@
1
1
  export { C as CorePlugin, L as LogCategory, a as LogEntry, b as LogFilter, c as LogLevel, d as Logger, M as Migration, e as MigrationService, f as MigrationStatus, P as PluginBootstrapService, g as PluginService, h as getAvailableCollectionNames, i as getLogger, j as initLogger, l as loadCollectionConfig, k as loadCollectionConfigs, r as registerCollections, v as validateCollectionConfig } from './plugin-bootstrap-B8ThJU21.cjs';
2
2
  import { C as CollectionConfig } from './collection-config-JgHOpFCG.cjs';
3
- import { T as TelemetryConfig, b as TelemetryIdentity, a as TelemetryEvent, c as TelemetryProperties } from './telemetry-B9vIV4wh.cjs';
3
+ import { T as TelemetryConfig, b as TelemetryIdentity, a as TelemetryEvent, c as TelemetryProperties } from './telemetry-Cku1ax74.cjs';
4
4
  import '@cloudflare/workers-types';
5
5
  import 'drizzle-zod';
6
6
  import 'drizzle-orm/sqlite-core';
@@ -227,6 +227,19 @@ declare class TelemetryService {
227
227
  * Track migration run
228
228
  */
229
229
  trackMigrationRun(properties?: TelemetryProperties): Promise<void>;
230
+ /**
231
+ * Track project snapshot — fired on bootstrap to capture runtime project shape.
232
+ * Arrays serialized as JSON strings (sanitizeProperties strips objects/arrays).
233
+ */
234
+ trackProjectSnapshot(data: {
235
+ installation_id: string;
236
+ collection_names: string[];
237
+ collection_counts: Record<string, number>;
238
+ active_plugins: string[];
239
+ field_type_histogram: Record<string, number>;
240
+ doc_total: number;
241
+ sonicjs_version: string;
242
+ }): Promise<void>;
230
243
  /**
231
244
  * Flush queued events
232
245
  */
@@ -1,6 +1,6 @@
1
1
  export { C as CorePlugin, L as LogCategory, a as LogEntry, b as LogFilter, c as LogLevel, d as Logger, M as Migration, e as MigrationService, f as MigrationStatus, P as PluginBootstrapService, g as PluginService, h as getAvailableCollectionNames, i as getLogger, j as initLogger, l as loadCollectionConfig, k as loadCollectionConfigs, r as registerCollections, v as validateCollectionConfig } from './plugin-bootstrap-qu8hJgUt.js';
2
2
  import { C as CollectionConfig } from './collection-config-JgHOpFCG.js';
3
- import { T as TelemetryConfig, b as TelemetryIdentity, a as TelemetryEvent, c as TelemetryProperties } from './telemetry-B9vIV4wh.js';
3
+ import { T as TelemetryConfig, b as TelemetryIdentity, a as TelemetryEvent, c as TelemetryProperties } from './telemetry-Cku1ax74.js';
4
4
  import '@cloudflare/workers-types';
5
5
  import 'drizzle-zod';
6
6
  import 'drizzle-orm/sqlite-core';
@@ -227,6 +227,19 @@ declare class TelemetryService {
227
227
  * Track migration run
228
228
  */
229
229
  trackMigrationRun(properties?: TelemetryProperties): Promise<void>;
230
+ /**
231
+ * Track project snapshot — fired on bootstrap to capture runtime project shape.
232
+ * Arrays serialized as JSON strings (sanitizeProperties strips objects/arrays).
233
+ */
234
+ trackProjectSnapshot(data: {
235
+ installation_id: string;
236
+ collection_names: string[];
237
+ collection_counts: Record<string, number>;
238
+ active_plugins: string[];
239
+ field_type_histogram: Record<string, number>;
240
+ doc_total: number;
241
+ sonicjs_version: string;
242
+ }): Promise<void>;
230
243
  /**
231
244
  * Flush queued events
232
245
  */
package/dist/services.js CHANGED
@@ -1,8 +1,8 @@
1
- export { CACHE_CONFIGS, CATEGORY_INFO, CacheService, Logger, SettingsService, TelemetryService, buildRouteList, createInstallationIdentity, getAppInstance, getCacheService, getLogger, getTelemetryService, initLogger, initTelemetry, setAppInstance } from './chunk-ZEZ245PW.js';
1
+ export { CACHE_CONFIGS, CATEGORY_INFO, CacheService, Logger, SettingsService, buildRouteList, getAppInstance, getCacheService, getLogger, initLogger, setAppInstance } from './chunk-RQ6N3FTV.js';
2
2
  import './chunk-K25XHMM3.js';
3
3
  import './chunk-AI663NBO.js';
4
- export { CollectionRegistry, PluginBootstrapService, PluginService, collectionRecordToRow, getAvailableCollectionNames, getCollectionRegistry, loadCollectionConfig, loadCollectionConfigs, registerCollections, resetCollectionRegistry, validateCollectionConfig } from './chunk-WJTMTIYR.js';
5
- export { MigrationService } from './chunk-BYCBFBUG.js';
4
+ export { CollectionRegistry, PluginBootstrapService, PluginService, TelemetryService, collectionRecordToRow, createInstallationIdentity, getAvailableCollectionNames, getCollectionRegistry, getTelemetryService, initTelemetry, loadCollectionConfig, loadCollectionConfigs, registerCollections, resetCollectionRegistry, validateCollectionConfig } from './chunk-PYVFXCSD.js';
5
+ export { MigrationService } from './chunk-SBVOWPJ5.js';
6
6
  import './chunk-X7ZAEI5S.js';
7
7
  import './chunk-TQABQWOP.js';
8
8
  import './chunk-V4OQ3NZ2.js';
@@ -4,7 +4,7 @@
4
4
  * Privacy-first telemetry types for SonicJS
5
5
  * No PII (Personally Identifiable Information) is collected
6
6
  */
7
- type TelemetryEvent = 'installation_started' | 'installation_completed' | 'installation_failed' | 'setup_wizard_started' | 'setup_wizard_completed' | 'first_dev_server_start' | 'dev_server_started' | 'dev_server_stopped' | 'admin_login' | 'plugin_activated' | 'plugin_deactivated' | 'collection_created' | 'content_created' | 'page_viewed' | 'feature_used' | 'error_occurred' | 'migration_run' | 'deployment_triggered';
7
+ type TelemetryEvent = 'installation_started' | 'installation_completed' | 'installation_failed' | 'setup_wizard_started' | 'setup_wizard_completed' | 'first_dev_server_start' | 'dev_server_started' | 'dev_server_stopped' | 'admin_login' | 'plugin_activated' | 'plugin_deactivated' | 'collection_created' | 'content_created' | 'page_viewed' | 'feature_used' | 'error_occurred' | 'migration_run' | 'deployment_triggered' | 'project_snapshot';
8
8
  interface TelemetryProperties {
9
9
  os?: 'darwin' | 'linux' | 'win32' | string;
10
10
  nodeVersion?: string;
@@ -4,7 +4,7 @@
4
4
  * Privacy-first telemetry types for SonicJS
5
5
  * No PII (Personally Identifiable Information) is collected
6
6
  */
7
- type TelemetryEvent = 'installation_started' | 'installation_completed' | 'installation_failed' | 'setup_wizard_started' | 'setup_wizard_completed' | 'first_dev_server_start' | 'dev_server_started' | 'dev_server_stopped' | 'admin_login' | 'plugin_activated' | 'plugin_deactivated' | 'collection_created' | 'content_created' | 'page_viewed' | 'feature_used' | 'error_occurred' | 'migration_run' | 'deployment_triggered';
7
+ type TelemetryEvent = 'installation_started' | 'installation_completed' | 'installation_failed' | 'setup_wizard_started' | 'setup_wizard_completed' | 'first_dev_server_start' | 'dev_server_started' | 'dev_server_stopped' | 'admin_login' | 'plugin_activated' | 'plugin_deactivated' | 'collection_created' | 'content_created' | 'page_viewed' | 'feature_used' | 'error_occurred' | 'migration_run' | 'deployment_triggered' | 'project_snapshot';
8
8
  interface TelemetryProperties {
9
9
  os?: 'darwin' | 'linux' | 'win32' | string;
10
10
  nodeVersion?: string;
@@ -1,4 +1,4 @@
1
- export { A as AlertData, C as ConfirmationDialogOptions, F as Filter, a as FilterBarData, b as FilterOption, c as FormData, d as FormField, P as PaginationData, T as TableColumn, e as TableData, g as getConfirmationDialogScript, r as renderAlert, f as renderConfirmationDialog, h as renderFilterBar, i as renderForm, j as renderFormField, k as renderPagination, l as renderTable } from './filter-bar.template-DlVYMk-T.cjs';
1
+ export { A as AdminLayoutCatalystData, a as AlertData, C as ConfirmationDialogOptions, F as Filter, b as FilterBarData, c as FilterOption, d as FormData, e as FormField, P as PaginationData, T as TableColumn, f as TableData, g as getConfirmationDialogScript, r as renderAdminLayoutCatalyst, h as renderAlert, i as renderConfirmationDialog, j as renderFilterBar, k as renderForm, l as renderFormField, m as renderPagination, n as renderTable } from './admin-layout-catalyst.template-DrwDUfsE.cjs';
2
2
  import { HtmlEscapedString } from 'hono/utils/html';
3
3
 
4
4
  interface AdminLayoutData {
@@ -23,28 +23,6 @@ interface AdminLayoutData {
23
23
  }
24
24
  declare function renderAdminLayout(data: AdminLayoutData): string;
25
25
 
26
- interface AdminLayoutCatalystData {
27
- title: string;
28
- pageTitle?: string;
29
- currentPath?: string;
30
- version?: string;
31
- enableExperimentalFeatures?: boolean;
32
- user?: {
33
- name: string;
34
- email: string;
35
- role: string;
36
- };
37
- scripts?: string[];
38
- styles?: string[];
39
- content: string | HtmlEscapedString;
40
- dynamicMenuItems?: Array<{
41
- label: string;
42
- path: string;
43
- icon: string;
44
- }>;
45
- }
46
- declare function renderAdminLayoutCatalyst(data: AdminLayoutCatalystData): string;
47
-
48
26
  interface LogoData {
49
27
  size?: 'sm' | 'md' | 'lg' | 'xl';
50
28
  variant?: 'default' | 'white' | 'dark';
@@ -85,4 +63,4 @@ interface FormsExamplesPageData {
85
63
  }
86
64
  declare function renderFormsExamplesPage(data: FormsExamplesPageData): string;
87
65
 
88
- export { type AdminLayoutCatalystData, type AdminLayoutData, type CheckboxPageData, type FormsDocsPageData, type FormsExamplesPageData, renderAdminLayout, renderAdminLayoutCatalyst, renderCheckboxPage, renderFormsDocsPage, renderFormsExamplesPage, renderLogo };
66
+ export { type AdminLayoutData, type CheckboxPageData, type FormsDocsPageData, type FormsExamplesPageData, renderAdminLayout, renderCheckboxPage, renderFormsDocsPage, renderFormsExamplesPage, renderLogo };
@@ -1,4 +1,4 @@
1
- export { A as AlertData, C as ConfirmationDialogOptions, F as Filter, a as FilterBarData, b as FilterOption, c as FormData, d as FormField, P as PaginationData, T as TableColumn, e as TableData, g as getConfirmationDialogScript, r as renderAlert, f as renderConfirmationDialog, h as renderFilterBar, i as renderForm, j as renderFormField, k as renderPagination, l as renderTable } from './filter-bar.template-DlVYMk-T.js';
1
+ export { A as AdminLayoutCatalystData, a as AlertData, C as ConfirmationDialogOptions, F as Filter, b as FilterBarData, c as FilterOption, d as FormData, e as FormField, P as PaginationData, T as TableColumn, f as TableData, g as getConfirmationDialogScript, r as renderAdminLayoutCatalyst, h as renderAlert, i as renderConfirmationDialog, j as renderFilterBar, k as renderForm, l as renderFormField, m as renderPagination, n as renderTable } from './admin-layout-catalyst.template-DrwDUfsE.js';
2
2
  import { HtmlEscapedString } from 'hono/utils/html';
3
3
 
4
4
  interface AdminLayoutData {
@@ -23,28 +23,6 @@ interface AdminLayoutData {
23
23
  }
24
24
  declare function renderAdminLayout(data: AdminLayoutData): string;
25
25
 
26
- interface AdminLayoutCatalystData {
27
- title: string;
28
- pageTitle?: string;
29
- currentPath?: string;
30
- version?: string;
31
- enableExperimentalFeatures?: boolean;
32
- user?: {
33
- name: string;
34
- email: string;
35
- role: string;
36
- };
37
- scripts?: string[];
38
- styles?: string[];
39
- content: string | HtmlEscapedString;
40
- dynamicMenuItems?: Array<{
41
- label: string;
42
- path: string;
43
- icon: string;
44
- }>;
45
- }
46
- declare function renderAdminLayoutCatalyst(data: AdminLayoutCatalystData): string;
47
-
48
26
  interface LogoData {
49
27
  size?: 'sm' | 'md' | 'lg' | 'xl';
50
28
  variant?: 'default' | 'white' | 'dark';
@@ -85,4 +63,4 @@ interface FormsExamplesPageData {
85
63
  }
86
64
  declare function renderFormsExamplesPage(data: FormsExamplesPageData): string;
87
65
 
88
- export { type AdminLayoutCatalystData, type AdminLayoutData, type CheckboxPageData, type FormsDocsPageData, type FormsExamplesPageData, renderAdminLayout, renderAdminLayoutCatalyst, renderCheckboxPage, renderFormsDocsPage, renderFormsExamplesPage, renderLogo };
66
+ export { type AdminLayoutData, type CheckboxPageData, type FormsDocsPageData, type FormsExamplesPageData, renderAdminLayout, renderCheckboxPage, renderFormsDocsPage, renderFormsExamplesPage, renderLogo };
package/dist/types.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  export { B as BlockDefinition, a as BlockDefinitions, C as CollectionConfig, b as CollectionConfigModule, c as CollectionSchema, d as CollectionSyncResult, F as FieldConfig, e as FieldType } from './collection-config-JgHOpFCG.cjs';
2
2
  export { A as AuthService, C as ContentService, H as HOOKS, a as HookContext, b as HookHandler, c as HookName, d as HookSystem, M as MediaService, e as ModelRelationship, P as Plugin, f as PluginAdminPage, g as PluginBuilderOptions, h as PluginComponent, i as PluginConfig, j as PluginContext, k as PluginHook, l as PluginLogger, m as PluginManager, n as PluginMenuItem, o as PluginMiddleware, p as PluginModel, q as PluginRegistry, r as PluginRoutes, s as PluginService, t as PluginStatus, u as PluginValidationResult, v as PluginValidator, S as ScopedHookSystem } from './plugin-DDYetMF-.cjs';
3
3
  export { P as PluginManifest } from './plugin-manifest-Dpy8wxIB.cjs';
4
- export { T as TelemetryConfig, a as TelemetryEvent, b as TelemetryIdentity, c as TelemetryProperties } from './telemetry-B9vIV4wh.cjs';
4
+ export { T as TelemetryConfig, a as TelemetryEvent, b as TelemetryIdentity, c as TelemetryProperties } from './telemetry-Cku1ax74.cjs';
5
5
  import 'hono';
6
6
  import 'zod';
7
7
  import '@cloudflare/workers-types';
package/dist/types.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  export { B as BlockDefinition, a as BlockDefinitions, C as CollectionConfig, b as CollectionConfigModule, c as CollectionSchema, d as CollectionSyncResult, F as FieldConfig, e as FieldType } from './collection-config-JgHOpFCG.js';
2
2
  export { A as AuthService, C as ContentService, H as HOOKS, a as HookContext, b as HookHandler, c as HookName, d as HookSystem, M as MediaService, e as ModelRelationship, P as Plugin, f as PluginAdminPage, g as PluginBuilderOptions, h as PluginComponent, i as PluginConfig, j as PluginContext, k as PluginHook, l as PluginLogger, m as PluginManager, n as PluginMenuItem, o as PluginMiddleware, p as PluginModel, q as PluginRegistry, r as PluginRoutes, s as PluginService, t as PluginStatus, u as PluginValidationResult, v as PluginValidator, S as ScopedHookSystem } from './plugin-DDYetMF-.js';
3
3
  export { P as PluginManifest } from './plugin-manifest-Dpy8wxIB.js';
4
- export { T as TelemetryConfig, a as TelemetryEvent, b as TelemetryIdentity, c as TelemetryProperties } from './telemetry-B9vIV4wh.js';
4
+ export { T as TelemetryConfig, a as TelemetryEvent, b as TelemetryIdentity, c as TelemetryProperties } from './telemetry-Cku1ax74.js';
5
5
  import 'hono';
6
6
  import 'zod';
7
7
  import '@cloudflare/workers-types';
package/dist/utils.cjs CHANGED
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkIXUHXTHW_cjs = require('./chunk-IXUHXTHW.cjs');
4
- var chunkP3XDZL6Q_cjs = require('./chunk-P3XDZL6Q.cjs');
5
4
  var chunkRCQ2HIQD_cjs = require('./chunk-RCQ2HIQD.cjs');
6
- var chunk7RY3YKI7_cjs = require('./chunk-7RY3YKI7.cjs');
5
+ var chunkP3XDZL6Q_cjs = require('./chunk-P3XDZL6Q.cjs');
6
+ var chunk7AMFLNK6_cjs = require('./chunk-7AMFLNK6.cjs');
7
7
  var chunkMNWKYY5E_cjs = require('./chunk-MNWKYY5E.cjs');
8
8
  require('./chunk-IGJUBJBW.cjs');
9
9
 
@@ -41,6 +41,10 @@ Object.defineProperty(exports, "templateRenderer", {
41
41
  enumerable: true,
42
42
  get: function () { return chunkIXUHXTHW_cjs.templateRenderer; }
43
43
  });
44
+ Object.defineProperty(exports, "metricsTracker", {
45
+ enumerable: true,
46
+ get: function () { return chunkRCQ2HIQD_cjs.metricsTracker; }
47
+ });
44
48
  Object.defineProperty(exports, "generateInstallationId", {
45
49
  enumerable: true,
46
50
  get: function () { return chunkP3XDZL6Q_cjs.generateInstallationId; }
@@ -73,17 +77,13 @@ Object.defineProperty(exports, "shouldSkipEvent", {
73
77
  enumerable: true,
74
78
  get: function () { return chunkP3XDZL6Q_cjs.shouldSkipEvent; }
75
79
  });
76
- Object.defineProperty(exports, "metricsTracker", {
77
- enumerable: true,
78
- get: function () { return chunkRCQ2HIQD_cjs.metricsTracker; }
79
- });
80
80
  Object.defineProperty(exports, "SONICJS_VERSION", {
81
81
  enumerable: true,
82
- get: function () { return chunk7RY3YKI7_cjs.SONICJS_VERSION; }
82
+ get: function () { return chunk7AMFLNK6_cjs.SONICJS_VERSION; }
83
83
  });
84
84
  Object.defineProperty(exports, "getCoreVersion", {
85
85
  enumerable: true,
86
- get: function () { return chunk7RY3YKI7_cjs.getCoreVersion; }
86
+ get: function () { return chunk7AMFLNK6_cjs.getCoreVersion; }
87
87
  });
88
88
  Object.defineProperty(exports, "escapeHtml", {
89
89
  enumerable: true,
package/dist/utils.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { F as FilterCondition, a as FilterGroup, b as FilterOperator, Q as QueryFilter, c as QueryFilterBuilder, d as QueryResult, S as SONICJS_VERSION, T as TemplateRenderer, e as buildQuery, f as escapeHtml, g as getCoreVersion, m as metricsTracker, r as renderTemplate, s as sanitizeInput, h as sanitizeObject, t as templateRenderer } from './version-DFTyGfIH.cjs';
2
- import { T as TelemetryConfig } from './telemetry-B9vIV4wh.cjs';
2
+ import { T as TelemetryConfig } from './telemetry-Cku1ax74.cjs';
3
3
  import { a as BlockDefinitions } from './collection-config-JgHOpFCG.cjs';
4
4
 
5
5
  /**
package/dist/utils.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { F as FilterCondition, a as FilterGroup, b as FilterOperator, Q as QueryFilter, c as QueryFilterBuilder, d as QueryResult, S as SONICJS_VERSION, T as TemplateRenderer, e as buildQuery, f as escapeHtml, g as getCoreVersion, m as metricsTracker, r as renderTemplate, s as sanitizeInput, h as sanitizeObject, t as templateRenderer } from './version-DFTyGfIH.js';
2
- import { T as TelemetryConfig } from './telemetry-B9vIV4wh.js';
2
+ import { T as TelemetryConfig } from './telemetry-Cku1ax74.js';
3
3
  import { a as BlockDefinitions } from './collection-config-JgHOpFCG.js';
4
4
 
5
5
  /**
package/dist/utils.js CHANGED
@@ -1,7 +1,7 @@
1
1
  export { QueryFilterBuilder, TemplateRenderer, buildQuery, generateSlug, getBlocksFieldConfig, parseBlocksValue, renderTemplate, templateRenderer } from './chunk-QZGABF2M.js';
2
- export { generateInstallationId, generateProjectId, getDefaultTelemetryConfig, getTelemetryConfig, isTelemetryEnabled, sanitizeErrorMessage, sanitizeRoute, shouldSkipEvent } from './chunk-X7ZAEI5S.js';
3
2
  export { metricsTracker } from './chunk-FICTAGD4.js';
4
- export { SONICJS_VERSION, getCoreVersion } from './chunk-POGSN5WI.js';
3
+ export { generateInstallationId, generateProjectId, getDefaultTelemetryConfig, getTelemetryConfig, isTelemetryEnabled, sanitizeErrorMessage, sanitizeRoute, shouldSkipEvent } from './chunk-X7ZAEI5S.js';
4
+ export { SONICJS_VERSION, getCoreVersion } from './chunk-ZHPOJZRR.js';
5
5
  export { escapeHtml, sanitizeInput, sanitizeObject } from './chunk-TQABQWOP.js';
6
6
  import './chunk-V4OQ3NZ2.js';
7
7
  //# sourceMappingURL=utils.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonicjs-cms/core",
3
- "version": "3.0.0-beta.7",
3
+ "version": "3.0.0-beta.9",
4
4
  "description": "Core framework for SonicJS headless CMS - Edge-first, TypeScript-native CMS built for Cloudflare Workers",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",