@sonicjs-cms/core 2.0.11 → 2.0.13

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 (72) hide show
  1. package/README.md +75 -1
  2. package/dist/{chunk-AMSTLQFI.cjs → chunk-22EFGHAX.cjs} +4 -4
  3. package/dist/chunk-22EFGHAX.cjs.map +1 -0
  4. package/dist/{chunk-IM2LGCYD.cjs → chunk-2CP6535T.cjs} +905 -565
  5. package/dist/chunk-2CP6535T.cjs.map +1 -0
  6. package/dist/{chunk-HKEK7UNV.js → chunk-CPXAVWCU.js} +3 -3
  7. package/dist/{chunk-HKEK7UNV.js.map → chunk-CPXAVWCU.js.map} +1 -1
  8. package/dist/{chunk-F5ESJXI2.cjs → chunk-DTLB6UIH.cjs} +3 -3
  9. package/dist/{chunk-F5ESJXI2.cjs.map → chunk-DTLB6UIH.cjs.map} +1 -1
  10. package/dist/chunk-HFFNEGZB.cjs +70 -0
  11. package/dist/chunk-HFFNEGZB.cjs.map +1 -0
  12. package/dist/chunk-I3R77LQC.js +1550 -0
  13. package/dist/chunk-I3R77LQC.js.map +1 -0
  14. package/dist/chunk-JQIQRMPA.cjs +1552 -0
  15. package/dist/chunk-JQIQRMPA.cjs.map +1 -0
  16. package/dist/{chunk-I5ZPYKNX.js → chunk-LWMMMW43.js} +4 -4
  17. package/dist/chunk-LWMMMW43.js.map +1 -0
  18. package/dist/chunk-MOWI4WYE.js +61 -0
  19. package/dist/chunk-MOWI4WYE.js.map +1 -0
  20. package/dist/{chunk-FYWJMETG.js → chunk-PFNUOW6W.js} +4 -4
  21. package/dist/{chunk-FYWJMETG.js.map → chunk-PFNUOW6W.js.map} +1 -1
  22. package/dist/{chunk-CLLJFZ5U.js → chunk-QWIXOMHW.js} +805 -466
  23. package/dist/chunk-QWIXOMHW.js.map +1 -0
  24. package/dist/{chunk-DOR2IU73.cjs → chunk-U2WYUO32.cjs} +249 -2
  25. package/dist/chunk-U2WYUO32.cjs.map +1 -0
  26. package/dist/{chunk-NNXPAPUD.cjs → chunk-WFHLBYNA.cjs} +7 -4
  27. package/dist/chunk-WFHLBYNA.cjs.map +1 -0
  28. package/dist/{chunk-X2VADBA4.cjs → chunk-WML2ZMHH.cjs} +7 -7
  29. package/dist/{chunk-X2VADBA4.cjs.map → chunk-WML2ZMHH.cjs.map} +1 -1
  30. package/dist/{chunk-DU7JJZN7.js → chunk-ZALNKBLS.js} +7 -4
  31. package/dist/chunk-ZALNKBLS.js.map +1 -0
  32. package/dist/{chunk-6FR25MPC.js → chunk-ZNESOOF2.js} +246 -3
  33. package/dist/chunk-ZNESOOF2.js.map +1 -0
  34. package/dist/index.cjs +139 -137
  35. package/dist/index.cjs.map +1 -1
  36. package/dist/index.js +13 -11
  37. package/dist/index.js.map +1 -1
  38. package/dist/middleware.cjs +24 -24
  39. package/dist/middleware.js +3 -3
  40. package/dist/migrations-GVG73ZJC.js +4 -0
  41. package/dist/{migrations-IHERIQVD.js.map → migrations-GVG73ZJC.js.map} +1 -1
  42. package/dist/migrations-S52MEE4J.cjs +13 -0
  43. package/dist/{migrations-POFD5KNG.cjs.map → migrations-S52MEE4J.cjs.map} +1 -1
  44. package/dist/plugins.cjs +7 -7
  45. package/dist/plugins.js +1 -1
  46. package/dist/routes.cjs +30 -25
  47. package/dist/routes.js +7 -6
  48. package/dist/services.cjs +41 -24
  49. package/dist/services.js +4 -3
  50. package/dist/utils.cjs +44 -11
  51. package/dist/utils.js +2 -1
  52. package/migrations/001_initial_schema.sql +1 -1
  53. package/migrations/{023_add_mdxeditor_plugin.sql → 023_add_easy_mdx_plugin.sql} +7 -7
  54. package/migrations/025_rename_mdxeditor_to_easy_mdx.sql +22 -0
  55. package/package.json +5 -2
  56. package/dist/chunk-6FR25MPC.js.map +0 -1
  57. package/dist/chunk-AMSTLQFI.cjs.map +0 -1
  58. package/dist/chunk-CLLJFZ5U.js.map +0 -1
  59. package/dist/chunk-DOR2IU73.cjs.map +0 -1
  60. package/dist/chunk-DU7JJZN7.js.map +0 -1
  61. package/dist/chunk-I5ZPYKNX.js.map +0 -1
  62. package/dist/chunk-IM2LGCYD.cjs.map +0 -1
  63. package/dist/chunk-NNXPAPUD.cjs.map +0 -1
  64. package/dist/chunk-T7IYBGGO.cjs +0 -746
  65. package/dist/chunk-T7IYBGGO.cjs.map +0 -1
  66. package/dist/chunk-ZPMFT2JW.js +0 -744
  67. package/dist/chunk-ZPMFT2JW.js.map +0 -1
  68. package/dist/migrations-IHERIQVD.js +0 -4
  69. package/dist/migrations-POFD5KNG.cjs +0 -13
  70. package/migrations/013_code_examples_plugin.sql +0 -177
  71. package/migrations/025_add_easymde_plugin.sql +0 -25
  72. /package/migrations/{021_add_otp_login.sql → 026_add_otp_login.sql} +0 -0
