@sonicjs-cms/core 2.0.9 → 2.0.11

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 (67) hide show
  1. package/dist/{chunk-VEC5MLT3.js → chunk-5RKQB2JG.js} +10 -228
  2. package/dist/chunk-5RKQB2JG.js.map +1 -0
  3. package/dist/chunk-AMSTLQFI.cjs +801 -0
  4. package/dist/chunk-AMSTLQFI.cjs.map +1 -0
  5. package/dist/{chunk-ABYMIXRN.js → chunk-CLLJFZ5U.js} +2018 -1054
  6. package/dist/chunk-CLLJFZ5U.js.map +1 -0
  7. package/dist/{chunk-WRRLB6KG.js → chunk-DU7JJZN7.js} +5 -4
  8. package/dist/chunk-DU7JJZN7.js.map +1 -0
  9. package/dist/{chunk-OKPDQO2Y.js → chunk-FYWJMETG.js} +30 -10
  10. package/dist/chunk-FYWJMETG.js.map +1 -0
  11. package/dist/chunk-I5ZPYKNX.js +787 -0
  12. package/dist/chunk-I5ZPYKNX.js.map +1 -0
  13. package/dist/{chunk-4I25AGUR.cjs → chunk-IM2LGCYD.cjs} +2166 -1202
  14. package/dist/chunk-IM2LGCYD.cjs.map +1 -0
  15. package/dist/{chunk-TMIRVVQ7.cjs → chunk-NNXPAPUD.cjs} +5 -4
  16. package/dist/chunk-NNXPAPUD.cjs.map +1 -0
  17. package/dist/{chunk-OPGDMS7L.js → chunk-QNWYQZ55.js} +3 -3
  18. package/dist/{chunk-OPGDMS7L.js.map → chunk-QNWYQZ55.js.map} +1 -1
  19. package/dist/{chunk-COBUPOMD.js → chunk-T7IYBGGO.cjs} +5 -770
  20. package/dist/chunk-T7IYBGGO.cjs.map +1 -0
  21. package/dist/{chunk-DYYAXDXI.cjs → chunk-X2VADBA4.cjs} +31 -11
  22. package/dist/chunk-X2VADBA4.cjs.map +1 -0
  23. package/dist/{chunk-EYMHWJTW.cjs → chunk-YU6QFFI4.cjs} +9 -228
  24. package/dist/chunk-YU6QFFI4.cjs.map +1 -0
  25. package/dist/{chunk-MABBKINE.cjs → chunk-ZMSYKV62.cjs} +5 -5
  26. package/dist/{chunk-MABBKINE.cjs.map → chunk-ZMSYKV62.cjs.map} +1 -1
  27. package/dist/{chunk-NBDPIRQS.cjs → chunk-ZPMFT2JW.js} +4 -786
  28. package/dist/chunk-ZPMFT2JW.js.map +1 -0
  29. package/dist/index.cjs +475 -104
  30. package/dist/index.cjs.map +1 -1
  31. package/dist/index.js +386 -11
  32. package/dist/index.js.map +1 -1
  33. package/dist/middleware.cjs +24 -23
  34. package/dist/middleware.js +3 -2
  35. package/dist/migrations-IHERIQVD.js +4 -0
  36. package/dist/migrations-IHERIQVD.js.map +1 -0
  37. package/dist/migrations-POFD5KNG.cjs +13 -0
  38. package/dist/migrations-POFD5KNG.cjs.map +1 -0
  39. package/dist/routes.cjs +25 -28
  40. package/dist/routes.js +6 -5
  41. package/dist/services.cjs +19 -18
  42. package/dist/services.js +2 -1
  43. package/dist/templates.cjs +17 -21
  44. package/dist/templates.js +2 -2
  45. package/dist/utils.cjs +11 -11
  46. package/dist/utils.js +1 -1
  47. package/migrations/001_initial_schema.sql +2 -2
  48. package/migrations/007_demo_login_plugin.sql +1 -1
  49. package/migrations/020_add_email_plugin.sql +22 -0
  50. package/migrations/021_add_magic_link_auth_plugin.sql +42 -0
  51. package/migrations/021_add_otp_login.sql +42 -0
  52. package/migrations/022_add_tinymce_plugin.sql +25 -0
  53. package/migrations/023_add_mdxeditor_plugin.sql +25 -0
  54. package/migrations/024_add_quill_editor_plugin.sql +25 -0
  55. package/migrations/025_add_easymde_plugin.sql +25 -0
  56. package/package.json +3 -2
  57. package/dist/chunk-4I25AGUR.cjs.map +0 -1
  58. package/dist/chunk-ABYMIXRN.js.map +0 -1
  59. package/dist/chunk-COBUPOMD.js.map +0 -1
  60. package/dist/chunk-DYYAXDXI.cjs.map +0 -1
  61. package/dist/chunk-EYMHWJTW.cjs.map +0 -1
  62. package/dist/chunk-NBDPIRQS.cjs.map +0 -1
  63. package/dist/chunk-OKPDQO2Y.js.map +0 -1
  64. package/dist/chunk-TMIRVVQ7.cjs.map +0 -1
  65. package/dist/chunk-VEC5MLT3.js.map +0 -1
  66. package/dist/chunk-WRRLB6KG.js.map +0 -1
  67. package/migrations/002_faq_plugin.sql +0 -86
