@sonicjs-cms/core 2.0.10 → 2.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +75 -1
- package/dist/chunk-22EFGHAX.cjs +801 -0
- package/dist/chunk-22EFGHAX.cjs.map +1 -0
- package/dist/{chunk-3PHG75W4.cjs → chunk-2HRF65VF.cjs} +9 -5
- package/dist/chunk-2HRF65VF.cjs.map +1 -0
- package/dist/{chunk-DOR2IU73.cjs → chunk-3F4LF7LW.cjs} +249 -2
- package/dist/chunk-3F4LF7LW.cjs.map +1 -0
- package/dist/chunk-3OKKNBPD.cjs +70 -0
- package/dist/chunk-3OKKNBPD.cjs.map +1 -0
- package/dist/{chunk-LW33AOBF.js → chunk-5RKQB2JG.js} +6 -222
- package/dist/chunk-5RKQB2JG.js.map +1 -0
- package/dist/{chunk-Z4H6DBVF.js → chunk-6B4ENDQM.js} +12006 -10745
- package/dist/chunk-6B4ENDQM.js.map +1 -0
- package/dist/chunk-AUVW4I3D.js +1550 -0
- package/dist/chunk-AUVW4I3D.js.map +1 -0
- package/dist/{chunk-HKEK7UNV.js → chunk-CPXAVWCU.js} +3 -3
- package/dist/{chunk-HKEK7UNV.js.map → chunk-CPXAVWCU.js.map} +1 -1
- package/dist/{chunk-MXJJN4IA.js → chunk-DSDHGJ4F.js} +9 -5
- package/dist/chunk-DSDHGJ4F.js.map +1 -0
- package/dist/{chunk-F5ESJXI2.cjs → chunk-DTLB6UIH.cjs} +3 -3
- package/dist/{chunk-F5ESJXI2.cjs.map → chunk-DTLB6UIH.cjs.map} +1 -1
- package/dist/{chunk-HXA5QSI3.cjs → chunk-F4IGVB2V.cjs} +22 -6
- package/dist/chunk-F4IGVB2V.cjs.map +1 -0
- package/dist/{chunk-Q7SL7U43.cjs → chunk-K5WUGEXH.cjs} +12014 -10752
- package/dist/chunk-K5WUGEXH.cjs.map +1 -0
- package/dist/{chunk-YHG45LMU.js → chunk-LBSKQKYL.js} +20 -4
- package/dist/chunk-LBSKQKYL.js.map +1 -0
- package/dist/chunk-LWMMMW43.js +787 -0
- package/dist/chunk-LWMMMW43.js.map +1 -0
- package/dist/{chunk-6FR25MPC.js → chunk-M2YDOOBC.js} +246 -3
- package/dist/chunk-M2YDOOBC.js.map +1 -0
- package/dist/{chunk-FTMKKKNH.js → chunk-QNWYQZ55.js} +3 -3
- package/dist/{chunk-FTMKKKNH.js.map → chunk-QNWYQZ55.js.map} +1 -1
- package/dist/chunk-RDJ2QLA2.cjs +1552 -0
- package/dist/chunk-RDJ2QLA2.cjs.map +1 -0
- package/dist/chunk-RKNHW6QU.js +61 -0
- package/dist/chunk-RKNHW6QU.js.map +1 -0
- package/dist/{chunk-MU3MR2QR.cjs → chunk-YU6QFFI4.cjs} +5 -222
- package/dist/chunk-YU6QFFI4.cjs.map +1 -0
- package/dist/{chunk-CAP6QQR2.cjs → chunk-ZMSYKV62.cjs} +5 -5
- package/dist/{chunk-CAP6QQR2.cjs.map → chunk-ZMSYKV62.cjs.map} +1 -1
- package/dist/index.cjs +527 -154
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +390 -13
- package/dist/index.js.map +1 -1
- package/dist/middleware.cjs +24 -23
- package/dist/middleware.js +3 -2
- package/dist/migrations-DURR3GZX.js +4 -0
- package/dist/migrations-DURR3GZX.js.map +1 -0
- package/dist/migrations-P5BD7WQK.cjs +13 -0
- package/dist/migrations-P5BD7WQK.cjs.map +1 -0
- package/dist/plugins.cjs +7 -7
- package/dist/plugins.js +1 -1
- package/dist/routes.cjs +31 -29
- package/dist/routes.js +8 -6
- package/dist/services.cjs +42 -24
- package/dist/services.js +4 -2
- package/dist/templates.cjs +17 -21
- package/dist/templates.js +2 -2
- package/dist/utils.cjs +44 -11
- package/dist/utils.js +2 -1
- package/migrations/001_initial_schema.sql +2 -2
- package/migrations/007_demo_login_plugin.sql +1 -1
- package/migrations/020_add_email_plugin.sql +22 -0
- package/migrations/021_add_magic_link_auth_plugin.sql +42 -0
- package/migrations/022_add_tinymce_plugin.sql +25 -0
- package/migrations/023_add_easy_mdx_plugin.sql +25 -0
- package/migrations/024_add_quill_editor_plugin.sql +25 -0
- package/migrations/025_rename_mdxeditor_to_easy_mdx.sql +22 -0
- package/migrations/026_add_otp_login.sql +42 -0
- package/package.json +7 -3
- package/dist/chunk-3PHG75W4.cjs.map +0 -1
- package/dist/chunk-6FR25MPC.js.map +0 -1
- package/dist/chunk-COBUPOMD.js +0 -1511
- package/dist/chunk-COBUPOMD.js.map +0 -1
- package/dist/chunk-DOR2IU73.cjs.map +0 -1
- package/dist/chunk-HXA5QSI3.cjs.map +0 -1
- package/dist/chunk-LW33AOBF.js.map +0 -1
- package/dist/chunk-MU3MR2QR.cjs.map +0 -1
- package/dist/chunk-MXJJN4IA.js.map +0 -1
- package/dist/chunk-NBDPIRQS.cjs +0 -1526
- package/dist/chunk-NBDPIRQS.cjs.map +0 -1
- package/dist/chunk-Q7SL7U43.cjs.map +0 -1
- package/dist/chunk-YHG45LMU.js.map +0 -1
- package/dist/chunk-Z4H6DBVF.js.map +0 -1
- package/migrations/002_faq_plugin.sql +0 -86
- package/migrations/013_code_examples_plugin.sql +0 -177
package/dist/plugins.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
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
|
|
11
|
+
get: function () { return chunkDTLB6UIH_cjs.HookSystemImpl; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "HookUtils", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkDTLB6UIH_cjs.HookUtils; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "PluginManager", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkDTLB6UIH_cjs.PluginManager; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "PluginRegistryImpl", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkDTLB6UIH_cjs.PluginRegistryImpl; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "PluginValidator", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkDTLB6UIH_cjs.PluginValidator; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "ScopedHookSystem", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
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-
|
|
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,11 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
3
|
+
var chunkK5WUGEXH_cjs = require('./chunk-K5WUGEXH.cjs');
|
|
4
|
+
require('./chunk-3F4LF7LW.cjs');
|
|
5
|
+
require('./chunk-F4IGVB2V.cjs');
|
|
6
|
+
require('./chunk-22EFGHAX.cjs');
|
|
7
|
+
require('./chunk-RDJ2QLA2.cjs');
|
|
8
|
+
require('./chunk-YU6QFFI4.cjs');
|
|
9
|
+
require('./chunk-2HRF65VF.cjs');
|
|
10
|
+
require('./chunk-3OKKNBPD.cjs');
|
|
9
11
|
require('./chunk-RCQ2HIQD.cjs');
|
|
10
12
|
require('./chunk-IGJUBJBW.cjs');
|
|
11
13
|
|
|
@@ -13,83 +15,83 @@ require('./chunk-IGJUBJBW.cjs');
|
|
|
13
15
|
|
|
14
16
|
Object.defineProperty(exports, "ROUTES_INFO", {
|
|
15
17
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkK5WUGEXH_cjs.ROUTES_INFO; }
|
|
17
19
|
});
|
|
18
20
|
Object.defineProperty(exports, "adminApiRoutes", {
|
|
19
21
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkK5WUGEXH_cjs.admin_api_default; }
|
|
21
23
|
});
|
|
22
24
|
Object.defineProperty(exports, "adminCheckboxRoutes", {
|
|
23
25
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkK5WUGEXH_cjs.adminCheckboxRoutes; }
|
|
25
27
|
});
|
|
26
28
|
Object.defineProperty(exports, "adminCodeExamplesRoutes", {
|
|
27
29
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkK5WUGEXH_cjs.admin_code_examples_default; }
|
|
29
31
|
});
|
|
30
32
|
Object.defineProperty(exports, "adminCollectionsRoutes", {
|
|
31
33
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkK5WUGEXH_cjs.adminCollectionsRoutes; }
|
|
33
35
|
});
|
|
34
36
|
Object.defineProperty(exports, "adminContentRoutes", {
|
|
35
37
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkK5WUGEXH_cjs.admin_content_default; }
|
|
37
39
|
});
|
|
38
40
|
Object.defineProperty(exports, "adminDashboardRoutes", {
|
|
39
41
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkK5WUGEXH_cjs.router; }
|
|
41
43
|
});
|
|
42
44
|
Object.defineProperty(exports, "adminDesignRoutes", {
|
|
43
45
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
45
|
-
});
|
|
46
|
-
Object.defineProperty(exports, "adminFAQRoutes", {
|
|
47
|
-
enumerable: true,
|
|
48
|
-
get: function () { return chunkQ7SL7U43_cjs.admin_faq_default; }
|
|
46
|
+
get: function () { return chunkK5WUGEXH_cjs.adminDesignRoutes; }
|
|
49
47
|
});
|
|
50
48
|
Object.defineProperty(exports, "adminLogsRoutes", {
|
|
51
49
|
enumerable: true,
|
|
52
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkK5WUGEXH_cjs.adminLogsRoutes; }
|
|
53
51
|
});
|
|
54
52
|
Object.defineProperty(exports, "adminMediaRoutes", {
|
|
55
53
|
enumerable: true,
|
|
56
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkK5WUGEXH_cjs.adminMediaRoutes; }
|
|
57
55
|
});
|
|
58
56
|
Object.defineProperty(exports, "adminPluginRoutes", {
|
|
59
57
|
enumerable: true,
|
|
60
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkK5WUGEXH_cjs.adminPluginRoutes; }
|
|
61
59
|
});
|
|
62
60
|
Object.defineProperty(exports, "adminSettingsRoutes", {
|
|
63
61
|
enumerable: true,
|
|
64
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkK5WUGEXH_cjs.adminSettingsRoutes; }
|
|
65
63
|
});
|
|
66
64
|
Object.defineProperty(exports, "adminTestimonialsRoutes", {
|
|
67
65
|
enumerable: true,
|
|
68
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkK5WUGEXH_cjs.admin_testimonials_default; }
|
|
69
67
|
});
|
|
70
68
|
Object.defineProperty(exports, "adminUsersRoutes", {
|
|
71
69
|
enumerable: true,
|
|
72
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkK5WUGEXH_cjs.userRoutes; }
|
|
73
71
|
});
|
|
74
72
|
Object.defineProperty(exports, "apiContentCrudRoutes", {
|
|
75
73
|
enumerable: true,
|
|
76
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunkK5WUGEXH_cjs.api_content_crud_default; }
|
|
77
75
|
});
|
|
78
76
|
Object.defineProperty(exports, "apiMediaRoutes", {
|
|
79
77
|
enumerable: true,
|
|
80
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunkK5WUGEXH_cjs.api_media_default; }
|
|
81
79
|
});
|
|
82
80
|
Object.defineProperty(exports, "apiRoutes", {
|
|
83
81
|
enumerable: true,
|
|
84
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunkK5WUGEXH_cjs.api_default; }
|
|
85
83
|
});
|
|
86
84
|
Object.defineProperty(exports, "apiSystemRoutes", {
|
|
87
85
|
enumerable: true,
|
|
88
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunkK5WUGEXH_cjs.api_system_default; }
|
|
89
87
|
});
|
|
90
88
|
Object.defineProperty(exports, "authRoutes", {
|
|
91
89
|
enumerable: true,
|
|
92
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunkK5WUGEXH_cjs.auth_default; }
|
|
91
|
+
});
|
|
92
|
+
Object.defineProperty(exports, "testCleanupRoutes", {
|
|
93
|
+
enumerable: true,
|
|
94
|
+
get: function () { return chunkK5WUGEXH_cjs.test_cleanup_default; }
|
|
93
95
|
});
|
|
94
96
|
//# sourceMappingURL=routes.cjs.map
|
|
95
97
|
//# sourceMappingURL=routes.cjs.map
|
package/dist/routes.js
CHANGED
|
@@ -1,9 +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,
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
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-6B4ENDQM.js';
|
|
2
|
+
import './chunk-M2YDOOBC.js';
|
|
3
|
+
import './chunk-LBSKQKYL.js';
|
|
4
|
+
import './chunk-LWMMMW43.js';
|
|
5
|
+
import './chunk-AUVW4I3D.js';
|
|
6
|
+
import './chunk-5RKQB2JG.js';
|
|
7
|
+
import './chunk-DSDHGJ4F.js';
|
|
8
|
+
import './chunk-RKNHW6QU.js';
|
|
7
9
|
import './chunk-FICTAGD4.js';
|
|
8
10
|
import './chunk-V4OQ3NZ2.js';
|
|
9
11
|
//# sourceMappingURL=routes.js.map
|
package/dist/services.cjs
CHANGED
|
@@ -1,94 +1,112 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunk3F4LF7LW_cjs = require('./chunk-3F4LF7LW.cjs');
|
|
4
|
+
var chunk22EFGHAX_cjs = require('./chunk-22EFGHAX.cjs');
|
|
5
|
+
var chunkRDJ2QLA2_cjs = require('./chunk-RDJ2QLA2.cjs');
|
|
6
|
+
require('./chunk-3OKKNBPD.cjs');
|
|
5
7
|
require('./chunk-IGJUBJBW.cjs');
|
|
6
8
|
|
|
7
9
|
|
|
8
10
|
|
|
9
11
|
Object.defineProperty(exports, "CACHE_CONFIGS", {
|
|
10
12
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunk3F4LF7LW_cjs.CACHE_CONFIGS; }
|
|
12
14
|
});
|
|
13
15
|
Object.defineProperty(exports, "CacheService", {
|
|
14
16
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk3F4LF7LW_cjs.CacheService; }
|
|
16
18
|
});
|
|
17
19
|
Object.defineProperty(exports, "Logger", {
|
|
18
20
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunk3F4LF7LW_cjs.Logger; }
|
|
20
22
|
});
|
|
21
23
|
Object.defineProperty(exports, "SettingsService", {
|
|
22
24
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunk3F4LF7LW_cjs.SettingsService; }
|
|
26
|
+
});
|
|
27
|
+
Object.defineProperty(exports, "TelemetryService", {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () { return chunk3F4LF7LW_cjs.TelemetryService; }
|
|
30
|
+
});
|
|
31
|
+
Object.defineProperty(exports, "createInstallationIdentity", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function () { return chunk3F4LF7LW_cjs.createInstallationIdentity; }
|
|
24
34
|
});
|
|
25
35
|
Object.defineProperty(exports, "getCacheService", {
|
|
26
36
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunk3F4LF7LW_cjs.getCacheService; }
|
|
28
38
|
});
|
|
29
39
|
Object.defineProperty(exports, "getLogger", {
|
|
30
40
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunk3F4LF7LW_cjs.getLogger; }
|
|
42
|
+
});
|
|
43
|
+
Object.defineProperty(exports, "getTelemetryService", {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function () { return chunk3F4LF7LW_cjs.getTelemetryService; }
|
|
32
46
|
});
|
|
33
47
|
Object.defineProperty(exports, "initLogger", {
|
|
34
48
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunk3F4LF7LW_cjs.initLogger; }
|
|
36
50
|
});
|
|
37
|
-
Object.defineProperty(exports, "
|
|
51
|
+
Object.defineProperty(exports, "initTelemetry", {
|
|
38
52
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunk3F4LF7LW_cjs.initTelemetry; }
|
|
40
54
|
});
|
|
41
55
|
Object.defineProperty(exports, "PluginBootstrapService", {
|
|
42
56
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunk22EFGHAX_cjs.PluginBootstrapService; }
|
|
44
58
|
});
|
|
45
59
|
Object.defineProperty(exports, "PluginService", {
|
|
46
60
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunk22EFGHAX_cjs.PluginService; }
|
|
48
62
|
});
|
|
49
63
|
Object.defineProperty(exports, "cleanupRemovedCollections", {
|
|
50
64
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunk22EFGHAX_cjs.cleanupRemovedCollections; }
|
|
52
66
|
});
|
|
53
67
|
Object.defineProperty(exports, "fullCollectionSync", {
|
|
54
68
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunk22EFGHAX_cjs.fullCollectionSync; }
|
|
56
70
|
});
|
|
57
71
|
Object.defineProperty(exports, "getAvailableCollectionNames", {
|
|
58
72
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunk22EFGHAX_cjs.getAvailableCollectionNames; }
|
|
60
74
|
});
|
|
61
75
|
Object.defineProperty(exports, "getManagedCollections", {
|
|
62
76
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunk22EFGHAX_cjs.getManagedCollections; }
|
|
64
78
|
});
|
|
65
79
|
Object.defineProperty(exports, "isCollectionManaged", {
|
|
66
80
|
enumerable: true,
|
|
67
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunk22EFGHAX_cjs.isCollectionManaged; }
|
|
68
82
|
});
|
|
69
83
|
Object.defineProperty(exports, "loadCollectionConfig", {
|
|
70
84
|
enumerable: true,
|
|
71
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunk22EFGHAX_cjs.loadCollectionConfig; }
|
|
72
86
|
});
|
|
73
87
|
Object.defineProperty(exports, "loadCollectionConfigs", {
|
|
74
88
|
enumerable: true,
|
|
75
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunk22EFGHAX_cjs.loadCollectionConfigs; }
|
|
76
90
|
});
|
|
77
91
|
Object.defineProperty(exports, "registerCollections", {
|
|
78
92
|
enumerable: true,
|
|
79
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunk22EFGHAX_cjs.registerCollections; }
|
|
80
94
|
});
|
|
81
95
|
Object.defineProperty(exports, "syncCollection", {
|
|
82
96
|
enumerable: true,
|
|
83
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunk22EFGHAX_cjs.syncCollection; }
|
|
84
98
|
});
|
|
85
99
|
Object.defineProperty(exports, "syncCollections", {
|
|
86
100
|
enumerable: true,
|
|
87
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunk22EFGHAX_cjs.syncCollections; }
|
|
88
102
|
});
|
|
89
103
|
Object.defineProperty(exports, "validateCollectionConfig", {
|
|
90
104
|
enumerable: true,
|
|
91
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunk22EFGHAX_cjs.validateCollectionConfig; }
|
|
106
|
+
});
|
|
107
|
+
Object.defineProperty(exports, "MigrationService", {
|
|
108
|
+
enumerable: true,
|
|
109
|
+
get: function () { return chunkRDJ2QLA2_cjs.MigrationService; }
|
|
92
110
|
});
|
|
93
111
|
//# sourceMappingURL=services.cjs.map
|
|
94
112
|
//# sourceMappingURL=services.cjs.map
|
package/dist/services.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
export { CACHE_CONFIGS, CacheService, Logger, SettingsService, getCacheService, getLogger, initLogger } from './chunk-
|
|
2
|
-
export {
|
|
1
|
+
export { CACHE_CONFIGS, CacheService, Logger, SettingsService, TelemetryService, createInstallationIdentity, getCacheService, getLogger, getTelemetryService, initLogger, initTelemetry } from './chunk-M2YDOOBC.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-AUVW4I3D.js';
|
|
4
|
+
import './chunk-RKNHW6QU.js';
|
|
3
5
|
import './chunk-V4OQ3NZ2.js';
|
|
4
6
|
//# sourceMappingURL=services.js.map
|
|
5
7
|
//# sourceMappingURL=services.js.map
|
package/dist/templates.cjs
CHANGED
|
@@ -1,74 +1,70 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
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
|
|
11
|
+
get: function () { return chunkZMSYKV62_cjs.renderFilterBar; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "getConfirmationDialogScript", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkYU6QFFI4_cjs.getConfirmationDialogScript; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "renderAdminLayout", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkYU6QFFI4_cjs.renderAdminLayout; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "renderAdminLayoutCatalyst", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkYU6QFFI4_cjs.renderAdminLayoutCatalyst; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "renderAlert", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkYU6QFFI4_cjs.renderAlert; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "renderCheckboxPage", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkYU6QFFI4_cjs.renderCheckboxPage; }
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, "renderCodeExamplesList", {
|
|
34
34
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunkYU6QFFI4_cjs.renderCodeExamplesList; }
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, "renderConfirmationDialog", {
|
|
38
38
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunkYU6QFFI4_cjs.renderConfirmationDialog; }
|
|
40
40
|
});
|
|
41
41
|
Object.defineProperty(exports, "renderDesignPage", {
|
|
42
42
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
44
|
-
});
|
|
45
|
-
Object.defineProperty(exports, "renderFAQList", {
|
|
46
|
-
enumerable: true,
|
|
47
|
-
get: function () { return chunkMU3MR2QR_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
|
|
47
|
+
get: function () { return chunkYU6QFFI4_cjs.renderForm; }
|
|
52
48
|
});
|
|
53
49
|
Object.defineProperty(exports, "renderFormField", {
|
|
54
50
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunkYU6QFFI4_cjs.renderFormField; }
|
|
56
52
|
});
|
|
57
53
|
Object.defineProperty(exports, "renderLogo", {
|
|
58
54
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunkYU6QFFI4_cjs.renderLogo; }
|
|
60
56
|
});
|
|
61
57
|
Object.defineProperty(exports, "renderPagination", {
|
|
62
58
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunkYU6QFFI4_cjs.renderPagination; }
|
|
64
60
|
});
|
|
65
61
|
Object.defineProperty(exports, "renderTable", {
|
|
66
62
|
enumerable: true,
|
|
67
|
-
get: function () { return
|
|
63
|
+
get: function () { return chunkYU6QFFI4_cjs.renderTable; }
|
|
68
64
|
});
|
|
69
65
|
Object.defineProperty(exports, "renderTestimonialsList", {
|
|
70
66
|
enumerable: true,
|
|
71
|
-
get: function () { return
|
|
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-
|
|
2
|
-
export { getConfirmationDialogScript, renderAdminLayout, renderAdminLayoutCatalyst, renderAlert, renderCheckboxPage, renderCodeExamplesList, renderConfirmationDialog, renderDesignPage,
|
|
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,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk2HRF65VF_cjs = require('./chunk-2HRF65VF.cjs');
|
|
4
|
+
var chunk3OKKNBPD_cjs = require('./chunk-3OKKNBPD.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
|
|
12
|
+
get: function () { return chunk2HRF65VF_cjs.QueryFilterBuilder; }
|
|
12
13
|
});
|
|
13
14
|
Object.defineProperty(exports, "SONICJS_VERSION", {
|
|
14
15
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunk2HRF65VF_cjs.SONICJS_VERSION; }
|
|
16
17
|
});
|
|
17
18
|
Object.defineProperty(exports, "TemplateRenderer", {
|
|
18
19
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunk2HRF65VF_cjs.TemplateRenderer; }
|
|
20
21
|
});
|
|
21
22
|
Object.defineProperty(exports, "buildQuery", {
|
|
22
23
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunk2HRF65VF_cjs.buildQuery; }
|
|
24
25
|
});
|
|
25
26
|
Object.defineProperty(exports, "escapeHtml", {
|
|
26
27
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunk2HRF65VF_cjs.escapeHtml; }
|
|
28
29
|
});
|
|
29
30
|
Object.defineProperty(exports, "getCoreVersion", {
|
|
30
31
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunk2HRF65VF_cjs.getCoreVersion; }
|
|
32
33
|
});
|
|
33
34
|
Object.defineProperty(exports, "renderTemplate", {
|
|
34
35
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunk2HRF65VF_cjs.renderTemplate; }
|
|
36
37
|
});
|
|
37
38
|
Object.defineProperty(exports, "sanitizeInput", {
|
|
38
39
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunk2HRF65VF_cjs.sanitizeInput; }
|
|
40
41
|
});
|
|
41
42
|
Object.defineProperty(exports, "sanitizeObject", {
|
|
42
43
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunk2HRF65VF_cjs.sanitizeObject; }
|
|
44
45
|
});
|
|
45
46
|
Object.defineProperty(exports, "templateRenderer", {
|
|
46
47
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunk2HRF65VF_cjs.templateRenderer; }
|
|
49
|
+
});
|
|
50
|
+
Object.defineProperty(exports, "DEFAULT_TELEMETRY_CONFIG", {
|
|
51
|
+
enumerable: true,
|
|
52
|
+
get: function () { return chunk3OKKNBPD_cjs.DEFAULT_TELEMETRY_CONFIG; }
|
|
53
|
+
});
|
|
54
|
+
Object.defineProperty(exports, "generateInstallationId", {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function () { return chunk3OKKNBPD_cjs.generateInstallationId; }
|
|
57
|
+
});
|
|
58
|
+
Object.defineProperty(exports, "generateProjectId", {
|
|
59
|
+
enumerable: true,
|
|
60
|
+
get: function () { return chunk3OKKNBPD_cjs.generateProjectId; }
|
|
61
|
+
});
|
|
62
|
+
Object.defineProperty(exports, "getTelemetryConfig", {
|
|
63
|
+
enumerable: true,
|
|
64
|
+
get: function () { return chunk3OKKNBPD_cjs.getTelemetryConfig; }
|
|
65
|
+
});
|
|
66
|
+
Object.defineProperty(exports, "isTelemetryEnabled", {
|
|
67
|
+
enumerable: true,
|
|
68
|
+
get: function () { return chunk3OKKNBPD_cjs.isTelemetryEnabled; }
|
|
69
|
+
});
|
|
70
|
+
Object.defineProperty(exports, "sanitizeErrorMessage", {
|
|
71
|
+
enumerable: true,
|
|
72
|
+
get: function () { return chunk3OKKNBPD_cjs.sanitizeErrorMessage; }
|
|
73
|
+
});
|
|
74
|
+
Object.defineProperty(exports, "sanitizeRoute", {
|
|
75
|
+
enumerable: true,
|
|
76
|
+
get: function () { return chunk3OKKNBPD_cjs.sanitizeRoute; }
|
|
77
|
+
});
|
|
78
|
+
Object.defineProperty(exports, "shouldSkipEvent", {
|
|
79
|
+
enumerable: true,
|
|
80
|
+
get: function () { return chunk3OKKNBPD_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-
|
|
1
|
+
export { QueryFilterBuilder, SONICJS_VERSION, TemplateRenderer, buildQuery, escapeHtml, getCoreVersion, renderTemplate, sanitizeInput, sanitizeObject, templateRenderer } from './chunk-DSDHGJ4F.js';
|
|
2
|
+
export { DEFAULT_TELEMETRY_CONFIG, generateInstallationId, generateProjectId, getTelemetryConfig, isTelemetryEnabled, sanitizeErrorMessage, sanitizeRoute, shouldSkipEvent } from './chunk-RKNHW6QU.js';
|
|
2
3
|
export { metricsTracker } from './chunk-FICTAGD4.js';
|
|
3
4
|
import './chunk-V4OQ3NZ2.js';
|
|
4
5
|
//# 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:
|
|
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
|
-
'
|
|
142
|
+
'9c9ec10df964f588e51acc794a63f18d5582e9b91c8366ba292ebde84d3834fd', -- SHA-256 hash of 'sonicjs!' with salt
|
|
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/
|
|
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
|
+
);
|