@@ -1,6 +1,6 @@
1
- export { AuthManager, PermissionManager, bootstrapMiddleware, cacheHeaders, compressionMiddleware, detailedLoggingMiddleware, getActivePlugins, isPluginActive, logActivity, loggingMiddleware, metricsMiddleware, optionalAuth, performanceLoggingMiddleware, requireActivePlugin, requireActivePlugins, requireAnyPermission, requireAuth, requirePermission, requireRole, securityHeaders, securityLoggingMiddleware } from './chunk-FYWJMETG.js';
2
- import './chunk-I5ZPYKNX.js';
3
- import './chunk-ZPMFT2JW.js';
1
+ export { AuthManager, PermissionManager, bootstrapMiddleware, cacheHeaders, compressionMiddleware, detailedLoggingMiddleware, getActivePlugins, isPluginActive, logActivity, loggingMiddleware, metricsMiddleware, optionalAuth, performanceLoggingMiddleware, requireActivePlugin, requireActivePlugins, requireAnyPermission, requireAuth, requirePermission, requireRole, securityHeaders, securityLoggingMiddleware } from './chunk-PFNUOW6W.js';
2
+ import './chunk-LWMMMW43.js';
3
+ import './chunk-I3R77LQC.js';
4
4
  import './chunk-FICTAGD4.js';
5
5
  import './chunk-V4OQ3NZ2.js';
6
6
  //# sourceMappingURL=middleware.js.map
@@ -0,0 +1,4 @@
1
+ export { MigrationService } from './chunk-I3R77LQC.js';
2
+ import './chunk-V4OQ3NZ2.js';
3
+ //# sourceMappingURL=migrations-GVG73ZJC.js.map
4
+ //# sourceMappingURL=migrations-GVG73ZJC.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"migrations-IHERIQVD.js"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"migrations-GVG73ZJC.js"}
@@ -0,0 +1,13 @@
1
+ 'use strict';
2
+
3
+ var chunkJQIQRMPA_cjs = require('./chunk-JQIQRMPA.cjs');
4
+ require('./chunk-IGJUBJBW.cjs');
5
+
6
+
7
+
8
+ Object.defineProperty(exports, "MigrationService", {
9
+ enumerable: true,
10
+ get: function () { return chunkJQIQRMPA_cjs.MigrationService; }
11
+ });
12
+ //# sourceMappingURL=migrations-S52MEE4J.cjs.map
13
+ //# sourceMappingURL=migrations-S52MEE4J.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"migrations-POFD5KNG.cjs"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"migrations-S52MEE4J.cjs"}
package/dist/plugins.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkF5ESJXI2_cjs = require('./chunk-F5ESJXI2.cjs');
3
+ var chunkDTLB6UIH_cjs = require('./chunk-DTLB6UIH.cjs');
4
4
  require('./chunk-KYGRJCZM.cjs');
5
5
  require('./chunk-IGJUBJBW.cjs');
6
6
 
@@ -8,27 +8,27 @@ require('./chunk-IGJUBJBW.cjs');
8
8
 
9
9
  Object.defineProperty(exports, "HookSystemImpl", {
10
10
  enumerable: true,
11
- get: function () { return chunkF5ESJXI2_cjs.HookSystemImpl; }
11
+ get: function () { return chunkDTLB6UIH_cjs.HookSystemImpl; }
12
12
  });
13
13
  Object.defineProperty(exports, "HookUtils", {
14
14
  enumerable: true,
15
- get: function () { return chunkF5ESJXI2_cjs.HookUtils; }
15
+ get: function () { return chunkDTLB6UIH_cjs.HookUtils; }
16
16
  });
17
17
  Object.defineProperty(exports, "PluginManager", {
18
18
  enumerable: true,
19
- get: function () { return chunkF5ESJXI2_cjs.PluginManager; }
19
+ get: function () { return chunkDTLB6UIH_cjs.PluginManager; }
20
20
  });
21
21
  Object.defineProperty(exports, "PluginRegistryImpl", {
22
22
  enumerable: true,
23
- get: function () { return chunkF5ESJXI2_cjs.PluginRegistryImpl; }
23
+ get: function () { return chunkDTLB6UIH_cjs.PluginRegistryImpl; }
24
24
  });
25
25
  Object.defineProperty(exports, "PluginValidator", {
26
26
  enumerable: true,
27
- get: function () { return chunkF5ESJXI2_cjs.PluginValidator; }
27
+ get: function () { return chunkDTLB6UIH_cjs.PluginValidator; }
28
28
  });