package/dist/routes.cjs CHANGED
@@ -1,11 +1,12 @@
1
1
  'use strict';
2
2
 
3
- var chunk4I25AGUR_cjs = require('./chunk-4I25AGUR.cjs');
3
+ var chunkIM2LGCYD_cjs = require('./chunk-IM2LGCYD.cjs');
4
4
  require('./chunk-DOR2IU73.cjs');
5
- require('./chunk-DYYAXDXI.cjs');
6
- require('./chunk-NBDPIRQS.cjs');
7
- require('./chunk-EYMHWJTW.cjs');
8
- require('./chunk-TMIRVVQ7.cjs');
5
+ require('./chunk-X2VADBA4.cjs');
6
+ require('./chunk-AMSTLQFI.cjs');
7
+ require('./chunk-T7IYBGGO.cjs');
8
+ require('./chunk-YU6QFFI4.cjs');
9
+ require('./chunk-NNXPAPUD.cjs');
9
10
  require('./chunk-RCQ2HIQD.cjs');
10
11
  require('./chunk-IGJUBJBW.cjs');
11
12
 
@@ -13,83 +14,79 @@ require('./chunk-IGJUBJBW.cjs');
13
14
 
14
15
  Object.defineProperty(exports, "ROUTES_INFO", {
15
16
  enumerable: true,
16
- get: function () { return chunk4I25AGUR_cjs.ROUTES_INFO; }
17
+ get: function () { return chunkIM2LGCYD_cjs.ROUTES_INFO; }
17
18
  });
18
19
  Object.defineProperty(exports, "adminApiRoutes", {
19
20
  enumerable: true,
20
- get: function () { return chunk4I25AGUR_cjs.admin_api_default; }
21
+ get: function () { return chunkIM2LGCYD_cjs.admin_api_default; }
21
22
  });
22
23
  Object.defineProperty(exports, "adminCheckboxRoutes", {
23
24
  enumerable: true,
24
- get: function () { return chunk4I25AGUR_cjs.adminCheckboxRoutes; }
25
+ get: function () { return chunkIM2LGCYD_cjs.adminCheckboxRoutes; }
25
26
  });
26
27
  Object.defineProperty(exports, "adminCodeExamplesRoutes", {
27
28
  enumerable: true,
28
- get: function () { return chunk4I25AGUR_cjs.admin_code_examples_default; }
29
+ get: function () { return chunkIM2LGCYD_cjs.admin_code_examples_default; }
29
30
  });
30
31
  Object.defineProperty(exports, "adminCollectionsRoutes", {
31
32
  enumerable: true,
32
- get: function () { return chunk4I25AGUR_cjs.adminCollectionsRoutes; }
33
+ get: function () { return chunkIM2LGCYD_cjs.adminCollectionsRoutes; }
33
34
  });
34
35
  Object.defineProperty(exports, "adminContentRoutes", {
35
36
  enumerable: true,
36
- get: function () { return chunk4I25AGUR_cjs.admin_content_default; }
37
+ get: function () { return chunkIM2LGCYD_cjs.admin_content_default; }
37
38
  });
38
39
  Object.defineProperty(exports, "adminDashboardRoutes", {
39
40
  enumerable: true,
40
- get: function () { return chunk4I25AGUR_cjs.router; }
41
+ get: function () { return chunkIM2LGCYD_cjs.router; }
41
42
  });
42
43
  Object.defineProperty(exports, "adminDesignRoutes", {
43
44
  enumerable: true,
44
- get: function () { return chunk4I25AGUR_cjs.adminDesignRoutes; }
45
- });
46
- Object.defineProperty(exports, "adminFAQRoutes", {
47
- enumerable: true,
48
- get: function () { return chunk4I25AGUR_cjs.admin_faq_default; }
45
+ get: function () { return chunkIM2LGCYD_cjs.adminDesignRoutes; }
49
46
  });
50
47
  Object.defineProperty(exports, "adminLogsRoutes", {
51
48
  enumerable: true,
52
- get: function () { return chunk4I25AGUR_cjs.adminLogsRoutes; }
49
+ get: function () { return chunkIM2LGCYD_cjs.adminLogsRoutes; }
53
50
  });
54
51
  Object.defineProperty(exports, "adminMediaRoutes", {
55
52
  enumerable: true,
56
- get: function () { return chunk4I25AGUR_cjs.adminMediaRoutes; }
53
+ get: function () { return chunkIM2LGCYD_cjs.adminMediaRoutes; }
57
54
  });
58
55
  Object.defineProperty(exports, "adminPluginRoutes", {
59
56
  enumerable: true,
60
- get: function () { return chunk4I25AGUR_cjs.adminPluginRoutes; }
57
+ get: function () { return chunkIM2LGCYD_cjs.adminPluginRoutes; }
61
58
  });
62
59
  Object.defineProperty(exports, "adminSettingsRoutes", {
63
60
  enumerable: true,
64
- get: function () { return chunk4I25AGUR_cjs.adminSettingsRoutes; }
61
+ get: function () { return chunkIM2LGCYD_cjs.adminSettingsRoutes; }
65
62
  });
