@sonicjs-cms/core 3.0.0-beta.21 → 3.0.0-beta.23
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/adapters.cjs +512 -0
- package/dist/adapters.cjs.map +1 -0
- package/dist/adapters.d.cts +342 -0
- package/dist/adapters.d.ts +342 -0
- package/dist/adapters.js +501 -0
- package/dist/adapters.js.map +1 -0
- package/dist/admin-documents-form.template-55V2ZGWT.js +6 -0
- package/dist/{admin-documents-form.template-DDSH6ROU.js.map → admin-documents-form.template-55V2ZGWT.js.map} +1 -1
- package/dist/admin-documents-form.template-YNAVMJCV.cjs +19 -0
- package/dist/{admin-layout-catalyst.template-YQ4EMF2J.js.map → admin-documents-form.template-YNAVMJCV.cjs.map} +1 -1
- package/dist/admin-layout-catalyst.template-3XZXDGF7.cjs +21 -0
- package/dist/{admin-layout-catalyst.template-KDHKVLXR.cjs.map → admin-layout-catalyst.template-3XZXDGF7.cjs.map} +1 -1
- package/dist/admin-layout-catalyst.template-6UQGLCKI.js +7 -0
- package/dist/{admin-documents-form.template-LSZKGA5J.cjs.map → admin-layout-catalyst.template-6UQGLCKI.js.map} +1 -1
- package/dist/{chunk-7OTOXWEB.js → chunk-2MIYYAO4.js} +49 -4
- package/dist/chunk-2MIYYAO4.js.map +1 -0
- package/dist/{chunk-A4KUJ3LD.cjs → chunk-4WMZGHIC.cjs} +53 -4
- package/dist/chunk-4WMZGHIC.cjs.map +1 -0
- package/dist/{chunk-5U75XP74.js → chunk-A46IRC5A.js} +3 -3
- package/dist/chunk-A46IRC5A.js.map +1 -0
- package/dist/{chunk-KVBHB7QP.cjs → chunk-AT4ZQGEZ.cjs} +17 -2
- package/dist/chunk-AT4ZQGEZ.cjs.map +1 -0
- package/dist/{chunk-CRGUD4KC.cjs → chunk-BBEKHLTW.cjs} +9 -9
- package/dist/{chunk-CRGUD4KC.cjs.map → chunk-BBEKHLTW.cjs.map} +1 -1
- package/dist/{chunk-RMRJGMDE.js → chunk-BHND5PEV.js} +3 -3
- package/dist/{chunk-RMRJGMDE.js.map → chunk-BHND5PEV.js.map} +1 -1
- package/dist/{chunk-OBA2RYZN.js → chunk-BJROXF4N.js} +3 -3
- package/dist/{chunk-OBA2RYZN.js.map → chunk-BJROXF4N.js.map} +1 -1
- package/dist/{chunk-AOUVUF32.cjs → chunk-C3ZQP5NW.cjs} +12 -5
- package/dist/chunk-C3ZQP5NW.cjs.map +1 -0
- package/dist/{chunk-7RUW244J.cjs → chunk-CTYLCWMO.cjs} +487 -315
- package/dist/chunk-CTYLCWMO.cjs.map +1 -0
- package/dist/{chunk-4UYJPHSV.js → chunk-DIBCKCUE.js} +6 -6
- package/dist/{chunk-4UYJPHSV.js.map → chunk-DIBCKCUE.js.map} +1 -1
- package/dist/{chunk-JEX3UPZL.js → chunk-DPLJYTHE.js} +12 -5
- package/dist/chunk-DPLJYTHE.js.map +1 -0
- package/dist/{chunk-PXNTCCPE.cjs → chunk-E66UVONV.cjs} +8 -8
- package/dist/{chunk-PXNTCCPE.cjs.map → chunk-E66UVONV.cjs.map} +1 -1
- package/dist/{chunk-FCLKX2OS.cjs → chunk-IS54FPB7.cjs} +18 -18
- package/dist/{chunk-FCLKX2OS.cjs.map → chunk-IS54FPB7.cjs.map} +1 -1
- package/dist/{chunk-N32OWET6.cjs → chunk-JMJM7DMM.cjs} +5 -5
- package/dist/{chunk-N32OWET6.cjs.map → chunk-JMJM7DMM.cjs.map} +1 -1
- package/dist/{chunk-4LVVMVQI.js → chunk-KS24NPPL.js} +17 -2
- package/dist/chunk-KS24NPPL.js.map +1 -0
- package/dist/{chunk-5UXU3LP4.cjs → chunk-RFBW5RRH.cjs} +11 -59
- package/dist/chunk-RFBW5RRH.cjs.map +1 -0
- package/dist/{chunk-ZP77LTN4.js → chunk-SK5CHFJP.js} +193 -22
- package/dist/chunk-SK5CHFJP.js.map +1 -0
- package/dist/{chunk-5V62WT6M.js → chunk-THFZSDIU.js} +4 -2
- package/dist/chunk-THFZSDIU.js.map +1 -0
- package/dist/{chunk-JQISFW6U.js → chunk-URIBTX27.js} +3 -3
- package/dist/{chunk-JQISFW6U.js.map → chunk-URIBTX27.js.map} +1 -1
- package/dist/{chunk-K623Q6WD.cjs → chunk-UYJQDDEE.cjs} +4 -2
- package/dist/chunk-UYJQDDEE.cjs.map +1 -0
- package/dist/{chunk-OJC4G5JE.cjs → chunk-VGHEKIJL.cjs} +3 -3
- package/dist/chunk-VGHEKIJL.cjs.map +1 -0
- package/dist/{chunk-GICS5AIO.js → chunk-XXRR54AB.js} +5 -49
- package/dist/chunk-XXRR54AB.js.map +1 -0
- package/dist/{define-plugin-DsKiGu1q.d.cts → define-plugin-DMcvEy_C.d.cts} +33 -0
- package/dist/{define-plugin-BYIey6sp.d.ts → define-plugin-D_6D9vVZ.d.ts} +33 -0
- package/dist/index.cjs +1807 -332
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1502 -27
- package/dist/index.js.map +1 -1
- package/dist/middleware.cjs +34 -34
- package/dist/middleware.js +5 -5
- package/dist/migrations-XQ6EX6HX.js +4 -0
- package/dist/{migrations-HMX5SPN2.js.map → migrations-XQ6EX6HX.js.map} +1 -1
- package/dist/migrations-ZD7Y5NUC.cjs +13 -0
- package/dist/{migrations-V73ARYV5.cjs.map → migrations-ZD7Y5NUC.cjs.map} +1 -1
- package/dist/plugins.cjs +40 -40
- package/dist/plugins.d.cts +1 -1
- package/dist/plugins.d.ts +1 -1
- package/dist/plugins.js +3 -3
- package/dist/routes.cjs +29 -29
- package/dist/routes.js +9 -9
- package/dist/services.cjs +18 -18
- package/dist/services.js +2 -2
- package/dist/templates.cjs +17 -17
- package/dist/templates.js +3 -3
- package/dist/utils.cjs +3 -3
- package/dist/utils.js +1 -1
- package/migrations/0001_core.sql +7 -1
- package/package.json +10 -3
- package/dist/admin-documents-form.template-DDSH6ROU.js +0 -6
- package/dist/admin-documents-form.template-LSZKGA5J.cjs +0 -19
- package/dist/admin-layout-catalyst.template-KDHKVLXR.cjs +0 -21
- package/dist/admin-layout-catalyst.template-YQ4EMF2J.js +0 -7
- package/dist/chunk-4LVVMVQI.js.map +0 -1
- package/dist/chunk-5U75XP74.js.map +0 -1
- package/dist/chunk-5UXU3LP4.cjs.map +0 -1
- package/dist/chunk-5V62WT6M.js.map +0 -1
- package/dist/chunk-7OTOXWEB.js.map +0 -1
- package/dist/chunk-7RUW244J.cjs.map +0 -1
- package/dist/chunk-A4KUJ3LD.cjs.map +0 -1
- package/dist/chunk-AOUVUF32.cjs.map +0 -1
- package/dist/chunk-GICS5AIO.js.map +0 -1
- package/dist/chunk-JEX3UPZL.js.map +0 -1
- package/dist/chunk-K623Q6WD.cjs.map +0 -1
- package/dist/chunk-KVBHB7QP.cjs.map +0 -1
- package/dist/chunk-OJC4G5JE.cjs.map +0 -1
- package/dist/chunk-ZP77LTN4.js.map +0 -1
- package/dist/migrations-HMX5SPN2.js +0 -4
- package/dist/migrations-V73ARYV5.cjs +0 -13
package/dist/services.cjs
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
var chunk36Z3AKX3_cjs = require('./chunk-36Z3AKX3.cjs');
|
|
4
4
|
require('./chunk-YA3TJ65D.cjs');
|
|
5
5
|
require('./chunk-YP7GW2G5.cjs');
|
|
6
|
-
var
|
|
7
|
-
var
|
|
6
|
+
var chunkAT4ZQGEZ_cjs = require('./chunk-AT4ZQGEZ.cjs');
|
|
7
|
+
var chunkVGHEKIJL_cjs = require('./chunk-VGHEKIJL.cjs');
|
|
8
8
|
require('./chunk-P3XDZL6Q.cjs');
|
|
9
9
|
require('./chunk-MNWKYY5E.cjs');
|
|
10
10
|
require('./chunk-IGJUBJBW.cjs');
|
|
@@ -57,67 +57,67 @@ Object.defineProperty(exports, "setAppInstance", {
|
|
|
57
57
|
});
|
|
58
58
|
Object.defineProperty(exports, "CollectionRegistry", {
|
|
59
59
|
enumerable: true,
|
|
60
|
-
get: function () { return
|
|
60
|
+
get: function () { return chunkAT4ZQGEZ_cjs.CollectionRegistry; }
|
|
61
61
|
});
|
|
62
62
|
Object.defineProperty(exports, "PluginBootstrapService", {
|
|
63
63
|
enumerable: true,
|
|
64
|
-
get: function () { return
|
|
64
|
+
get: function () { return chunkAT4ZQGEZ_cjs.PluginBootstrapService; }
|
|
65
65
|
});
|
|
66
66
|
Object.defineProperty(exports, "PluginService", {
|
|
67
67
|
enumerable: true,
|
|
68
|
-
get: function () { return
|
|
68
|
+
get: function () { return chunkAT4ZQGEZ_cjs.PluginService; }
|
|
69
69
|
});
|
|
70
70
|
Object.defineProperty(exports, "TelemetryService", {
|
|
71
71
|
enumerable: true,
|
|
72
|
-
get: function () { return
|
|
72
|
+
get: function () { return chunkAT4ZQGEZ_cjs.TelemetryService; }
|
|
73
73
|
});
|
|
74
74
|
Object.defineProperty(exports, "collectionRecordToRow", {
|
|
75
75
|
enumerable: true,
|
|
76
|
-
get: function () { return
|
|
76
|
+
get: function () { return chunkAT4ZQGEZ_cjs.collectionRecordToRow; }
|
|
77
77
|
});
|
|
78
78
|
Object.defineProperty(exports, "createInstallationIdentity", {
|
|
79
79
|
enumerable: true,
|
|
80
|
-
get: function () { return
|
|
80
|
+
get: function () { return chunkAT4ZQGEZ_cjs.createInstallationIdentity; }
|
|
81
81
|
});
|
|
82
82
|
Object.defineProperty(exports, "getAvailableCollectionNames", {
|
|
83
83
|
enumerable: true,
|
|
84
|
-
get: function () { return
|
|
84
|
+
get: function () { return chunkAT4ZQGEZ_cjs.getAvailableCollectionNames; }
|
|
85
85
|
});
|
|
86
86
|
Object.defineProperty(exports, "getCollectionRegistry", {
|
|
87
87
|
enumerable: true,
|
|
88
|
-
get: function () { return
|
|
88
|
+
get: function () { return chunkAT4ZQGEZ_cjs.getCollectionRegistry; }
|
|
89
89
|
});
|
|
90
90
|
Object.defineProperty(exports, "getTelemetryService", {
|
|
91
91
|
enumerable: true,
|
|
92
|
-
get: function () { return
|
|
92
|
+
get: function () { return chunkAT4ZQGEZ_cjs.getTelemetryService; }
|
|
93
93
|
});
|
|
94
94
|
Object.defineProperty(exports, "initTelemetry", {
|
|
95
95
|
enumerable: true,
|
|
96
|
-
get: function () { return
|
|
96
|
+
get: function () { return chunkAT4ZQGEZ_cjs.initTelemetry; }
|
|
97
97
|
});
|
|
98
98
|
Object.defineProperty(exports, "loadCollectionConfig", {
|
|
99
99
|
enumerable: true,
|
|
100
|
-
get: function () { return
|
|
100
|
+
get: function () { return chunkAT4ZQGEZ_cjs.loadCollectionConfig; }
|
|
101
101
|
});
|
|
102
102
|
Object.defineProperty(exports, "loadCollectionConfigs", {
|
|
103
103
|
enumerable: true,
|
|
104
|
-
get: function () { return
|
|
104
|
+
get: function () { return chunkAT4ZQGEZ_cjs.loadCollectionConfigs; }
|
|
105
105
|
});
|
|
106
106
|
Object.defineProperty(exports, "registerCollections", {
|
|
107
107
|
enumerable: true,
|
|
108
|
-
get: function () { return
|
|
108
|
+
get: function () { return chunkAT4ZQGEZ_cjs.registerCollections; }
|
|
109
109
|
});
|
|
110
110
|
Object.defineProperty(exports, "resetCollectionRegistry", {
|
|
111
111
|
enumerable: true,
|
|
112
|
-
get: function () { return
|
|
112
|
+
get: function () { return chunkAT4ZQGEZ_cjs.resetCollectionRegistry; }
|
|
113
113
|
});
|
|
114
114
|
Object.defineProperty(exports, "validateCollectionConfig", {
|
|
115
115
|
enumerable: true,
|
|
116
|
-
get: function () { return
|
|
116
|
+
get: function () { return chunkAT4ZQGEZ_cjs.validateCollectionConfig; }
|
|
117
117
|
});
|
|
118
118
|
Object.defineProperty(exports, "MigrationService", {
|
|
119
119
|
enumerable: true,
|
|
120
|
-
get: function () { return
|
|
120
|
+
get: function () { return chunkVGHEKIJL_cjs.MigrationService; }
|
|
121
121
|
});
|
|
122
122
|
//# sourceMappingURL=services.cjs.map
|
|
123
123
|
//# sourceMappingURL=services.cjs.map
|
package/dist/services.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { CACHE_CONFIGS, CATEGORY_INFO, CacheService, Logger, SettingsService, buildRouteList, getAppInstance, getCacheService, getLogger, initLogger, setAppInstance } from './chunk-2XAQTPAE.js';
|
|
2
2
|
import './chunk-K25XHMM3.js';
|
|
3
3
|
import './chunk-AI663NBO.js';
|
|
4
|
-
export { CollectionRegistry, PluginBootstrapService, PluginService, TelemetryService, collectionRecordToRow, createInstallationIdentity, getAvailableCollectionNames, getCollectionRegistry, getTelemetryService, initTelemetry, loadCollectionConfig, loadCollectionConfigs, registerCollections, resetCollectionRegistry, validateCollectionConfig } from './chunk-
|
|
5
|
-
export { MigrationService } from './chunk-
|
|
4
|
+
export { CollectionRegistry, PluginBootstrapService, PluginService, TelemetryService, collectionRecordToRow, createInstallationIdentity, getAvailableCollectionNames, getCollectionRegistry, getTelemetryService, initTelemetry, loadCollectionConfig, loadCollectionConfigs, registerCollections, resetCollectionRegistry, validateCollectionConfig } from './chunk-KS24NPPL.js';
|
|
5
|
+
export { MigrationService } from './chunk-A46IRC5A.js';
|
|
6
6
|
import './chunk-X7ZAEI5S.js';
|
|
7
7
|
import './chunk-TQABQWOP.js';
|
|
8
8
|
import './chunk-V4OQ3NZ2.js';
|
package/dist/templates.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
3
|
+
var chunkBBEKHLTW_cjs = require('./chunk-BBEKHLTW.cjs');
|
|
4
|
+
var chunkE66UVONV_cjs = require('./chunk-E66UVONV.cjs');
|
|
5
|
+
var chunkUYJQDDEE_cjs = require('./chunk-UYJQDDEE.cjs');
|
|
6
6
|
require('./chunk-MNWKYY5E.cjs');
|
|
7
7
|
require('./chunk-IGJUBJBW.cjs');
|
|
8
8
|
|
|
@@ -10,59 +10,59 @@ require('./chunk-IGJUBJBW.cjs');
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "renderFilterBar", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkBBEKHLTW_cjs.renderFilterBar; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "renderFormsDocsPage", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkBBEKHLTW_cjs.renderFormsDocsPage; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "renderFormsExamplesPage", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkBBEKHLTW_cjs.renderFormsExamplesPage; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "getConfirmationDialogScript", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkE66UVONV_cjs.getConfirmationDialogScript; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "renderAdminLayout", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkE66UVONV_cjs.renderAdminLayout; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "renderAlert", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkE66UVONV_cjs.renderAlert; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "renderCheckboxPage", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkE66UVONV_cjs.renderCheckboxPage; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "renderConfirmationDialog", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkE66UVONV_cjs.renderConfirmationDialog; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "renderForm", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkE66UVONV_cjs.renderForm; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "renderFormField", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkE66UVONV_cjs.renderFormField; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "renderPagination", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkE66UVONV_cjs.renderPagination; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "renderTable", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkE66UVONV_cjs.renderTable; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "renderAdminLayoutCatalyst", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkUYJQDDEE_cjs.renderAdminLayoutCatalyst; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "renderLogo", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkUYJQDDEE_cjs.renderLogo; }
|
|
66
66
|
});
|
|
67
67
|
//# sourceMappingURL=templates.cjs.map
|
|
68
68
|
//# sourceMappingURL=templates.cjs.map
|
package/dist/templates.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { renderFilterBar, renderFormsDocsPage, renderFormsExamplesPage } from './chunk-
|
|
2
|
-
export { getConfirmationDialogScript, renderAdminLayout, renderAlert, renderCheckboxPage, renderConfirmationDialog, renderForm, renderFormField, renderPagination, renderTable } from './chunk-
|
|
3
|
-
export { renderAdminLayoutCatalyst, renderLogo } from './chunk-
|
|
1
|
+
export { renderFilterBar, renderFormsDocsPage, renderFormsExamplesPage } from './chunk-URIBTX27.js';
|
|
2
|
+
export { getConfirmationDialogScript, renderAdminLayout, renderAlert, renderCheckboxPage, renderConfirmationDialog, renderForm, renderFormField, renderPagination, renderTable } from './chunk-BJROXF4N.js';
|
|
3
|
+
export { renderAdminLayoutCatalyst, renderLogo } from './chunk-THFZSDIU.js';
|
|
4
4
|
import './chunk-TQABQWOP.js';
|
|
5
5
|
import './chunk-V4OQ3NZ2.js';
|
|
6
6
|
//# sourceMappingURL=templates.js.map
|
package/dist/utils.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var chunkIXUHXTHW_cjs = require('./chunk-IXUHXTHW.cjs');
|
|
4
4
|
var chunkRCQ2HIQD_cjs = require('./chunk-RCQ2HIQD.cjs');
|
|
5
5
|
var chunkP3XDZL6Q_cjs = require('./chunk-P3XDZL6Q.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunkC3ZQP5NW_cjs = require('./chunk-C3ZQP5NW.cjs');
|
|
7
7
|
var chunkMNWKYY5E_cjs = require('./chunk-MNWKYY5E.cjs');
|
|
8
8
|
require('./chunk-IGJUBJBW.cjs');
|
|
9
9
|
|
|
@@ -79,11 +79,11 @@ Object.defineProperty(exports, "shouldSkipEvent", {
|
|
|
79
79
|
});
|
|
80
80
|
Object.defineProperty(exports, "SONICJS_VERSION", {
|
|
81
81
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunkC3ZQP5NW_cjs.SONICJS_VERSION; }
|
|
83
83
|
});
|
|
84
84
|
Object.defineProperty(exports, "getCoreVersion", {
|
|
85
85
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunkC3ZQP5NW_cjs.getCoreVersion; }
|
|
87
87
|
});
|
|
88
88
|
Object.defineProperty(exports, "escapeHtml", {
|
|
89
89
|
enumerable: true,
|
package/dist/utils.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { QueryFilterBuilder, TemplateRenderer, buildQuery, generateSlug, getBlocksFieldConfig, parseBlocksValue, renderTemplate, templateRenderer } from './chunk-QZGABF2M.js';
|
|
2
2
|
export { metricsTracker } from './chunk-FICTAGD4.js';
|
|
3
3
|
export { generateInstallationId, generateProjectId, getDefaultTelemetryConfig, getTelemetryConfig, isTelemetryEnabled, sanitizeErrorMessage, sanitizeRoute, shouldSkipEvent } from './chunk-X7ZAEI5S.js';
|
|
4
|
-
export { SONICJS_VERSION, getCoreVersion } from './chunk-
|
|
4
|
+
export { SONICJS_VERSION, getCoreVersion } from './chunk-DPLJYTHE.js';
|
|
5
5
|
export { escapeHtml, sanitizeInput, sanitizeObject } from './chunk-TQABQWOP.js';
|
|
6
6
|
import './chunk-V4OQ3NZ2.js';
|
|
7
7
|
//# sourceMappingURL=utils.js.map
|
package/migrations/0001_core.sql
CHANGED
|
@@ -29,12 +29,18 @@ CREATE TABLE IF NOT EXISTS auth_user (
|
|
|
29
29
|
language TEXT DEFAULT 'en',
|
|
30
30
|
email_notifications INTEGER DEFAULT 1,
|
|
31
31
|
theme TEXT DEFAULT 'dark',
|
|
32
|
+
-- Password reset flow (routes/auth.ts)
|
|
33
|
+
password_reset_token TEXT,
|
|
34
|
+
password_reset_expires INTEGER,
|
|
32
35
|
invitation_token TEXT,
|
|
33
36
|
invited_by TEXT,
|
|
34
37
|
invited_at INTEGER,
|
|
35
38
|
accepted_invitation_at INTEGER,
|
|
39
|
+
-- Account lockout: reset on success; set on threshold failures
|
|
36
40
|
failed_login_count INTEGER NOT NULL DEFAULT 0,
|
|
37
|
-
locked_until INTEGER
|
|
41
|
+
locked_until INTEGER,
|
|
42
|
+
-- 2FA enrollment flag (twoFactor BA plugin)
|
|
43
|
+
two_factor_enabled INTEGER NOT NULL DEFAULT 0
|
|
38
44
|
);
|
|
39
45
|
|
|
40
46
|
CREATE INDEX IF NOT EXISTS idx_auth_user_email ON auth_user(email);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sonicjs-cms/core",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.23",
|
|
4
4
|
"description": "Core framework for SonicJS headless CMS - Edge-first, TypeScript-native CMS built for Cloudflare Workers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -50,6 +50,11 @@
|
|
|
50
50
|
"import": "./dist/types.js",
|
|
51
51
|
"require": "./dist/types.cjs"
|
|
52
52
|
},
|
|
53
|
+
"./adapters": {
|
|
54
|
+
"types": "./dist/adapters.d.ts",
|
|
55
|
+
"import": "./dist/adapters.js",
|
|
56
|
+
"require": "./dist/adapters.cjs"
|
|
57
|
+
},
|
|
53
58
|
"./package.json": "./package.json"
|
|
54
59
|
},
|
|
55
60
|
"files": [
|
|
@@ -104,7 +109,7 @@
|
|
|
104
109
|
},
|
|
105
110
|
"dependencies": {
|
|
106
111
|
"@cf-wasm/resvg": "^0.3.3",
|
|
107
|
-
"better-auth": "^1.6.
|
|
112
|
+
"better-auth": "^1.6.23",
|
|
108
113
|
"better-auth-cloudflare": "^0.3.0",
|
|
109
114
|
"csv-parse": "^6.2.1",
|
|
110
115
|
"drizzle-zod": "^0.8.3",
|
|
@@ -115,6 +120,9 @@
|
|
|
115
120
|
"semver": "^7.7.3",
|
|
116
121
|
"tiny-lru": "^13.0.0"
|
|
117
122
|
},
|
|
123
|
+
"optionalDependencies": {
|
|
124
|
+
"better-sqlite3": "^12.10.0"
|
|
125
|
+
},
|
|
118
126
|
"devDependencies": {
|
|
119
127
|
"@cloudflare/workers-types": "^4.20251014.0",
|
|
120
128
|
"@types/better-sqlite3": "^7.6.13",
|
|
@@ -123,7 +131,6 @@
|
|
|
123
131
|
"@typescript-eslint/eslint-plugin": "^8.50.0",
|
|
124
132
|
"@typescript-eslint/parser": "^8.50.0",
|
|
125
133
|
"@vitest/coverage-v8": "^4.1.9",
|
|
126
|
-
"better-sqlite3": "^12.10.0",
|
|
127
134
|
"drizzle-orm": "^0.45.2",
|
|
128
135
|
"eslint": "^9.39.2",
|
|
129
136
|
"glob": "^10.5.0",
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export { renderDocumentFormPage, renderVersionHistoryFragment } from './chunk-RMRJGMDE.js';
|
|
2
|
-
import './chunk-5V62WT6M.js';
|
|
3
|
-
import './chunk-TQABQWOP.js';
|
|
4
|
-
import './chunk-V4OQ3NZ2.js';
|
|
5
|
-
//# sourceMappingURL=admin-documents-form.template-DDSH6ROU.js.map
|
|
6
|
-
//# sourceMappingURL=admin-documents-form.template-DDSH6ROU.js.map
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkN32OWET6_cjs = require('./chunk-N32OWET6.cjs');
|
|
4
|
-
require('./chunk-K623Q6WD.cjs');
|
|
5
|
-
require('./chunk-MNWKYY5E.cjs');
|
|
6
|
-
require('./chunk-IGJUBJBW.cjs');
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
Object.defineProperty(exports, "renderDocumentFormPage", {
|
|
11
|
-
enumerable: true,
|
|
12
|
-
get: function () { return chunkN32OWET6_cjs.renderDocumentFormPage; }
|
|
13
|
-
});
|
|
14
|
-
Object.defineProperty(exports, "renderVersionHistoryFragment", {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function () { return chunkN32OWET6_cjs.renderVersionHistoryFragment; }
|
|
17
|
-
});
|
|
18
|
-
//# sourceMappingURL=admin-documents-form.template-LSZKGA5J.cjs.map
|
|
19
|
-
//# sourceMappingURL=admin-documents-form.template-LSZKGA5J.cjs.map
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkK623Q6WD_cjs = require('./chunk-K623Q6WD.cjs');
|
|
4
|
-
require('./chunk-IGJUBJBW.cjs');
|
|
5
|
-
|
|
6
|
-
chunkK623Q6WD_cjs.init_admin_layout_catalyst_template();
|
|
7
|
-
|
|
8
|
-
Object.defineProperty(exports, "renderAdminLayoutCatalyst", {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function () { return chunkK623Q6WD_cjs.renderAdminLayoutCatalyst; }
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(exports, "renderCatalystCheckbox", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function () { return chunkK623Q6WD_cjs.renderCatalystCheckbox; }
|
|
15
|
-
});
|
|
16
|
-
Object.defineProperty(exports, "setBranchLabel", {
|
|
17
|
-
enumerable: true,
|
|
18
|
-
get: function () { return chunkK623Q6WD_cjs.setBranchLabel; }
|
|
19
|
-
});
|
|
20
|
-
//# sourceMappingURL=admin-layout-catalyst.template-KDHKVLXR.cjs.map
|
|
21
|
-
//# sourceMappingURL=admin-layout-catalyst.template-KDHKVLXR.cjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { init_admin_layout_catalyst_template } from './chunk-5V62WT6M.js';
|
|
2
|
-
export { renderAdminLayoutCatalyst, renderCatalystCheckbox, setBranchLabel } from './chunk-5V62WT6M.js';
|
|
3
|
-
import './chunk-V4OQ3NZ2.js';
|
|
4
|
-
|
|
5
|
-
init_admin_layout_catalyst_template();
|
|
6
|
-
//# sourceMappingURL=admin-layout-catalyst.template-YQ4EMF2J.js.map
|
|
7
|
-
//# sourceMappingURL=admin-layout-catalyst.template-YQ4EMF2J.js.map
|