29
29
  Object.defineProperty(exports, "ScopedHookSystem", {
30
30
  enumerable: true,
31
- get: function () { return chunkF5ESJXI2_cjs.ScopedHookSystem; }
31
+ get: function () { return chunkDTLB6UIH_cjs.ScopedHookSystem; }
32
32
  });
33
33
  //# sourceMappingURL=plugins.cjs.map
34
34
  //# sourceMappingURL=plugins.cjs.map
package/dist/plugins.js CHANGED
@@ -1,4 +1,4 @@
1
- export { HookSystemImpl, HookUtils, PluginManager, PluginRegistryImpl, PluginValidator, ScopedHookSystem } from './chunk-HKEK7UNV.js';
1
+ export { HookSystemImpl, HookUtils, PluginManager, PluginRegistryImpl, PluginValidator, ScopedHookSystem } from './chunk-CPXAVWCU.js';
2
2
  import './chunk-LOUJRBXV.js';
3
3
  import './chunk-V4OQ3NZ2.js';
4
4
  //# sourceMappingURL=plugins.js.map
package/dist/routes.cjs CHANGED
@@ -1,12 +1,13 @@
1
1
  'use strict';
2
2
 
3
- var chunkIM2LGCYD_cjs = require('./chunk-IM2LGCYD.cjs');
4
- require('./chunk-DOR2IU73.cjs');
5
- require('./chunk-X2VADBA4.cjs');
6
- require('./chunk-AMSTLQFI.cjs');
7
- require('./chunk-T7IYBGGO.cjs');
3
+ var chunk2CP6535T_cjs = require('./chunk-2CP6535T.cjs');
4
+ require('./chunk-U2WYUO32.cjs');
5
+ require('./chunk-WML2ZMHH.cjs');
6
+ require('./chunk-22EFGHAX.cjs');
7
+ require('./chunk-JQIQRMPA.cjs');
8
8
  require('./chunk-YU6QFFI4.cjs');
9
- require('./chunk-NNXPAPUD.cjs');
9
+ require('./chunk-WFHLBYNA.cjs');
10
+ require('./chunk-HFFNEGZB.cjs');
10
11
  require('./chunk-RCQ2HIQD.cjs');
11
12
  require('./chunk-IGJUBJBW.cjs');
12
13
 
@@ -14,79 +15,83 @@ require('./chunk-IGJUBJBW.cjs');
14
15
 
15
16
  Object.defineProperty(exports, "ROUTES_INFO", {
16
17
  enumerable: true,
17
- get: function () { return chunkIM2LGCYD_cjs.ROUTES_INFO; }
18
+ get: function () { return chunk2CP6535T_cjs.ROUTES_INFO; }
18
19
  });
19
20
  Object.defineProperty(exports, "adminApiRoutes", {
20
21
  enumerable: true,
21
- get: function () { return chunkIM2LGCYD_cjs.admin_api_default; }
22
+ get: function () { return chunk2CP6535T_cjs.admin_api_default; }
22
23
  });
23
24
  Object.defineProperty(exports, "adminCheckboxRoutes", {
24
25
  enumerable: true,
25
- get: function () { return chunkIM2LGCYD_cjs.adminCheckboxRoutes; }
26
+ get: function () { return chunk2CP6535T_cjs.adminCheckboxRoutes; }
26
27
  });
27
28
  Object.defineProperty(exports, "adminCodeExamplesRoutes", {
28
29
  enumerable: true,
29
- get: function () { return chunkIM2LGCYD_cjs.admin_code_examples_default; }
30
+ get: function () { return chunk2CP6535T_cjs.admin_code_examples_default; }
30
31
  });
31
32
  Object.defineProperty(exports, "adminCollectionsRoutes", {
32
33
  enumerable: true,
33
- get: function () { return chunkIM2LGCYD_cjs.adminCollectionsRoutes; }
34
+ get: function () { return chunk2CP6535T_cjs.adminCollectionsRoutes; }
34
35
  });
35
36
  Object.defineProperty(exports, "adminContentRoutes", {
36
37
  enumerable: true,
37
- get: function () { return chunkIM2LGCYD_cjs.admin_content_default; }
38
+ get: function () { return chunk2CP6535T_cjs.admin_content_default; }
38
39
  });
39
40
  Object.defineProperty(exports, "adminDashboardRoutes", {
40
41
  enumerable: true,
41
- get: function () { return chunkIM2LGCYD_cjs.router; }
42
+ get: function () { return chunk2CP6535T_cjs.router; }
42
43
  });
43
44
  Object.defineProperty(exports, "adminDesignRoutes", {
44
45
  enumerable: true,
45
- get: function () { return chunkIM2LGCYD_cjs.adminDesignRoutes; }
46
+ get: function () { return chunk2CP6535T_cjs.adminDesignRoutes; }
46
47
  });
47
48
  Object.defineProperty(exports, "adminLogsRoutes", {
48
49
  enumerable: true,
49
- get: function () { return chunkIM2LGCYD_cjs.adminLogsRoutes; }
50
+ get: function () { return chunk2CP6535T_cjs.adminLogsRoutes; }
50
51
  });