66
63
  Object.defineProperty(exports, "adminTestimonialsRoutes", {
67
64
  enumerable: true,
68
- get: function () { return chunk4I25AGUR_cjs.admin_testimonials_default; }
65
+ get: function () { return chunkIM2LGCYD_cjs.admin_testimonials_default; }
69
66
  });
70
67
  Object.defineProperty(exports, "adminUsersRoutes", {
71
68
  enumerable: true,
72
- get: function () { return chunk4I25AGUR_cjs.userRoutes; }
69
+ get: function () { return chunkIM2LGCYD_cjs.userRoutes; }
73
70
  });
74
71
  Object.defineProperty(exports, "apiContentCrudRoutes", {
75
72
  enumerable: true,
76
- get: function () { return chunk4I25AGUR_cjs.api_content_crud_default; }
73
+ get: function () { return chunkIM2LGCYD_cjs.api_content_crud_default; }
77
74
  });
78
75
  Object.defineProperty(exports, "apiMediaRoutes", {
79
76
  enumerable: true,
80
- get: function () { return chunk4I25AGUR_cjs.api_media_default; }
77
+ get: function () { return chunkIM2LGCYD_cjs.api_media_default; }
81
78
  });
82
79
  Object.defineProperty(exports, "apiRoutes", {
83
80
  enumerable: true,
84
- get: function () { return chunk4I25AGUR_cjs.api_default; }
81
+ get: function () { return chunkIM2LGCYD_cjs.api_default; }
85
82
  });
86
83
  Object.defineProperty(exports, "apiSystemRoutes", {
87
84
  enumerable: true,
88
- get: function () { return chunk4I25AGUR_cjs.api_system_default; }
85
+ get: function () { return chunkIM2LGCYD_cjs.api_system_default; }
89
86
  });
90
87
  Object.defineProperty(exports, "authRoutes", {
91
88
  enumerable: true,
92
- get: function () { return chunk4I25AGUR_cjs.auth_default; }
89
+ get: function () { return chunkIM2LGCYD_cjs.auth_default; }
93
90
  });
94
91
  //# sourceMappingURL=routes.cjs.map
95
92
  //# sourceMappingURL=routes.cjs.map
package/dist/routes.js CHANGED
@@ -1,9 +1,10 @@
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, admin_faq_default as adminFAQRoutes, 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-ABYMIXRN.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 } from './chunk-CLLJFZ5U.js';
2
2
  import './chunk-6FR25MPC.js';
3
- import './chunk-OKPDQO2Y.js';
4
- import './chunk-COBUPOMD.js';
5
- import './chunk-VEC5MLT3.js';
6
- import './chunk-WRRLB6KG.js';
3
+ import './chunk-FYWJMETG.js';
4
+ import './chunk-I5ZPYKNX.js';
5
+ import './chunk-ZPMFT2JW.js';
6
+ import './chunk-5RKQB2JG.js';
7
+ import './chunk-DU7JJZN7.js';
7
8
  import './chunk-FICTAGD4.js';
8
9
  import './chunk-V4OQ3NZ2.js';
9
10
  //# sourceMappingURL=routes.js.map
package/dist/services.cjs CHANGED
@@ -1,7 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkDOR2IU73_cjs = require('./chunk-DOR2IU73.cjs');
4
- var chunkNBDPIRQS_cjs = require('./chunk-NBDPIRQS.cjs');
4
+ var chunkAMSTLQFI_cjs = require('./chunk-AMSTLQFI.cjs');
5
+ var chunkT7IYBGGO_cjs = require('./chunk-T7IYBGGO.cjs');
5
6
  require('./chunk-IGJUBJBW.cjs');
6
7
 
7
8
 
@@ -34,61 +35,61 @@ Object.defineProperty(exports, "initLogger", {
34
35
  enumerable: true,
35
36
  get: function () { return chunkDOR2IU73_cjs.initLogger; }
36
37
  });
37
- Object.defineProperty(exports, "MigrationService", {
38
- enumerable: true,
39
- get: function () { return chunkNBDPIRQS_cjs.MigrationService; }
40
- });
41
38
  Object.defineProperty(exports, "PluginBootstrapService", {
42
39
  enumerable: true,
43
- get: function () { return chunkNBDPIRQS_cjs.PluginBootstrapService; }
40
+ get: function () { return chunkAMSTLQFI_cjs.PluginBootstrapService; }
44
41
  });
45
42
  Object.defineProperty(exports, "PluginService", {
46
43
  enumerable: true,
47
- get: function () { return chunkNBDPIRQS_cjs.PluginService; }
44
+ get: function () { return chunkAMSTLQFI_cjs.PluginService; }
48
45
  });
49
46
  Object.defineProperty(exports, "cleanupRemovedCollections", {
50
47
  enumerable: true,
51
- get: function () { return chunkNBDPIRQS_cjs.cleanupRemovedCollections; }
48
+ get: function () { return chunkAMSTLQFI_cjs.cleanupRemovedCollections; }
52
49
  });
