@sonicjs-cms/core 2.14.0 → 2.16.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/admin-layout-catalyst.template-HFD37TY5.cjs +17 -0
- package/dist/admin-layout-catalyst.template-HFD37TY5.cjs.map +1 -0
- package/dist/admin-layout-catalyst.template-UMTIN66R.js +7 -0
- package/dist/admin-layout-catalyst.template-UMTIN66R.js.map +1 -0
- package/dist/{chunk-3QCEYJLK.cjs → chunk-4ZSNJDLS.cjs} +9 -9
- package/dist/{chunk-3QCEYJLK.cjs.map → chunk-4ZSNJDLS.cjs.map} +1 -1
- package/dist/chunk-55RDMDOP.js +684 -0
- package/dist/chunk-55RDMDOP.js.map +1 -0
- package/dist/{chunk-6FHNRRJ3.cjs → chunk-635JAMSE.cjs} +76 -17
- package/dist/chunk-635JAMSE.cjs.map +1 -0
- package/dist/{chunk-DRWSHIFG.cjs → chunk-6ENX7QSA.cjs} +228 -658
- package/dist/chunk-6ENX7QSA.cjs.map +1 -0
- package/dist/{chunk-56GUBLJE.cjs → chunk-ABB34XUS.cjs} +13 -13
- package/dist/{chunk-56GUBLJE.cjs.map → chunk-ABB34XUS.cjs.map} +1 -1
- package/dist/{chunk-YYMPHM3I.cjs → chunk-CZ6BVQZX.cjs} +19 -9
- package/dist/chunk-CZ6BVQZX.cjs.map +1 -0
- package/dist/{chunk-J5WGMRSU.js → chunk-EXNEW5US.js} +76 -17
- package/dist/chunk-EXNEW5US.js.map +1 -0
- package/dist/{chunk-H3XXBAMO.js → chunk-INSDRCG3.js} +722 -212
- package/dist/chunk-INSDRCG3.js.map +1 -0
- package/dist/{chunk-GAVTTYMC.js → chunk-MVSCB4E3.js} +3 -3
- package/dist/{chunk-GAVTTYMC.js.map → chunk-MVSCB4E3.js.map} +1 -1
- package/dist/{chunk-KZ2MFGET.cjs → chunk-OCLUXJ7E.cjs} +9 -2
- package/dist/chunk-OCLUXJ7E.cjs.map +1 -0
- package/dist/{chunk-QP3OHHON.cjs → chunk-OHYBNCVL.cjs} +18 -696
- package/dist/chunk-OHYBNCVL.cjs.map +1 -0
- package/dist/{chunk-CB7ONLGB.js → chunk-ON5ZMSU4.js} +3 -3
- package/dist/{chunk-CB7ONLGB.js.map → chunk-ON5ZMSU4.js.map} +1 -1
- package/dist/{chunk-I6FFGQIT.cjs → chunk-Q5VFZUXV.cjs} +723 -211
- package/dist/chunk-Q5VFZUXV.cjs.map +1 -0
- package/dist/{chunk-2MXF4RYZ.js → chunk-TFNTM3OA.js} +3 -3
- package/dist/{chunk-2MXF4RYZ.js.map → chunk-TFNTM3OA.js.map} +1 -1
- package/dist/chunk-UYJ6TJHX.cjs +691 -0
- package/dist/chunk-UYJ6TJHX.cjs.map +1 -0
- package/dist/{chunk-JKNKO6LA.js → chunk-VFQUULAV.js} +9 -2
- package/dist/chunk-VFQUULAV.js.map +1 -0
- package/dist/{chunk-23DP6TO5.js → chunk-WLSIUKNM.js} +44 -474
- package/dist/chunk-WLSIUKNM.js.map +1 -0
- package/dist/{chunk-JTUCC6WZ.js → chunk-XWIA3HVX.js} +9 -683
- package/dist/chunk-XWIA3HVX.js.map +1 -0
- package/dist/{chunk-AFGOH2F6.js → chunk-Y5EH32F5.js} +15 -5
- package/dist/chunk-Y5EH32F5.js.map +1 -0
- package/dist/{chunk-YULUPQZV.cjs → chunk-YQW2GCJ3.cjs} +3 -3
- package/dist/{chunk-YULUPQZV.cjs.map → chunk-YQW2GCJ3.cjs.map} +1 -1
- package/dist/index.cjs +1591 -236
- 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 +1464 -109
- package/dist/index.js.map +1 -1
- package/dist/middleware.cjs +29 -29
- package/dist/middleware.js +3 -3
- package/dist/migrations-7HQ7LYAL.js +4 -0
- package/dist/{migrations-WKONKRN7.js.map → migrations-7HQ7LYAL.js.map} +1 -1
- package/dist/migrations-SVQTT7NV.cjs +13 -0
- package/dist/{migrations-F7KVA74T.cjs.map → migrations-SVQTT7NV.cjs.map} +1 -1
- package/dist/{plugin-bootstrap-BGwBraaN.d.cts → plugin-bootstrap-DfVerYV4.d.cts} +2 -1
- package/dist/{plugin-bootstrap-Drns7X9w.d.ts → plugin-bootstrap-P_ciLp_C.d.ts} +2 -1
- package/dist/plugins.cjs +11 -11
- package/dist/plugins.js +2 -2
- package/dist/routes.cjs +31 -30
- package/dist/routes.js +8 -7
- package/dist/services.cjs +23 -23
- package/dist/services.d.cts +1 -1
- package/dist/services.d.ts +1 -1
- package/dist/services.js +2 -2
- package/dist/templates.cjs +26 -25
- package/dist/templates.js +3 -2
- package/dist/utils.cjs +11 -11
- package/dist/utils.js +1 -1
- package/migrations/036_analytics_events.sql +22 -0
- package/package.json +1 -1
- package/dist/chunk-23DP6TO5.js.map +0 -1
- package/dist/chunk-6FHNRRJ3.cjs.map +0 -1
- package/dist/chunk-AFGOH2F6.js.map +0 -1
- package/dist/chunk-DRWSHIFG.cjs.map +0 -1
- package/dist/chunk-H3XXBAMO.js.map +0 -1
- package/dist/chunk-I6FFGQIT.cjs.map +0 -1
- package/dist/chunk-J5WGMRSU.js.map +0 -1
- package/dist/chunk-JKNKO6LA.js.map +0 -1
- package/dist/chunk-JTUCC6WZ.js.map +0 -1
- package/dist/chunk-KZ2MFGET.cjs.map +0 -1
- package/dist/chunk-QP3OHHON.cjs.map +0 -1
- package/dist/chunk-YYMPHM3I.cjs.map +0 -1
- package/dist/migrations-F7KVA74T.cjs +0 -13
- package/dist/migrations-WKONKRN7.js +0 -4
package/dist/templates.cjs
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunk4ZSNJDLS_cjs = require('./chunk-4ZSNJDLS.cjs');
|
|
4
|
+
var chunkOHYBNCVL_cjs = require('./chunk-OHYBNCVL.cjs');
|
|
5
|
+
var chunkUYJ6TJHX_cjs = require('./chunk-UYJ6TJHX.cjs');
|
|
5
6
|
require('./chunk-MNWKYY5E.cjs');
|
|
6
7
|
require('./chunk-IGJUBJBW.cjs');
|
|
7
8
|
|
|
@@ -9,71 +10,71 @@ require('./chunk-IGJUBJBW.cjs');
|
|
|
9
10
|
|
|
10
11
|
Object.defineProperty(exports, "renderFilterBar", {
|
|
11
12
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunk4ZSNJDLS_cjs.renderFilterBar; }
|
|
13
14
|
});
|
|
14
15
|
Object.defineProperty(exports, "renderFormsDocsPage", {
|
|
15
16
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk4ZSNJDLS_cjs.renderFormsDocsPage; }
|
|
17
18
|
});
|
|
18
19
|
Object.defineProperty(exports, "renderFormsExamplesPage", {
|
|
19
20
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunk4ZSNJDLS_cjs.renderFormsExamplesPage; }
|
|
21
22
|
});
|
|
22
23
|
Object.defineProperty(exports, "getConfirmationDialogScript", {
|
|
23
24
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkOHYBNCVL_cjs.getConfirmationDialogScript; }
|
|
25
26
|
});
|
|
26
27
|
Object.defineProperty(exports, "renderAdminLayout", {
|
|
27
28
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
29
|
-
});
|
|
30
|
-
Object.defineProperty(exports, "renderAdminLayoutCatalyst", {
|
|
31
|
-
enumerable: true,
|
|
32
|
-
get: function () { return chunkQP3OHHON_cjs.renderAdminLayoutCatalyst; }
|
|
29
|
+
get: function () { return chunkOHYBNCVL_cjs.renderAdminLayout; }
|
|
33
30
|
});
|
|
34
31
|
Object.defineProperty(exports, "renderAlert", {
|
|
35
32
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkOHYBNCVL_cjs.renderAlert; }
|
|
37
34
|
});
|
|
38
35
|
Object.defineProperty(exports, "renderCheckboxPage", {
|
|
39
36
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkOHYBNCVL_cjs.renderCheckboxPage; }
|
|
41
38
|
});
|
|
42
39
|
Object.defineProperty(exports, "renderCodeExamplesList", {
|
|
43
40
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkOHYBNCVL_cjs.renderCodeExamplesList; }
|
|
45
42
|
});
|
|
46
43
|
Object.defineProperty(exports, "renderConfirmationDialog", {
|
|
47
44
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkOHYBNCVL_cjs.renderConfirmationDialog; }
|
|
49
46
|
});
|
|
50
47
|
Object.defineProperty(exports, "renderDesignPage", {
|
|
51
48
|
enumerable: true,
|
|
52
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkOHYBNCVL_cjs.renderDesignPage; }
|
|
53
50
|
});
|
|
54
51
|
Object.defineProperty(exports, "renderForm", {
|
|
55
52
|
enumerable: true,
|
|
56
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkOHYBNCVL_cjs.renderForm; }
|
|
57
54
|
});
|
|
58
55
|
Object.defineProperty(exports, "renderFormField", {
|
|
59
56
|
enumerable: true,
|
|
60
|
-
get: function () { return
|
|
61
|
-
});
|
|
62
|
-
Object.defineProperty(exports, "renderLogo", {
|
|
63
|
-
enumerable: true,
|
|
64
|
-
get: function () { return chunkQP3OHHON_cjs.renderLogo; }
|
|
57
|
+
get: function () { return chunkOHYBNCVL_cjs.renderFormField; }
|
|
65
58
|
});
|
|
66
59
|
Object.defineProperty(exports, "renderPagination", {
|
|
67
60
|
enumerable: true,
|
|
68
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkOHYBNCVL_cjs.renderPagination; }
|
|
69
62
|
});
|
|
70
63
|
Object.defineProperty(exports, "renderTable", {
|
|
71
64
|
enumerable: true,
|
|
72
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkOHYBNCVL_cjs.renderTable; }
|
|
73
66
|
});
|
|
74
67
|
Object.defineProperty(exports, "renderTestimonialsList", {
|
|
75
68
|
enumerable: true,
|
|
76
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkOHYBNCVL_cjs.renderTestimonialsList; }
|
|
70
|
+
});
|
|
71
|
+
Object.defineProperty(exports, "renderAdminLayoutCatalyst", {
|
|
72
|
+
enumerable: true,
|
|
73
|
+
get: function () { return chunkUYJ6TJHX_cjs.renderAdminLayoutCatalyst; }
|
|
74
|
+
});
|
|
75
|
+
Object.defineProperty(exports, "renderLogo", {
|
|
76
|
+
enumerable: true,
|
|
77
|
+
get: function () { return chunkUYJ6TJHX_cjs.renderLogo; }
|
|
77
78
|
});
|
|
78
79
|
//# sourceMappingURL=templates.cjs.map
|
|
79
80
|
//# sourceMappingURL=templates.cjs.map
|
package/dist/templates.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export { renderFilterBar, renderFormsDocsPage, renderFormsExamplesPage } from './chunk-
|
|
2
|
-
export { getConfirmationDialogScript, renderAdminLayout,
|
|
1
|
+
export { renderFilterBar, renderFormsDocsPage, renderFormsExamplesPage } from './chunk-ON5ZMSU4.js';
|
|
2
|
+
export { getConfirmationDialogScript, renderAdminLayout, renderAlert, renderCheckboxPage, renderCodeExamplesList, renderConfirmationDialog, renderDesignPage, renderForm, renderFormField, renderPagination, renderTable, renderTestimonialsList } from './chunk-XWIA3HVX.js';
|
|
3
|
+
export { renderAdminLayoutCatalyst, renderLogo } from './chunk-55RDMDOP.js';
|
|
3
4
|
import './chunk-TQABQWOP.js';
|
|
4
5
|
import './chunk-V4OQ3NZ2.js';
|
|
5
6
|
//# sourceMappingURL=templates.js.map
|
package/dist/utils.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkYQW2GCJ3_cjs = require('./chunk-YQW2GCJ3.cjs');
|
|
4
4
|
var chunkP3XDZL6Q_cjs = require('./chunk-P3XDZL6Q.cjs');
|
|
5
5
|
var chunkRCQ2HIQD_cjs = require('./chunk-RCQ2HIQD.cjs');
|
|
6
6
|
var chunkMNWKYY5E_cjs = require('./chunk-MNWKYY5E.cjs');
|
|
@@ -10,43 +10,43 @@ require('./chunk-IGJUBJBW.cjs');
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "QueryFilterBuilder", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkYQW2GCJ3_cjs.QueryFilterBuilder; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "SONICJS_VERSION", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkYQW2GCJ3_cjs.SONICJS_VERSION; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "TemplateRenderer", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkYQW2GCJ3_cjs.TemplateRenderer; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "buildQuery", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkYQW2GCJ3_cjs.buildQuery; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "generateSlug", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkYQW2GCJ3_cjs.generateSlug; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "getBlocksFieldConfig", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkYQW2GCJ3_cjs.getBlocksFieldConfig; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "getCoreVersion", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkYQW2GCJ3_cjs.getCoreVersion; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "parseBlocksValue", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkYQW2GCJ3_cjs.parseBlocksValue; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "renderTemplate", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkYQW2GCJ3_cjs.renderTemplate; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "templateRenderer", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkYQW2GCJ3_cjs.templateRenderer; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "generateInstallationId", {
|
|
52
52
|
enumerable: true,
|
package/dist/utils.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { QueryFilterBuilder, SONICJS_VERSION, TemplateRenderer, buildQuery, generateSlug, getBlocksFieldConfig, getCoreVersion, parseBlocksValue, renderTemplate, templateRenderer } from './chunk-
|
|
1
|
+
export { QueryFilterBuilder, SONICJS_VERSION, TemplateRenderer, buildQuery, generateSlug, getBlocksFieldConfig, getCoreVersion, parseBlocksValue, renderTemplate, templateRenderer } from './chunk-MVSCB4E3.js';
|
|
2
2
|
export { generateInstallationId, generateProjectId, getDefaultTelemetryConfig, getTelemetryConfig, isTelemetryEnabled, sanitizeErrorMessage, sanitizeRoute, shouldSkipEvent } from './chunk-X7ZAEI5S.js';
|
|
3
3
|
export { metricsTracker } from './chunk-FICTAGD4.js';
|
|
4
4
|
export { escapeHtml, sanitizeInput, sanitizeObject } from './chunk-TQABQWOP.js';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
-- Migration 036: Analytics Events Table
|
|
2
|
+
-- Provides storage for user behavior event tracking (page views, custom events)
|
|
3
|
+
|
|
4
|
+
CREATE TABLE IF NOT EXISTS analytics_events (
|
|
5
|
+
id TEXT PRIMARY KEY,
|
|
6
|
+
event TEXT NOT NULL,
|
|
7
|
+
category TEXT NOT NULL DEFAULT 'user-activity',
|
|
8
|
+
properties TEXT,
|
|
9
|
+
user_id TEXT,
|
|
10
|
+
session_id TEXT,
|
|
11
|
+
ip_address TEXT,
|
|
12
|
+
user_agent TEXT,
|
|
13
|
+
path TEXT,
|
|
14
|
+
created_at INTEGER NOT NULL DEFAULT (unixepoch())
|
|
15
|
+
);
|
|
16
|
+
|
|
17
|
+
CREATE INDEX IF NOT EXISTS idx_analytics_events_event ON analytics_events(event);
|
|
18
|
+
CREATE INDEX IF NOT EXISTS idx_analytics_events_category ON analytics_events(category);
|
|
19
|
+
CREATE INDEX IF NOT EXISTS idx_analytics_events_user_id ON analytics_events(user_id);
|
|
20
|
+
CREATE INDEX IF NOT EXISTS idx_analytics_events_session_id ON analytics_events(session_id);
|
|
21
|
+
CREATE INDEX IF NOT EXISTS idx_analytics_events_created_at ON analytics_events(created_at);
|
|
22
|
+
CREATE INDEX IF NOT EXISTS idx_analytics_events_path ON analytics_events(path);
|
package/package.json
CHANGED