51
52
  Object.defineProperty(exports, "adminMediaRoutes", {
52
53
  enumerable: true,
53
- get: function () { return chunkIM2LGCYD_cjs.adminMediaRoutes; }
54
+ get: function () { return chunk2CP6535T_cjs.adminMediaRoutes; }
54
55
  });
55
56
  Object.defineProperty(exports, "adminPluginRoutes", {
56
57
  enumerable: true,
57
- get: function () { return chunkIM2LGCYD_cjs.adminPluginRoutes; }
58
+ get: function () { return chunk2CP6535T_cjs.adminPluginRoutes; }
58
59
  });
59
60
  Object.defineProperty(exports, "adminSettingsRoutes", {
60
61
  enumerable: true,
61
- get: function () { return chunkIM2LGCYD_cjs.adminSettingsRoutes; }
62
+ get: function () { return chunk2CP6535T_cjs.adminSettingsRoutes; }
62
63
  });
63
64
  Object.defineProperty(exports, "adminTestimonialsRoutes", {
64
65
  enumerable: true,
65
- get: function () { return chunkIM2LGCYD_cjs.admin_testimonials_default; }
66
+ get: function () { return chunk2CP6535T_cjs.admin_testimonials_default; }
66
67
  });
67
68
  Object.defineProperty(exports, "adminUsersRoutes", {
68
69
  enumerable: true,
69
- get: function () { return chunkIM2LGCYD_cjs.userRoutes; }
70
+ get: function () { return chunk2CP6535T_cjs.userRoutes; }
70
71
  });
71
72
  Object.defineProperty(exports, "apiContentCrudRoutes", {
72
73
  enumerable: true,
73
- get: function () { return chunkIM2LGCYD_cjs.api_content_crud_default; }
74
+ get: function () { return chunk2CP6535T_cjs.api_content_crud_default; }
74
75
  });
75
76
  Object.defineProperty(exports, "apiMediaRoutes", {
76
77
  enumerable: true,
77
- get: function () { return chunkIM2LGCYD_cjs.api_media_default; }
78
+ get: function () { return chunk2CP6535T_cjs.api_media_default; }
78
79
  });
79
80
  Object.defineProperty(exports, "apiRoutes", {
80
81
  enumerable: true,
81
- get: function () { return chunkIM2LGCYD_cjs.api_default; }
82
+ get: function () { return chunk2CP6535T_cjs.api_default; }
82
83
  });
83
84
  Object.defineProperty(exports, "apiSystemRoutes", {
84
85
  enumerable: true,
85
- get: function () { return chunkIM2LGCYD_cjs.api_system_default; }
86
+ get: function () { return chunk2CP6535T_cjs.api_system_default; }
86
87
  });
87
88
  Object.defineProperty(exports, "authRoutes", {
88
89
  enumerable: true,
89
- get: function () { return chunkIM2LGCYD_cjs.auth_default; }
90
+ get: function () { return chunk2CP6535T_cjs.auth_default; }
91
+ });
92
+ Object.defineProperty(exports, "testCleanupRoutes", {
93
+ enumerable: true,
94
+ get: function () { return chunk2CP6535T_cjs.test_cleanup_default; }
90
95
  });
91
96
  //# sourceMappingURL=routes.cjs.map
92
97
  //# sourceMappingURL=routes.cjs.map
package/dist/routes.js CHANGED
@@ -1,10 +1,11 @@
1
- export { ROUTES_INFO, admin_api_default as adminApiRoutes, adminCheckboxRoutes, admin_code_examples_default as adminCodeExamplesRoutes, adminCollectionsRoutes, admin_content_default as adminContentRoutes, router as adminDashboardRoutes, adminDesignRoutes, adminLogsRoutes, adminMediaRoutes, adminPluginRoutes, adminSettingsRoutes, admin_testimonials_default as adminTestimonialsRoutes, userRoutes as adminUsersRoutes, api_content_crud_default as apiContentCrudRoutes, api_media_default as apiMediaRoutes, api_default as apiRoutes, api_system_default as apiSystemRoutes, auth_default as authRoutes } from './chunk-CLLJFZ5U.js';
2
- import './chunk-6FR25MPC.js';
3
- import './chunk-FYWJMETG.js';
4
- import './chunk-I5ZPYKNX.js';
5
- import './chunk-ZPMFT2JW.js';
1
+ export { ROUTES_INFO, admin_api_default as adminApiRoutes, adminCheckboxRoutes, admin_code_examples_default as adminCodeExamplesRoutes, adminCollectionsRoutes, admin_content_default as adminContentRoutes, router as adminDashboardRoutes, adminDesignRoutes, adminLogsRoutes, adminMediaRoutes, adminPluginRoutes, adminSettingsRoutes, admin_testimonials_default as adminTestimonialsRoutes, userRoutes as adminUsersRoutes, api_content_crud_default as apiContentCrudRoutes, api_media_default as apiMediaRoutes, api_default as apiRoutes, api_system_default as apiSystemRoutes, auth_default as authRoutes, test_cleanup_default as testCleanupRoutes } from './chunk-QWIXOMHW.js';
2
+ import './chunk-ZNESOOF2.js';
3
+ import './chunk-PFNUOW6W.js';
4
+ import './chunk-LWMMMW43.js';
5
+ import './chunk-I3R77LQC.js';
6
6
  import './chunk-5RKQB2JG.js';
