@sonicjs-cms/core 2.0.9 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-22EFGHAX.cjs +801 -0
- package/dist/chunk-22EFGHAX.cjs.map +1 -0
- package/dist/{chunk-TMIRVVQ7.cjs → chunk-2MBNRFS5.cjs} +7 -5
- package/dist/chunk-2MBNRFS5.cjs.map +1 -0
- package/dist/{chunk-VEC5MLT3.js → chunk-5RKQB2JG.js} +10 -228
- package/dist/chunk-5RKQB2JG.js.map +1 -0
- package/dist/{chunk-DYYAXDXI.cjs → chunk-7EGKU7OO.cjs} +31 -11
- package/dist/chunk-7EGKU7OO.cjs.map +1 -0
- package/dist/{chunk-6FR25MPC.js → chunk-F4K5QAN6.js} +246 -3
- package/dist/chunk-F4K5QAN6.js.map +1 -0
- package/dist/{chunk-WRRLB6KG.js → chunk-K5JZ4JI3.js} +7 -5
- package/dist/chunk-K5JZ4JI3.js.map +1 -0
- package/dist/{chunk-ABYMIXRN.js → chunk-KZ5XDGE6.js} +11891 -10589
- package/dist/chunk-KZ5XDGE6.js.map +1 -0
- package/dist/{chunk-4I25AGUR.cjs → chunk-LPM3NPAX.cjs} +12083 -10780
- package/dist/chunk-LPM3NPAX.cjs.map +1 -0
- package/dist/chunk-LWMMMW43.js +787 -0
- package/dist/chunk-LWMMMW43.js.map +1 -0
- package/dist/chunk-NMVOTNSL.js +61 -0
- package/dist/chunk-NMVOTNSL.js.map +1 -0
- package/dist/{chunk-OPGDMS7L.js → chunk-QNWYQZ55.js} +3 -3
- package/dist/{chunk-OPGDMS7L.js.map → chunk-QNWYQZ55.js.map} +1 -1
- package/dist/{chunk-COBUPOMD.js → chunk-T7IYBGGO.cjs} +5 -770
- package/dist/chunk-T7IYBGGO.cjs.map +1 -0
- package/dist/{chunk-OKPDQO2Y.js → chunk-UJ4K4B23.js} +30 -10
- package/dist/chunk-UJ4K4B23.js.map +1 -0
- package/dist/chunk-WBX5YMTB.cjs +70 -0
- package/dist/chunk-WBX5YMTB.cjs.map +1 -0
- package/dist/{chunk-DOR2IU73.cjs → chunk-YP52USGX.cjs} +249 -2
- package/dist/chunk-YP52USGX.cjs.map +1 -0
- package/dist/{chunk-EYMHWJTW.cjs → chunk-YU6QFFI4.cjs} +9 -228
- package/dist/chunk-YU6QFFI4.cjs.map +1 -0
- package/dist/{chunk-MABBKINE.cjs → chunk-ZMSYKV62.cjs} +5 -5
- package/dist/{chunk-MABBKINE.cjs.map → chunk-ZMSYKV62.cjs.map} +1 -1
- package/dist/{chunk-NBDPIRQS.cjs → chunk-ZPMFT2JW.js} +4 -786
- package/dist/chunk-ZPMFT2JW.js.map +1 -0
- package/dist/index.cjs +520 -147
- 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-IHERIQVD.js +4 -0
- package/dist/migrations-IHERIQVD.js.map +1 -0
- package/dist/migrations-POFD5KNG.cjs +13 -0
- package/dist/migrations-POFD5KNG.cjs.map +1 -0
- 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/021_add_otp_login.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/package.json +5 -3
- package/dist/chunk-4I25AGUR.cjs.map +0 -1
- package/dist/chunk-6FR25MPC.js.map +0 -1
- package/dist/chunk-ABYMIXRN.js.map +0 -1
- package/dist/chunk-COBUPOMD.js.map +0 -1
- package/dist/chunk-DOR2IU73.cjs.map +0 -1
- package/dist/chunk-DYYAXDXI.cjs.map +0 -1
- package/dist/chunk-EYMHWJTW.cjs.map +0 -1
- package/dist/chunk-NBDPIRQS.cjs.map +0 -1
- package/dist/chunk-OKPDQO2Y.js.map +0 -1
- package/dist/chunk-TMIRVVQ7.cjs.map +0 -1
- package/dist/chunk-VEC5MLT3.js.map +0 -1
- package/dist/chunk-WRRLB6KG.js.map +0 -1
- package/migrations/002_faq_plugin.sql +0 -86
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 chunkLPM3NPAX_cjs = require('./chunk-LPM3NPAX.cjs');
|
|
4
|
+
require('./chunk-YP52USGX.cjs');
|
|
5
|
+
require('./chunk-7EGKU7OO.cjs');
|
|
6
|
+
require('./chunk-22EFGHAX.cjs');
|
|
7
|
+
require('./chunk-T7IYBGGO.cjs');
|
|
8
|
+
require('./chunk-YU6QFFI4.cjs');
|
|
9
|
+
require('./chunk-2MBNRFS5.cjs');
|
|
10
|
+
require('./chunk-WBX5YMTB.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 chunkLPM3NPAX_cjs.ROUTES_INFO; }
|
|
17
19
|
});
|
|
18
20
|
Object.defineProperty(exports, "adminApiRoutes", {
|
|
19
21
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkLPM3NPAX_cjs.admin_api_default; }
|
|
21
23
|
});
|
|
22
24
|
Object.defineProperty(exports, "adminCheckboxRoutes", {
|
|
23
25
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkLPM3NPAX_cjs.adminCheckboxRoutes; }
|
|
25
27
|
});
|
|
26
28
|
Object.defineProperty(exports, "adminCodeExamplesRoutes", {
|
|
27
29
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkLPM3NPAX_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 chunkLPM3NPAX_cjs.adminCollectionsRoutes; }
|
|
33
35
|
});
|
|
34
36
|
Object.defineProperty(exports, "adminContentRoutes", {
|
|
35
37
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkLPM3NPAX_cjs.admin_content_default; }
|
|
37
39
|
});
|
|
38
40
|
Object.defineProperty(exports, "adminDashboardRoutes", {
|
|
39
41
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkLPM3NPAX_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 chunk4I25AGUR_cjs.admin_faq_default; }
|
|
46
|
+
get: function () { return chunkLPM3NPAX_cjs.adminDesignRoutes; }
|
|
49
47
|
});
|
|
50
48
|
Object.defineProperty(exports, "adminLogsRoutes", {
|
|
51
49
|
enumerable: true,
|
|
52
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkLPM3NPAX_cjs.adminLogsRoutes; }
|
|
53
51
|
});
|
|
54
52
|
Object.defineProperty(exports, "adminMediaRoutes", {
|
|
55
53
|
enumerable: true,
|
|
56
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkLPM3NPAX_cjs.adminMediaRoutes; }
|
|
57
55
|
});
|
|
58
56
|
Object.defineProperty(exports, "adminPluginRoutes", {
|
|
59
57
|
enumerable: true,
|
|
60
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkLPM3NPAX_cjs.adminPluginRoutes; }
|
|
61
59
|
});
|
|
62
60
|
Object.defineProperty(exports, "adminSettingsRoutes", {
|
|
63
61
|
enumerable: true,
|
|
64
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkLPM3NPAX_cjs.adminSettingsRoutes; }
|
|
65
63
|
});
|
|
66
64
|
Object.defineProperty(exports, "adminTestimonialsRoutes", {
|
|
67
65
|
enumerable: true,
|
|
68
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkLPM3NPAX_cjs.admin_testimonials_default; }
|
|
69
67
|
});
|
|
70
68
|
Object.defineProperty(exports, "adminUsersRoutes", {
|
|
71
69
|
enumerable: true,
|
|
72
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkLPM3NPAX_cjs.userRoutes; }
|
|
73
71
|
});
|
|
74
72
|
Object.defineProperty(exports, "apiContentCrudRoutes", {
|
|
75
73
|
enumerable: true,
|
|
76
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunkLPM3NPAX_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 chunkLPM3NPAX_cjs.api_media_default; }
|
|
81
79
|
});
|
|
82
80
|
Object.defineProperty(exports, "apiRoutes", {
|
|
83
81
|
enumerable: true,
|
|
84
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunkLPM3NPAX_cjs.api_default; }
|
|
85
83
|
});
|
|
86
84
|
Object.defineProperty(exports, "apiSystemRoutes", {
|
|
87
85
|
enumerable: true,
|
|
88
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunkLPM3NPAX_cjs.api_system_default; }
|
|
89
87
|
});
|
|
90
88
|
Object.defineProperty(exports, "authRoutes", {
|
|
91
89
|
enumerable: true,
|
|
92
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunkLPM3NPAX_cjs.auth_default; }
|
|
91
|
+
});
|
|
92
|
+
Object.defineProperty(exports, "testCleanupRoutes", {
|
|
93
|
+
enumerable: true,
|
|
94
|
+
get: function () { return chunkLPM3NPAX_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-KZ5XDGE6.js';
|
|
2
|
+
import './chunk-F4K5QAN6.js';
|
|
3
|
+
import './chunk-UJ4K4B23.js';
|
|
4
|
+
import './chunk-LWMMMW43.js';
|
|
5
|
+
import './chunk-ZPMFT2JW.js';
|
|
6
|
+
import './chunk-5RKQB2JG.js';
|
|
7
|
+
import './chunk-K5JZ4JI3.js';
|
|
8
|
+
import './chunk-NMVOTNSL.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 chunkYP52USGX_cjs = require('./chunk-YP52USGX.cjs');
|
|
4
|
+
var chunk22EFGHAX_cjs = require('./chunk-22EFGHAX.cjs');
|
|
5
|
+
var chunkT7IYBGGO_cjs = require('./chunk-T7IYBGGO.cjs');
|
|
6
|
+
require('./chunk-WBX5YMTB.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 chunkYP52USGX_cjs.CACHE_CONFIGS; }
|
|
12
14
|
});
|
|
13
15
|
Object.defineProperty(exports, "CacheService", {
|
|
14
16
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkYP52USGX_cjs.CacheService; }
|
|
16
18
|
});
|
|
17
19
|
Object.defineProperty(exports, "Logger", {
|
|
18
20
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkYP52USGX_cjs.Logger; }
|
|
20
22
|
});
|
|
21
23
|
Object.defineProperty(exports, "SettingsService", {
|
|
22
24
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkYP52USGX_cjs.SettingsService; }
|
|
26
|
+
});
|
|
27
|
+
Object.defineProperty(exports, "TelemetryService", {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () { return chunkYP52USGX_cjs.TelemetryService; }
|
|
30
|
+
});
|
|
31
|
+
Object.defineProperty(exports, "createInstallationIdentity", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function () { return chunkYP52USGX_cjs.createInstallationIdentity; }
|
|
24
34
|
});
|
|
25
35
|
Object.defineProperty(exports, "getCacheService", {
|
|
26
36
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkYP52USGX_cjs.getCacheService; }
|
|
28
38
|
});
|
|
29
39
|
Object.defineProperty(exports, "getLogger", {
|
|
30
40
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkYP52USGX_cjs.getLogger; }
|
|
42
|
+
});
|
|
43
|
+
Object.defineProperty(exports, "getTelemetryService", {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function () { return chunkYP52USGX_cjs.getTelemetryService; }
|
|
32
46
|
});
|
|
33
47
|
Object.defineProperty(exports, "initLogger", {
|
|
34
48
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkYP52USGX_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 chunkYP52USGX_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 chunkT7IYBGGO_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-F4K5QAN6.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-ZPMFT2JW.js';
|
|
4
|
+
import './chunk-NMVOTNSL.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 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
|
|
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 chunk2MBNRFS5_cjs = require('./chunk-2MBNRFS5.cjs');
|
|
4
|
+
var chunkWBX5YMTB_cjs = require('./chunk-WBX5YMTB.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 chunk2MBNRFS5_cjs.QueryFilterBuilder; }
|
|
12
13
|
});
|
|
13
14
|
Object.defineProperty(exports, "SONICJS_VERSION", {
|
|
14
15
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunk2MBNRFS5_cjs.SONICJS_VERSION; }
|
|
16
17
|
});
|
|
17
18
|
Object.defineProperty(exports, "TemplateRenderer", {
|
|
18
19
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunk2MBNRFS5_cjs.TemplateRenderer; }
|
|
20
21
|
});
|
|
21
22
|
Object.defineProperty(exports, "buildQuery", {
|
|
22
23
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunk2MBNRFS5_cjs.buildQuery; }
|
|
24
25
|
});
|
|
25
26
|
Object.defineProperty(exports, "escapeHtml", {
|
|
26
27
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunk2MBNRFS5_cjs.escapeHtml; }
|
|
28
29
|
});
|
|
29
30
|
Object.defineProperty(exports, "getCoreVersion", {
|
|
30
31
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunk2MBNRFS5_cjs.getCoreVersion; }
|
|
32
33
|
});
|
|
33
34
|
Object.defineProperty(exports, "renderTemplate", {
|
|
34
35
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunk2MBNRFS5_cjs.renderTemplate; }
|
|
36
37
|
});
|
|
37
38
|
Object.defineProperty(exports, "sanitizeInput", {
|
|
38
39
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunk2MBNRFS5_cjs.sanitizeInput; }
|
|
40
41
|
});
|
|
41
42
|
Object.defineProperty(exports, "sanitizeObject", {
|
|
42
43
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunk2MBNRFS5_cjs.sanitizeObject; }
|
|
44
45
|
});
|
|
45
46
|
Object.defineProperty(exports, "templateRenderer", {
|
|
46
47
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunk2MBNRFS5_cjs.templateRenderer; }
|
|
49
|
+
});
|
|
50
|
+
Object.defineProperty(exports, "DEFAULT_TELEMETRY_CONFIG", {
|
|
51
|
+
enumerable: true,
|
|
52
|
+
get: function () { return chunkWBX5YMTB_cjs.DEFAULT_TELEMETRY_CONFIG; }
|
|
53
|
+
});
|
|
54
|
+
Object.defineProperty(exports, "generateInstallationId", {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function () { return chunkWBX5YMTB_cjs.generateInstallationId; }
|
|
57
|
+
});
|
|
58
|
+
Object.defineProperty(exports, "generateProjectId", {
|
|
59
|
+
enumerable: true,
|
|
60
|
+
get: function () { return chunkWBX5YMTB_cjs.generateProjectId; }
|
|
61
|
+
});
|
|
62
|
+
Object.defineProperty(exports, "getTelemetryConfig", {
|
|
63
|
+
enumerable: true,
|
|
64
|
+
get: function () { return chunkWBX5YMTB_cjs.getTelemetryConfig; }
|
|
65
|
+
});
|
|
66
|
+
Object.defineProperty(exports, "isTelemetryEnabled", {
|
|
67
|
+
enumerable: true,
|
|
68
|
+
get: function () { return chunkWBX5YMTB_cjs.isTelemetryEnabled; }
|
|
69
|
+
});
|
|
70
|
+
Object.defineProperty(exports, "sanitizeErrorMessage", {
|
|
71
|
+
enumerable: true,
|
|
72
|
+
get: function () { return chunkWBX5YMTB_cjs.sanitizeErrorMessage; }
|
|
73
|
+
});
|
|
74
|
+
Object.defineProperty(exports, "sanitizeRoute", {
|
|
75
|
+
enumerable: true,
|
|
76
|
+
get: function () { return chunkWBX5YMTB_cjs.sanitizeRoute; }
|
|
77
|
+
});
|
|
78
|
+
Object.defineProperty(exports, "shouldSkipEvent", {
|
|
79
|
+
enumerable: true,
|
|
80
|
+
get: function () { return chunkWBX5YMTB_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-K5JZ4JI3.js';
|
|
2
|
+
export { DEFAULT_TELEMETRY_CONFIG, generateInstallationId, generateProjectId, getTelemetryConfig, isTelemetryEnabled, sanitizeErrorMessage, sanitizeRoute, shouldSkipEvent } from './chunk-NMVOTNSL.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
|
-
'd1c379e871838f44e21d5a55841349e50636f06df139bfef11870eec74c381db', -- SHA-256 hash of '
|
|
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/
|
|
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
|
+
);
|