53
50
  Object.defineProperty(exports, "fullCollectionSync", {
54
51
  enumerable: true,
55
- get: function () { return chunkNBDPIRQS_cjs.fullCollectionSync; }
52
+ get: function () { return chunkAMSTLQFI_cjs.fullCollectionSync; }
56
53
  });
57
54
  Object.defineProperty(exports, "getAvailableCollectionNames", {
58
55
  enumerable: true,
59
- get: function () { return chunkNBDPIRQS_cjs.getAvailableCollectionNames; }
56
+ get: function () { return chunkAMSTLQFI_cjs.getAvailableCollectionNames; }
60
57
  });
61
58
  Object.defineProperty(exports, "getManagedCollections", {
62
59
  enumerable: true,
63
- get: function () { return chunkNBDPIRQS_cjs.getManagedCollections; }
60
+ get: function () { return chunkAMSTLQFI_cjs.getManagedCollections; }
64
61
  });
65
62
  Object.defineProperty(exports, "isCollectionManaged", {
66
63
  enumerable: true,
67
- get: function () { return chunkNBDPIRQS_cjs.isCollectionManaged; }
64
+ get: function () { return chunkAMSTLQFI_cjs.isCollectionManaged; }
68
65
  });
69
66
  Object.defineProperty(exports, "loadCollectionConfig", {
70
67
  enumerable: true,
71
- get: function () { return chunkNBDPIRQS_cjs.loadCollectionConfig; }
68
+ get: function () { return chunkAMSTLQFI_cjs.loadCollectionConfig; }
72
69
  });
73
70
  Object.defineProperty(exports, "loadCollectionConfigs", {
74
71
  enumerable: true,
75
- get: function () { return chunkNBDPIRQS_cjs.loadCollectionConfigs; }
72
+ get: function () { return chunkAMSTLQFI_cjs.loadCollectionConfigs; }
76
73
  });
77
74
  Object.defineProperty(exports, "registerCollections", {
78
75
  enumerable: true,
79
- get: function () { return chunkNBDPIRQS_cjs.registerCollections; }
76
+ get: function () { return chunkAMSTLQFI_cjs.registerCollections; }
80
77
  });
81
78
  Object.defineProperty(exports, "syncCollection", {
82
79
  enumerable: true,
83
- get: function () { return chunkNBDPIRQS_cjs.syncCollection; }
80
+ get: function () { return chunkAMSTLQFI_cjs.syncCollection; }
84
81
  });
85
82
  Object.defineProperty(exports, "syncCollections", {
86
83
  enumerable: true,
87
- get: function () { return chunkNBDPIRQS_cjs.syncCollections; }
84
+ get: function () { return chunkAMSTLQFI_cjs.syncCollections; }
88
85
  });
89
86
  Object.defineProperty(exports, "validateCollectionConfig", {
90
87
  enumerable: true,
91
- get: function () { return chunkNBDPIRQS_cjs.validateCollectionConfig; }
88
+ get: function () { return chunkAMSTLQFI_cjs.validateCollectionConfig; }
89
+ });
90
+ Object.defineProperty(exports, "MigrationService", {
91
+ enumerable: true,
92
+ get: function () { return chunkT7IYBGGO_cjs.MigrationService; }
92
93
  });
93
94
  //# sourceMappingURL=services.cjs.map
94
95
  //# sourceMappingURL=services.cjs.map
package/dist/services.js CHANGED
@@ -1,5 +1,6 @@
1
1
  export { CACHE_CONFIGS, CacheService, Logger, SettingsService, getCacheService, getLogger, initLogger } from './chunk-6FR25MPC.js';
2
- export { MigrationService, PluginBootstrapService, PluginService, cleanupRemovedCollections, fullCollectionSync, getAvailableCollectionNames, getManagedCollections, isCollectionManaged, loadCollectionConfig, loadCollectionConfigs, registerCollections, syncCollection, syncCollections, validateCollectionConfig } from './chunk-COBUPOMD.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';
3
4
  import './chunk-V4OQ3NZ2.js';
4
5
  //# sourceMappingURL=services.js.map
5
6
  //# sourceMappingURL=services.js.map
@@ -1,74 +1,70 @@
1
1
  'use strict';
2
2
 
3
- var chunkMABBKINE_cjs = require('./chunk-MABBKINE.cjs');
4
- var chunkEYMHWJTW_cjs = require('./chunk-EYMHWJTW.cjs');
3
+ var chunkZMSYKV62_cjs = require('./chunk-ZMSYKV62.cjs');
4
+ var chunkYU6QFFI4_cjs = require('./chunk-YU6QFFI4.cjs');
5
5
  require('./chunk-IGJUBJBW.cjs');
6
6
 
7
7
 
8
8
 
9
9
  Object.defineProperty(exports, "renderFilterBar", {
10
10
  enumerable: true,
11
- get: function () { return chunkMABBKINE_cjs.renderFilterBar; }
11
+ get: function () { return chunkZMSYKV62_cjs.renderFilterBar; }
12
12
  });
13
13
  Object.defineProperty(exports, "getConfirmationDialogScript", {
14
14
  enumerable: true,
15
- get: function () { return chunkEYMHWJTW_cjs.getConfirmationDialogScript; }
15
+ get: function () { return chunkYU6QFFI4_cjs.getConfirmationDialogScript; }
16
16
  });