7
- import './chunk-DU7JJZN7.js';
7
+ import './chunk-ZALNKBLS.js';
8
+ import './chunk-MOWI4WYE.js';
8
9
  import './chunk-FICTAGD4.js';
9
10
  import './chunk-V4OQ3NZ2.js';
10
11
  //# sourceMappingURL=routes.js.map
package/dist/services.cjs CHANGED
@@ -1,95 +1,112 @@
1
1
  'use strict';
2
2
 
3
- var chunkDOR2IU73_cjs = require('./chunk-DOR2IU73.cjs');
4
- var chunkAMSTLQFI_cjs = require('./chunk-AMSTLQFI.cjs');
5
- var chunkT7IYBGGO_cjs = require('./chunk-T7IYBGGO.cjs');
3
+ var chunkU2WYUO32_cjs = require('./chunk-U2WYUO32.cjs');
4
+ var chunk22EFGHAX_cjs = require('./chunk-22EFGHAX.cjs');
5
+ var chunkJQIQRMPA_cjs = require('./chunk-JQIQRMPA.cjs');
6
+ require('./chunk-HFFNEGZB.cjs');
6
7
  require('./chunk-IGJUBJBW.cjs');
7
8
 
8
9
 
9
10
 
10
11
  Object.defineProperty(exports, "CACHE_CONFIGS", {
11
12
  enumerable: true,
12
- get: function () { return chunkDOR2IU73_cjs.CACHE_CONFIGS; }
13
+ get: function () { return chunkU2WYUO32_cjs.CACHE_CONFIGS; }
13
14
  });
14
15
  Object.defineProperty(exports, "CacheService", {
15
16
  enumerable: true,
16
- get: function () { return chunkDOR2IU73_cjs.CacheService; }
17
+ get: function () { return chunkU2WYUO32_cjs.CacheService; }
17
18
  });
18
19
  Object.defineProperty(exports, "Logger", {
19
20
  enumerable: true,
20
- get: function () { return chunkDOR2IU73_cjs.Logger; }
21
+ get: function () { return chunkU2WYUO32_cjs.Logger; }
21
22
  });
22
23
  Object.defineProperty(exports, "SettingsService", {
23
24
  enumerable: true,
24
- get: function () { return chunkDOR2IU73_cjs.SettingsService; }
25
+ get: function () { return chunkU2WYUO32_cjs.SettingsService; }
26
+ });
27
+ Object.defineProperty(exports, "TelemetryService", {
28
+ enumerable: true,
29
+ get: function () { return chunkU2WYUO32_cjs.TelemetryService; }
30
+ });
31
+ Object.defineProperty(exports, "createInstallationIdentity", {
32
+ enumerable: true,
33
+ get: function () { return chunkU2WYUO32_cjs.createInstallationIdentity; }
25
34
  });
26
35
  Object.defineProperty(exports, "getCacheService", {
27
36
  enumerable: true,
28
- get: function () { return chunkDOR2IU73_cjs.getCacheService; }
37
+ get: function () { return chunkU2WYUO32_cjs.getCacheService; }
29
38
  });
30
39
  Object.defineProperty(exports, "getLogger", {
31
40
  enumerable: true,
32
- get: function () { return chunkDOR2IU73_cjs.getLogger; }
41
+ get: function () { return chunkU2WYUO32_cjs.getLogger; }
42
+ });
43
+ Object.defineProperty(exports, "getTelemetryService", {
44
+ enumerable: true,
45
+ get: function () { return chunkU2WYUO32_cjs.getTelemetryService; }
33
46
  });
34
47
  Object.defineProperty(exports, "initLogger", {
35
48
  enumerable: true,
36
- get: function () { return chunkDOR2IU73_cjs.initLogger; }
49
+ get: function () { return chunkU2WYUO32_cjs.initLogger; }
50
+ });
51
+ Object.defineProperty(exports, "initTelemetry", {
52
+ enumerable: true,
53
+ get: function () { return chunkU2WYUO32_cjs.initTelemetry; }
37
54
  });
38
55
  Object.defineProperty(exports, "PluginBootstrapService", {
39
56
  enumerable: true,
40
- get: function () { return chunkAMSTLQFI_cjs.PluginBootstrapService; }
57
+ get: function () { return chunk22EFGHAX_cjs.PluginBootstrapService; }
41
58
  });
42
59
  Object.defineProperty(exports, "PluginService", {
43
60
  enumerable: true,
44
- get: function () { return chunkAMSTLQFI_cjs.PluginService; }
61
+ get: function () { return chunk22EFGHAX_cjs.PluginService; }
45
62
  });
46
63
  Object.defineProperty(exports, "cleanupRemovedCollections", {
47
64
  enumerable: true,
48
- get: function () { return chunkAMSTLQFI_cjs.cleanupRemovedCollections; }
65
+ get: function () { return chunk22EFGHAX_cjs.cleanupRemovedCollections; }
49
66
  });
