@sonicjs-cms/core 2.12.0 → 2.13.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-RBXFXT7H.cjs → chunk-3QCEYJLK.cjs} +9 -9
- package/dist/{chunk-RBXFXT7H.cjs.map → chunk-3QCEYJLK.cjs.map} +1 -1
- package/dist/{chunk-U3ZMGBVC.js → chunk-3VAKUFNQ.js} +10 -3
- package/dist/chunk-3VAKUFNQ.js.map +1 -0
- package/dist/{chunk-BWZBKLOC.js → chunk-CB7ONLGB.js} +3 -3
- package/dist/{chunk-BWZBKLOC.js.map → chunk-CB7ONLGB.js.map} +1 -1
- package/dist/{chunk-6R6LAUR7.js → chunk-CO4B5EYF.js} +5 -5
- package/dist/{chunk-6R6LAUR7.js.map → chunk-CO4B5EYF.js.map} +1 -1
- package/dist/{chunk-HXIYYE57.js → chunk-DB2GJJTM.js} +3 -3
- package/dist/{chunk-HXIYYE57.js.map → chunk-DB2GJJTM.js.map} +1 -1
- package/dist/{chunk-VHNTCB2X.cjs → chunk-EGUDIX6Q.cjs} +4 -4
- package/dist/{chunk-VHNTCB2X.cjs.map → chunk-EGUDIX6Q.cjs.map} +1 -1
- package/dist/{chunk-ZV6ZCJ74.cjs → chunk-HVTSE2SF.cjs} +247 -210
- package/dist/chunk-HVTSE2SF.cjs.map +1 -0
- package/dist/{chunk-NDFHQOPP.js → chunk-IYFSNRZN.js} +84 -47
- package/dist/chunk-IYFSNRZN.js.map +1 -0
- package/dist/{chunk-76TX6XND.js → chunk-JTUCC6WZ.js} +18 -10
- package/dist/chunk-JTUCC6WZ.js.map +1 -0
- package/dist/{chunk-H4NHRZ6Y.cjs → chunk-QP3OHHON.cjs} +18 -10
- package/dist/chunk-QP3OHHON.cjs.map +1 -0
- package/dist/{chunk-AG3SIPP7.cjs → chunk-SER23XI4.cjs} +10 -3
- package/dist/chunk-SER23XI4.cjs.map +1 -0
- package/dist/{chunk-RXNLGINR.cjs → chunk-XCP5GCBE.cjs} +5 -5
- package/dist/{chunk-RXNLGINR.cjs.map → chunk-XCP5GCBE.cjs.map} +1 -1
- package/dist/index.cjs +131 -119
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +23 -11
- package/dist/index.js.map +1 -1
- package/dist/middleware.cjs +28 -28
- package/dist/middleware.js +2 -2
- package/dist/migrations-GMHTJI7D.cjs +13 -0
- package/dist/{migrations-ZE6IZNLB.cjs.map → migrations-GMHTJI7D.cjs.map} +1 -1
- package/dist/migrations-IVFIDOSO.js +4 -0
- package/dist/{migrations-USSEHJC7.js.map → migrations-IVFIDOSO.js.map} +1 -1
- package/dist/routes.cjs +28 -28
- package/dist/routes.js +5 -5
- package/dist/services.cjs +2 -2
- package/dist/services.js +1 -1
- package/dist/templates.cjs +19 -19
- package/dist/templates.js +2 -2
- package/dist/utils.cjs +11 -11
- package/dist/utils.js +1 -1
- package/migrations/032_user_profiles.sql +1 -0
- package/migrations/035_user_profiles_data_column.sql +17 -0
- package/package.json +3 -3
- package/dist/chunk-76TX6XND.js.map +0 -1
- package/dist/chunk-AG3SIPP7.cjs.map +0 -1
- package/dist/chunk-H4NHRZ6Y.cjs.map +0 -1
- package/dist/chunk-NDFHQOPP.js.map +0 -1
- package/dist/chunk-U3ZMGBVC.js.map +0 -1
- package/dist/chunk-ZV6ZCJ74.cjs.map +0 -1
- package/dist/migrations-USSEHJC7.js +0 -4
- package/dist/migrations-ZE6IZNLB.cjs +0 -13
|
@@ -393,10 +393,14 @@ function renderAdminLayoutCatalyst(data) {
|
|
|
393
393
|
|
|
394
394
|
// Close dropdown when clicking outside
|
|
395
395
|
document.addEventListener('click', function(event) {
|
|
396
|
-
const
|
|
396
|
+
const dropdowns = document.querySelectorAll('.userDropdown');
|
|
397
397
|
const button = event.target.closest('[data-user-menu]');
|
|
398
|
-
if (!button
|
|
399
|
-
|
|
398
|
+
if (!button) {
|
|
399
|
+
dropdowns.forEach(function(dropdown) {
|
|
400
|
+
if (!dropdown.contains(event.target)) {
|
|
401
|
+
dropdown.classList.add('hidden');
|
|
402
|
+
}
|
|
403
|
+
});
|
|
400
404
|
}
|
|
401
405
|
});
|
|
402
406
|
|
|
@@ -1502,16 +1506,20 @@ function adminLayoutV2(data) {
|
|
|
1502
1506
|
|
|
1503
1507
|
// User dropdown toggle
|
|
1504
1508
|
function toggleUserDropdown() {
|
|
1505
|
-
const
|
|
1506
|
-
|
|
1509
|
+
const dropdowns = document.querySelectorAll('.userDropdown');
|
|
1510
|
+
dropdowns.forEach(function(dropdown) {
|
|
1511
|
+
dropdown.classList.toggle('hidden');
|
|
1512
|
+
});
|
|
1507
1513
|
}
|
|
1508
1514
|
|
|
1509
1515
|
// Close dropdown when clicking outside
|
|
1510
1516
|
document.addEventListener('click', function(event) {
|
|
1511
|
-
const
|
|
1517
|
+
const dropdowns = document.querySelectorAll('.userDropdown');
|
|
1512
1518
|
const button = event.target.closest('button');
|
|
1513
1519
|
if (!button || !button.getAttribute('onclick')) {
|
|
1514
|
-
|
|
1520
|
+
dropdowns.forEach(function(dropdown) {
|
|
1521
|
+
dropdown.classList.add('hidden');
|
|
1522
|
+
});
|
|
1515
1523
|
}
|
|
1516
1524
|
});
|
|
1517
1525
|
|
|
@@ -1961,7 +1969,7 @@ function renderTopBar(pageTitle, user) {
|
|
|
1961
1969
|
</button>
|
|
1962
1970
|
|
|
1963
1971
|
<!-- Dropdown Menu -->
|
|
1964
|
-
<div
|
|
1972
|
+
<div class="userDropdown hidden absolute right-0 mt-2 w-48 backdrop-blur-md bg-black/95 rounded-xl border border-white/10 shadow-xl z-[9999]">
|
|
1965
1973
|
<div class="py-2">
|
|
1966
1974
|
<div class="px-4 py-2 border-b border-white/10">
|
|
1967
1975
|
<p class="text-sm font-medium text-gray-1">${user.name || user.email || "User"}</p>
|
|
@@ -3617,5 +3625,5 @@ exports.renderLogo = renderLogo;
|
|
|
3617
3625
|
exports.renderPagination = renderPagination;
|
|
3618
3626
|
exports.renderTable = renderTable;
|
|
3619
3627
|
exports.renderTestimonialsList = renderTestimonialsList;
|
|
3620
|
-
//# sourceMappingURL=chunk-
|
|
3621
|
-
//# sourceMappingURL=chunk-
|
|
3628
|
+
//# sourceMappingURL=chunk-QP3OHHON.cjs.map
|
|
3629
|
+
//# sourceMappingURL=chunk-QP3OHHON.cjs.map
|