17
17
  Object.defineProperty(exports, "renderAdminLayout", {
18
18
  enumerable: true,
19
- get: function () { return chunkEYMHWJTW_cjs.renderAdminLayout; }
19
+ get: function () { return chunkYU6QFFI4_cjs.renderAdminLayout; }
20
20
  });
21
21
  Object.defineProperty(exports, "renderAdminLayoutCatalyst", {
22
22
  enumerable: true,
23
- get: function () { return chunkEYMHWJTW_cjs.renderAdminLayoutCatalyst; }
23
+ get: function () { return chunkYU6QFFI4_cjs.renderAdminLayoutCatalyst; }
24
24
  });
25
25
  Object.defineProperty(exports, "renderAlert", {
26
26
  enumerable: true,
27
- get: function () { return chunkEYMHWJTW_cjs.renderAlert; }
27
+ get: function () { return chunkYU6QFFI4_cjs.renderAlert; }
28
28
  });
29
29
  Object.defineProperty(exports, "renderCheckboxPage", {
30
30
  enumerable: true,
31
- get: function () { return chunkEYMHWJTW_cjs.renderCheckboxPage; }
31
+ get: function () { return chunkYU6QFFI4_cjs.renderCheckboxPage; }
32
32
  });
33
33
  Object.defineProperty(exports, "renderCodeExamplesList", {
34
34
  enumerable: true,
35
- get: function () { return chunkEYMHWJTW_cjs.renderCodeExamplesList; }
35
+ get: function () { return chunkYU6QFFI4_cjs.renderCodeExamplesList; }
36
36
  });
37
37
  Object.defineProperty(exports, "renderConfirmationDialog", {
38
38
  enumerable: true,
39
- get: function () { return chunkEYMHWJTW_cjs.renderConfirmationDialog; }
39
+ get: function () { return chunkYU6QFFI4_cjs.renderConfirmationDialog; }
40
40
  });
41
41
  Object.defineProperty(exports, "renderDesignPage", {
42
42
  enumerable: true,
43
- get: function () { return chunkEYMHWJTW_cjs.renderDesignPage; }
44
- });
45
- Object.defineProperty(exports, "renderFAQList", {
46
- enumerable: true,
47
- get: function () { return chunkEYMHWJTW_cjs.renderFAQList; }
43
+ get: function () { return chunkYU6QFFI4_cjs.renderDesignPage; }
48
44
  });
49
45
  Object.defineProperty(exports, "renderForm", {
50
46
  enumerable: true,
51
- get: function () { return chunkEYMHWJTW_cjs.renderForm; }
47
+ get: function () { return chunkYU6QFFI4_cjs.renderForm; }
52
48
  });
53
49
  Object.defineProperty(exports, "renderFormField", {
54
50
  enumerable: true,
55
- get: function () { return chunkEYMHWJTW_cjs.renderFormField; }
51
+ get: function () { return chunkYU6QFFI4_cjs.renderFormField; }
56
52
  });
57
53
  Object.defineProperty(exports, "renderLogo", {
58
54
  enumerable: true,
59
- get: function () { return chunkEYMHWJTW_cjs.renderLogo; }
55
+ get: function () { return chunkYU6QFFI4_cjs.renderLogo; }
60
56
  });
61
57
  Object.defineProperty(exports, "renderPagination", {
62
58
  enumerable: true,
63
- get: function () { return chunkEYMHWJTW_cjs.renderPagination; }
59
+ get: function () { return chunkYU6QFFI4_cjs.renderPagination; }
64
60
  });
65
61
  Object.defineProperty(exports, "renderTable", {
66
62
  enumerable: true,
67
- get: function () { return chunkEYMHWJTW_cjs.renderTable; }
63
+ get: function () { return chunkYU6QFFI4_cjs.renderTable; }
68
64
  });
69
65
  Object.defineProperty(exports, "renderTestimonialsList", {
70
66
  enumerable: true,
71
- get: function () { return chunkEYMHWJTW_cjs.renderTestimonialsList; }
67
+ get: function () { return chunkYU6QFFI4_cjs.renderTestimonialsList; }
72
68
  });
73
69
  //# sourceMappingURL=templates.cjs.map
74
70
  //# sourceMappingURL=templates.cjs.map
package/dist/templates.js CHANGED
@@ -1,5 +1,5 @@
1
- export { renderFilterBar } from './chunk-OPGDMS7L.js';
2
- export { getConfirmationDialogScript, renderAdminLayout, renderAdminLayoutCatalyst, renderAlert, renderCheckboxPage, renderCodeExamplesList, renderConfirmationDialog, renderDesignPage, renderFAQList, renderForm, renderFormField, renderLogo, renderPagination, renderTable, renderTestimonialsList } from './chunk-VEC5MLT3.js';
1
+ export { renderFilterBar } from './chunk-QNWYQZ55.js';
2
+ export { getConfirmationDialogScript, renderAdminLayout, renderAdminLayoutCatalyst, renderAlert, renderCheckboxPage, renderCodeExamplesList, renderConfirmationDialog, renderDesignPage, renderForm, renderFormField, renderLogo, renderPagination, renderTable, renderTestimonialsList } from './chunk-5RKQB2JG.js';
3
3
  import './chunk-V4OQ3NZ2.js';