50
67
  Object.defineProperty(exports, "fullCollectionSync", {
51
68
  enumerable: true,
52
- get: function () { return chunkAMSTLQFI_cjs.fullCollectionSync; }
69
+ get: function () { return chunk22EFGHAX_cjs.fullCollectionSync; }
53
70
  });
54
71
  Object.defineProperty(exports, "getAvailableCollectionNames", {
55
72
  enumerable: true,
56
- get: function () { return chunkAMSTLQFI_cjs.getAvailableCollectionNames; }
73
+ get: function () { return chunk22EFGHAX_cjs.getAvailableCollectionNames; }
57
74
  });
58
75
  Object.defineProperty(exports, "getManagedCollections", {
59
76
  enumerable: true,
60
- get: function () { return chunkAMSTLQFI_cjs.getManagedCollections; }
77
+ get: function () { return chunk22EFGHAX_cjs.getManagedCollections; }
61
78
  });
62
79
  Object.defineProperty(exports, "isCollectionManaged", {
63
80
  enumerable: true,
64
- get: function () { return chunkAMSTLQFI_cjs.isCollectionManaged; }
81
+ get: function () { return chunk22EFGHAX_cjs.isCollectionManaged; }
65
82
  });
66
83
  Object.defineProperty(exports, "loadCollectionConfig", {
67
84
  enumerable: true,
68
- get: function () { return chunkAMSTLQFI_cjs.loadCollectionConfig; }
85
+ get: function () { return chunk22EFGHAX_cjs.loadCollectionConfig; }
69
86
  });
70
87
  Object.defineProperty(exports, "loadCollectionConfigs", {
71
88
  enumerable: true,
72
- get: function () { return chunkAMSTLQFI_cjs.loadCollectionConfigs; }
89
+ get: function () { return chunk22EFGHAX_cjs.loadCollectionConfigs; }
73
90
  });
74
91
  Object.defineProperty(exports, "registerCollections", {
75
92
  enumerable: true,
76
- get: function () { return chunkAMSTLQFI_cjs.registerCollections; }
93
+ get: function () { return chunk22EFGHAX_cjs.registerCollections; }
77
94
  });
78
95
  Object.defineProperty(exports, "syncCollection", {
79
96
  enumerable: true,
80
- get: function () { return chunkAMSTLQFI_cjs.syncCollection; }
97
+ get: function () { return chunk22EFGHAX_cjs.syncCollection; }
81
98
  });
82
99
  Object.defineProperty(exports, "syncCollections", {
83
100
  enumerable: true,
84
- get: function () { return chunkAMSTLQFI_cjs.syncCollections; }
101
+ get: function () { return chunk22EFGHAX_cjs.syncCollections; }
85
102
  });
86
103
  Object.defineProperty(exports, "validateCollectionConfig", {
87
104
  enumerable: true,
88
- get: function () { return chunkAMSTLQFI_cjs.validateCollectionConfig; }
105
+ get: function () { return chunk22EFGHAX_cjs.validateCollectionConfig; }
89
106
  });
90
107
  Object.defineProperty(exports, "MigrationService", {
91
108
  enumerable: true,
92
- get: function () { return chunkT7IYBGGO_cjs.MigrationService; }
109
+ get: function () { return chunkJQIQRMPA_cjs.MigrationService; }
93
110
  });
94
111
  //# sourceMappingURL=services.cjs.map
95
112
  //# sourceMappingURL=services.cjs.map
package/dist/services.js CHANGED
@@ -1,6 +1,7 @@
1
- export { CACHE_CONFIGS, CacheService, Logger, SettingsService, getCacheService, getLogger, initLogger } from './chunk-6FR25MPC.js';
2
- export { PluginBootstrapService, PluginService, cleanupRemovedCollections, fullCollectionSync, getAvailableCollectionNames, getManagedCollections, isCollectionManaged, loadCollectionConfig, loadCollectionConfigs, registerCollections, syncCollection, syncCollections, validateCollectionConfig } from './chunk-I5ZPYKNX.js';
3
- export { MigrationService } from './chunk-ZPMFT2JW.js';
1
+ export { CACHE_CONFIGS, CacheService, Logger, SettingsService, TelemetryService, createInstallationIdentity, getCacheService, getLogger, getTelemetryService, initLogger, initTelemetry } from './chunk-ZNESOOF2.js';
2
+ export { PluginBootstrapService, PluginService, cleanupRemovedCollections, fullCollectionSync, getAvailableCollectionNames, getManagedCollections, isCollectionManaged, loadCollectionConfig, loadCollectionConfigs, registerCollections, syncCollection, syncCollections, validateCollectionConfig } from './chunk-LWMMMW43.js';
3
+ export { MigrationService } from './chunk-I3R77LQC.js';
4
+ import './chunk-MOWI4WYE.js';
4
5
  import './chunk-V4OQ3NZ2.js';
5
6
  //# sourceMappingURL=services.js.map
6
7
  //# sourceMappingURL=services.js.map
package/dist/utils.cjs CHANGED
@@ -1,6 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkNNXPAPUD_cjs = require('./chunk-NNXPAPUD.cjs');
3
+ var chunkWFHLBYNA_cjs = require('./chunk-WFHLBYNA.cjs');
4
+ var chunkHFFNEGZB_cjs = require('./chunk-HFFNEGZB.cjs');
4
5
  var chunkRCQ2HIQD_cjs = require('./chunk-RCQ2HIQD.cjs');