4
4
  //# sourceMappingURL=templates.js.map
5
5
  //# sourceMappingURL=templates.js.map
package/dist/utils.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkTMIRVVQ7_cjs = require('./chunk-TMIRVVQ7.cjs');
3
+ var chunkNNXPAPUD_cjs = require('./chunk-NNXPAPUD.cjs');
4
4
  var chunkRCQ2HIQD_cjs = require('./chunk-RCQ2HIQD.cjs');
5
5
  require('./chunk-IGJUBJBW.cjs');
6
6
 
@@ -8,43 +8,43 @@ require('./chunk-IGJUBJBW.cjs');
8
8
 
9
9
  Object.defineProperty(exports, "QueryFilterBuilder", {
10
10
  enumerable: true,
11
- get: function () { return chunkTMIRVVQ7_cjs.QueryFilterBuilder; }
11
+ get: function () { return chunkNNXPAPUD_cjs.QueryFilterBuilder; }
12
12
  });
13
13
  Object.defineProperty(exports, "SONICJS_VERSION", {
14
14
  enumerable: true,
15
- get: function () { return chunkTMIRVVQ7_cjs.SONICJS_VERSION; }
15
+ get: function () { return chunkNNXPAPUD_cjs.SONICJS_VERSION; }
16
16
  });
17
17
  Object.defineProperty(exports, "TemplateRenderer", {
18
18
  enumerable: true,
19
- get: function () { return chunkTMIRVVQ7_cjs.TemplateRenderer; }
19
+ get: function () { return chunkNNXPAPUD_cjs.TemplateRenderer; }
20
20
  });
21
21
  Object.defineProperty(exports, "buildQuery", {
22
22
  enumerable: true,
23
- get: function () { return chunkTMIRVVQ7_cjs.buildQuery; }
23
+ get: function () { return chunkNNXPAPUD_cjs.buildQuery; }
24
24
  });
25
25
  Object.defineProperty(exports, "escapeHtml", {
26
26
  enumerable: true,
27
- get: function () { return chunkTMIRVVQ7_cjs.escapeHtml; }
27
+ get: function () { return chunkNNXPAPUD_cjs.escapeHtml; }
28
28
  });
29
29
  Object.defineProperty(exports, "getCoreVersion", {
30
30
  enumerable: true,
31
- get: function () { return chunkTMIRVVQ7_cjs.getCoreVersion; }
31
+ get: function () { return chunkNNXPAPUD_cjs.getCoreVersion; }
32
32
  });
33
33
  Object.defineProperty(exports, "renderTemplate", {
34
34
  enumerable: true,
35
- get: function () { return chunkTMIRVVQ7_cjs.renderTemplate; }
35
+ get: function () { return chunkNNXPAPUD_cjs.renderTemplate; }
36
36
  });
37
37
  Object.defineProperty(exports, "sanitizeInput", {
38
38
  enumerable: true,
39
- get: function () { return chunkTMIRVVQ7_cjs.sanitizeInput; }
39
+ get: function () { return chunkNNXPAPUD_cjs.sanitizeInput; }
40
40
  });
41
41
  Object.defineProperty(exports, "sanitizeObject", {
42
42
  enumerable: true,
43
- get: function () { return chunkTMIRVVQ7_cjs.sanitizeObject; }
43
+ get: function () { return chunkNNXPAPUD_cjs.sanitizeObject; }
44
44
  });
45
45
  Object.defineProperty(exports, "templateRenderer", {
46
46
  enumerable: true,
47
- get: function () { return chunkTMIRVVQ7_cjs.templateRenderer; }
47
+ get: function () { return chunkNNXPAPUD_cjs.templateRenderer; }
48
48
  });
49
49
  Object.defineProperty(exports, "metricsTracker", {
50
50
  enumerable: true,
package/dist/utils.js CHANGED
@@ -1,4 +1,4 @@
1
- export { QueryFilterBuilder, SONICJS_VERSION, TemplateRenderer, buildQuery, escapeHtml, getCoreVersion, renderTemplate, sanitizeInput, sanitizeObject, templateRenderer } from './chunk-WRRLB6KG.js';
1
+ export { QueryFilterBuilder, SONICJS_VERSION, TemplateRenderer, buildQuery, escapeHtml, getCoreVersion, renderTemplate, sanitizeInput, sanitizeObject, templateRenderer } from './chunk-DU7JJZN7.js';
2
2
  export { metricsTracker } from './chunk-FICTAGD4.js';
3
3
  import './chunk-V4OQ3NZ2.js';
4
4
  //# sourceMappingURL=utils.js.map
@@ -129,7 +129,7 @@ CREATE INDEX IF NOT EXISTS idx_api_tokens_token ON api_tokens(token);
129
129
  CREATE INDEX IF NOT EXISTS idx_workflow_history_content ON workflow_history(content_id);
130
130
  CREATE INDEX IF NOT EXISTS idx_workflow_history_user ON workflow_history(user_id);
131
131
 
132
- -- Insert default admin user (password: admin123)
132
+ -- Insert default admin user (password: sonicjs!)
133
133
  INSERT OR IGNORE INTO users (
134
134
  id, email, username, first_name, last_name, password_hash,
135
135
  role, is_active, created_at, updated_at
@@ -139,7 +139,7 @@ INSERT OR IGNORE INTO users (
139
139
  'admin',
140
140
  'Admin',
141
141
  'User',
142
- 'd1c379e871838f44e21d5a55841349e50636f06df139bfef11870eec74c381db', -- SHA-256 hash of 'admin123'
142
+ 'd1c379e871838f44e21d5a55841349e50636f06df139bfef11870eec74c381db', -- SHA-256 hash of 'sonicjs!'
143
143
  'admin',
144
144
  1,
145
145
  strftime('%s', 'now') * 1000,
@@ -10,7 +10,7 @@ INSERT INTO plugins (
10
10
  'demo-login-prefill',
11
11
  'demo-login-plugin',
12
12
  'Demo Login Prefill',
13
- 'Prefills login form with demo credentials (admin@sonicjs.com/admin123) for easy site demonstration',
13
+ 'Prefills login form with demo credentials (admin@sonicjs.com/sonicjs!) for easy site demonstration',
14
14
  '1.0.0',
15
15
  'SonicJS',
16
16
  'demo',
@@ -0,0 +1,22 @@
1
+ -- Add Email Plugin
2
+ -- Migration: 020_add_email_plugin
3
+ -- Description: Add email plugin for transactional emails via Resend
4
+
5
+ INSERT OR IGNORE INTO plugins (
6
+ id, name, display_name, description, version, author, category, icon,
7
+ status, is_core, permissions, installed_at, last_updated
8
+ ) VALUES (
9
+ 'email',
10
+ 'email',
11
+ 'Email',
12
+ 'Send transactional emails using Resend',
13
+ '1.0.0-beta.1',
14
+ 'SonicJS Team',
15
+ 'communication',
16
+ '📧',
17
+ 'inactive',
18
+ TRUE,
19
+ '["email:manage", "email:send", "email:view-logs"]',
20
+ unixepoch(),
21
+ unixepoch()
22
+ );
@@ -0,0 +1,42 @@
1
+ -- Add Magic Link Authentication Plugin
2
+ -- Migration: 021_add_magic_link_auth_plugin
3
+ -- Description: Add magic link authentication plugin for passwordless login
4
+
5
+ -- Create magic_links table
6
+ CREATE TABLE IF NOT EXISTS magic_links (
7
+ id TEXT PRIMARY KEY,
8
+ user_email TEXT NOT NULL,
9
+ token TEXT NOT NULL UNIQUE,
10
+ expires_at INTEGER NOT NULL,
11
+ used INTEGER DEFAULT 0,
12
+ used_at INTEGER,
13
+ ip_address TEXT,
14
+ user_agent TEXT,
15
+ created_at INTEGER NOT NULL
16
+ );
17
+
18
+ -- Create indexes for performance
19
+ CREATE INDEX IF NOT EXISTS idx_magic_links_token ON magic_links(token);
20
+ CREATE INDEX IF NOT EXISTS idx_magic_links_email ON magic_links(user_email);
21
+ CREATE INDEX IF NOT EXISTS idx_magic_links_expires ON magic_links(expires_at);
22
+
23
+ -- Register the plugin
24
+ INSERT OR IGNORE INTO plugins (
25
+ id, name, display_name, description, version, author, category, icon,
26
+ status, is_core, permissions, dependencies, installed_at, last_updated
27
+ ) VALUES (
28
+ 'magic-link-auth',
29
+ 'magic-link-auth',
30
+ 'Magic Link Authentication',
31
+ 'Passwordless authentication via email magic links. Users receive a secure one-time link to sign in without entering a password.',
32
+ '1.0.0',
33
+ 'SonicJS Team',
34
+ 'security',
35
+ '🔗',
36
+ 'inactive',
37
+ FALSE,
38
+ '["auth:manage", "auth:magic-link"]',
39
+ '["email"]',
40
+ unixepoch(),
41
+ unixepoch()
42
+ );
@@ -0,0 +1,42 @@
1
+ -- Add OTP Login Plugin
2
+ -- Migration: 021_add_otp_login
3
+ -- Description: Add OTP login plugin for passwordless authentication via email codes
4
+
5
+ -- Create table for OTP codes
6
+ CREATE TABLE IF NOT EXISTS otp_codes (
7
+ id TEXT PRIMARY KEY,
8
+ user_email TEXT NOT NULL,
9
+ code TEXT NOT NULL,
10
+ expires_at INTEGER NOT NULL,
11
+ used INTEGER DEFAULT 0,
12
+ used_at INTEGER,
13
+ ip_address TEXT,
14
+ user_agent TEXT,
15
+ attempts INTEGER DEFAULT 0,
16
+ created_at INTEGER NOT NULL
17
+ );
18
+
19
+ -- Create indexes for performance
20
+ CREATE INDEX IF NOT EXISTS idx_otp_email_code ON otp_codes(user_email, code);
21
+ CREATE INDEX IF NOT EXISTS idx_otp_expires ON otp_codes(expires_at);
22
+ CREATE INDEX IF NOT EXISTS idx_otp_used ON otp_codes(used);
23
+
24
+ -- Add plugin record
25
+ INSERT OR IGNORE INTO plugins (
26
+ id, name, display_name, description, version, author, category, icon,
27
+ status, is_core, permissions, installed_at, last_updated
28
+ ) VALUES (
29
+ 'otp-login',
30
+ 'otp-login',
31
+ 'OTP Login',
32
+ 'Passwordless authentication via email one-time codes',
33
+ '1.0.0-beta.1',
34
+ 'SonicJS Team',
35
+ 'authentication',
36
+ '🔢',
37
+ 'inactive',
38
+ TRUE,
39
+ '["otp:manage", "otp:request", "otp:verify"]',
40
+ unixepoch(),
41
+ unixepoch()
42
+ );
@@ -0,0 +1,25 @@
1
+ -- Add TinyMCE Rich Text Editor Plugin
2
+ -- Migration: 022_add_tinymce_plugin
3
+ -- Description: Add TinyMCE plugin for WYSIWYG rich text editing
4
+
5
+ -- Register the plugin (active by default since it replaces hardcoded TinyMCE)
6
+ INSERT OR IGNORE INTO plugins (
7
+ id, name, display_name, description, version, author, category, icon,
8
+ status, is_core, permissions, dependencies, settings, installed_at, last_updated
9
+ ) VALUES (
10
+ 'tinymce-plugin',
11
+ 'tinymce-plugin',
12
+ 'TinyMCE Rich Text Editor',
13
+ 'Powerful WYSIWYG rich text editor for content creation. Provides a full-featured editor with formatting, media embedding, and customizable toolbars for richtext fields.',
14
+ '1.0.0',
15
+ 'SonicJS Team',
16
+ 'editor',
17
+ '✏️',
18
+ 'active',
19
+ FALSE,
20
+ '[]',
21
+ '[]',
22
+ '{"apiKey":"no-api-key","defaultHeight":300,"defaultToolbar":"full","skin":"oxide-dark"}',
23
+ unixepoch(),
24
+ unixepoch()
25
+ );
@@ -0,0 +1,25 @@
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
4
+
5
+ -- Register the plugin (active by default)
6
+ INSERT OR IGNORE INTO plugins (
7
+ id, name, display_name, description, version, author, category, icon,
8
+ status, is_core, permissions, dependencies, settings, installed_at, last_updated
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.',
14
+ '1.0.0',
15
+ 'SonicJS Team',
16
+ 'editor',
17
+ '📝',
18
+ 'active',
19
+ FALSE,
20
+ '[]',
21
+ '[]',
22
+ '{"defaultHeight":400,"theme":"dark","toolbar":"full","placeholder":"Start writing your content..."}',
23
+ unixepoch(),
24
+ unixepoch()
25
+ );
@@ -0,0 +1,25 @@
1
+ -- Add Quill Rich Text Editor Plugin
2
+ -- Migration: 024_add_quill_editor_plugin
3
+ -- Description: Add Quill plugin for modern rich text editing
4
+
5
+ -- Register the plugin (active by default)
6
+ INSERT OR IGNORE INTO plugins (
7
+ id, name, display_name, description, version, author, category, icon,
8
+ status, is_core, permissions, dependencies, settings, installed_at, last_updated
9
+ ) VALUES (
10
+ 'quill-editor',
11
+ 'quill-editor',
12
+ 'Quill Rich Text Editor',
13
+ 'Modern rich text editor for content creation. Provides a clean, intuitive WYSIWYG editor with customizable toolbars for richtext fields.',
14
+ '1.0.0',
15
+ 'SonicJS Team',
16
+ 'editor',
17
+ '✍️',
18
+ 'active',
19
+ FALSE,
20
+ '[]',
21
+ '[]',
22
+ '{"theme":"snow","defaultHeight":300,"defaultToolbar":"full","placeholder":"Start writing your content..."}',
23
+ unixepoch(),
24
+ unixepoch()
25
+ );
@@ -0,0 +1,25 @@
1
+ -- Add EasyMDE Rich Text Editor Plugin
2
+ -- Migration: 025_add_easymde_plugin
3
+ -- Description: Add EasyMDE plugin for markdown-based rich text editing
4
+
5
+ -- Register the plugin (inactive by default, replacing MDXEditor)
6
+ INSERT OR IGNORE INTO plugins (
7
+ id, name, display_name, description, version, author, category, icon,
8
+ status, is_core, permissions, dependencies, settings, installed_at, last_updated
9
+ ) VALUES (
10
+ 'easymde-editor',
11
+ 'easymde-editor',
12
+ 'EasyMDE Editor',
13
+ 'Lightweight markdown editor for content creation. Simple, elegant WYSIWYG markdown editor with live preview, toolbar, and dark mode support for richtext fields.',
14
+ '1.0.0',
15
+ 'SonicJS Team',
16
+ 'editor',
17
+ '✍️',
18
+ 'inactive',
19
+ TRUE,
20
+ '[]',
21
+ '[]',
22
+ '{"theme":"dark","defaultHeight":300,"toolbar":"full","spellChecker":false,"placeholder":"Start writing your content..."}',
23
+ unixepoch(),
24
+ unixepoch()
25
+ );