5
6
  require('./chunk-IGJUBJBW.cjs');
6
7
 
@@ -8,43 +9,75 @@ require('./chunk-IGJUBJBW.cjs');
8
9
 
9
10
  Object.defineProperty(exports, "QueryFilterBuilder", {
10
11
  enumerable: true,
11
- get: function () { return chunkNNXPAPUD_cjs.QueryFilterBuilder; }
12
+ get: function () { return chunkWFHLBYNA_cjs.QueryFilterBuilder; }
12
13
  });
13
14
  Object.defineProperty(exports, "SONICJS_VERSION", {
14
15
  enumerable: true,
15
- get: function () { return chunkNNXPAPUD_cjs.SONICJS_VERSION; }
16
+ get: function () { return chunkWFHLBYNA_cjs.SONICJS_VERSION; }
16
17
  });
17
18
  Object.defineProperty(exports, "TemplateRenderer", {
18
19
  enumerable: true,
19
- get: function () { return chunkNNXPAPUD_cjs.TemplateRenderer; }
20
+ get: function () { return chunkWFHLBYNA_cjs.TemplateRenderer; }
20
21
  });
21
22
  Object.defineProperty(exports, "buildQuery", {
22
23
  enumerable: true,
23
- get: function () { return chunkNNXPAPUD_cjs.buildQuery; }
24
+ get: function () { return chunkWFHLBYNA_cjs.buildQuery; }
24
25
  });
25
26
  Object.defineProperty(exports, "escapeHtml", {
26
27
  enumerable: true,
27
- get: function () { return chunkNNXPAPUD_cjs.escapeHtml; }
28
+ get: function () { return chunkWFHLBYNA_cjs.escapeHtml; }
28
29
  });
29
30
  Object.defineProperty(exports, "getCoreVersion", {
30
31
  enumerable: true,
31
- get: function () { return chunkNNXPAPUD_cjs.getCoreVersion; }
32
+ get: function () { return chunkWFHLBYNA_cjs.getCoreVersion; }
32
33
  });
33
34
  Object.defineProperty(exports, "renderTemplate", {
34
35
  enumerable: true,
35
- get: function () { return chunkNNXPAPUD_cjs.renderTemplate; }
36
+ get: function () { return chunkWFHLBYNA_cjs.renderTemplate; }
36
37
  });
37
38
  Object.defineProperty(exports, "sanitizeInput", {
38
39
  enumerable: true,
39
- get: function () { return chunkNNXPAPUD_cjs.sanitizeInput; }
40
+ get: function () { return chunkWFHLBYNA_cjs.sanitizeInput; }
40
41
  });
41
42
  Object.defineProperty(exports, "sanitizeObject", {
42
43
  enumerable: true,
43
- get: function () { return chunkNNXPAPUD_cjs.sanitizeObject; }
44
+ get: function () { return chunkWFHLBYNA_cjs.sanitizeObject; }
44
45
  });
45
46
  Object.defineProperty(exports, "templateRenderer", {
46
47
  enumerable: true,
47
- get: function () { return chunkNNXPAPUD_cjs.templateRenderer; }
48
+ get: function () { return chunkWFHLBYNA_cjs.templateRenderer; }
49
+ });
50
+ Object.defineProperty(exports, "DEFAULT_TELEMETRY_CONFIG", {
51
+ enumerable: true,
52
+ get: function () { return chunkHFFNEGZB_cjs.DEFAULT_TELEMETRY_CONFIG; }
53
+ });
54
+ Object.defineProperty(exports, "generateInstallationId", {
55
+ enumerable: true,
56
+ get: function () { return chunkHFFNEGZB_cjs.generateInstallationId; }
57
+ });
58
+ Object.defineProperty(exports, "generateProjectId", {
59
+ enumerable: true,
60
+ get: function () { return chunkHFFNEGZB_cjs.generateProjectId; }
61
+ });
62
+ Object.defineProperty(exports, "getTelemetryConfig", {
63
+ enumerable: true,
64
+ get: function () { return chunkHFFNEGZB_cjs.getTelemetryConfig; }
65
+ });
66
+ Object.defineProperty(exports, "isTelemetryEnabled", {
67
+ enumerable: true,
68
+ get: function () { return chunkHFFNEGZB_cjs.isTelemetryEnabled; }
69
+ });
70
+ Object.defineProperty(exports, "sanitizeErrorMessage", {
71
+ enumerable: true,
72
+ get: function () { return chunkHFFNEGZB_cjs.sanitizeErrorMessage; }
73
+ });
74
+ Object.defineProperty(exports, "sanitizeRoute", {
75
+ enumerable: true,
76
+ get: function () { return chunkHFFNEGZB_cjs.sanitizeRoute; }
77
+ });
78
+ Object.defineProperty(exports, "shouldSkipEvent", {
79
+ enumerable: true,
80
+ get: function () { return chunkHFFNEGZB_cjs.shouldSkipEvent; }
48
81
  });
49
82
  Object.defineProperty(exports, "metricsTracker", {
50
83
  enumerable: true,
package/dist/utils.js CHANGED
@@ -1,4 +1,5 @@
1
- export { QueryFilterBuilder, SONICJS_VERSION, TemplateRenderer, buildQuery, escapeHtml, getCoreVersion, renderTemplate, sanitizeInput, sanitizeObject, templateRenderer } from './chunk-DU7JJZN7.js';
1
+ export { QueryFilterBuilder, SONICJS_VERSION, TemplateRenderer, buildQuery, escapeHtml, getCoreVersion, renderTemplate, sanitizeInput, sanitizeObject, templateRenderer } from './chunk-ZALNKBLS.js';
2
+ export { DEFAULT_TELEMETRY_CONFIG, generateInstallationId, generateProjectId, getTelemetryConfig, isTelemetryEnabled, sanitizeErrorMessage, sanitizeRoute, shouldSkipEvent } from './chunk-MOWI4WYE.js';
2
3
  export { metricsTracker } from './chunk-FICTAGD4.js';
3
4
  import './chunk-V4OQ3NZ2.js';
4
5
  //# sourceMappingURL=utils.js.map
@@ -139,7 +139,7 @@ INSERT OR IGNORE INTO users (
139
139
  'admin',
140
140
  'Admin',
141
141
  'User',
142
- 'd1c379e871838f44e21d5a55841349e50636f06df139bfef11870eec74c381db', -- SHA-256 hash of 'sonicjs!'
142
+ '9c9ec10df964f588e51acc794a63f18d5582e9b91c8366ba292ebde84d3834fd', -- SHA-256 hash of 'sonicjs!' with salt
143
143
  'admin',
144
144
  1,
145
145
  strftime('%s', 'now') * 1000,
@@ -1,16 +1,16 @@
1
- -- Add MDXEditor Rich Text Editor Plugin
2
- -- Migration: 023_add_mdxeditor_plugin
3
- -- Description: Add MDXEditor plugin for modern MDX-based rich text editing
1
+ -- Add EasyMDE Markdown Editor Plugin
2
+ -- Migration: 023_add_easy_mdx_plugin
3
+ -- Description: Add EasyMDE plugin for lightweight markdown editing
4
4
 
5
5
  -- Register the plugin (active by default)
6
6
  INSERT OR IGNORE INTO plugins (
7
7
  id, name, display_name, description, version, author, category, icon,
8
8
  status, is_core, permissions, dependencies, settings, installed_at, last_updated
9
9
  ) VALUES (
10
- 'mdxeditor-plugin',
11
- 'mdxeditor-plugin',
12
- 'MDXEditor Rich Text Editor',
13
- 'Modern React-based MDX editor for content creation. Provides a powerful editor with markdown support, live preview, and extensible features for richtext fields.',
10
+ 'easy-mdx',
11
+ 'easy-mdx',
12
+ 'EasyMDE Markdown Editor',
13
+ 'Lightweight markdown editor with live preview. Provides a simple and efficient editor with markdown support for richtext fields.',
14
14
  '1.0.0',
15
15
  'SonicJS Team',
16
16
  'editor',
@@ -0,0 +1,22 @@
1
+ -- Rename mdxeditor-plugin to easy-mdx
2
+ -- Migration: 025_rename_mdxeditor_to_easy_mdx
3
+ -- Description: Update plugin ID from mdxeditor-plugin to easy-mdx to reflect the change to EasyMDE editor
4
+
5
+ -- Update the plugin record if it exists with the old ID
6
+ UPDATE plugins
7
+ SET
8
+ id = 'easy-mdx',
9
+ name = 'easy-mdx',
10
+ display_name = 'EasyMDE Markdown Editor',
11
+ description = 'Lightweight markdown editor with live preview. Provides a simple and efficient editor with markdown support for richtext fields.'
12
+ WHERE id = 'mdxeditor-plugin';
13
+
14
+ -- Update any plugin_hooks references
15
+ UPDATE plugin_hooks
16
+ SET plugin_id = 'easy-mdx'
17
+ WHERE plugin_id = 'mdxeditor-plugin';
18
+
19
+ -- Update any plugin_activity_log references
20
+ UPDATE plugin_activity_log
21
+ SET plugin_id = 'easy-mdx'
22
+ WHERE plugin_id = 'mdxeditor-plugin';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonicjs-cms/core",
3
- "version": "2.0.11",
3
+ "version": "2.0.13",
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",
@@ -56,6 +56,8 @@
56
56
  "LICENSE"
57
57
  ],
58
58
  "scripts": {
59
+ "generate:migrations": "npx tsx scripts/generate-migrations.ts",
60
+ "prebuild": "npm run generate:migrations",
59
61
  "build": "tsup",
60
62
  "dev": "tsup --watch",
61
63
  "type-check": "tsc --noEmit",
@@ -96,7 +98,8 @@
96
98
  "drizzle-zod": "^0.8.3",
97
99
  "marked": "^16.4.1",
98
100
  "highlight.js": "^11.11.1",
99
- "semver": "^7.7.3"
101
+ "semver": "^7.7.3",
102
+ "posthog-node": "^4.0.0"
100
103
  },
101
104
  "devDependencies": {
102
105
  "@cloudflare/workers-types": "^4.20251014.0",